aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2019-01-17 12:12:58 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2019-01-17 12:12:58 +0000
commit3d058ebb6ffcac960aa8604ce56b9077854b582a (patch)
tree14b17c88e815625a5e0951e64f8a3fc0525a98e2 /gcc
parent143d3b158a8c363459220076f091d60e190b394b (diff)
downloadgcc-3d058ebb6ffcac960aa8604ce56b9077854b582a.zip
gcc-3d058ebb6ffcac960aa8604ce56b9077854b582a.tar.gz
gcc-3d058ebb6ffcac960aa8604ce56b9077854b582a.tar.bz2
gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
* gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace flag_non_call_exceptions with cfun->can_throw_non_call_exceptions. (stmt_uses_0_or_null_in_undefined_way): Likewise. * tree-ssa-alias.c (same_addr_size_stores_p): Likewise. From-SVN: r268018
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/gimple-ssa-isolate-paths.c4
-rw-r--r--gcc/tree-ssa-alias.c2
3 files changed, 10 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8d426fe..d5dde3f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
+
+ * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
+ flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
+ (stmt_uses_0_or_null_in_undefined_way): Likewise.
+ * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
+
2019-01-17 Tamar Christina <tamar.christina@arm.com>
PR target/88851
diff --git a/gcc/gimple-ssa-isolate-paths.c b/gcc/gimple-ssa-isolate-paths.c
index 1a9e0a5..33fe352 100644
--- a/gcc/gimple-ssa-isolate-paths.c
+++ b/gcc/gimple-ssa-isolate-paths.c
@@ -270,7 +270,7 @@ stmt_uses_name_in_undefined_way (gimple *use_stmt, tree name, location_t loc)
divisor. */
if (!POINTER_TYPE_P (TREE_TYPE (name)))
{
- if (!flag_non_call_exceptions)
+ if (!cfun->can_throw_non_call_exceptions)
return is_divmod_with_given_divisor (use_stmt, name);
return false;
}
@@ -309,7 +309,7 @@ stmt_uses_name_in_undefined_way (gimple *use_stmt, tree name, location_t loc)
bool
stmt_uses_0_or_null_in_undefined_way (gimple *stmt)
{
- if (!flag_non_call_exceptions
+ if (!cfun->can_throw_non_call_exceptions
&& is_divmod_with_given_divisor (stmt, integer_zero_node))
return true;
diff --git a/gcc/tree-ssa-alias.c b/gcc/tree-ssa-alias.c
index 10b4d3f..c0f67d1 100644
--- a/gcc/tree-ssa-alias.c
+++ b/gcc/tree-ssa-alias.c
@@ -2365,7 +2365,7 @@ same_addr_size_stores_p (tree base1, poly_int64 offset1, poly_int64 size1,
/* Be conservative with non-call exceptions when the address might
be NULL. */
- if (flag_non_call_exceptions && pi->pt.null)
+ if (cfun->can_throw_non_call_exceptions && pi->pt.null)
return false;
/* Check that ptr points relative to obj. */