Commit cc7f271e by Hans-Peter Nilsson Committed by Hans-Peter Nilsson

bitfld-15.c: Gate warning on target pcc_bitfield_type_matters.

	* 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.

From-SVN: r143662
parent a8b1bfab
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
......
......@@ -3,7 +3,7 @@
/* { 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;
......
......@@ -2,7 +2,7 @@
/* { 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;
......
......@@ -7,6 +7,6 @@ struct t
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];
......@@ -6,6 +6,6 @@ struct t
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];
......@@ -6,7 +6,7 @@
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] = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment