From f3c5e0a2091ddd5cae4d7381a847aac5f546f04c Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Wed, 21 May 2025 06:20:03 -0300 Subject: [PATCH] [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. --- 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 a396c643f11..96117276ffc 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 #include -- 2.47.2