OSDN Git Service

PR testsuite/52641
authorgjl <gjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Apr 2012 17:08:20 +0000 (17:08 +0000)
committergjl <gjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Apr 2012 17:08:20 +0000 (17:08 +0000)
PR tree-optimizations/52891
* gcc.c-torture/compile/pr52891-2.c: Fix test for 16-bit int.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@186775 138bc75d-0d04-0410-961f-82ee72b054a4

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

index bbbfc2f..baee57b 100644 (file)
@@ -1,3 +1,10 @@
+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  Richard Guenther  <rguenther@suse.de>
 
        PR tree-optimization/53085
index d9fcbd6..00ae0c8 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;