gcc.c (do_spec_1): Cope with %g/%u/%U options which do not have a suffix.
authorNick Clifton <nickc@cygnus.com>
Thu, 16 Jul 1998 22:45:49 +0000 (16:45 -0600)
committerJeff Law <law@gcc.gnu.org>
Thu, 16 Jul 1998 22:45:49 +0000 (16:45 -0600)
8
* gcc.c (do_spec_1): Cope with %g/%u/%U options which do not have
a suffix.

From-SVN: r21229

gcc/gcc.c

index 90da0f0..da3bdc5 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -3653,7 +3653,7 @@ do_spec_1 (spec, inswitch, soft_matched_part)
                        t->length = p - suffix;
                        t->suffix = save_string (suffix, p - suffix);
                        t->unique = (c != 'g');
-                       temp_filename = make_temp_file (suffix);
+                       temp_filename = make_temp_file (t->suffix);
                      }
                    temp_filename_length = strlen (temp_filename);
                    t->filename = temp_filename;