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/50078] [4.6/4.7 Regression] combine wrong code: volatile accesses optimized out


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

--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-11-28 21:03:16 UTC ---
Author: jakub
Date: Mon Nov 28 21:03:11 2011
New Revision: 181786

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=181786
Log:
    PR tree-optimization/50078
    * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Copy over
    TREE_THIS_VOLATILE also from the old to new lhs resp. rhs.

    * gcc.dg/pr50078.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr50078.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-forwprop.c


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