diff options
author | avg <avg@FreeBSD.org> | 2012-10-20 16:57:23 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2012-10-20 16:57:23 +0000 |
commit | 8131f8e4f64ff09f74346b0ba6654eb7ff617d6b (patch) | |
tree | e5db5e78b9212aedf1937ce47ea7417575261b5c /sys/boot/zfs | |
parent | 5d26a5d3b58499e3137deceb3d390fd61f288129 (diff) | |
download | FreeBSD-src-8131f8e4f64ff09f74346b0ba6654eb7ff617d6b.zip FreeBSD-src-8131f8e4f64ff09f74346b0ba6654eb7ff617d6b.tar.gz |
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
Diffstat (limited to 'sys/boot/zfs')
-rw-r--r-- | sys/boot/zfs/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/boot/zfs/Makefile b/sys/boot/zfs/Makefile index ff423a0..9b900e4 100644 --- a/sys/boot/zfs/Makefile +++ b/sys/boot/zfs/Makefile @@ -12,6 +12,7 @@ CFLAGS+= -I${.CURDIR}/../../cddl/boot/zfs 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 @@ -19,7 +20,7 @@ CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float CFLAGS+= -msoft-float .endif .if ${MACHINE_CPUARCH} == "amd64" -CFLAGS+= -m32 -march=i386 +CFLAGS+= -m32 .endif CFLAGS+= -Wformat -Wall |