https://gcc.gnu.org/g:4bf93fc3d360dbeb5c07303c1b5028989c575ac1
commit r14-10345-g4bf93fc3d360dbeb5c07303c1b5028989c575ac1 Author: Eric Botcazou <ebotca...@adacore.com> Date: Tue Jun 25 11:47:48 2024 +0200 SPARC: fix internal error with -mv8plus on 64-bit Linux This passes -m32 when -mv8plus is specified on Linux (like on Solaris). gcc/ PR target/115608 * config/sparc/linux64.h (CC1_SPEC): Pass -m32 for -mv8plus. Diff: --- gcc/config/sparc/linux64.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/sparc/linux64.h b/gcc/config/sparc/linux64.h index 1e2e4aef2ad..83e0d6874d9 100644 --- a/gcc/config/sparc/linux64.h +++ b/gcc/config/sparc/linux64.h @@ -162,7 +162,7 @@ extern const char *host_detect_local_cpu (int argc, const char **argv); "%{m32:%{m64:%emay not use both -m32 and -m64}} \ %{m32:-mptr32 -mno-stack-bias %{!mlong-double-128:-mlong-double-64} \ %{!mcpu*:-mcpu=cypress}} \ -%{mv8plus:-mptr32 -mno-stack-bias %{!mlong-double-128:-mlong-double-64} \ +%{mv8plus:-m32 -mptr32 -mno-stack-bias %{!mlong-double-128:-mlong-double-64} \ %{!mcpu*:-mcpu=v9}} \ %{!m32:%{!mcpu*:-mcpu=ultrasparc}} \ %{!mno-vis:%{!m32:%{!mcpu=v9:-mvis}}}"