From: "H.J. Lu" <hjl.tools@gmail.com>
To: Max Filippov <jcmvbkbc@gmail.com>
Cc: Richard Henderson <rth@redhat.com>,
"gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>,
Sterling Augustine <augustine.sterling@gmail.com>,
Joseph Myers <joseph@codesourcery.com>,
"David S. Miller" <davem@redhat.com>,
Eric Botcazou <ebotcazou@libertysurf.fr>
Subject: Re: [PATCH] Turn RETURN_ADDR_IN_PREVIOUS_FRAME into C expression
Date: Tue, 03 Mar 2015 15:53:00 -0000 [thread overview]
Message-ID: <CAMe9rOqeSjtf343ikTnMH90DBqkQwjPw88RFtYa1skdMuxzc=A@mail.gmail.com> (raw)
In-Reply-To: <CAMo8BfJs_actk-SDbF3fjwdj5349TxK-5tTXUNO=HiZAogXHwg@mail.gmail.com>
On Tue, Mar 3, 2015 at 7:05 AM, Max Filippov <jcmvbkbc@gmail.com> wrote:
> On Tue, Mar 3, 2015 at 5:51 PM, Richard Henderson <rth@redhat.com> wrote:
>> On 03/02/2015 10:42 PM, Max Filippov wrote:
>>> gcc/
>>> * builtins.c (expand_builtin_return_addr): Add
>>> RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
>>> surrounding #ifdef.
>>> * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
>>> definition to 1.
>>> * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
>>> Likewise.
>>> * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
>>> undefined.
>>> doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
>>> paragraph.
>>
>> Ok.
>
> Applied to trunk. Thanks!
>
I checked in this to fix bootstrap.
--
H.J.
---
Index: ChangeLog
===================================================================
--- ChangeLog (revision 221150)
+++ ChangeLog (working copy)
@@ -1,3 +1,7 @@
+2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
+
+ * doc/tm.texi: Regenerated.
+
2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
* builtins.c (expand_builtin_return_addr): Add
Index: doc/tm.texi
===================================================================
--- doc/tm.texi (revision 221150)
+++ doc/tm.texi (working copy)
@@ -3045,7 +3045,7 @@ A C expression whose value is RTL repres
address for the frame @var{count} steps up from the current frame, after
the prologue. @var{frameaddr} is the frame pointer of the @var{count}
frame, or the frame pointer of the @var{count} @minus{} 1 frame if
-@code{RETURN_ADDR_IN_PREVIOUS_FRAME} is defined.
+@code{RETURN_ADDR_IN_PREVIOUS_FRAME} is nonzero.
The value of the expression must always be the correct address when
@var{count} is zero, but may be @code{NULL_RTX} if there is no way to
@@ -3053,8 +3053,9 @@ determine the return address of other fr
@end defmac
@defmac RETURN_ADDR_IN_PREVIOUS_FRAME
-Define this if the return address of a particular stack frame is accessed
-from the frame pointer of the previous stack frame.
+Define this macro to nonzero value if the return address of a particular
+stack frame is accessed from the frame pointer of the previous stack
+frame. The zero default for this macro is suitable for most ports.
@end defmac
@defmac INCOMING_RETURN_ADDR_RTX
next prev parent reply other threads:[~2015-03-03 15:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-03 6:43 Max Filippov
2015-03-03 14:51 ` Richard Henderson
2015-03-03 15:05 ` Max Filippov
2015-03-03 15:53 ` H.J. Lu [this message]
2015-03-03 17:01 ` Max Filippov
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='CAMe9rOqeSjtf343ikTnMH90DBqkQwjPw88RFtYa1skdMuxzc=A@mail.gmail.com' \
--to=hjl.tools@gmail.com \
--cc=augustine.sterling@gmail.com \
--cc=davem@redhat.com \
--cc=ebotcazou@libertysurf.fr \
--cc=gcc-patches@gcc.gnu.org \
--cc=jcmvbkbc@gmail.com \
--cc=joseph@codesourcery.com \
--cc=rth@redhat.com \
/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).