OSDN Git Service

8
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Jul 1998 22:45:49 +0000 (22:45 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Jul 1998 22:45:49 +0000 (22:45 +0000)
* gcc.c (do_spec_1): Cope with %g/%u/%U options which do not have
a suffix.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21229 138bc75d-0d04-0410-961f-82ee72b054a4

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;