https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116080
--- Comment #16 from andi at firstfloor dot org --- On Mon, Sep 30, 2024 at 03:05:11PM +0000, clyon at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116080 > > --- Comment #15 from Christophe Lyon <clyon at gcc dot gnu.org> --- > (In reply to andi from comment #14) > > The test relies on the > > > > gcc/testsuite/lib/target-supports.exp:check_effective_target_tail_call > Are you sure? > musttail7.c has: > /* { dg-do compile { target { musttail && { c || c++11 } } } } */ > > (so "musttail" and not "tail_call") Yes musttail right. > My log has: > spawn -ignore SIGHUP > /home/tcwg-buildslave/workspace/tcwg_gnu_0/abe/builds/destdir/x86_64-pc-linux-gnu/bin/arm-eabi-g++ > musttail19057.c -fdiagnostics-plain-output -nostdinc++ > -I/home/tcwg-buildslave/workspace/tcwg_gnu_0/abe/builds/x86_64-pc-linux-gnu/arm-eabi/gcc-gcc.git~master-stage2/arm-eabi/libstdc++-v3/include/arm-eabi > -I/home/tcwg-buildslave/workspace/tcwg_gnu_0/abe/builds/x86_64-pc-linux-gnu/arm-eabi/gcc-gcc.git~master-stage2/arm-eabi/libstdc++-v3/include > -I/home/tcwg-buildslave/workspace/tcwg_gnu_0/abe/snapshots/gcc.git~master/libstdc++-v3/libsupc++ > -I/home/tcwg-buildslave/workspace/tcwg_gnu_0/abe/snapshots/gcc.git~master/libstdc++-v3/include/backward > -I/home/tcwg-buildslave/workspace/tcwg_gnu_0/abe/snapshots/gcc.git~master/libstdc++-v3/testsuite/util > -fmessage-length=0 -fdump-rtl-expand-all -Wno-complain-wrong-lang > -fdump-rtl-expand -S -o musttail19057.s > (with no error) > > but for the actual testcase: > spawn -ignore SIGHUP > /home/tcwg-buildslave/workspace/tcwg_gnu_0/abe/builds/destdir/x86_64-pc-linux-gnu/bin/arm-eabi-g++ > /home/tcwg-buildslave/workspace/tcwg_gnu_0/abe/snapshots/gcc.git~master/gcc/testsuite/c-c++-common/musttail7.c > -fdiagnostics-plain-output -nostdinc++ > -I/home/tcwg-buildslave/workspace/tcwg_gnu_0/abe/builds/x86_64-pc-linux-gnu/arm-eabi/gcc-gcc.git~master-stage2/arm-eabi/libstdc++-v3/include/arm-eabi > -I/home/tcwg-buildslave/workspace/tcwg_gnu_0/abe/builds/x86_64-pc-linux-gnu/arm-eabi/gcc-gcc.git~master-stage2/arm-eabi/libstdc++-v3/include > -I/home/tcwg-buildslave/workspace/tcwg_gnu_0/abe/snapshots/gcc.git~master/libstdc++-v3/libsupc++ > -I/home/tcwg-buildslave/workspace/tcwg_gnu_0/abe/snapshots/gcc.git~master/libstdc++-v3/include/backward > -I/home/tcwg-buildslave/workspace/tcwg_gnu_0/abe/snapshots/gcc.git~master/libstdc++-v3/testsuite/util > -fmessage-length=0 -std=c++11 -S -o musttail7.s The "std=c++11" is different, so the probe is with C and the test with C++, and we run into PR115606 with the C++ compiler breaking structure tail calls on many architectures (which should really be fixed, but not here) Need to change the probe to use C++.