https://gcc.gnu.org/g:265317a6ba090332e390e8256727cc0f7b9129a8

commit 265317a6ba090332e390e8256727cc0f7b9129a8
Author: Alexandre Oliva <ol...@adacore.com>
Date:   Thu May 8 02:18:25 2025 -0300

    [testsuite] [analyzer] [vxworks] define __STDC_WANT_LIB_EXT1__ to 1
    
    vxworks' headers use #if instead of #ifdef to test for
    __STDC_WANT_LIB_EXT1__, so the definition in the analyzer test
    strotok-cppreference.c catches a bug there, but not something it's
    meant to catch or that we could fix in GCC, so amend the definition to
    sidestep the libc bug.
    
    
    for  gcc/testsuite/ChangeLog
    
            * c-c++-common/analyzer/strtok-cppreference.c
            (__STDC_WANT_LIB_EXT1__): Define to 1.

Diff:
---
 gcc/testsuite/c-c++-common/analyzer/strtok-cppreference.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/c-c++-common/analyzer/strtok-cppreference.c 
b/gcc/testsuite/c-c++-common/analyzer/strtok-cppreference.c
index a396c643f116..96117276ffc3 100644
--- a/gcc/testsuite/c-c++-common/analyzer/strtok-cppreference.c
+++ b/gcc/testsuite/c-c++-common/analyzer/strtok-cppreference.c
@@ -13,7 +13,7 @@
 
 /* { dg-additional-options " -Wno-analyzer-too-complex 
-Wno-analyzer-symbol-too-complex" } */
 
-#define __STDC_WANT_LIB_EXT1__ 0
+#define __STDC_WANT_LIB_EXT1__ 1
 #include <string.h>
 #include <stdio.h>

Reply via email to