2
# 10_newpatch.dpatch by <schizo@debian.org>
4
# DP: Enable biarch support for the 32bit sparc compiler
6
if [ $# -eq 3 ] && [ "$2" = '-d' ]; then
9
elif [ $# -ne 1 ]; then
10
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
15
patch $pdir -f --no-backup-if-mismatch -p0 < $0;;
17
patch $pdir -f --no-backup-if-mismatch -R -p0 < $0;;
19
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
25
--- gcc/config/sparc/linux64.h 2003-03-13 08:40:33.000000000 +0000
26
+++ gcc/config/sparc/linux64.h 2003-03-13 08:46:18.000000000 +0000
28
+ MASK_STACK_BIAS + MASK_APP_REGS + MASK_FPU + MASK_LONG_DOUBLE_128)
31
-#undef ASM_CPU_DEFAULT_SPEC
32
-#define ASM_CPU_DEFAULT_SPEC "-Av9a"
33
+#undef ASM_CPU64_DEFAULT_SPEC
34
+#define ASM_CPU64_DEFAULT_SPEC "-Av9a"
38
--- gcc/config.gcc 2003-03-13 08:40:33.000000000 +0000
39
+++ gcc/config.gcc 2003-03-13 08:48:27.000000000 +0000
40
@@ -2383,8 +2383,18 @@
43
sparc-*-linux*) # SPARC's running GNU/Linux, libc6
44
+ # If cpu is specified, assume we want a 32/64 compiler
45
+ if test x$with_cpu = x; then
46
tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux.h"
47
tmake_file="t-slibgcc-elf-ver t-linux sparc/t-crtfm"
49
+ tmake_file="t-slibgcc-elf-ver t-linux sparc/t-linux64 sparc/t-crtfm"
50
+ tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux64.h"
52
+ need_64bit_hwint=yes
54
+ #tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux.h"
55
+ #tmake_file="t-slibgcc-elf-ver t-linux sparc/t-crtfm"