https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93619
Bug ID: 93619 Summary: aarch64 target testsuite is so broken with -mcpu=* Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: pinskia at gcc dot gnu.org Target Milestone: --- Target: aarch64*-*-* The aarch64 target testsuite does not like at any -mcpu=* options supplied as a MULTILIB option. Take atomic-store.c and running {,-mcpu=octeontx,-mcpu=octeontx2} FAIL: gcc.target/aarch64/atomic-store.c (test for excess errors) === gcc Summary for aarch64-marvell-linux-gnu-qemu/-mcpu=octeontx === # of expected passes 21 # of unexpected failures 1 Executing on host: aarch64-marvell-linux-gnu-gcc /home/apinski/src/toolchain-10/src/gcc/testsuite/gcc.target/aarch64/atomic-store.c -mcpu=octeontx -fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers -fdiagnostics-color=never -fdiagnostics-urls=never -march=armv8.4-a -O2 -ffat-lto-objects -fno-ident -S -o atomic-store.s (timeout = 300) spawn -ignore SIGHUP aarch64-marvell-linux-gnu-gcc /home/apinski/src/toolchain-10/src/gcc/testsuite/gcc.target/aarch64/atomic-store.c -mcpu=octeontx -fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers -fdiagnostics-color=never -fdiagnostics-urls=never -march=armv8.4-a -O2 -ffat-lto-objects -fno-ident -S -o atomic-store.s^M cc1: warning: switch '-mcpu=armv8-a' conflicts with '-march=armv8.4-a' switch^M Executing on host: aarch64-marvell-linux-gnu-gcc exceptions_enabled963.c -mcpu=octeontx -fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers -fdiagnostics-color=never -fdiagnostics-urls=never -S -o exceptions_enabled963.s (timeout = 300) spawn -ignore SIGHUP aarch64-marvell-linux-gnu-gcc exceptions_enabled963.c -mcpu=octeontx -fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers -fdiagnostics-color=never -fdiagnostics-urls=never -S -o exceptions_enabled963.s^M exceptions_enabled963.c: In function 'foo':^M exceptions_enabled963.c:4:7: error: 'throw' undeclared (first use in this function)^M exceptions_enabled963.c:4:7: note: each undeclared identifier is reported only once for each function it appears in^M exceptions_enabled963.c:4:12: error: expected ';' before numeric constant^M compiler exited with status 1 FAIL: gcc.target/aarch64/atomic-store.c (test for excess errors) Excess errors: cc1: warning: switch '-mcpu=armv8-a' conflicts with '-march=armv8.4-a' switch