xtensa: add support for SSP
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 8 May 2017 23:53:14 +0000 (23:53 +0000)
committerMax Filippov <jcmvbkbc@gcc.gnu.org>
Mon, 8 May 2017 23:53:14 +0000 (23:53 +0000)
commit5057f9e00f35616b7739680d0838bbb76a1e331b
tree80b16fbd3ca779686cd1e7482ba8b3bf6fb38b2c
parent26ffe6942c8d5c38600e3385fc1b1ba9c3ea78ee
xtensa: add support for SSP

gcc/
2017-05-08  Max Filippov  <jcmvbkbc@gmail.com>

* config/xtensa/xtensa-protos.h
        (xtensa_initial_elimination_offset): New declaration.
* config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
New function. Move its body from the INITIAL_ELIMINATION_OFFSET
macro definition, add case for FRAME_POINTER_REGNUM when
FRAME_GROWS_DOWNWARD.
* config/xtensa/xtensa.h (FRAME_GROWS_DOWNWARD): New macro
definition.
(INITIAL_ELIMINATION_OFFSET): Replace body with call to
xtensa_initial_elimination_offset.

From-SVN: r247771
gcc/ChangeLog
gcc/config/xtensa/xtensa-protos.h
gcc/config/xtensa/xtensa.c
gcc/config/xtensa/xtensa.h