public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch] Restore cross-language inlining into Ada
@ 2016-01-20  8:32 Eric Botcazou
  2016-01-20 11:34 ` Richard Biener
  0 siblings, 1 reply; 17+ messages in thread
From: Eric Botcazou @ 2016-01-20  8:32 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 545 bytes --]

Hi,

this patch from Jan:
  https://gcc.gnu.org/ml/gcc-patches/2015-03/msg01388.html
totally disabled cross-language inlining into Ada without notice, by adding a 
check that always fails when the language of the callee is not Ada...
The attached patch simply deletes this new check to restore the initial state.

Tested on x86_64-suse-linux, OK for the mainline?


2016-01-20  Eric Botcazou  <ebotcazou@adacore.com>

	* ipa-inline.c (can_inline_edge_p): Back out overzealous check on
	flag_non_call_exceptions compatibility.


-- 
Eric Botcazou

[-- Attachment #2: p.diff --]
[-- Type: text/x-patch, Size: 868 bytes --]

Index: ipa-inline.c
===================================================================
--- ipa-inline.c	(revision 232465)
+++ ipa-inline.c	(working copy)
@@ -432,11 +432,7 @@ can_inline_edge_p (struct cgraph_edge *e
 		 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)))
+		  && DECL_FUNCTION_PERSONALITY (callee->decl))
 	      || (check_maybe_up (flag_exceptions)
 		  && DECL_FUNCTION_PERSONALITY (callee->decl))
 	      /* Strictly speaking only when the callee contains function

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2016-01-23 12:34 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-20  8:32 [patch] Restore cross-language inlining into Ada Eric Botcazou
2016-01-20 11:34 ` Richard Biener
2016-01-21 14:13   ` Jan Hubicka
2016-01-21 14:14     ` Richard Biener
2016-01-21 14:20       ` Jan Hubicka
2016-01-22 11:06         ` Eric Botcazou
2016-01-22 11:30           ` Richard Biener
2016-01-22 10:53     ` Eric Botcazou
2016-01-22 12:00       ` Jan Hubicka
2016-01-22 12:06         ` Eric Botcazou
2016-01-22 12:12           ` Arnaud Charlet
2016-01-22 12:40             ` Eric Botcazou
2016-01-22 18:22               ` Jan Hubicka
2016-01-23  9:25                 ` Eric Botcazou
2016-01-23  9:51                   ` Arnaud Charlet
2016-01-23 12:34                   ` Duncan Sands
2016-01-22 12:33         ` Richard Biener

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).