Turn RETURN_ADDR_IN_PREVIOUS_FRAME into C expression
authorMax Filippov <jcmvbkbc@gmail.com>
Tue, 3 Mar 2015 15:04:02 +0000 (15:04 +0000)
committerMax Filippov <jcmvbkbc@gcc.gnu.org>
Tue, 3 Mar 2015 15:04:02 +0000 (15:04 +0000)
commit2e612c470d9deead7b4d8b6042ac1b711c818766
tree7f59cfef10ac3781fc4d997331364492938faf6f
parent9dd44d1c8021214d55491aefebe04d8647cae9d0
Turn RETURN_ADDR_IN_PREVIOUS_FRAME into C expression

This allows a target to support both windowed and non-windowed ABI.

2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>

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.

From-SVN: r221150
gcc/ChangeLog
gcc/builtins.c
gcc/config/sparc/sparc.h
gcc/config/xtensa/xtensa.h
gcc/defaults.h
gcc/doc/tm.texi.in