https://gcc.gnu.org/g:360c3a7a0bd4500d355d6f25ac9637a3b3ed4953

commit 360c3a7a0bd4500d355d6f25ac9637a3b3ed4953
Author: Thomas Schwinge <[email protected]>
Date:   Wed Jun 24 23:26:37 2026 +0200

    openmp: Add GOMP_loop_static_worksharing and 
GOMP_distribute_static_worksharing: Adjust 'gcc.dg/autopar/runtime-auto.c'
    
    Fix-up for commit 31ba6ead0d5083010698d9fc0d45c31a4ae1f61d
    "openmp: Add GOMP_loop_static_worksharing and 
GOMP_distribute_static_worksharing",
    which (assuming ISL available) regressed:
    
        PASS: gcc.dg/autopar/runtime-auto.c (test for excess errors)
        PASS: gcc.dg/autopar/runtime-auto.c scan-tree-dump parloops2 
"parallelizing"
        PASS: gcc.dg/autopar/runtime-auto.c scan-tree-dump parloops2 "pragma 
omp parallel"
        [-PASS:-]{+FAIL:+} gcc.dg/autopar/runtime-auto.c scan-tree-dump 
parloops2 "__builtin_omp_get_num_threads"
    
            gcc/testsuite/
            * gcc.dg/autopar/runtime-auto.c: Adjust.
    
    (cherry picked from commit 605453dde56a1ec24575c3644fdf0950c180cc4c)

Diff:
---
 gcc/testsuite/gcc.dg/autopar/runtime-auto.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/gcc.dg/autopar/runtime-auto.c 
b/gcc/testsuite/gcc.dg/autopar/runtime-auto.c
index c1a3131634d0..f6d7335371ba 100644
--- a/gcc/testsuite/gcc.dg/autopar/runtime-auto.c
+++ b/gcc/testsuite/gcc.dg/autopar/runtime-auto.c
@@ -47,7 +47,7 @@ main (void)
 /* { dg-final { scan-tree-dump "pragma omp parallel" "parloops2" } } */
 
 /* Check that instead of generating a num_threads(x) clause, the compiler calls
-   "__builtin_omp_get_num_threads" that will set the number of threads at
+   "GOMP_loop_static_worksharing" that will set the number of threads at
    program execution time.  */
-/* { dg-final { scan-tree-dump "__builtin_omp_get_num_threads" "parloops2" } } 
*/
+/* { dg-final { scan-tree-dump "GOMP_loop_static_worksharing" "parloops2" } } 
*/

Reply via email to