[Midnightbsd-cvs] src [9708] trunk/sys/boot/ficl/Makefile: fix stack boundary issue with clang
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Mon Dec 18 13:27:49 EST 2017
Revision: 9708
http://svnweb.midnightbsd.org/src/?rev=9708
Author: laffer1
Date: 2017-12-18 13:27:48 -0500 (Mon, 18 Dec 2017)
Log Message:
-----------
fix stack boundary issue with clang
Modified Paths:
--------------
trunk/sys/boot/ficl/Makefile
Modified: trunk/sys/boot/ficl/Makefile
===================================================================
--- trunk/sys/boot/ficl/Makefile 2017-12-18 18:04:10 UTC (rev 9707)
+++ trunk/sys/boot/ficl/Makefile 2017-12-18 18:27:48 UTC (rev 9708)
@@ -9,9 +9,12 @@
CFLAGS+= -ffreestanding
.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
CFLAGS+= -march=i386
-CFLAGS+= -mpreferred-stack-boundary=2
+CFLAGS.gcc+= -mpreferred-stack-boundary=2
CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
.endif
+.if ${MACHINE_CPUARCH} == "amd64"
+CFLAGS+= -mno-red-zone
+.endif
.if HAVE_PNP
CFLAGS+= -DHAVE_PNP
.endif
More information about the Midnightbsd-cvs
mailing list