diff options
author | gjl <gjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-04-24 17:18:54 +0000 |
---|---|---|
committer | gjl <gjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-04-24 17:18:54 +0000 |
commit | 49c567f51e11bf7b939026323eb8db841089d04d (patch) | |
tree | 8d3249909f5281aadf48f53e3237480b642e3b41 | |
parent | 66bbeb85a1afce21387728b2027a2ea00eada884 (diff) | |
download | gcc-49c567f51e11bf7b939026323eb8db841089d04d.tar.gz |
PR testsuite/52641
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/trunk@186776 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/pr52891-2.c | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5f14b79cdd7..a0f64fc1cdc 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 diff --git a/gcc/testsuite/gcc.c-torture/compile/pr52891-2.c b/gcc/testsuite/gcc.c-torture/compile/pr52891-2.c index d9fcbd6dd9d..00ae0c8b99f 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr52891-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr52891-2.c @@ -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; |