diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2018-04-13 22:42:37 +0300 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2018-04-13 22:42:37 +0300 |
commit | cd31fbb2aea25f94d7ecedc9db16dfc87ab0c316 (patch) | |
tree | ff9b070c8bd34c5c9bc77f4d4c18aab41b919acf /newlib/configure.host | |
parent | e206c39bb6bf91808dbcd2cfbd572525825982cd (diff) |
Add nvptx port.
- From: Cesar Philippidis <cesar@codesourcery.com>
Date: Tue, 10 Apr 2018 14:43:42 -0700
Subject: [PATCH] nvptx port
This port adds support for Nvidia GPU's, which are primarily used as
offload accelerators in OpenACC and OpenMP.
Diffstat (limited to 'newlib/configure.host')
-rw-r--r-- | newlib/configure.host | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/newlib/configure.host b/newlib/configure.host index 5985f1376..4eebf6d95 100644 --- a/newlib/configure.host +++ b/newlib/configure.host @@ -27,6 +27,7 @@ # newlib_io_c99_formats --enable-newlib-io-c99-formats ("yes", "no", "") # newlib_io_long_long --enable-newlib-io-long-long ("yes", "no", "") # newlib_io_long_double --enable-newlib-io-long-double ("yes", "no", "") +# newlib_global_stdio_streams --enable-global-stdio-streams ("yes", "no, "") # It sets the following shell variables: # newlib_cflags Special CFLAGS to use when building @@ -75,6 +76,7 @@ default_newlib_nano_malloc=no aext=a oext=o lpfx="lib_a-" +newlib_msg_warn= case "${target_optspace}:${host}" in yes:*) @@ -249,6 +251,10 @@ case "${host_cpu}" in nios2*) machine_dir=nios2 ;; + nvptx*) + machine_dir=nvptx + newlib_cflags="${newlib_cflags} -DMALLOC_PROVIDED" + ;; or1k*|or1knd*) machine_dir=or1k ;; @@ -917,3 +923,17 @@ fi if test -z "${have_crt0}" && test -n "${sys_dir}"; then have_crt0="yes" fi + +# Target-specific defaults +case "${host_cpu}" in + nvptx*) + if [ "x${newlib_elix_level}" = "x0" ]; then + newlib_elix_level=1; + elif [ "x${newlib_elix_level}" != "x1" ]; then + newlib_msg_warn="nvptx does not support elix level > 1"; + fi + if [[ -z ${newlib_global_stdio_streams} ]]; then + newlib_global_stdio_streams="yes"; + fi + ;; +esac |