summaryrefslogtreecommitdiff
path: root/gcc/tree-predcom.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-predcom.c')
-rw-r--r--gcc/tree-predcom.c1
1 files changed, 1 insertions, 0 deletions
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;