aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2015-01-28 18:03:44 +0100
committerThomas Schwinge <tschwinge@gcc.gnu.org>2015-01-28 18:03:44 +0100
commit1f83528e3e0c750c5c62f7148e4bfc3169084208 (patch)
tree6ad10e63b88402af4391efa1c162aef1fc8ebf4e /gcc/config.gcc
parent26586d771d2e0c7329c656c8f9a39c8151b53d44 (diff)
downloadgcc-1f83528e3e0c750c5c62f7148e4bfc3169084208.zip
gcc-1f83528e3e0c750c5c62f7148e4bfc3169084208.tar.gz
gcc-1f83528e3e0c750c5c62f7148e4bfc3169084208.tar.bz2
nvptx mkoffload.
gcc/ * config/nvptx/mkoffload.c: New file. * config/nvptx/t-nvptx: Add build rules for it. * config.gcc <nvptx-*> [$enable_as_accelerator = yes] (extra_programs): Add mkoffload. * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New function. (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it. Co-Authored-By: Bernd Schmidt <bernds@codesourcery.com> Co-Authored-By: Nathan Sidwell <nathan@codesourcery.com> From-SVN: r220209
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r--gcc/config.gcc5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc
index bf67beb..abd915e 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -2233,7 +2233,10 @@ nios2-*-*)
nvptx-*)
tm_file="${tm_file} newlib-stdint.h"
tmake_file="nvptx/t-nvptx"
- tm_file="${tm_file} nvptx/offload.h"
+ if test x$enable_as_accelerator = xyes; then
+ extra_programs="${extra_programs} mkoffload\$(exeext)"
+ tm_file="${tm_file} nvptx/offload.h"
+ fi
;;
pdp11-*-*)
tm_file="${tm_file} newlib-stdint.h"