From 2297fdf16012e7a8249c3e77cd3a6c9b9d58be7a Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 30 May 2001 23:56:48 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/gcc.c | 11 +++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 464d6257440..c25fe8b933d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-05-30 Tom Tromey + + * gcc.c (do_spec_1): In `%O' case, if we computed saved_suffix, + use it in the new association. + 2001-05-30 Loren J. Rittle John David Anglin diff --git a/gcc/gcc.c b/gcc/gcc.c index e613291b0c5..948793bcf4b 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -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); -- 2.30.2