aboutsummaryrefslogtreecommitdiff
path: root/libgomp
diff options
context:
space:
mode:
authorTobias Burnus <tobias@codesourcery.com>2023-10-20 10:56:39 +0200
committerTobias Burnus <tobias@codesourcery.com>2023-10-20 10:56:39 +0200
commit5f71e002f8881c8176efa54f83615d2270152e75 (patch)
tree8f3a38740b11c7285d37831b0054495d4eac30f2 /libgomp
parent4fd09aed384df6acb141ee1f319a500c239626a4 (diff)
downloadgcc-5f71e002f8881c8176efa54f83615d2270152e75.zip
gcc-5f71e002f8881c8176efa54f83615d2270152e75.tar.gz
gcc-5f71e002f8881c8176efa54f83615d2270152e75.tar.bz2
omp_lib.f90.in: Deprecate omp_lock_hint_* for OpenMP 5.0
The omp_lock_hint_* parameters were deprecated in favor of omp_sync_hint_*. While omp.h contained deprecation markers for those, the omp_lib module only contained them for omp_{g,s}_nested. Note: The -Wdeprecated-declarations warning will only become active once openmp_version / _OPENMP is bumped from 201511 (4.5) to 201811 (5.0). libgomp/ChangeLog: * omp_lib.f90.in: Tag omp_lock_hint_* as being deprecated when _OPENMP >= 201811.
Diffstat (limited to 'libgomp')
-rw-r--r--libgomp/omp_lib.f90.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/libgomp/omp_lib.f90.in b/libgomp/omp_lib.f90.in
index e451527..755c0bf 100644
--- a/libgomp/omp_lib.f90.in
+++ b/libgomp/omp_lib.f90.in
@@ -904,6 +904,10 @@
#if _OPENMP >= 201811
!GCC$ ATTRIBUTES DEPRECATED :: omp_get_nested, omp_set_nested
+!GCC$ ATTRIBUTES DEPRECATED :: omp_lock_hint_kind, omp_lock_hint_none
+!GCC$ ATTRIBUTES DEPRECATED :: omp_lock_hint_uncontended, omp_lock_hint_contended
+!GCC$ ATTRIBUTES DEPRECATED :: omp_lock_hint_nonspeculative
+!GCC$ ATTRIBUTES DEPRECATED :: omp_lock_hint_speculative
#endif
#if _OPENMP >= 202011