aboutsummaryrefslogtreecommitdiff
path: root/sys/boot/ficl/Makefile
diff options
context:
space:
mode:
authorAndriy Gapon <avg@FreeBSD.org>2012-10-20 16:57:23 +0000
committerAndriy Gapon <avg@FreeBSD.org>2012-10-20 16:57:23 +0000
commit881a94fab89d10842c09bcecbf07f1c68107107f (patch)
treee5db5e78b9212aedf1937ce47ea7417575261b5c /sys/boot/ficl/Makefile
parent9d3334e191e7a344bda1461bd8fefd9cc4b2686d (diff)
downloadsrc-881a94fab89d10842c09bcecbf07f1c68107107f.tar.gz
src-881a94fab89d10842c09bcecbf07f1c68107107f.zip
boot: use -march=i386 for both i386 and amd64 builds
.. so that consistent compilation algorithms are used for both architectures as in practice the binaries are expected to be interchangeable (for time being). Previously i386 used default setting which were equivalent to -march=i486 -mtune=generic. The only difference is using smaller but slower "leave" instructions. Discussed with: jhb, dim MFC after: 29 days
Notes
Notes: svn path=/head/; revision=241785
Diffstat (limited to 'sys/boot/ficl/Makefile')
-rw-r--r--sys/boot/ficl/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/boot/ficl/Makefile b/sys/boot/ficl/Makefile
index 1f8de9b2e2f3..971faa73d163 100644
--- a/sys/boot/ficl/Makefile
+++ b/sys/boot/ficl/Makefile
@@ -8,6 +8,7 @@ SRCS= ${BASE_SRCS} sysdep.c softcore.c
CLEANFILES= softcore.c testmain testmain.o
CFLAGS+= -ffreestanding
.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
+CFLAGS+= -march=i386
CFLAGS+= -mpreferred-stack-boundary=2
CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
.endif
@@ -39,7 +40,7 @@ SOFTWORDS= softcore.fr jhlocal.fr marker.fr freebsd.fr ficllocal.fr \
#SOFTWORDS+= oo.fr classes.fr
.if ${MACHINE_CPUARCH} == "amd64"
-CFLAGS+= -m32 -march=i386 -I.
+CFLAGS+= -m32 -I.
.endif
.if ${MACHINE_ARCH} == "powerpc64"