This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/49768] [4.6/4.7 Regression] C99 style union initializations does not work as expected with optimizations
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 19 Jul 2011 09:42:25 +0000
- Subject: [Bug tree-optimization/49768] [4.6/4.7 Regression] C99 style union initializations does not work as expected with optimizations
- Auto-submitted: auto-generated
- References: <bug-49768-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49768
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-07-19 09:40:05 UTC ---
Author: jakub
Date: Tue Jul 19 09:40:03 2011
New Revision: 176438
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=176438
Log:
PR tree-optimization/49768
* tree-ssa-ccp.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.
Added:
branches/gcc-4_6-branch/gcc/testsuite/gcc.c-torture/execute/pr49768.c
Modified:
branches/gcc-4_6-branch/gcc/ChangeLog
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
branches/gcc-4_6-branch/gcc/tree-ssa-ccp.c