]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[PR90859] Document status quo for "[OMP] Mappings for VLA different depending on...
authortschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Jun 2019 22:15:16 +0000 (22:15 +0000)
committertschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Jun 2019 22:15:16 +0000 (22:15 +0000)
gcc/testsuite/
PR middle-end/90859
* c-c++-common/goacc/firstprivate-mappings-1.c: Update.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@272452 138bc75d-0d04-0410-961f-82ee72b054a4

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

index bffa899c767639c35517a4532696fba30bf45edd..59d39e8c179a2b37e20d67b5ef7d2071467a3c24 100644 (file)
@@ -1,5 +1,8 @@
 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
 
+       PR middle-end/90859
+       * c-c++-common/goacc/firstprivate-mappings-1.c: Update.
+
        * c-c++-common/goacc/firstprivate-mappings-1.c: New file.
        * g++.dg/goacc/firstprivate-mappings-1.C: Likewise.
 
index c8270472a9c56fc87d68f7b5d933de9e0d62ffaf..33576c50ecab3fa9872f55715213f82c428cbc4d 100644 (file)
@@ -426,6 +426,9 @@ vla (int array_li)
      { dg-final { scan-tree-dump {(?n)#pragma omp target oacc_parallel map\(from:array_so \[len: 4\]\) firstprivate\(array_li.[0-9]+\)} omplower { target { ! c++ } } } }
      { dg-final { scan-tree-dump {(?n)#pragma omp target oacc_parallel map\(from:array_so \[len: 4\]\) firstprivate\(} 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.
+     { dg-final { scan-tree-dump {(?n)#pragma omp target oacc_parallel map\(from:array_so \[len: 4\]\) firstprivate\(array_li.[0-9]+\) map\(tofrom:\(\*array.[0-9]+\) \[len: D\.[0-9]+\]\) map\(firstprivate:array \[pointer assign, bias: 0\]\) \[} omplower { target { c && { ! lp64 } } } } } */
   {
     array_so = sizeof array;
   }