aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2002-12-18 01:07:26 -0500
committerJason Merrill <jason@gcc.gnu.org>2002-12-18 01:07:26 -0500
commita3a0177e779d569c6e906cb7b94c22c327d6363b (patch)
treee96ea62ba1360481c1a26ff20d6fc8f7996c8943 /gcc/gcc.c
parentf32ac70daee2c86644800079493e4f3b17a49830 (diff)
downloadgcc-a3a0177e779d569c6e906cb7b94c22c327d6363b.zip
gcc-a3a0177e779d569c6e906cb7b94c22c327d6363b.tar.gz
gcc-a3a0177e779d569c6e906cb7b94c22c327d6363b.tar.bz2
* gcc.c (do_spec_1) ['W']: End any pending argument from the braces.
From-SVN: r60235
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index ad1a478..dea12aa 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)