Commit 333f1d87 by Kai Tietz Committed by Kai Tietz

bf-ms-layout-3.c: Mark char typed bitfield as extension.

        * gcc.dg/bf-ms-layout-3.c: Mark char typed bitfield
        as extension.

From-SVN: r184437
parent 0c2ad203
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> 2012-02-21 Richard Guenther <rguenther@suse.de>
PR tree-optimization/52324 PR tree-optimization/52324
......
...@@ -16,24 +16,25 @@ struct s2_t { ...@@ -16,24 +16,25 @@ struct s2_t {
struct s2_t s2; struct s2_t s2;
struct s3_t { struct s3_t {
char a : 6; __extension__ char a : 6;
char b __attribute__ ((aligned (16))); char b __attribute__ ((aligned (16)));
} __attribute__ ((ms_struct)); } __attribute__ ((ms_struct));
struct s3_t s3; struct s3_t s3;
struct s4_t { struct s4_t {
char a : 6; __extension__ char a : 6;
char b __attribute__ ((aligned (2))); char b __attribute__ ((aligned (2)));
} __attribute__ ((ms_struct)); } __attribute__ ((ms_struct));
struct s4_t s4; struct s4_t s4;
struct s5_t { struct s5_t {
char a : 6; __extension__ char a : 6;
char b __attribute__ ((aligned (1))); char b __attribute__ ((aligned (1)));
} __attribute__ ((ms_struct)); } __attribute__ ((ms_struct));
struct s5_t s5; 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); return (__PTRDIFF_TYPE__) ((const char*)a - (const char*)b);
} }
......
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