]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR tree-optimization/43614 (ice in gimple_rhs_has_side_effects, at gimple.c:2248)
authorRichard Guenther <rguenther@suse.de>
Thu, 1 Apr 2010 16:18:07 +0000 (16:18 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 1 Apr 2010 16:18:07 +0000 (16:18 +0000)
commit5e9fb3dbde748212ff0b025dcf196da9b086b1c4
tree678ba6a902249fc47cbebb2dbc758ecac5476c69
parenteb258d7f5d615232494c75db7e6dfab151a7b7d0
re PR tree-optimization/43614 (ice in gimple_rhs_has_side_effects, at gimple.c:2248)

2010-04-01  Richard Guenther  <rguenther@suse.de>

PR middle-end/43614
* tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
and TREE_THIS_VOLATILE.
(copy_ref_info): Likewise.
* tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
* tree.c (build6_stat): Ignore side-effects of all but arg5
for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
TARGET_MEM_REF.

* gcc.c-torture/compile/pr43614.c: New testcase.

From-SVN: r157913
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr43614.c [new file with mode: 0644]
gcc/tree-ssa-address.c
gcc/tree-ssa-loop-ivopts.c
gcc/tree-ssa-operands.c
gcc/tree.c