Hi! On Mon, 20 Oct 2014 16:17:56 +0200, Bernd Schmidt <ber...@codesourcery.com> wrote: > This is a patch kit that adds the nvptx port to gcc.
I wonder why we haven't been seeing this in our internal development branch -- maybe because on that branch we're still discarding more compiler options in the offloading path? Committed to trunk in r220780: commit 2fdc66a9fcfbc5b77c1c03d7c34893a0a086e8f8 Author: tschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Wed Feb 18 07:45:42 2015 +0000 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220780 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 4 ++++ gcc/config/nvptx/nvptx.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git gcc/ChangeLog gcc/ChangeLog index 2c75df6..180a605 100644 --- gcc/ChangeLog +++ gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-02-18 Thomas Schwinge <tho...@codesourcery.com> + + * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro. + 2015-02-18 Andrew Pinski <apin...@cavium.com> Naveen H.S <naveen.hurugalaw...@caviumnetworks.com> diff --git gcc/config/nvptx/nvptx.h gcc/config/nvptx/nvptx.h index 9a9954b..e74d16f 100644 --- gcc/config/nvptx/nvptx.h +++ 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 Grüße, Thomas
signature.asc
Description: PGP signature