]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
struct-layout-1_test.h: Decrease bitfield size to work even with -fshort-enums.
authorJakub Jelinek <jakub@redhat.com>
Mon, 5 Sep 2011 13:53:08 +0000 (15:53 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 5 Sep 2011 13:53:08 +0000 (15:53 +0200)
* gcc.dg/compat/struct-layout-1_test.h: Decrease bitfield size
to work even with -fshort-enums.

From-SVN: r178540

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/compat/struct-layout-1_test.h

index 21628f8b250bcbafb7ecc8f9c881794f312c4de8..c49acf3788871e71b659ec5793b0b245d30255b6 100644 (file)
@@ -1,3 +1,8 @@
+2011-09-05  Jakub Jelinek  <jakub@redhat.com>
+
+       * gcc.dg/compat/struct-layout-1_test.h: Decrease bitfield size
+       to work even with -fshort-enums.
+
 2011-09-04  Jan Hubicka  <jh@suse.cz>
 
        * gcc.c-torture/compile/20110902.c: new testcase.
index 4a70dfd0601d9a561e1ce9dab60d6395c5737c98..affddcaefa8b2762f12529a362c4b61592988d08 100644 (file)
@@ -1,5 +1 @@
-#if (__SIZEOF_INT__ >= 4) 
-T(0,enum E2 a:31;,B(0,a,e2_m1,e2_0))
-#else
-T(0,enum E2 a:15;,B(0,a,e2_m1,e2_0))
-#endif
+T(0,enum E2 a:7;,B(0,a,e2_m1,e2_0))