https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113546
Bug ID: 113546 Summary: aarch64: bootstrap-debug-lean broken with -fcompare-debug failure Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- I tried a bootstrap --with-build-config=bootstrap-debug-lean on aarch64 and it failed with an -fcompare-debug failure building libiberty/regex.c: make[3]: Entering directory '/data/ajc/toolchain/builds/bstrap-lean/libiberty' if [ x"-fPIC" != x ]; then \ /home/alecop01/toolchain/builds/bstrap-lean/./prev-gcc/xgcc -B/home/alecop01/toolchain/builds/bstrap-lean/./prev-gcc/ -B/home/alecop01/toolchain/builds/bstrap-lean/aarch64-unknown-linux-gnu/bin/ -B/home/alecop01/toolchain/builds/bstrap-lean/aarch64-unknown-linux-gnu/bin/ -B/home/alecop01/toolchain/builds/bstrap-lean/aarch64-unknown-linux-gnu/lib/ -isystem /home/alecop01/toolchain/builds/bstrap-lean/aarch64-unknown-linux-gnu/include -isystem /home/alecop01/toolchain/builds/bstrap-lean/aarch64-unknown-linux-gnu/sys-include -fchecking=1 -c -DHAVE_CONFIG_H -g -O2 -fchecking=1 -fcompare-debug -I. -I/home/alecop01/toolchain/src/gcc/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -Wshadow=local -pedantic -D_GNU_SOURCE -fPIC /home/alecop01/toolchain/src/gcc/libiberty/regex.c -o pic/regex.o; \ else true; fi xgcc: error: /home/alecop01/toolchain/src/gcc/libiberty/regex.c: ‘-fcompare-debug’ failure Makefile:1219: recipe for target 'regex.o' failed make[3]: *** [regex.o] Error 1 make[3]: Leaving directory '/data/ajc/toolchain/builds/bstrap-lean/libiberty' Makefile:11725: recipe for target 'all-stage3-libiberty' failed make[2]: *** [all-stage3-libiberty] Error 2 make[2]: Leaving directory '/data/ajc/toolchain/builds/bstrap-lean' Makefile:26292: recipe for target 'stage3-bubble' failed make[1]: *** [stage3-bubble] Error 2 make[1]: Leaving directory '/data/ajc/toolchain/builds/bstrap-lean' Makefile:1099: recipe for target 'all' failed make: *** [all] Error 2 Here is a reduced testcase for that: $ cat t.c int x; void f() { fail: switch (x) { case 0: goto fail;; } } $ ./xgcc -B . -c t.c -fcompare-debug -O -S -o /dev/null xgcc: error: t.c: ‘-fcompare-debug’ failure