diff options
author | Roger Sayle <roger@eyesopen.com> | 2003-03-09 21:44:49 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2003-03-09 21:44:49 +0000 |
commit | 6544fbcb2ae41e065b956179bbc6cf7176c8901e (patch) | |
tree | a0447b1d4aba85670a96c85e712c7eea282893fc /gcc/gcc.c | |
parent | 3006d728695e52d126b1e451937ac848f987b4b6 (diff) | |
download | gcc-6544fbcb2ae41e065b956179bbc6cf7176c8901e.zip gcc-6544fbcb2ae41e065b956179bbc6cf7176c8901e.tar.gz gcc-6544fbcb2ae41e065b956179bbc6cf7176c8901e.tar.bz2 |
gcc.c (do_spec_1): Revert 2003-02-24 patch.
* gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch. Don't handle
pending argument upon return from handle_braces here.
(do_spec_2): Instead handle it upon return from do_spec_1 here.
Co-Authored-By: Joern Rennecke <joern.rennecke@superh.com>
From-SVN: r64047
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r-- | gcc/gcc.c | 32 |
1 files changed, 19 insertions, 13 deletions
@@ -4248,6 +4248,9 @@ static int do_spec_2 (spec) const char *spec; { + const char *string; + int result; + clear_args (); arg_going = 0; delete_this_arg = 0; @@ -4256,7 +4259,22 @@ do_spec_2 (spec) input_from_pipe = 0; suffix_subst = NULL; - return do_spec_1 (spec, 0, NULL); + result = do_spec_1 (spec, 0, NULL); + + /* 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; + } + + return result; } @@ -5159,18 +5177,6 @@ do_spec_1 (spec, inswitch, soft_matched_part) p = handle_braces (p); 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; - } break; case ':': |