* 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
+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
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;
}
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;
/* 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. */