I should call it a day …
I had committed the earlier version without escaped '(' in dg-warning,
now fixed by
commit r16-6074-g350794cb07fb6e
Tobias Burnus wrote:
Following what is done on the C/C++ side, which uses fixit hints,
also Fortran deserves a hint how to write the 5.2 syntax.
Thus, the deprecation warning now states how to do the conversion.
Committed as r16-6073-gd02eebea7ea937
Tobias
commit 350794cb07fb6e8f3b928a49d43b12b8c0f94fd1
Author: Tobias Burnus <[email protected]>
Date: Fri Dec 12 22:50:39 2025 +0100
Fix libgomp.fortran/dep-uses-allocators.f90
libgomp/ChangeLog:
* testsuite/libgomp.fortran/dep-uses-allocators.f90: Properly
escape '(..)' in dg-warning.
---
libgomp/testsuite/libgomp.fortran/dep-uses-allocators.f90 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libgomp/testsuite/libgomp.fortran/dep-uses-allocators.f90 b/libgomp/testsuite/libgomp.fortran/dep-uses-allocators.f90
index 6194dad2cfc..ab81ffb910d 100644
--- a/libgomp/testsuite/libgomp.fortran/dep-uses-allocators.f90
+++ b/libgomp/testsuite/libgomp.fortran/dep-uses-allocators.f90
@@ -1,5 +1,5 @@
! { dg-do compile }
-! { dg-warning "The specification of arguments to 'uses_allocators' at \\(1\\) where each item is of the form 'allocator\\(traits\\)' is deprecated since OpenMP 5.2; instead use 'uses_allocators(traits(trait): a1)' \\\[-Wdeprecated-openmp\\\]" "" { target *-*-* } 11 }
+! { dg-warning "The specification of arguments to 'uses_allocators' at \\(1\\) where each item is of the form 'allocator\\(traits\\)' is deprecated since OpenMP 5.2; instead use 'uses_allocators\\(traits\\(trait\\): a1\\)' \\\[-Wdeprecated-openmp\\\]" "" { target *-*-* } 11 }
program test
use omp_lib