]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gcc.c (do_spec_1): Treat %U like %u for unique associations.
authorRoger Sayle <roger@eyesopen.com>
Fri, 28 Feb 2003 02:37:38 +0000 (02:37 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Fri, 28 Feb 2003 02:37:38 +0000 (02:37 +0000)
* gcc.c (do_spec_1):  Treat %U like %u for unique associations.

Co-Authored-By: Zack Weinberg <zack@codesourcery.com>
From-SVN: r63542

gcc/ChangeLog
gcc/gcc.c

index 46814ac11bfa5ee015ec33a7cceb81a0dcd83be5..f5888be3c6acc7a580ada513a32a5f67a861b657 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 937f47163f8c44ae92237d7100b9c90da385c79d..7c344c925553aada6f86be25b72492d090017de7 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;