Turn FUNCTION_ARG_OFFSET into a hook
authorRichard Sandiford <richard.sandiford@linaro.org>
Fri, 15 Sep 2017 14:37:28 +0000 (14:37 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Fri, 15 Sep 2017 14:37:28 +0000 (14:37 +0000)
commit870118b7f139a2477cd16de9d8539946959c5633
tree0f38ba28fa9b8476ec879058ccc6a40b6b2d5bc7
parentbb149ca2e912038dce733f95ab1c24ff0d1af280
Turn FUNCTION_ARG_OFFSET into a hook

2017-09-13  Richard Sandiford  <richard.sandiford@linaro.org>
    Alan Hayward  <alan.hayward@arm.com>
    David Sherwood  <david.sherwood@arm.com>

gcc/
* target.def (function_arg_offset): New hook.
* targhooks.h (default_function_arg_offset): Declare.
* targhooks.c (default_function_arg_offset): New function.
* function.c (locate_and_pad_parm): Use
targetm.calls.function_arg_offset instead of FUNCTION_ARG_OFFSET.
* doc/tm.texi.in (FUNCTION_ARG_OFFSET): Replace with...
(TARGET_FUNCTION_ARG_OFFSET): ...this.
* doc/tm.texi: Regenerate.
* config/spu/spu.h (FUNCTION_ARG_OFFSET): Delete.
* config/spu/spu.c (spu_function_arg_offset): New function.
(TARGET_FUNCTION_ARG_OFFSET): Redefine.
* system.h (FUNCTION_ARG_OFFSET): Poison.

Co-Authored-By: Alan Hayward <alan.hayward@arm.com>
Co-Authored-By: David Sherwood <david.sherwood@arm.com>
From-SVN: r252821
gcc/ChangeLog
gcc/config/spu/spu.c
gcc/config/spu/spu.h
gcc/doc/tm.texi
gcc/doc/tm.texi.in
gcc/function.c
gcc/system.h
gcc/target.def
gcc/targhooks.c
gcc/targhooks.h