From: Andrew Haley <aph@redhat.com>
To: Gary Benson <gbenson@redhat.com>
Cc: gcc-patches@gcc.gnu.org, java-patches@gcc.gnu.org
Subject: [ecj] Remove DECL_INLINE for methods that call BUILT_IN_RETURN_ADDRESS
Date: Wed, 29 Nov 2006 14:14:00 -0000 [thread overview]
Message-ID: <17773.38332.541637.878286@zebedee.pink> (raw)
In-Reply-To: <20061129093700.GA6511@redhat.com>
Methods that call BUILT_IN_RETURN_ADDRESS must not be inlined. They
mustn't be sibcalled either.
Andrew.
2006-11-29 Andrew Haley <aph@redhat.com>
* expr.c (rewrite_arglist_getcaller): Remove DECL_INLINE.
* lang.c (java_decl_ok_for_sibcall): Check for DECL_INLINE.
Index: java/expr.c
===================================================================
--- java/expr.c (revision 119121)
+++ java/expr.c (working copy)
@@ -2054,6 +2054,8 @@
static tree
rewrite_arglist_getcaller (tree arglist)
{
+ DECL_INLINE (current_function_decl) = 0;
+
tree retaddr
= (build_function_call_expr
(built_in_decls[BUILT_IN_RETURN_ADDRESS],
Index: java/lang.c
===================================================================
--- java/lang.c (revision 119120)
+++ java/lang.c (working copy)
@@ -999,7 +999,8 @@
static bool
java_decl_ok_for_sibcall (tree decl)
{
- return decl != NULL && DECL_CONTEXT (decl) == output_class;
+ return (decl != NULL && DECL_CONTEXT (decl) == output_class
+ && DECL_INLINE (decl));
}
/* Given a call_expr, try to figure out what its target might be. In
prev parent reply other threads:[~2006-11-29 14:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-29 9:37 [ecj] VMStackWalker javadoc Gary Benson
2006-11-29 14:14 ` Andrew Haley [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17773.38332.541637.878286@zebedee.pink \
--to=aph@redhat.com \
--cc=gbenson@redhat.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=java-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).