Message ID | 202008130316.07D3GoCh008782@ignucius.se.axis.com |
---|---|
State | New |
Headers | show |
Series | gcc.dg/pr94600-5.c .. -8.c: Align struct t0 explictly, as a type, PR middle-end/94600 | expand |
--- gcc/gcc/testsuite/gcc.dg/pr94600-5.c.orig Mon Jul 13 21:02:59 2020 +++ gcc/gcc/testsuite/gcc.dg/pr94600-5.c Sun Aug 9 05:03:32 2020 @@ -9,7 +9,7 @@ typedef struct { unsigned int f1 : 11; unsigned int f2 : 10; unsigned int f3 : 7; -} t0; +} t0 __attribute__((__aligned__(4))); static t0 a0[] = { { .f0 = 7, .f1 = 99, .f3 = 1, }, --- gcc/gcc/testsuite/gcc.dg/pr94600-6.c.orig Mon Jul 13 21:02:59 2020 +++ gcc/gcc/testsuite/gcc.dg/pr94600-6.c Sun Aug 9 05:05:36 2020 @@ -9,7 +9,7 @@ typedef struct { unsigned int f1 : 11; unsigned int f2 : 10; unsigned int f3 : 7; -} t0; +} t0 __attribute__((__aligned__(4))); void bar(volatile t0 *b) --- gcc/gcc/testsuite/gcc.dg/pr94600-7.c.orig Mon Jul 13 21:02:59 2020 +++ gcc/gcc/testsuite/gcc.dg/pr94600-7.c Sun Aug 9 05:05:47 2020 @@ -9,7 +9,7 @@ typedef struct { unsigned int f1 : 11; unsigned int f2 : 10; unsigned int f3 : 7; -} t0; +} t0 __attribute__((__aligned__(4))); static t0 a0[] = { { .f0 = 7, .f1 = 99, .f3 = 1, }, --- gcc/gcc/testsuite/gcc.dg/pr94600-8.c.orig Mon Jul 13 21:02:59 2020 +++ gcc/gcc/testsuite/gcc.dg/pr94600-8.c Sun Aug 9 05:05:54 2020 @@ -9,7 +9,7 @@ typedef struct { unsigned int f1 : 11; unsigned int f2 : 10; unsigned int f3 : 7; -} t0; +} t0 __attribute__((__aligned__(4))); void bar(volatile t0 *b)