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 c++/34459] [4.1/4.3 Regression] incorrect code when compiled with optimization (-O1)



------- Comment #7 from jakub at gcc dot gnu dot org  2007-12-20 14:40 -------
Subject: Bug 34459

Author: jakub
Date: Thu Dec 20 14:40:33 2007
New Revision: 131101

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131101
Log:
        PR c++/34459
        * tree-ssa-dse.c (dse_optimize_stmt): Don't eliminate store if
        USE_STMT not only stores into the same object as STMT, but might
        read it too.

        * gcc.c-torture/execute/20071219-1.c: New test.

Added:
    trunk/gcc/testsuite/gcc.c-torture/execute/20071219-1.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-dse.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34459


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