Commit a3a0177e by Jason Merrill Committed by Jason Merrill

* gcc.c (do_spec_1) ['W']: End any pending argument from the braces.

From-SVN: r60235
parent f32ac70d
2002-12-17 Jason Merrill <jason@redhat.com> 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 * calls.c (expand_call): Don't try to be clever about expanding
the return slot address. the return slot address.
......
...@@ -4778,6 +4778,18 @@ do_spec_1 (spec, inswitch, soft_matched_part) ...@@ -4778,6 +4778,18 @@ do_spec_1 (spec, inswitch, soft_matched_part)
p = handle_braces (p + 1); p = handle_braces (p + 1);
if (p == 0) if (p == 0)
return -1; 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 /* If any args were output, mark the last one for deletion
on failure. */ on failure. */
if (argbuf_index != cur_index) if (argbuf_index != cur_index)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment