pcc_bitfield_type_matters.
* gcc.dg/bitfld-17.c, g++.dg/ext/bitfield2.C,
g++.dg/ext/bitfield4.C: Likewise.
* gcc.dg/pr17112-1.c: Don't expect a warning for the packed
bitfield for any target.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143662
138bc75d-0d04-0410-961f-
82ee72b054a4
+2009-01-25 Hans-Peter Nilsson <hp@axis.com>
+
+ * gcc.dg/bitfld-15.c: Gate warning on target
+ pcc_bitfield_type_matters.
+ * gcc.dg/bitfld-17.c, g++.dg/ext/bitfield2.C,
+ g++.dg/ext/bitfield4.C: Likewise.
+ * gcc.dg/pr17112-1.c: Don't expect a warning for the packed
+ bitfield for any target.
+
2009-01-24 Jakub Jelinek <jakub@redhat.com>
PR c/38957
/* { dg-options "" } */
struct t
-{ /* { dg-message "note: Offset of packed bit-field 't::b' has changed in GCC 4.4" "" } */
+{ /* { dg-message "note: Offset of packed bit-field 't::b' has changed in GCC 4.4" "" { target pcc_bitfield_type_matters } } */
char a:4;
char b:8;
char c:4;
/* { dg-options "" } */
struct t
-{ /* { dg-message "note: Offset of packed bit-field 't::b' has changed in GCC 4.4" "" } */
+{ /* { dg-message "note: Offset of packed bit-field 't::b' has changed in GCC 4.4" "" { target pcc_bitfield_type_matters } } */
char a:4;
char b:8 __attribute__ ((packed));
char c:4;
char a:4;
char b:8;
char c:4;
-} __attribute__ ((packed)); /* { dg-message "note: Offset of packed bit-field 'b' has changed in GCC 4.4" "" } */
+} __attribute__ ((packed)); /* { dg-message "note: Offset of packed bit-field 'b' has changed in GCC 4.4" "" { target pcc_bitfield_type_matters } } */
int assrt[sizeof (struct t) == 2 ? 1 : -1];
char a:4;
char b:8 __attribute__ ((packed));
char c:4;
-}; /* { dg-message "note: Offset of packed bit-field 'b' has changed in GCC 4.4" "" } */
+}; /* { dg-message "note: Offset of packed bit-field 'b' has changed in GCC 4.4" "" { target pcc_bitfield_type_matters } } */
int assrt[sizeof (struct t) == 2 ? 1 : -1];
extern void abort(void);
typedef struct {
- int int24:24 __attribute__ ((packed)); /* { dg-warning "attribute ignored" "" { target { default_packed && { ! pcc_bitfield_type_matters } } } } */
+ int int24:24 __attribute__ ((packed));
} myint24;
myint24 x[3] = {