summaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2003-02-28 02:37:38 +0000
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2003-02-28 02:37:38 +0000
commit5f6af4932add6e9943495457a30aab3e030ba537 (patch)
tree18a7fc18bebeb18ae909055a691abc0af7a4c85c /gcc/gcc.c
parent325ead1d1344c2a4f110e16eefbda04fcb36764d (diff)
downloadgcc-5f6af4932add6e9943495457a30aab3e030ba537.tar.gz
* gcc.c (do_spec_1): Treat %U like %u for unique associations.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63542 138bc75d-0d04-0410-961f-82ee72b054a4
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 937f47163f8..7c344c92555 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;