/usr/src/gcc-4.7/debian/patches/sparc-force-cpu.diff is in gcc-4.7-source 4.7.3-12ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # DP: On sparc default to ultrasparc (v9a) in 32bit mode
Index: b/src/gcc/config.gcc
===================================================================
--- a/src/gcc/config.gcc
+++ b/src/gcc/config.gcc
@@ -3700,6 +3700,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\" }"
|