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

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