aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Pinski <apinski@apple.com>2004-08-10 04:41:37 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2004-08-09 21:41:37 -0700
commit6a3203c8e3ffcc1ff0b409bfdbf44e41abff353f (patch)
tree4c8710e959e1f9c0cab862eba3ea989e8992dd83
parentbbefea96623c01fd9915585adc21cfdbdd59746d (diff)
downloadgcc-6a3203c8e3ffcc1ff0b409bfdbf44e41abff353f.zip
gcc-6a3203c8e3ffcc1ff0b409bfdbf44e41abff353f.tar.gz
gcc-6a3203c8e3ffcc1ff0b409bfdbf44e41abff353f.tar.bz2
c-common.c (c_common_get_alias_set): Set the aliasing set of the type which is found to be compatible before...
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. From-SVN: r85741
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/c-common.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 004021f..6eb4be8 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
2004-08-09 Daniel Jacobowitz <dan@debian.org>
* ggc-zone.c (struct alloc_zone): Add statistics counters.
diff --git a/gcc/c-common.c b/gcc/c-common.c
index 868088f..09373dd 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. */