This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] fix FreeBSD/sparc64 cross build and usability
- From: "David O'Brien" <obrien at FreeBSD dot org>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 27 Feb 2002 14:36:23 -0800
- Subject: [PATCH] fix FreeBSD/sparc64 cross build and usability
- Organization: The NUXI BSD group
- Reply-to: obrien at FreeBSD dot org
The patch to config.gcc is needed to build a cross
host=target=sparc64-x-freebsd5 compiler. The change to TARGET_DEFAULTS
is needed in order to build a usable kernel.
2002-02-27 David O'Brien <obrien@FreeBSD.org>
* config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
of "ultrasparc".
* config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
to be broken.
Index: freebsd.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/sparc/freebsd.h,v
retrieving revision 1.3
diff -u -r1.3 freebsd.h
--- freebsd.h 2002/02/09 21:51:56 1.3
+++ freebsd.h 2002/02/27 22:32:49
@@ -91,7 +91,7 @@
#undef TARGET_DEFAULT
#define TARGET_DEFAULT \
- (MASK_V9 + MASK_64BIT + MASK_PTR64 + MASK_FASTER_STRUCTS \
+ (MASK_V9 + MASK_64BIT + MASK_PTR64 + /* MASK_FASTER_STRUCTS */ \
+ MASK_STACK_BIAS + MASK_APP_REGS + MASK_EPILOGUE + MASK_FPU \
+ MASK_LONG_DOUBLE_128 /* + MASK_HARD_QUAD */)
Index: config.gcc
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config.gcc,v
retrieving revision 1.167
diff -u -r1.167 config.gcc
--- config.gcc 2002/02/19 17:43:22 1.167
+++ config.gcc 2002/02/27 22:33:53
@@ -3229,6 +3229,7 @@
tm_file="${tm_file} ${fbsd_tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/freebsd.h"
xmake_file=none
case "x$with_cpu" in
+ xultrasparc) ;;
x) with_cpu=ultrasparc ;;
*) echo "$with_cpu not supported for freebsd target"; exit 1 ;;
esac