re PR testsuite/52641 (Test cases fail for 16-bit int targets)
authorGeorg-Johann Lay <avr@gjlay.de>
Tue, 24 Apr 2012 17:18:54 +0000 (17:18 +0000)
committerGeorg-Johann Lay <gjl@gcc.gnu.org>
Tue, 24 Apr 2012 17:18:54 +0000 (17:18 +0000)
PR testsuite/52641
PR tree-optimizations/52891
* gcc.c-torture/compile/pr52891-2.c: Fix test for 16-bit int.

From-SVN: r186776

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr52891-2.c

index 5f14b79cdd753189a7ecd8d360cc3d009ed176d7..a0f64fc1cdc5839115a76ff9a7dc131a8c35186b 100644 (file)
@@ -1,3 +1,9 @@
+2012-04-24  Georg-Johann Lay  <avr@gjlay.de>
+
+       PR testsuite/52641
+       PR tree-optimizations/52891
+       * gcc.c-torture/compile/pr52891-2.c: Fix test for 16-bit int.
+
 2012-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
 
        PR c++/52363
index d9fcbd6dd9daef67b599d387efc80e27413482dd..00ae0c8b99fbab79ef6be45aabdef8c10601374f 100644 (file)
@@ -1,6 +1,10 @@
 /* PR tree-optimizations/52891 */
 
+#if __SIZEOF_INT__ > 2
 struct __attribute__((packed)) S { unsigned s : 22; };
+#else
+struct __attribute__((packed)) S { unsigned s : 12; };
+#endif
 struct __attribute__((packed)) T { struct S t; } c;
 int a, b, d;