diff options
author | Tom Tromey <tromey@redhat.com> | 2001-05-30 23:56:48 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2001-05-30 23:56:48 +0000 |
commit | 2297fdf16012e7a8249c3e77cd3a6c9b9d58be7a (patch) | |
tree | 425f7aac0f3116dd9433bd6f8ec8e5471d5dde4c /gcc/gcc.c | |
parent | f5fa23843eb971689d7d9e62fa879c98e038ffc6 (diff) | |
download | gcc-2297fdf16012e7a8249c3e77cd3a6c9b9d58be7a.zip gcc-2297fdf16012e7a8249c3e77cd3a6c9b9d58be7a.tar.gz gcc-2297fdf16012e7a8249c3e77cd3a6c9b9d58be7a.tar.bz2 |
gcc.c (do_spec_1): In `%O' case, if we computed saved_suffix, use it in the new association.
* gcc.c (do_spec_1): In `%O' case, if we computed saved_suffix,
use it in the new association.
From-SVN: r42728
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r-- | gcc/gcc.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -4296,7 +4296,8 @@ do_spec_1 (spec, inswitch, soft_matched_part) && t->unique == (c != 'g')) break; - /* Make a new association if needed. %u and %j require one. */ + /* Make a new association if needed. %u and %j + require one. */ if (t == 0 || c == 'u' || c == 'j') { if (t == 0) @@ -4306,7 +4307,13 @@ do_spec_1 (spec, inswitch, soft_matched_part) temp_names = t; } t->length = suffix_length; - t->suffix = save_string (suffix, suffix_length); + if (saved_suffix) + { + t->suffix = saved_suffix; + saved_suffix = NULL; + } + else + t->suffix = save_string (suffix, suffix_length); t->unique = (c != 'g'); temp_filename = make_temp_file (t->suffix); temp_filename_length = strlen (temp_filename); |