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
This commit is contained in:
Andrew Pinski 2004-08-10 04:41:37 +00:00 committed by Andrew Pinski
parent bbefea9662
commit 6a3203c8e3
2 changed files with 9 additions and 1 deletions

View file

@ -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.

View file

@ -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. */