From e210b51b58d1431b7f710e7eac00bd9c128632b3 Mon Sep 17 00:00:00 2001 From: Alexander Monakov Date: Thu, 24 Nov 2016 21:10:42 +0300 Subject: [PATCH] Allow -fopenmp in NVPTX mkoffload PR target/67822 * config/nvptx/mkoffload.c (main): Allow -fopenmp. From-SVN: r242842 --- gcc/ChangeLog | 5 +++++ gcc/config/nvptx/mkoffload.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c1469f53ff3..ca7155d926e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-11-24 Alexander Monakov + + PR target/67822 + * config/nvptx/mkoffload.c (main): Allow -fopenmp. + 2016-11-24 Eric Botcazou * common/config/sparc/sparc-common.c (sparc_option_optimization_table): diff --git a/gcc/config/nvptx/mkoffload.c b/gcc/config/nvptx/mkoffload.c index d876c7bc162..e99ef373770 100644 --- a/gcc/config/nvptx/mkoffload.c +++ b/gcc/config/nvptx/mkoffload.c @@ -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"); -- 2.30.2