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/i386 | |
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/i386')
-rw-r--r-- | sys/boot/i386/Makefile.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/boot/i386/Makefile.inc b/sys/boot/i386/Makefile.inc index 0cad7d2..f5faec7 100644 --- a/sys/boot/i386/Makefile.inc +++ b/sys/boot/i386/Makefile.inc @@ -5,12 +5,12 @@ BINDIR?= /boot LOADER_ADDRESS?=0x200000 -CFLAGS+= -ffreestanding -mpreferred-stack-boundary=2 \ +CFLAGS+= -march=i386 -ffreestanding -mpreferred-stack-boundary=2 \ -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float LDFLAGS+= -nostdlib .if ${MACHINE_CPUARCH} == "amd64" -CFLAGS+= -m32 -march=i386 +CFLAGS+= -m32 ACFLAGS+= -m32 LDFLAGS+= -m elf_i386_fbsd AFLAGS+= --32 |