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/32721] [4.3 Regression] CCP removes volatile qualifiers.



------- Comment #7 from rguenth at gcc dot gnu dot org  2007-07-13 15:41 -------
Subject: Bug 32721

Author: rguenth
Date: Fri Jul 13 15:41:02 2007
New Revision: 126624

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=126624
Log:
2007-07-13  Richard Guenther  <rguenther@suse.de>

        PR tree-optimization/32721
        * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Preserve
        TREE_THIS_VOLATILE on the folded reference.
        * tree-ssa-operands.c (get_expr_operands): Set has_volatile_ops
        if the array reference has TREE_THIS_VOLATILE set.

        * gcc.dg/pr32721.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/pr32721.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-ccp.c
    trunk/gcc/tree-ssa-operands.c


-- 


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


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