Add PowerPC CFLAGS.

Submitted by:	gallatin
This commit is contained in:
David E. O'Brien 2003-12-07 09:56:30 +00:00
parent 8b45548804
commit 813dd1729c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=123230

View File

@ -67,6 +67,15 @@ CFLAGS+= -mcmodel=kernel -mno-red-zone \
INLINE_LIMIT?= 20000
.endif
#
# For PowerPC 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} == "powerpc"
CFLAGS+= -msoft-float
INLINE_LIMIT?= 15000
.endif
#
# GCC 3.0 and above like to do certain optimizations based on the
# assumption that the program is linked against libc. Stop this.