Commit 2297fdf1 by Tom Tromey Committed by Tom Tromey

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
parent f5fa2384
2001-05-30 Tom Tromey <tromey@redhat.com>
* 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 <ljrittle@acm.org> 2001-05-30 Loren J. Rittle <ljrittle@acm.org>
John David Anglin <dave@hiauly1.hia.nrc.ca> John David Anglin <dave@hiauly1.hia.nrc.ca>
......
...@@ -4296,7 +4296,8 @@ do_spec_1 (spec, inswitch, soft_matched_part) ...@@ -4296,7 +4296,8 @@ do_spec_1 (spec, inswitch, soft_matched_part)
&& t->unique == (c != 'g')) && t->unique == (c != 'g'))
break; 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 || c == 'u' || c == 'j')
{ {
if (t == 0) if (t == 0)
...@@ -4306,7 +4307,13 @@ do_spec_1 (spec, inswitch, soft_matched_part) ...@@ -4306,7 +4307,13 @@ do_spec_1 (spec, inswitch, soft_matched_part)
temp_names = t; temp_names = t;
} }
t->length = suffix_length; 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'); t->unique = (c != 'g');
temp_filename = make_temp_file (t->suffix); temp_filename = make_temp_file (t->suffix);
temp_filename_length = strlen (temp_filename); temp_filename_length = strlen (temp_filename);
......
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