OSDN Git Service

* gcc.c (do_spec_1): Treat %U like %u for unique associations.
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 28 Feb 2003 02:37:38 +0000 (02:37 +0000)
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 28 Feb 2003 02:37:38 +0000 (02:37 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63542 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/gcc.c

index 46814ac..f5888be 100644 (file)
@@ -1,3 +1,8 @@
+2003-02-27  Roger Sayle  <roger@eyesopen.com>
+           Zack Weinberg <zack@codesourcery.com>
+
+       * gcc.c (do_spec_1):  Treat %U like %u for unique associations.
+
 2003-02-27  Kazu Hirata  <kazu@cs.umass.edu>
 
        * reload1.c (sext_for_mode): Remove.
index 937f471..7c344c9 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -4706,7 +4706,7 @@ do_spec_1 (spec, inswitch, soft_matched_part)
                for (t = temp_names; t; t = t->next)
                  if (t->length == suffix_length
                      && strncmp (t->suffix, suffix, suffix_length) == 0
-                     && t->unique == (c == 'u' || c == 'j'))
+                     && t->unique == (c == 'u' || c == 'U' || c == 'j'))
                    break;
 
                /* Make a new association if needed.  %u and %j
@@ -4727,7 +4727,7 @@ do_spec_1 (spec, inswitch, soft_matched_part)
                      }
                    else
                      t->suffix = save_string (suffix, suffix_length);
-                   t->unique = (c == 'u' || c == 'j');
+                   t->unique = (c == 'u' || c == 'U' || c == 'j');
                    temp_filename = make_temp_file (t->suffix);
                    temp_filename_length = strlen (temp_filename);
                    t->filename = temp_filename;