bf-ms-layout-3.c: Mark char typed bitfield as extension.
authorKai Tietz <ktietz@redhat.com>
Tue, 21 Feb 2012 14:10:59 +0000 (15:10 +0100)
committerKai Tietz <ktietz@gcc.gnu.org>
Tue, 21 Feb 2012 14:10:59 +0000 (15:10 +0100)
        * gcc.dg/bf-ms-layout-3.c: Mark char typed bitfield
        as extension.

From-SVN: r184437

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/bf-ms-layout-3.c

index 5592364..3091af5 100644 (file)
@@ -1,3 +1,8 @@
+2012-02-21  Kai Tietz  <ktietz@redhat.com>
+
+       * gcc.dg/bf-ms-layout-3.c: Mark char typed bitfield
+       as extension.
+
 2012-02-21  Richard Guenther  <rguenther@suse.de>
 
        PR tree-optimization/52324
index 9abb9dc..a4e9ab3 100644 (file)
@@ -16,24 +16,25 @@ struct s2_t {
 struct s2_t s2;
 
 struct s3_t {
-  char a : 6;
+  __extension__ char a : 6;
   char b __attribute__ ((aligned (16)));
 } __attribute__ ((ms_struct));
 struct s3_t s3;
 
 struct s4_t {
-  char a : 6;
+  __extension__ char a : 6;
   char b __attribute__ ((aligned (2)));
 } __attribute__ ((ms_struct));
 struct s4_t s4;
 
 struct s5_t {
-  char a : 6;
+  __extension__ char a : 6;
   char b __attribute__ ((aligned (1)));
 } __attribute__ ((ms_struct));
 struct s5_t s5;
 
-__PTRDIFF_TYPE__ offs (const void *a, const void *b)
+__extension__
+static __PTRDIFF_TYPE__ offs (const void *a, const void *b)
 {
   return (__PTRDIFF_TYPE__) ((const char*)a  - (const char*)b);
 }