From: Thomas Schwinge Date: Wed, 18 Feb 2015 07:45:42 +0000 (+0100) Subject: nvptx-none: Define empty GOMP_SELF_SPECS. X-Git-Tag: releases/gcc-5.1.0~906 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8747dd6e13aa96b72a618402a757eaebb09ebbb6;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2c75df60807e..180a605fcd27 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-02-18 Thomas Schwinge + + * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro. + 2015-02-18 Andrew Pinski Naveen H.S diff --git a/gcc/config/nvptx/nvptx.h b/gcc/config/nvptx/nvptx.h index 9a9954bfed8a..e74d16f075ad 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