re PR tree-optimization/32721 (CCP removes volatile qualifiers.)
authorRichard Guenther <rguenther@suse.de>
Fri, 13 Jul 2007 15:41:02 +0000 (15:41 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 13 Jul 2007 15:41:02 +0000 (15:41 +0000)
commitcbf8d355b8ea5cdbbc02ac0ab0433aaa79431a3b
tree09665852468f06599133d7e15cdbb53604802650
parent05724daed2ffba316e84fcd45f02221d52e4fa95
re PR tree-optimization/32721 (CCP removes volatile qualifiers.)

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.

From-SVN: r126624
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr32721.c [new file with mode: 0644]
gcc/tree-ssa-ccp.c
gcc/tree-ssa-operands.c