# DP: On sparc default to ultrasparc (v9a) in 32bit mode

--- a/src/gcc/config.gcc
+++ b/src/gcc/config.gcc
@@ -3766,6 +3766,13 @@
 			;;
 		esac
 
+		# setting this directly fails to build a biarch defaulting to 32bit
+		case "$target" in sparc*-*-linux*)
+			if test "$option" = cpu; then
+				val=ultrasparc
+			fi
+		esac
+
 		if test "x$t" = x
 		then
 			t="{ \"$option\", \"$val\" }"
