From: Jeff Law Date: Tue, 20 Feb 2018 18:49:46 +0000 (-0700) Subject: re PR middle-end/82123 (spurious -Wformat-overflow warning for converted vars) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2db63ab20cdbd39e2ef83e41f34bb4ef8bcfb337;p=gcc.git re PR middle-end/82123 (spurious -Wformat-overflow warning for converted vars) PR middle-end/82123 PR tree-optimization/81592 PR middle-end/79257 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::enter): Do nothing if not optimizing. (evrp_range_analyzer::record_ranges_from_stmt): Likewise. (evrp_range_analyzer::pop_to_marker): Likewise. From-SVN: r257851 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2c679c9436e..748be06d671 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +2018-02-20 Jeff Law + + PR middle-end/82123 + PR tree-optimization/81592 + PR middle-end/79257 + * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::enter): Do nothing + if not optimizing. + (evrp_range_analyzer::record_ranges_from_stmt): Likewise. + (evrp_range_analyzer::pop_to_marker): Likewise. + 2018-02-20 Richard Sandiford PR tree-optimization/84419 diff --git a/gcc/gimple-ssa-evrp-analyze.c b/gcc/gimple-ssa-evrp-analyze.c index 2eb2769303d..b9dcf906ff7 100644 --- a/gcc/gimple-ssa-evrp-analyze.c +++ b/gcc/gimple-ssa-evrp-analyze.c @@ -69,6 +69,8 @@ evrp_range_analyzer::push_marker () void evrp_range_analyzer::enter (basic_block bb) { + if (!optimize) + return; push_marker (); record_ranges_from_incoming_edge (bb); record_ranges_from_phis (bb); @@ -279,6 +281,9 @@ evrp_range_analyzer::record_ranges_from_stmt (gimple *stmt, bool temporary) { tree output = NULL_TREE; + if (!optimize) + return; + if (dyn_cast (stmt)) ; else if (stmt_interesting_for_vrp (stmt)) @@ -390,6 +395,8 @@ evrp_range_analyzer::pop_to_marker (void) void evrp_range_analyzer::leave (basic_block bb ATTRIBUTE_UNUSED) { + if (!optimize) + return; pop_to_marker (); }