This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC 1/2] Turn RETURN_ADDR_IN_PREVIOUS_FRAME into C expression


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]