https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126129
Bug ID: 126129
Summary: FAIL: 29_atomics/atomic/cons/zero_padding.cc
-std=gnu++20 execution test
Product: gcc
Version: 15.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: azoff at gcc dot gnu.org
Target Milestone: ---
When building arm-none-eabi with --disable-tls, the tests passes, without
--disable-tls, the tests fail like this:
Testing cons/zero_padding.cc, -std=gnu++20
doing compile
extra_tool_flags are: -std=gnu++20
doing compile
Executing on host: arm-none-eabi-g++ -fmessage-length=0 -fno-show-column -g
-O2 -DLOCALEDIR="." -I/build/gcc_src/libstdc++-v3/testsuite/util
/build/gcc_src/libstdc++-v3/testsuite/29_atomics/atomic/cons/zero_padding.cc
libstdc++_tg.o -mthumb -march=armv7ve+nofp -mtune=cortex-a7 -mfloat-abi=soft
-mfpu=auto -std=gnu++20 -fdiagnostics-plain-output -Wabi=20 ./libtestc++.a
--specs=rdimon.specs -Wl,-
-start-group -lc -lm -Wl,--end-group --specs=nosys.specs
-Wl,--allow-multiple-definition -Wl,-u,_isatty,-u,_fstat -Wl,-wrap,exit
-Wl,-wrap,_exit -Wl,-wrap,main -Wl,-wrap,abort -lm -T qemu-a7.ld -o
./zero_padding.exe (timeout = 360)
spawn -ignore SIGHUP arm-none-eabi-g++ -fmessage-length=0 -fno-show-column -g
-O2 -DLOCALEDIR="." -I/build/gcc_src/libstdc++-v3/testsuite/util
/build/gcc_src/libstdc++-v3/testsuite/29_atomics/atomic/cons/zero_padding.cc
libstdc++_tg.o -mthumb -march=armv7ve+nofp -mtune=cortex-a7 -mfloat-abi=soft
-mfpu=auto -std=gnu++20 -fdiagnostics-plain-output -Wabi=20 ./libtestc++.a
--specs=rdimon.specs -Wl,--start-group -
lc -lm -Wl,--end-group --specs=nosys.specs -Wl,--allow-multiple-definition
-Wl,-u,_isatty,-u,_fstat -Wl,-wrap,exit -Wl,-wrap,_exit -Wl,-wrap,main
-Wl,-wrap,abort -lm -T qemu-a7.ld -o ./zero_padding.exe
pid is 5043 -5043
pid is -1
output is status 0
PASS: 29_atomics/atomic/cons/zero_padding.cc -std=gnu++20 (test for excess
errors)
spawning command qemu-system-arm -nographic -machine virt -cpu cortex-a7 -m
256 -semihosting -monitor /dev/null -kernel ./zero_padding.exe
spawn qemu-system-arm -nographic -machine virt -cpu cortex-a7 -m 256
-semihosting -monitor /dev/null -kernel ./zero_padding.exe
/build/gcc_src/libstdc++-v3/testsuite/29_atomics/atomic/cons/zero_padding.cc:55:
void test_struct(std::atomic<_Tp>&, const T&) [with T = TailPadding]: Assertion
'tl.compare_exchange_strong(t, d)' failed.
*** EXIT code 4242
*** EXIT code 1
pid is -1
Shell closed.
Output is
/build/gcc_src/libstdc++-v3/testsuite/29_atomics/atomic/cons/zero_padding.cc:55:
void test_struct(std::atomic<_Tp>&, const T&) [with T = TailPadding]: Assertion
'tl.compare_exchange_strong(t, d)' failed.
*** EXIT code 4242
*** EXIT code 1
FAIL: 29_atomics/atomic/cons/zero_padding.cc -std=gnu++20 execution test
I get the issue in both r17-2109-g2b8f4671103159 and r15-11320-g7909a9f85f30b6
(but for -std=gnu++17 instead).