[nvptx] Use TARGET_SET_CURRENT_FUNCTION
authorTom de Vries <tdevries@suse.de>
Wed, 19 Dec 2018 10:16:41 +0000 (10:16 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Wed, 19 Dec 2018 10:16:41 +0000 (10:16 +0000)
commit43be05f54315b889662bb4f8c085cce301a03862
tree7a393820a831d95da5b428b74fb288ac1d00c2c4
parent5a8d95cc43f3ff425fa58bf4025a8527320fb46c
[nvptx] Use TARGET_SET_CURRENT_FUNCTION

Implement TARGET_SET_CURRENT_FUNCTION for nvptx.  This gives us a place to
add initialization or reset actions that need to be executed on a per-function
basis.

Build and reg-tested on x86_64 with nvptx accelerator.

2018-12-19  Tom de Vries  <tdevries@suse.de>

* config/nvptx/nvptx.c (nvptx_previous_fndecl): Declare.
(nvptx_set_current_function): New function.
(TARGET_SET_CURRENT_FUNCTION): Define.

From-SVN: r267256
gcc/ChangeLog
gcc/config/nvptx/nvptx.c