]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c-common.c (c_common_get_alias_set): Set the aliasing set of the type which is found...
authorAndrew Pinski <apinski@apple.com>
Tue, 10 Aug 2004 04:41:37 +0000 (04:41 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Tue, 10 Aug 2004 04:41:37 +0000 (21:41 -0700)
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

gcc/ChangeLog
gcc/c-common.c

index 004021f414a017713a4f373a365def984b14e4ee..6eb4be82d907f3ad99e07535d1c854e9ca425be5 100644 (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.
index 868088f0e1c3dce7f7e976e4989545578a223f06..09373dd05d8af91b011ca82403ccfc78882ac4a7 100644 (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.  */