Commit 8a7b5cc4 by Hans-Peter Nilsson Committed by Hans-Peter Nilsson

20041106-1.c, [...]: Match "attribute ignored" warnings when "packing" is the…

20041106-1.c, [...]: Match "attribute ignored" warnings when "packing" is the same as the ABI layout.

	* gcc.dg/20041106-1.c, gcc.dg/20030321-1.c, gcc.dg/pr17112-1.c,
	gcc.dg/pr17112-1.c, g++.dg/other/packed1.C,
	g++.dg/other/crash-4.C, g++.dg/ext/packed8.C: Match "attribute
	ignored" warnings when "packing" is the same as the ABI layout.

From-SVN: r107758
parent 2331bffb
2005-12-01 Hans-Peter Nilsson <hp@axis.com>
* gcc.dg/20041106-1.c, gcc.dg/20030321-1.c, gcc.dg/pr17112-1.c,
gcc.dg/pr17112-1.c, g++.dg/other/packed1.C,
g++.dg/other/crash-4.C, g++.dg/ext/packed8.C: Match "attribute
ignored" warnings when "packing" is the same as the ABI layout.
2005-11-30 Bernhard Fischer <rep.nop@aon.at> 2005-11-30 Bernhard Fischer <rep.nop@aon.at>
PR fortran/21302 PR fortran/21302
...@@ -15,7 +15,7 @@ public: ...@@ -15,7 +15,7 @@ public:
class B class B
{ {
A a __attribute__((packed)); A a __attribute__((packed)); // { dg-warning "attribute ignored" "" { target default_packed } }
public: public:
B() {} B() {}
......
...@@ -17,7 +17,7 @@ struct a ...@@ -17,7 +17,7 @@ struct a
struct b struct b
{ // { dg-error "cannot bind packed field" "" { target { ! default_packed } } } { // { dg-error "cannot bind packed field" "" { target { ! default_packed } } }
char c; char c;
a aa __attribute__((packed)); a aa __attribute__((packed)); // { dg-warning "attribute ignored" "" { target default_packed } }
}; };
struct c struct c
{ {
......
...@@ -11,7 +11,11 @@ ...@@ -11,7 +11,11 @@
struct thing { int m; }; struct thing { int m; };
struct pod {char a; thing m __attribute__ ((packed)); }; struct pod
{
char a;
thing m __attribute__ ((packed)); // { dg-warning "attribute ignored" "" { target default_packed } }
};
int main () int main ()
{ {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
struct array struct array
{ {
char align[4092]; char align[4092];
long long elem[2] __attribute__ ((__packed__)); long long elem[2] __attribute__ ((__packed__)); /* { dg-warning "attribute ignored" "" { target default_packed } } */
}; };
long long long long
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#include <unistd.h> #include <unistd.h>
#include <stdlib.h> #include <stdlib.h>
struct S { long x __attribute__((packed)); }; struct S { long x __attribute__((packed)); }; /* { dg-warning "attribute ignored" "" { target default_packed } } */
volatile long sink; volatile long sink;
void foo (struct S *s) void foo (struct S *s)
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
extern void abort(void); extern void abort(void);
typedef struct { typedef struct {
int int24:24 __attribute__ ((packed)); int int24:24 __attribute__ ((packed)); /* { dg-warning "attribute ignored" "" { target { default_packed && { ! pcc_bitfield_type_matters } } } } */
} myint24; } myint24;
myint24 x[3] = { 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