]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix 'libgomp.fortran/reverse-offload-6.f90' nvptx offloading compilation
authorThomas Schwinge <thomas@codesourcery.com>
Wed, 8 Feb 2023 08:14:04 +0000 (09:14 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Wed, 8 Feb 2023 08:14:26 +0000 (09:14 +0100)
Fix-up for recent commit 0b1ce70a813b98ef2893779d14ad6c90c5d06a71
"libgomp: Fix reverse offload issues".

libgomp/
* testsuite/libgomp.fortran/reverse-offload-6.f90: Fix nvptx
offloading compilation.

(cherry picked from commit 7ab75a6e6dfd81c566f848ef0d8d06666ee15b81)

libgomp/ChangeLog.omp
libgomp/testsuite/libgomp.fortran/reverse-offload-6.f90

index 595792316caf328d5d91021f3c1755168abfab07..d319d43ceb01aee1b07795c5cd93ff69c4a882dd 100644 (file)
@@ -1,3 +1,11 @@
+2023-02-08  Tobias Burnus  <tobias@codesourcery.com>
+
+       Backported from master:
+       2023-02-07  Thomas Schwinge  <thomas@codesourcery.com>
+
+       * testsuite/libgomp.fortran/reverse-offload-6.f90: Fix nvptx
+       offloading compilation.
+
 2023-02-07  Tobias Burnus  <tobias@codesourcery.com>
 
        Backported from master:
index 04866edbba7da23df5182a261a8d44546e080745..ddb7008cb1ad3f07a4b0ca2024209adc232d093e 100644 (file)
@@ -2,6 +2,8 @@
 ! Ensure that a mapping with no argument works
 !
 
+! { dg-additional-options -foffload-options=nvptx-none=-misa=sm_35 { target offload_target_nvptx } }
+
 module m
   implicit none (type, external)
   integer :: x = 32