]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix up 'c-c++-common/goacc/firstprivate-mappings-1.c' for C, non-LP64
authorThomas Schwinge <thomas@codesourcery.com>
Fri, 7 May 2021 08:57:36 +0000 (10:57 +0200)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Mon, 10 May 2021 17:37:46 +0000 (10:37 -0700)
Follow-up to recent og10 commit a70b5b1aa8b3d32f6728dbfcfc00b0cff8c5219d
"OpenMP 5.0: Implement relaxation of implicit map vs. existing device
mappings".

gcc/testsuite/
* c-c++-common/goacc/firstprivate-mappings-1.c: Fix up for C,
non-LP64.

gcc/testsuite/ChangeLog.omp
gcc/testsuite/c-c++-common/goacc/firstprivate-mappings-1.c

index 89fc9619722ef4bf9b1a08e5b7095544d42db5b2..b3c96619e4428e1646bf07cb42d04b14038868c6 100644 (file)
@@ -1,3 +1,8 @@
+2021-05-07  Thomas Schwinge  <thomas@codesourcery.com>
+
+       * c-c++-common/goacc/firstprivate-mappings-1.c: Fix up for C,
+       non-LP64.
+
 2021-05-05  Chung-Lin Tang  <cltang@codesourcery.com>
 
        * c-c++-common/gomp/target-implicit-map-1.c: New test.
index f43e4b46cb6965b06687549105ac439fb570fc61..ab09dee3d377370a1910c1afc1521e28914d0779 100644 (file)
@@ -419,8 +419,8 @@ vla (int array_li)
   copyout (array_so)
   /* The gimplifier has created an implicit 'firstprivate' clause for the array
      length.
-     { dg-final { scan-tree-dump {(?n)#pragma omp target oacc_parallel firstprivate\(array_li.[0-9]+\) map\(from:array_so \[len: 4\]\)} omplower { target { ! c++ } } } }
-     { dg-final { scan-tree-dump {(?n)#pragma omp target oacc_parallel firstprivate\([^)]+\) map\(from:array_so \[len: 4\]\)} omplower { target { c++ } } } }
+     { dg-final { scan-tree-dump {(?n)#pragma omp target oacc_parallel firstprivate\(array_li.[0-9]+\) map\(from:array_so \[len: 4\]\) \[} omplower { target { c && lp64 } } } }
+     { dg-final { scan-tree-dump {(?n)#pragma omp target oacc_parallel firstprivate\(D\.[0-9]+\) map\(from:array_so \[len: 4\]\) \[} omplower { target { c++ } } } }
      (C++ computes an intermediate value, so can't scan for 'firstprivate(array_li)'.)  */
   /* For C, non-LP64, the gimplifier has also created a mapping for the array
      itself; PR90859.