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 #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-07-19 09:24:31 UTC ---
Author: jakub
Date: Tue Jul 19 09:24:28 2011
New Revision: 176437

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=176437
Log:
    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.

Added:
    trunk/gcc/testsuite/gcc.c-torture/execute/pr49768.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimple-fold.c
    trunk/gcc/testsuite/ChangeLog


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