diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-09-20 19:02:58 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-09-20 19:02:58 +0000 |
commit | 7242868d57f85b98b3975032d1ecdf7003b125c8 (patch) | |
tree | b4448b05bc5b4459d2016f66d11d33af836c5629 /gcc/c-common.c | |
parent | f757c65cfb0b13e7aced379ba88228034da22dbc (diff) | |
download | gcc-7242868d57f85b98b3975032d1ecdf7003b125c8.tar.gz |
* tree.c (new_alias_set): New function.
* tree.h (new_alias_set): Declare it.
* c-common.c (c_get_alias_set): Use it.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22504 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 3 |
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); } |