diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2015-02-18 08:45:42 +0100 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gcc.gnu.org> | 2015-02-18 08:45:42 +0100 |
commit | 8747dd6e13aa96b72a618402a757eaebb09ebbb6 (patch) | |
tree | 49997cfbaa2377db5176bf79eaf335555eb4dcdf | |
parent | e6f7f0e9511fabd1c30c51764f743389a0005833 (diff) | |
download | gcc-8747dd6e13aa96b72a618402a757eaebb09ebbb6.zip gcc-8747dd6e13aa96b72a618402a757eaebb09ebbb6.tar.gz gcc-8747dd6e13aa96b72a618402a757eaebb09ebbb6.tar.bz2 |
nvptx-none: Define empty GOMP_SELF_SPECS.
Otherwise, offloading with -fopenacc or -fopenmp active will run into:
x86_64-unknown-linux-gnu-accel-nvptx-none-gcc: error: unrecognized command line option '-pthread'
gcc/
* config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
From-SVN: r220780
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/nvptx/nvptx.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2c75df6..180a605 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-02-18 Thomas Schwinge <thomas@codesourcery.com> + + * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro. + 2015-02-18 Andrew Pinski <apinski@cavium.com> Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com> diff --git a/gcc/config/nvptx/nvptx.h b/gcc/config/nvptx/nvptx.h index 9a9954b..e74d16f 100644 --- a/gcc/config/nvptx/nvptx.h +++ b/gcc/config/nvptx/nvptx.h @@ -33,6 +33,10 @@ builtin_define ("__nvptx__"); \ } while (0) +/* Avoid the default in ../../gcc.c, which adds "-pthread", which is not + supported for nvptx. */ +#define GOMP_SELF_SPECS "" + /* Storage Layout. */ #define BITS_BIG_ENDIAN 0 |