aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorRoger Sayle <roger@eyesopen.com>2003-02-28 02:37:38 +0000
committerRoger Sayle <sayle@gcc.gnu.org>2003-02-28 02:37:38 +0000
commit95456d436865ead3141e1ecf5270479a186f0f42 (patch)
tree18a7fc18bebeb18ae909055a691abc0af7a4c85c /gcc/gcc.c
parent28ae9fed6bdfbe4a59f34083f22f40ff3f2af1bf (diff)
downloadgcc-95456d436865ead3141e1ecf5270479a186f0f42.zip
gcc-95456d436865ead3141e1ecf5270479a186f0f42.tar.gz
gcc-95456d436865ead3141e1ecf5270479a186f0f42.tar.bz2
gcc.c (do_spec_1): Treat %U like %u for unique associations.
* gcc.c (do_spec_1): Treat %U like %u for unique associations. Co-Authored-By: Zack Weinberg <zack@codesourcery.com> From-SVN: r63542
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 937f471..7c344c9 100644
--- 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;