[nvptx, libgomp] Add GOMP_NVPTX_JIT=-O[0-4] in nvptx libgomp plugin
authorTom de Vries <tom@codesourcery.com>
Thu, 26 Apr 2018 13:27:04 +0000 (13:27 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Thu, 26 Apr 2018 13:27:04 +0000 (13:27 +0000)
commitdf36a3d3befd76f8db5cc4397f00208539e49fbf
tree08e3aea28bfda1f840bec42d2cb0130ae65d2f98
parenta874808c6143032cec029a1a8a421d6b7cdf05e8
[nvptx, libgomp] Add GOMP_NVPTX_JIT=-O[0-4] in nvptx libgomp plugin

2018-04-26  Tom de Vries  <tom@codesourcery.com>

PR libgomp/84020
* plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
* plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
(process_GOMP_NVPTX_JIT): New function.
(link_ptx): Use process_GOMP_NVPTX_JIT.

From-SVN: r259678
libgomp/ChangeLog
libgomp/plugin/cuda/cuda.h
libgomp/plugin/plugin-nvptx.c