Commit 8747dd6e by Thomas Schwinge Committed by Thomas Schwinge

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
parent e6f7f0e9
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>
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment