From: Alexander Monakov Date: Thu, 24 Nov 2016 18:10:42 +0000 (+0300) Subject: Allow -fopenmp in NVPTX mkoffload X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e210b51b58d1431b7f710e7eac00bd9c128632b3;p=gcc.git Allow -fopenmp in NVPTX mkoffload PR target/67822 * config/nvptx/mkoffload.c (main): Allow -fopenmp. From-SVN: r242842 --- 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");