re PR testsuite/52641 (Test cases fail for 16-bit int targets)

PR testsuite/52641
	PR tree-optimizations/52891
	* gcc.c-torture/compile/pr52891-2.c: Fix test for 16-bit int.

From-SVN: r186776
This commit is contained in:
Georg-Johann Lay 2012-04-24 17:18:54 +00:00 committed by Georg-Johann Lay
parent b40e334f1f
commit e900e6bd30
2 changed files with 10 additions and 0 deletions

View 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

View 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;