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: Mon, 18 Jul 2011 12:48:45 +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 #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-07-18 12:47:36 UTC ---
Created attachment 24787
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24787
gcc47-pr49768.patch
The easier fix attached. The more complicated would probably mean if we see
possible overlaps keeping recurding on all overlapping feelds and if the result
from them is INTEGER_CST, shift, mask and or them together.