]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Adjust 'gfortran.dg/gomp/order-4.f90' for og10
authorThomas Schwinge <thomas@codesourcery.com>
Fri, 16 Oct 2020 09:20:21 +0000 (11:20 +0200)
committerThomas Schwinge <thomas@codesourcery.com>
Thu, 25 Mar 2021 10:44:07 +0000 (11:44 +0100)
Testcase added in og10 commit 835160b024ce34bc6f258e7df366bb5c15e12a4b "OpenMP:
Handle order(concurrent) clause in gfortran" (cherry picked from commit
d8140b9ed3c0fed041aedaff3fa4a603984ca10f), but og10 doesn't have commit
4f2ab6b89e170f1343f935761481c3745fe603b1 "[OpenMP, gimplifier] 'inform' after
'error' diagnostic".

gcc/testsuite/
* gfortran.dg/gomp/order-4.f90: Adjust.

gcc/testsuite/ChangeLog.omp
gcc/testsuite/gfortran.dg/gomp/order-4.f90

index d010ff87307c68d289812cb1996963d8e27b52ed..97cad18a069251a733246711fcce025cf20468bd 100644 (file)
@@ -1,3 +1,7 @@
+2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
+
+       * gfortran.dg/gomp/order-4.f90: Adjust.
+
 2021-02-25  Tobias Burnus  <tobias@codesourcery.com>
 
        Backport from mainline
index e4580e38b89a57a2ef402422f9f9a57f57081cda..e3863b6805bf6f0ac35f4ede7874764f8c36a841 100644 (file)
@@ -7,7 +7,7 @@ subroutine f1
   use m
   implicit none
   integer :: i
-  !$omp simd order(concurrent)  ! { dg-message "note: enclosing region" } */
+  !$omp simd order(concurrent)  ! { dg-error "enclosing region" }
   do i = 1, 64
     t = t + 1  ! { dg-error "threadprivate variable 't' used in a region with 'order\\(concurrent\\)' clause" } */
   end do
@@ -17,9 +17,10 @@ subroutine f2
   use m
   implicit none
   integer :: i
-  !$omp do simd order(concurrent) ! { dg-message "note: enclosing region" } */
+  !$omp do simd order(concurrent) ! { dg-error "enclosing region" }
   do i = 1, 64
     t = t + 1  ! { dg-error "threadprivate variable 't' used in a region with 'order\\(concurrent\\)' clause" } */
+    ! { dg-error "enclosing region" "" { target *-*-* } .-1 }
   end do
 end
 
@@ -27,7 +28,7 @@ subroutine f3
   use m
   implicit none
   integer :: i
-  !$omp do order(concurrent)  ! { dg-message "note: enclosing region" } */
+  !$omp do order(concurrent)  ! { dg-error "enclosing region" }
   do i = 1, 64
     t = t + 1  ! { dg-error "threadprivate variable 't' used in a region with 'order\\(concurrent\\)' clause" } */
   end do