Blame SOURCES/gcc12-sparc-config-detection.patch

e88ed2
--- gcc/config.gcc.jj	2008-04-24 15:42:46.000000000 -0500
e88ed2
+++ gcc/config.gcc	2008-04-24 15:44:51.000000000 -0500
e88ed2
@@ -2790,7 +2790,7 @@ sparc-*-rtems*)
e88ed2
 	tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/sp-elf.h sparc/rtemself.h rtems.h newlib-stdint.h"
e88ed2
 	tmake_file="${tmake_file} sparc/t-sparc sparc/t-rtems"
e88ed2
 	;;
e88ed2
-sparc-*-linux*)
e88ed2
+sparc-*-linux* | sparcv9-*-linux*)
e88ed2
 	tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h gnu-user.h linux.h glibc-stdint.h sparc/tso.h"
e88ed2
 	extra_options="${extra_options} sparc/long-double-switch.opt"
e88ed2
 	case ${target} in
e88ed2
@@ -2844,7 +2844,7 @@ sparc64-*-rtems*)
e88ed2
 	extra_options="${extra_options}"
e88ed2
 	tmake_file="${tmake_file} sparc/t-sparc sparc/t-rtems-64"
e88ed2
 	;;
e88ed2
-sparc64-*-linux*)
e88ed2
+sparc64*-*-linux*)
e88ed2
 	tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h sparc/sysv4.h gnu-user.h linux.h glibc-stdint.h sparc/default64.h sparc/linux64.h sparc/tso.h"
e88ed2
 	extra_options="${extra_options} sparc/long-double-switch.opt"
e88ed2
 	tmake_file="${tmake_file} sparc/t-sparc sparc/t-linux64"
e88ed2
--- libgcc/config.host.jj	2008-04-24 15:46:19.000000000 -0500
e88ed2
+++ libgcc/config.host	2008-04-24 15:46:49.000000000 -0500
e88ed2
@@ -1002,7 +1002,7 @@ sparc-*-elf*)
e88ed2
 	tmake_file="${tmake_file} t-fdpbit t-crtfm"
e88ed2
 	extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
e88ed2
 	;;
e88ed2
-sparc-*-linux*)		# SPARC's running GNU/Linux, libc6
e88ed2
+sparc-*-linux* | sparcv9-*-linux*)		# SPARC's running GNU/Linux, libc6
e88ed2
 	tmake_file="${tmake_file} t-crtfm"
e88ed2
 	if test "${host_address}" = 64; then
e88ed2
 		tmake_file="$tmake_file sparc/t-linux64"
e88ed2
@@ -1050,7 +1050,7 @@ sparc64-*-freebsd*|ultrasparc-*-freebsd*
e88ed2
 	tmake_file="$tmake_file t-crtfm"
e88ed2
 	extra_parts="$extra_parts crtfastmath.o"
e88ed2
 	;;
e88ed2
-sparc64-*-linux*)		# 64-bit SPARC's running GNU/Linux
e88ed2
+sparc64*-*-linux*)		# 64-bit SPARC's running GNU/Linux
e88ed2
 	extra_parts="$extra_parts crtfastmath.o"
e88ed2
 	tmake_file="${tmake_file} t-crtfm sparc/t-linux"
e88ed2
 	if test "${host_address}" = 64; then