blob: b8916f19301664dfdbc7ed10d6d5c5e498bf7b20 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# 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
@@ -4200,6 +4200,20 @@
;;
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
+ ;;
+ DISABLEDsparc64-*-linux*)
+ if test "$option" = cpu_32; then
+ val=ultrasparc
+ fi
+ ;;
+ esac
+
if test "x$t" = x
then
t="{ \"$option\", \"$val\" }"
|