frv.c (frv_adjust_field_align): Check DECL_ARTIFICIAL for too large bitfields.
authorEric Christopher <echristo@redhat.com>
Tue, 21 Oct 2003 20:22:49 +0000 (20:22 +0000)
committerEric Christopher <echristo@gcc.gnu.org>
Tue, 21 Oct 2003 20:22:49 +0000 (20:22 +0000)
2003-10-21  Eric Christopher  <echristo@redhat.com>

* config/frv/frv.c (frv_adjust_field_align): Check DECL_ARTIFICIAL
for too large bitfields.

From-SVN: r72769

gcc/ChangeLog
gcc/config/frv/frv.c

index b92673365ea89fb22e0709eda9392eaaafb762a7..e260e04f04df12a7c5c112c4f44f5d82454db2fd 100644 (file)
@@ -1,3 +1,8 @@
+2003-10-21  Eric Christopher  <echristo@redhat.com>
+
+       * config/frv/frv.c (frv_adjust_field_align): Check DECL_ARTIFICIAL
+       for too large bitfields.
+
 2003-10-21  Mark Mitchell  <mark@codesourcery.com>
 
        * Makefile.in ($(docobjdir)/%.info): Honor BUILD_INFO.
index a9debdff2b14fc2d6c8430be79570fe05091248d..d90ced7c418b1dfaaa10b2fa2c85f018a7709c32 100644 (file)
@@ -7799,7 +7799,7 @@ frv_adjust_field_align (field, computed)
 
   /* Make sure that the bitfield is not wider than the type.  */
   if (DECL_BIT_FIELD (field)
-      && tree_int_cst_compare (DECL_SIZE (field), TYPE_SIZE (type)) <= 0)
+      && !DECL_ARTIFICIAL (field))
     {
       tree parent = DECL_CONTEXT (field);
       tree prev = NULL_TREE;