Commit 6a3203c8 by Andrew Pinski Committed by Andrew Pinski

c-common.c (c_common_get_alias_set): Set the aliasing set of the type which is…

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
parent bbefea96
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.
......
......@@ -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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment