This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC 1/2] Turn RETURN_ADDR_IN_PREVIOUS_FRAME into C expression
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Max Filippov <jcmvbkbc at gmail dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>, Sterling Augustine <augustine dot sterling at gmail dot com>
- Date: Sun, 1 Mar 2015 22:07:42 +0000
- Subject: Re: [RFC 1/2] Turn RETURN_ADDR_IN_PREVIOUS_FRAME into C expression
- Authentication-results: sourceware.org; auth=none
- References: <1425147282-7415-1-git-send-email-jcmvbkbc at gmail dot com> <1425147282-7415-2-git-send-email-jcmvbkbc at gmail dot com>
On Sat, 28 Feb 2015, Max Filippov wrote:
> This allows a target to support both windowed and non-windowed ABI.
>
> 2015-02-28 Max Filippov <jcmvbkbc@gmail.com>
>
> gcc/
> * builtins.c (expand_builtin_return_addr): Add
> RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition.
If you change the semantics of a target macro you need to update the
documentation in tm.texi.in. I'd say you should also change the semantics
properly to true/false, not a tristate true/false/undefined (i.e., add a
default 0 to defaults.h and remove the #ifdef).
--
Joseph S. Myers
joseph@codesourcery.com