Allow -fopenmp in NVPTX mkoffload

PR target/67822
	* config/nvptx/mkoffload.c (main): Allow -fopenmp.

From-SVN: r242842
This commit is contained in:
Alexander Monakov 2016-11-24 21:10:42 +03:00 committed by Alexander Monakov
parent 94331892c3
commit e210b51b58
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2016-11-24 Alexander Monakov <amonakov@ispras.ru>
PR target/67822
* config/nvptx/mkoffload.c (main): Allow -fopenmp.
2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
* common/config/sparc/sparc-common.c (sparc_option_optimization_table):

View File

@ -524,8 +524,8 @@ main (int argc, char **argv)
fatal_error (input_location, "cannot open '%s'", ptx_cfile_name);
/* PR libgomp/65099: Currently, we only support offloading in 64-bit
configurations. PR target/67822: OpenMP offloading to nvptx fails. */
if (offload_abi == OFFLOAD_ABI_LP64 && !fopenmp)
configurations. */
if (offload_abi == OFFLOAD_ABI_LP64)
{
ptx_name = make_temp_file (".mkoffload");
obstack_ptr_grow (&argv_obstack, "-o");