]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
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:46:55 +0000 (16:46 -0600)
committerJeff Law <law@gcc.gnu.org>
Thu, 16 Jul 1998 22:46:55 +0000 (16:46 -0600)
* gcc.c (do_spec_1): Cope with %g/%u/%U options which do not have
a suffix.

From-SVN: r21231

gcc/gcc.c

index 18503859a427a5f50bd0719ad17bcfee901a8f2d..847345d37cd7377f7f7e5fbcbc102906e5872bb3 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -3654,7 +3654,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;