summaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index a5f738bdf5c..5879a851286 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -2984,7 +2984,6 @@ int
c_get_alias_set (t)
tree t;
{
- static int next_set = 0;
tree type;
if (t == error_mark_node)
@@ -3060,6 +3059,6 @@ c_get_alias_set (t)
/* TYPE is something we haven't seen before. Put it in a new alias
set. */
- TYPE_ALIAS_SET (type) = ++next_set;
+ TYPE_ALIAS_SET (type) = new_alias_set ();
return TYPE_ALIAS_SET (type);
}