[committed] c-c++-common/gomp/uses_allocators-8.c: Add missing -fdump-tree-original [PR123299] (was: [committed] libgomp.fortran/uses_allocators_1.f90: Fix dg-error for r16-6273)

Tobias Burnus <[email protected]>
Newsgroups gmane.comp.gcc.patches,gmane.comp.gcc.fortran
Message-ID <[email protected]>
Missed a 'dg-additional-options "-fdump-tree-original"' in the original 
commit r16-6273-g7044071f07d763 – I shouldn't commit patches when not 
feeling well …

Committed the fix as r16-6453-ga2de9378d89678

Tobias
committed.diff (text/x-patch, 2.1 KB)
commit a2de9378d8967896ec8531024ef7dbe7537c5bb6
Author: Tobias Burnus <[email protected]>
Date:   Thu Jan 1 12:48:40 2026 +0100

    c-c++-common/gomp/uses_allocators-8.c: Add missing -fdump-tree-original [PR123299]
    
    gcc/testsuite/ChangeLog:
    
            PR testsuite/123299
            * c-c++-common/gomp/uses_allocators-8.c: Add missing
            -fdump-tree-original and add C++ version of scan-tree-dump.
---
 gcc/testsuite/c-c++-common/gomp/uses_allocators-8.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/c-c++-common/gomp/uses_allocators-8.c b/gcc/testsuite/c-c++-common/gomp/uses_allocators-8.c
index 642b6b9caeb..3ab87576c41 100644
--- a/gcc/testsuite/c-c++-common/gomp/uses_allocators-8.c
+++ b/gcc/testsuite/c-c++-common/gomp/uses_allocators-8.c
@@ -1,4 +1,5 @@
 // { dg-do compile }
+// { dg-additional-options "-fdump-tree-original" }
 
 //#include <omp.h>
 
@@ -53,7 +54,8 @@ const omp_alloctrait_t t2[] = {};
    ;
 }
 
-// { dg-final { scan-tree-dump "#pragma omp target uses_allocators\\(memspace\\(1\\), traits\\(\\) : my4\\) uses_allocators\\(memspace\\(\\), traits\\(t2\\) : my3\\) uses_allocators\\(memspace\\(\\), traits\\(\\) : my2\\) uses_allocators\\(memspace\\(3\\), traits\\(t\\) : my\\)" "original" } }
+// { dg-final { scan-tree-dump "#pragma omp target uses_allocators\\(memspace\\(1\\), traits\\(\\) : my4\\) uses_allocators\\(memspace\\(\\), traits\\(t2\\) : my3\\) uses_allocators\\(memspace\\(\\), traits\\(\\) : my2\\) uses_allocators\\(memspace\\(3\\), traits\\(t\\) : my\\)" "original" { target c } } }
+// { dg-final { scan-tree-dump "#pragma omp target uses_allocators\\(memspace\\(omp_large_cap_mem_space\\), traits\\(\\) : my4\\) uses_allocators\\(memspace\\(\\), traits\\(t2\\) : my3\\) uses_allocators\\(memspace\\(\\), traits\\(\\) : my2\\) uses_allocators\\(memspace\\(omp_high_bw_mem_space\\), traits\\(t\\) : my\\)" "original" { target c++ } } }
 
 
-// { dg-message "sorry, unimplemented: 'uses_allocators' clause" "" { target *-*-* } 52 }
+// { dg-message "sorry, unimplemented: 'uses_allocators' clause" "" { target *-*-* } 53 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.