- Removed various cruft from before we had a hosted toolchain (!).
- Moved special compiler flags to bsd.kern.mk so they get used for modules too.
This commit is contained in:
parent
872cb31bba
commit
558920f554
@ -43,6 +43,15 @@ CFLAGS+= -mno-fp-regs -ffixed-8 -Wa,-mev6
|
|||||||
CFLAGS+= -ffixed-r13 -mfixed-range=f32-f127 -mno-sdata
|
CFLAGS+= -ffixed-r13 -mfixed-range=f32-f127 -mno-sdata
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
#
|
||||||
|
# For sparc64 we want medlow code model, and we tell gcc to use floating
|
||||||
|
# point emulation. This avoids using floating point registers for integer
|
||||||
|
# operations which it has a tendency to do.
|
||||||
|
#
|
||||||
|
.if ${MACHINE_ARCH} == "sparc64"
|
||||||
|
CFLAGS+= -mcmodel=medlow -msoft-float
|
||||||
|
.endif
|
||||||
|
|
||||||
#
|
#
|
||||||
# GCC 3.0 and above like to do certain optimizations based on the
|
# GCC 3.0 and above like to do certain optimizations based on the
|
||||||
# assumption that the program is linked against libc. Stop this.
|
# assumption that the program is linked against libc. Stop this.
|
||||||
|
@ -16,17 +16,11 @@
|
|||||||
# after which config should be rerun for all machines.
|
# after which config should be rerun for all machines.
|
||||||
#
|
#
|
||||||
|
|
||||||
CWARNFLAGS= -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \
|
|
||||||
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \
|
|
||||||
-ansi
|
|
||||||
|
|
||||||
# Which version of config(8) is required.
|
# Which version of config(8) is required.
|
||||||
%VERSREQ= 500011
|
%VERSREQ= 500011
|
||||||
|
|
||||||
STD8X16FONT?= iso
|
STD8X16FONT?= iso
|
||||||
|
|
||||||
HACK_EXTRA_FLAGS=-Wl,-shared
|
|
||||||
|
|
||||||
.if !defined(S)
|
.if !defined(S)
|
||||||
.if exists(./@/.)
|
.if exists(./@/.)
|
||||||
S= ./@
|
S= ./@
|
||||||
@ -36,9 +30,6 @@ S= ../../..
|
|||||||
.endif
|
.endif
|
||||||
.include "$S/conf/kern.pre.mk"
|
.include "$S/conf/kern.pre.mk"
|
||||||
|
|
||||||
# XXX: this should probably go somewhere else
|
|
||||||
COPTS+= -mcmodel=medlow -msoft-float
|
|
||||||
|
|
||||||
SYSTEM_SFILES= $S/$M/$M/locore.S $S/$M/$M/exception.S $S/$M/$M/interrupt.S
|
SYSTEM_SFILES= $S/$M/$M/locore.S $S/$M/$M/exception.S $S/$M/$M/interrupt.S
|
||||||
SYSTEM_OBJS= locore.o exception.o interrupt.o vnode_if.o ${OBJS} hints.o \
|
SYSTEM_OBJS= locore.o exception.o interrupt.o vnode_if.o ${OBJS} hints.o \
|
||||||
env.o config.o hack.So majors.o
|
env.o config.o hack.So majors.o
|
||||||
@ -55,12 +46,6 @@ SYSTEM_OBJS= locore.o exception.o interrupt.o vnode_if.o ${OBJS} hints.o \
|
|||||||
|
|
||||||
%CLEAN
|
%CLEAN
|
||||||
|
|
||||||
#lint: /tmp
|
|
||||||
# @lint -hbxn -DGENERIC -Dvolatile= ${COPTS} \
|
|
||||||
# $S/$M/$M/Locore.c ${CFILES} | \
|
|
||||||
# grep -v 'struct/union .* never defined' | \
|
|
||||||
# grep -v 'possible pointer alignment problem'
|
|
||||||
|
|
||||||
exception.o: $S/$M/$M/exception.S assym.s
|
exception.o: $S/$M/$M/exception.S assym.s
|
||||||
${NORMAL_S}
|
${NORMAL_S}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user