gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace flag_non_call_e...
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 17 Jan 2019 12:12:58 +0000 (12:12 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Thu, 17 Jan 2019 12:12:58 +0000 (12:12 +0000)
* 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

gcc/ChangeLog
gcc/gimple-ssa-isolate-paths.c
gcc/tree-ssa-alias.c

index 8d426fe59a4b22ea0b230d707ce13267f93fc1c6..d5dde3f90d1d1694439fdd5484abc77f84e954f4 100644 (file)
@@ -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
index 1a9e0a52652344012f4e2d33d8226662369235e6..33fe352bb239d82586f49a5464cbc2e470eeb0be 100644 (file)
@@ -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;
 
index 10b4d3f2514f7e088391b372364594a5a4a958a2..c0f67d1e17ab209d49f86c8c1780e4b3ebcf7743 100644 (file)
@@ -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.  */