alias.c (record_component_aliases): Don't inspect DECL_NONADDRESSABLE_P of non-FIELD_...
authorGeoff Keating <geoffk@cygnus.com>
Sun, 4 Jun 2000 05:51:12 +0000 (05:51 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Sun, 4 Jun 2000 05:51:12 +0000 (05:51 +0000)
        * alias.c (record_component_aliases): Don't inspect
        DECL_NONADDRESSABLE_P of non-FIELD_DECL components of structures.

From-SVN: r34389

gcc/ChangeLog
gcc/alias.c

index e7dd0c001f43ca1c196502bc3d8c7f9c0cfc9450..d48c71e6bab7198006f5b4512ae06503fc8cf765 100644 (file)
@@ -1,4 +1,9 @@
-Sat Jun  3 19:05:30 2000  Michael Meissner  <meissner@redhat.com>
+S2000-06-03  Geoff Keating  <geoffk@cygnus.com>
+
+        * alias.c (record_component_aliases): Don't inspect
+        DECL_NONADDRESSABLE_P of non-FIELD_DECL components of structures.
+
+at Jun  3 19:05:30 2000  Michael Meissner  <meissner@redhat.com>
 
        * ifcvt.c (process_insns): If IFCVT_MODIFY_INSN is defined, call
        it with the pattern to do machine dependent work.
index 1306c3f9e35c471914446cad14d2d3cad245845e..dee0cfcff44752a1b40b0082b369f5bc0185e6f8 100644 (file)
@@ -536,7 +536,7 @@ record_component_aliases (type)
     case UNION_TYPE:
     case QUAL_UNION_TYPE:
       for (field = TYPE_FIELDS (type); field != 0; field = TREE_CHAIN (field))
-       if (! DECL_NONADDRESSABLE_P (field))
+       if (TREE_CODE (field) == FIELD_DECL && ! DECL_NONADDRESSABLE_P (field))
          record_alias_subset (superset, get_alias_set (TREE_TYPE (field)));
       break;