diff options
author | imp <imp@FreeBSD.org> | 2010-11-10 06:39:49 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2010-11-10 06:39:49 +0000 |
commit | c178b8695e0a2f8e804cfdcc8a6e36acd75ce462 (patch) | |
tree | 66f7378017237448004ad6765033bea991903730 /gnu/usr.bin/cc/Makefile.inc | |
parent | 875749fff1e37b1202073b4f4d9f27053e87a096 (diff) | |
download | FreeBSD-src-c178b8695e0a2f8e804cfdcc8a6e36acd75ce462.zip FreeBSD-src-c178b8695e0a2f8e804cfdcc8a6e36acd75ce462.tar.gz |
Complete the integration of tbemd branch into head.
TARGET_BIG_ENDIAN is now completely dead, except where it was
originally supposed to be used (internally in the toolchain building).
TARGET_ARCH has changed in three cases:
(1) Little endian mips has changed to mipsel.
(2) Big endian mips has changed to mipseb.
(3) Big endian arm has changed to armeb.
Some additional changes are needed to make 'make universe' work on arm
and mips after this change, so those are commented out for now.
UPDATING information will be forthcoming. Any remaining rough edges
will be hammered out in -current.
Diffstat (limited to 'gnu/usr.bin/cc/Makefile.inc')
-rw-r--r-- | gnu/usr.bin/cc/Makefile.inc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gnu/usr.bin/cc/Makefile.inc b/gnu/usr.bin/cc/Makefile.inc index 994d979..9d3ee2d 100644 --- a/gnu/usr.bin/cc/Makefile.inc +++ b/gnu/usr.bin/cc/Makefile.inc @@ -32,9 +32,13 @@ CFLAGS+= -DLONG_TYPE_SIZE=${LONG_TYPE_SIZE} CFLAGS+= -DCROSS_COMPILE .endif -.if ${TARGET_ARCH} == "mips" -# XXX This is backwards, MIPS should default to BE. -.if !defined(TARGET_BIG_ENDIAN) +.if ${TARGET_ARCH} == "armeb" +CFLAGS += -DTARGET_ENDIAN_DEFAULT=MASK_BIG_END +.endif + + +.if ${TARGET_CPUARCH} == "mips" +.if ${TARGET_ARCH} == "mipsel" CFLAGS += -DTARGET_ENDIAN_DEFAULT=0 .endif |