This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/49768] [4.6/4.7 Regression] C99 style union initializations does not work as expected with optimizations


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]