diff options
author | Jeff Law <law@redhat.com> | 2013-12-04 20:18:18 -0700 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2013-12-04 20:18:18 -0700 |
commit | ae93744d3bca8ba3e54e6f48ec7d80593eb3d6d9 (patch) | |
tree | 065fb58430d1417a0032a8917f79040a59ad7213 /gcc/tree-vrp.c | |
parent | 97d7fffaaf636dae8ece215661935482c854d5aa (diff) | |
download | gcc-ae93744d3bca8ba3e54e6f48ec7d80593eb3d6d9.zip gcc-ae93744d3bca8ba3e54e6f48ec7d80593eb3d6d9.tar.gz gcc-ae93744d3bca8ba3e54e6f48ec7d80593eb3d6d9.tar.bz2 |
common.opt: Split up -fisolate-erroneous-paths into -fisolate-erroneous-paths-dereference...
* common.opt: Split up -fisolate-erroneous-paths into
-fisolate-erroneous-paths-dereference and
-fisolate-erroneous-paths-attribute.
* invoke.texi: Corresponding changes.
* gimple.c (infer_nonnull_range): Add and use new arguments
to control what kind of statements can be used to infer a
non-null range.
* gimple.h (infer_nonnull_range): Update prototype.
* tree-vrp.c (infer_value_range): Corresponding changes.
* opts.c (default_options_table): Update due to option split.
* gimple-ssa-isolate-paths.c: Fix trailing whitespace.
(find_implicit_erroneous_behaviour): Pass additional arguments
to infer_nonnull_range.
(find_explicit_erroneous_behaviour): Similarly.
(gate_isolate_erroneous_paths): Check both of the new
options.
testsuite/
* gcc.dg/pr38984.c: Use -fno-isolate-erroneous-paths-dereference.
* gcc.dg/tree-ssa/isolate-2.c: Explicitly turn on
-fisolate-erroneous-paths-attribute.
* gcc.dg/tree-ssa/isolate-4.c: Likewise.
From-SVN: r205689
Diffstat (limited to 'gcc/tree-vrp.c')
-rw-r--r-- | gcc/tree-vrp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c index d98b776..d9da996 100644 --- a/gcc/tree-vrp.c +++ b/gcc/tree-vrp.c @@ -4541,7 +4541,7 @@ infer_value_range (gimple stmt, tree op, enum tree_code *comp_code_p, tree *val_ if (stmt_ends_bb_p (stmt) && EDGE_COUNT (gimple_bb (stmt)->succs) == 0) return false; - if (infer_nonnull_range (stmt, op)) + if (infer_nonnull_range (stmt, op, true, true)) { *val_p = build_int_cst (TREE_TYPE (op), 0); *comp_code_p = NE_EXPR; |