c-common.c (decl_attributes, [...]): Don't call layout_decl for FIELD_DECL.
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>
Sun, 1 Jul 2001 23:23:28 +0000 (23:23 +0000)
committerRichard Kenner <kenner@gcc.gnu.org>
Sun, 1 Jul 2001 23:23:28 +0000 (19:23 -0400)
* c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
for FIELD_DECL.

From-SVN: r43682

gcc/ChangeLog
gcc/c-common.c

index 8149242ae5e0c8eed99534d23f29fab2a26ce3d8..4631a628815a42d6bd97d1ebce426a7710cf8e18 100644 (file)
@@ -1,3 +1,8 @@
+Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
+
+       * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
+       for FIELD_DECL.
+
 2001-07-01  Geoffrey Keating  <geoffk@redhat.com>
 
        * doc/tm.texi (FUNCTION_ARG): Document that the last call
index 0990f23d4242f523685d06dbfbb51ed2cb90fbb3..f398599138d0d747bc575eb7c99c1afd525ecb38 100644 (file)
@@ -970,7 +970,8 @@ decl_attributes (node, attributes, prefix_attributes)
                             TREE_UNSIGNED (type) ? "uintmax_t" : "intmax_t");
                  TREE_TYPE (decl) = type = typefm;
                  DECL_SIZE (decl) = DECL_SIZE_UNIT (decl) = 0;
-                 layout_decl (decl, 0);
+                 if (TREE_CODE (decl) != FIELD_DECL)
+                   layout_decl (decl, 0);
                }
            }
          break;