summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2002-12-18 06:07:26 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2002-12-18 06:07:26 +0000
commitfb8213580fb900660f3c2bc7c45c8df26c574942 (patch)
treee96ea62ba1360481c1a26ff20d6fc8f7996c8943
parentaf0d3decf65011a642eb0aeb8307d9d273f6fefc (diff)
downloadppe42-gcc-fb8213580fb900660f3c2bc7c45c8df26c574942.tar.gz
ppe42-gcc-fb8213580fb900660f3c2bc7c45c8df26c574942.zip
* gcc.c (do_spec_1) ['W']: End any pending argument from the braces.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@60235 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog2
-rw-r--r--gcc/gcc.c12
2 files changed, 14 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 52a4c886bcc..d6c9dd79b27 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,7 @@
2002-12-17 Jason Merrill <jason@redhat.com>
+ * gcc.c (do_spec_1) ['W']: End any pending argument from the braces.
+
* calls.c (expand_call): Don't try to be clever about expanding
the return slot address.
diff --git a/gcc/gcc.c b/gcc/gcc.c
index ad1a478a566..dea12aac935 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -4778,6 +4778,18 @@ do_spec_1 (spec, inswitch, soft_matched_part)
p = handle_braces (p + 1);
if (p == 0)
return -1;
+ /* End any pending argument. */
+ if (arg_going)
+ {
+ obstack_1grow (&obstack, 0);
+ string = obstack_finish (&obstack);
+ if (this_is_library_file)
+ string = find_file (string);
+ store_arg (string, delete_this_arg, this_is_output_file);
+ if (this_is_output_file)
+ outfiles[input_file_number] = string;
+ arg_going = 0;
+ }
/* If any args were output, mark the last one for deletion
on failure. */
if (argbuf_index != cur_index)
OpenPOWER on IntegriCloud