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: r186775
This commit is contained in:
Georg-Johann Lay 2012-04-24 17:08:20 +00:00 committed by Georg-Johann Lay
parent e47f4b7094
commit 5b301b6fb1
2 changed files with 11 additions and 0 deletions

View 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

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;