[gcc/devel/omp/gcc-16] libgomp: Sort 'GOMP_atomic_{start, end}' correctly in 'libgomp/libgomp_g.h'

Sandra Loosemore via Gcc-cvs <[email protected]>
Newsgroups gmane.comp.gcc.cvs
Message-ID <[email protected]>
https://gcc.gnu.org/g:7ea003d6ba287276a87f12a9f7bb82ad61566e7b

commit 7ea003d6ba287276a87f12a9f7bb82ad61566e7b
Author: Thomas Schwinge <[email protected]>
Date:   Tue May 12 09:58:50 2026 +0200

    libgomp: Sort 'GOMP_atomic_{start,end}' correctly in 'libgomp/libgomp_g.h'
    
    Minor fix-up for Subversion r242789
    (Git commit 6103184e81c0b6a8b1f4e072e0c32d9bb86fcc15)
    "OpenMP offloading to NVPTX: libgomp changes", which did:
    
        [...]
            * critical.c: Split out GOMP_atomic_{start,end} into...
            * atomic.c: ...here (new file).
        [...]
    
            libgomp/
            * libgomp_g.h (GOMP_atomic_start, GOMP_atomic_end): Sort correctly.
    
    (cherry picked from commit f244b335d768c15f282b10b6392e328ad5b70d1f)

Diff:
---
 libgomp/libgomp_g.h | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/libgomp/libgomp_g.h b/libgomp/libgomp_g.h
index 6890547bfa7f..a5e8dfd22261 100644
--- a/libgomp/libgomp_g.h
+++ b/libgomp/libgomp_g.h
@@ -33,6 +33,11 @@
 #include <stddef.h>
 #include <stdint.h>
 
+/* atomic.c */
+
+extern void GOMP_atomic_start (void);
+extern void GOMP_atomic_end (void);
+
 /* barrier.c */
 
 extern void GOMP_barrier (void);
@@ -44,8 +49,6 @@ extern void GOMP_critical_start (void);
 extern void GOMP_critical_end (void);
 extern void GOMP_critical_name_start (void **);
 extern void GOMP_critical_name_end (void **);
-extern void GOMP_atomic_start (void);
-extern void GOMP_atomic_end (void);
 
 /* loop.c */
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.