Date: Wed, 8 Aug 2007 16:44:33 GMT From: Oleksandr Tymoshenko <gonzo@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 124904 for review Message-ID: <200708081644.l78GiXYN082670@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=124904 Change 124904 by gonzo@gonzo_wooster on 2007/08/08 16:43:40 o Use TARGET_BIG_ENDIAN to set either big or little endianess to userland. o Use explicit gcc option for both big and little endian, do not rely on default endianess. o pass only -march stuff to _CPUCFLAGS Affected files ... .. //depot/projects/mips2/src/share/mk/bsd.cpu.mk#10 edit Differences ... ==== //depot/projects/mips2/src/share/mk/bsd.cpu.mk#10 (text+ko) ==== @@ -110,13 +110,10 @@ _CPUCFLAGS = -mcpu=${CPUTYPE} . endif . elif ${MACHINE_ARCH} == "mips" -_CPUCFLAGS = -G0 -mabicalls -mno-dsp -. if ${CPUTYPE} == "mips32" -_CPUCFLAGS += -march=mips32 -. elif ${CPUTYPE} == "mips64" -_CPUCFLAGS += -march=mips64 +. if ${CPUTYPE} == "mips64" +_CPUCFLAGS = -march=mips64 . elif ${CPUTYPE} == "mipsr4kc" -_CPUCFLAGS += -march=r4kc +_CPUCFLAGS = -march=4kc . endif . endif @@ -182,12 +179,16 @@ .endif .if ${MACHINE_ARCH} == "mips" -. if defined(MIPS_LITTLE_ENDIAN) -_CPUCFLAGS += -EL +. if defined(TARGET_BIG_ENDIAN) +CFLAGS += -EB +LDFLAGS += -Wl,-EB +LD += -EB +. else +CFLAGS += -EL LDFLAGS += -Wl,-EL LD += -EL . endif -_CPUCFLAGS += -msoft-float +CFLAGS += -msoft-float -G0 -mno-dsp -mabicalls .endif # NB: COPTFLAGS is handled in /usr/src/sys/conf/kern.pre.mk
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708081644.l78GiXYN082670>