diff options
Diffstat (limited to 'gcc/vr-values.c')
-rw-r--r-- | gcc/vr-values.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/vr-values.c b/gcc/vr-values.c index 28911dc..5f9e64e 100644 --- a/gcc/vr-values.c +++ b/gcc/vr-values.c @@ -51,6 +51,7 @@ along with GCC; see the file COPYING3. If not see #include "cfghooks.h" #include "range-op.h" #include "gimple-range-stmt.h" +#include "misc.h" /* Set value range VR to a non-negative range of type TYPE. */ @@ -4010,7 +4011,7 @@ simplify_conversion_using_ranges (gimple_stmt_iterator *gsi, gimple *stmt) // FIXME: This conversion has nothing to do with ranges, and the way // it uses global ranges versus local ranges is interfering with our // ability to diagnose differences between evrp and rvrp1. - if (flag_rvrp1_changes > 0) + if (evrp_trap_p ()) return false; /* Get the value-range of the inner operand. Use get_range_info in |