]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ipa-inline.c (can_inline_edge_p): Back out overzealous check on flag_non_call_excepti...
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 22 Jan 2016 11:06:06 +0000 (11:06 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 22 Jan 2016 11:06:06 +0000 (11:06 +0000)
* ipa-inline.c (can_inline_edge_p): Back out overzealous check on
flag_non_call_exceptions compatibility.

From-SVN: r232722

gcc/ChangeLog
gcc/ipa-inline.c

index f80de9c14505241496210b01370b16b742244de5..5b6ce6e646f8bdfffb492465332d48b26f41d537 100644 (file)
@@ -1,3 +1,8 @@
+2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
+       flag_non_call_exceptions compatibility.
+
 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
 
        PR debug/66668
index aed8882d9cf1f29884d23f6b91f106e6ac0336fe..07e661eee5c1c5dd37f0cc7786fe0963658b647e 100644 (file)
@@ -431,12 +431,8 @@ can_inline_edge_p (struct cgraph_edge *e, bool report,
                 brought into a non-EH function unless we know that the callee
                 does not throw.
                 This is tracked by DECL_FUNCTION_PERSONALITY.  */
-             || (check_match (flag_non_call_exceptions)
-                 /* TODO: We also may allow bringing !flag_non_call_exceptions
-                    to flag_non_call_exceptions function, but that may need
-                    extra work in tree-inline to add the extra EH edges.  */
-                 && (!opt_for_fn (callee->decl, flag_non_call_exceptions)
-                     || DECL_FUNCTION_PERSONALITY (callee->decl)))
+             || (check_maybe_up (flag_non_call_exceptions)
+                 && DECL_FUNCTION_PERSONALITY (callee->decl))
              || (check_maybe_up (flag_exceptions)
                  && DECL_FUNCTION_PERSONALITY (callee->decl))
              /* Strictly speaking only when the callee contains function