]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
20041106-1.c, [...]: Match "attribute ignored" warnings when "packing" is the same...
authorHans-Peter Nilsson <hp@axis.com>
Thu, 1 Dec 2005 01:24:16 +0000 (01:24 +0000)
committerHans-Peter Nilsson <hp@gcc.gnu.org>
Thu, 1 Dec 2005 01:24:16 +0000 (01:24 +0000)
* 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

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/packed8.C
gcc/testsuite/g++.dg/other/crash-4.C
gcc/testsuite/g++.dg/other/packed1.C
gcc/testsuite/gcc.dg/20030321-1.c
gcc/testsuite/gcc.dg/20041106-1.c
gcc/testsuite/gcc.dg/pr17112-1.c

index 2f0f297ca5cf77230cb5d3aadc6b6be155f1be30..aa543db2038d1e5ffd04f6bdbbafb9baed8b8fd6 100644 (file)
@@ -1,3 +1,10 @@
+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>
 
        PR fortran/21302
index 13fc134bd97e7f591bdafdcbe71a3d589fb70856..1f86cfc0a69ebac224c597ab0f4f664f6ae8d217 100644 (file)
@@ -15,7 +15,7 @@ public:
 
 class B
 {
-  A a __attribute__((packed));
+  A a __attribute__((packed)); // { dg-warning "attribute ignored" "" { target default_packed } }
 
 public:
   B() {}
index ea5a14fa7aed90e06d3d27686fb1087b002fd818..a37b8b2f020d51a8acf565ed390a874979f70bec 100644 (file)
@@ -17,7 +17,7 @@ struct a
 struct b
 { // { dg-error "cannot bind packed field" "" { target { ! default_packed } } }
   char c;
-  a aa __attribute__((packed));
+  a aa __attribute__((packed)); // { dg-warning "attribute ignored" "" { target default_packed } }
 };
 struct c
 {
index d44220922715ac7fb9bfb0d47a963a5ea5ed38cf..5d19eb0e2a76df9fc4383c244ffff45d3e713fff 100644 (file)
 
 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 ()
 {
index 228acec5471f29f3e9f8e090073a6fbc41de35e2..1150c7f7619222a12b2bde605af3ee3a60803dd7 100644 (file)
@@ -7,7 +7,7 @@
 struct array 
 {
   char align[4092];
-  long long elem[2] __attribute__ ((__packed__));
+  long long elem[2] __attribute__ ((__packed__)); /* { dg-warning "attribute ignored" "" { target default_packed } } */
 };
 
 long long
index 538f2dd8eb5ba7655ded1669917766144a609317..f83e835ed1d5a06b12af449117e50b37dbce83a7 100644 (file)
@@ -6,7 +6,7 @@
 #include <unistd.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;
 
 void foo (struct S *s)
index 7c8b7aa04320ed329fc653cf2459a5661b7730dc..09c3758abed87385ab46ad6ab357e8f838d3d296 100644 (file)
@@ -5,7 +5,7 @@
 extern void abort(void);
 
 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 x[3] = {