re PR tree-optimization/49768 (C99 style union initializations does not work as expec...
authorJakub Jelinek <jakub@redhat.com>
Tue, 19 Jul 2011 09:24:28 +0000 (11:24 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 19 Jul 2011 09:24:28 +0000 (11:24 +0200)
commitb8b2b0094a9047a1ad476d96f0d20d4b56fca625
tree9ebdcc8fe15b0de1cd9d54526c0832bc2573669e
parent338f655dae09fc11f3fa4bc693360d93d9e72bb6
re PR tree-optimization/49768 (C99 style union initializations does not work as expected with optimizations)

PR tree-optimization/49768
* gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
if offset is smaller than bitoffset, but offset+size is bigger
than bitoffset.

* gcc.c-torture/execute/pr49768.c: New test.

From-SVN: r176437
gcc/ChangeLog
gcc/gimple-fold.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr49768.c [new file with mode: 0644]