[gcc/devel/omp/gcc-16] libgomp: Sort 'GOMP_reduction_{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:de54f7461f485ddfee8447323bef5e389815049f

commit de54f7461f485ddfee8447323bef5e389815049f
Author: Thomas Schwinge <[email protected]>
Date:   Thu Jun 25 10:15:40 2026 +0200

    libgomp: Sort 'GOMP_reduction_{start,end}' correctly in 'libgomp/libgomp_g.h'
    
    Minor fix-up for commit d50e9f17fffa9b047dcf02eb9e1fe499178a0f02
    "openmp: Add GOMP_reduction_start and GOMP_reduction_end", which did:
    
        [...]
            * atomic.c (GOMP_reduction_start): New function.
            (GOMP_reduction_end): New function.
        [...]
    
            libgomp/
            * libgomp_g.h (GOMP_reduction_start, GOMP_reduction_end): Sort
            correctly.
    
    (cherry picked from commit 6a2460e31a0f3cbea8ba88346885e595a79c1219)

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

diff --git a/libgomp/libgomp_g.h b/libgomp/libgomp_g.h
index 892ad3a55810..a3097d5b0936 100644
--- a/libgomp/libgomp_g.h
+++ b/libgomp/libgomp_g.h
@@ -37,6 +37,8 @@
 
 extern void GOMP_atomic_start (void);
 extern void GOMP_atomic_end (void);
+extern void GOMP_reduction_start (void);
+extern void GOMP_reduction_end (void);
 
 /* barrier.c */
 
@@ -51,8 +53,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_reduction_start (void);
-extern void GOMP_reduction_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.