PERFORCE change 140817 for review
Oleksandr Tymoshenko
gonzo at FreeBSD.org
Mon Apr 28 22:57:10 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=140817
Change 140817 by gonzo at gonzo_jeeves on 2008/04/28 22:56:22
o Handle mips like other architectures in cc/cc_tools/Makefile
o Place TARGET_CPU_DEFAULT for mips to proper place (cc/Makefile.tgt)
Its value is definitly wrong. It's origin unknown but now
it shifted to MASK_DSP. Need to come out with reasonable defaults.
Affected files ...
.. //depot/projects/mips2-jnpr/src/gnu/usr.bin/cc/Makefile.tgt#2 edit
.. //depot/projects/mips2-jnpr/src/gnu/usr.bin/cc/cc_tools/Makefile#2 edit
Differences ...
==== //depot/projects/mips2-jnpr/src/gnu/usr.bin/cc/Makefile.tgt#2 (text+ko) ====
@@ -11,6 +11,7 @@
GCC_CPU= ia64
.elif ${TARGET_ARCH} == "mips"
GCC_CPU= mips
+TARGET_CPU_DEFAULT= 16
.elif ${TARGET_ARCH} == "powerpc"
GCC_CPU= rs6000
.elif ${TARGET_ARCH} == "sparc64"
==== //depot/projects/mips2-jnpr/src/gnu/usr.bin/cc/cc_tools/Makefile#2 (text+ko) ====
@@ -37,9 +37,6 @@
TARGET_INC+= freebsd-native.h
TARGET_INC+= freebsd-spec.h
TARGET_INC+= freebsd.h
-.if ${TARGET_ARCH} == "mips"
-TARGET_INC+= ${GCC_CPU}/elf.h
-.endif
.if ${TARGET_ARCH} != "i386" && ${TARGET_ARCH} != "amd64"
.if exists(${GCCDIR}/config/${GCC_CPU}/sysv4.h)
TARGET_INC+= ${GCC_CPU}/sysv4.h
@@ -55,13 +52,13 @@
TARGET_INC+= ${GCC_CPU}/aout.h
TARGET_INC+= ${GCC_CPU}/freebsd.h
TARGET_INC+= ${GCC_CPU}/arm.h
+.elif ${TARGET_ARCH} == "mips"
+TARGET_INC+= ${GCC_CPU}/elf.h
+TARGET_INC+= ${GCC_CPU}/freebsd.h
.else
TARGET_INC+= ${GCC_CPU}/freebsd.h
.endif
TARGET_INC+= defaults.h
-.if ${TARGET_ARCH} == "mips"
-TARGET_CPU_DEFAULT= 16
-.endif
.for H in ${TARGET_INC}
.for D in ${GCCDIR}/config ${GCCDIR} ${.CURDIR}
.if exists($D/$H)
More information about the p4-projects
mailing list