aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.4.0/gcc/tree-vrp.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.4.0/gcc/tree-vrp.c')
-rw-r--r--gcc-4.4.0/gcc/tree-vrp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc-4.4.0/gcc/tree-vrp.c b/gcc-4.4.0/gcc/tree-vrp.c
index 755b117e5..95c0c9e0a 100644
--- a/gcc-4.4.0/gcc/tree-vrp.c
+++ b/gcc-4.4.0/gcc/tree-vrp.c
@@ -5278,7 +5278,9 @@ stmt_interesting_for_vrp (gimple stmt)
&& ((is_gimple_call (stmt)
&& gimple_call_fndecl (stmt) != NULL_TREE
&& DECL_IS_BUILTIN (gimple_call_fndecl (stmt)))
- || ZERO_SSA_OPERANDS (stmt, SSA_OP_ALL_VIRTUALS)))
+ || ZERO_SSA_OPERANDS (stmt, SSA_OP_ALL_VIRTUALS))
+ && (flag_strict_enum_precision
+ || TREE_CODE (TREE_TYPE (lhs)) != ENUMERAL_TYPE))
return true;
}
else if (gimple_code (stmt) == GIMPLE_COND