summaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-10 04:41:37 +0000
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-10 04:41:37 +0000
commitad16cb2cf13a235425acaea0eb065e676687e9d3 (patch)
tree4c8710e959e1f9c0cab862eba3ea989e8992dd83 /gcc/c-common.c
parentbe42fe19ce70fde926b2b3e557cfec6597d695a5 (diff)
downloadgcc-ad16cb2cf13a235425acaea0eb065e676687e9d3.tar.gz
2004-08-09 Andrew Pinski <apinski@apple.com>
* c-common.c (c_common_get_alias_set): Set the aliasing set of the type which is found to be compatible before returning the aliasing set. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85741 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index 868088f0e1c..09373dd05d8 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -2711,7 +2711,10 @@ c_common_get_alias_set (tree t)
NULL);
slot = htab_find_slot (type_hash_table, t, INSERT);
if (*slot != NULL)
- return TYPE_ALIAS_SET ((tree)*slot);
+ {
+ TYPE_ALIAS_SET (t) = TYPE_ALIAS_SET ((tree)*slot);
+ return TYPE_ALIAS_SET ((tree)*slot);
+ }
else
/* Our caller will assign and record (in t) a new alias set; all we need
to do is remember t in the hash table. */