From 450c0971a72bdfdd62dad3ae6c942536ac122825 Mon Sep 17 00:00:00 2001 From: rguenth Date: Fri, 29 Jul 2011 09:54:23 +0000 Subject: 2011-07-29 Richard Guenther PR tree-optimization/49893 * tree-predcom.c (suitable_reference_p): Volatile references are not suitable. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176921 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/tree-predcom.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/tree-predcom.c') diff --git a/gcc/tree-predcom.c b/gcc/tree-predcom.c index 94b0512bdaf..ac2314778a8 100644 --- a/gcc/tree-predcom.c +++ b/gcc/tree-predcom.c @@ -598,6 +598,7 @@ suitable_reference_p (struct data_reference *a, enum ref_step_type *ref_step) tree ref = DR_REF (a), step = DR_STEP (a); if (!step + || TREE_THIS_VOLATILE (ref) || !is_gimple_reg_type (TREE_TYPE (ref)) || tree_could_throw_p (ref)) return false; -- cgit v1.2.1