Author: dim
Date: Thu Dec 26 11:32:39 2013
New Revision: 259913
URL: http://svnweb.freebsd.org/changeset/base/259913

Log:
  For libstand and sys/boot, split off gcc-only flags into CFLAGS.gcc.
  
  MFC after:    3 days
  X-MFC-With:   r259730

Modified:
  head/lib/libstand/Makefile
  head/sys/boot/ficl/Makefile
  head/sys/boot/i386/Makefile.inc
  head/sys/boot/i386/boot2/Makefile
  head/sys/boot/pc98/Makefile.inc
  head/sys/boot/usb/Makefile
  head/sys/boot/usb/Makefile.test
  head/sys/boot/userboot/ficl/Makefile
  head/sys/boot/userboot/libstand/Makefile
  head/sys/boot/zfs/Makefile

Modified: head/lib/libstand/Makefile
==============================================================================
--- head/lib/libstand/Makefile  Thu Dec 26 10:45:17 2013        (r259912)
+++ head/lib/libstand/Makefile  Thu Dec 26 11:32:39 2013        (r259913)
@@ -21,7 +21,7 @@ CFLAGS+= -ffreestanding -Wformat
 CFLAGS+= -I${.CURDIR}
 
 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
-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} == "pc98"

Modified: head/sys/boot/ficl/Makefile
==============================================================================
--- head/sys/boot/ficl/Makefile Thu Dec 26 10:45:17 2013        (r259912)
+++ head/sys/boot/ficl/Makefile Thu Dec 26 11:32:39 2013        (r259913)
@@ -17,7 +17,7 @@ CFLAGS+=      -ffreestanding
 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
 .if !defined(FICL64)
 CFLAGS+=       -march=i386
-CFLAGS+=       -mpreferred-stack-boundary=2
+CFLAGS.gcc+=   -mpreferred-stack-boundary=2
 .endif
 CFLAGS+=       -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
 .endif

Modified: head/sys/boot/i386/Makefile.inc
==============================================================================
--- head/sys/boot/i386/Makefile.inc     Thu Dec 26 10:45:17 2013        
(r259912)
+++ head/sys/boot/i386/Makefile.inc     Thu Dec 26 11:32:39 2013        
(r259913)
@@ -5,8 +5,9 @@
 BINDIR?=       /boot
 
 LOADER_ADDRESS?=0x200000
-CFLAGS+=       -march=i386 -ffreestanding -mpreferred-stack-boundary=2 \
-               -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
+CFLAGS+=       -march=i386 -ffreestanding
+CFLAGS.gcc+=   -mpreferred-stack-boundary=2
+CFLAGS+=       -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
 LDFLAGS+=      -nostdlib
 
 .if ${MACHINE_CPUARCH} == "amd64"

Modified: head/sys/boot/i386/boot2/Makefile
==============================================================================
--- head/sys/boot/i386/boot2/Makefile   Thu Dec 26 10:45:17 2013        
(r259912)
+++ head/sys/boot/i386/boot2/Makefile   Thu Dec 26 11:32:39 2013        
(r259913)
@@ -23,10 +23,7 @@ BOOT2_UFS?=  UFS1_AND_UFS2
 #BOOT2_UFS?=   UFS1_ONLY
 
 CFLAGS=        -Os \
-       -fno-guess-branch-probability \
        -fomit-frame-pointer \
-       -fno-unit-at-a-time \
-       -mno-align-long-strings \
        -mrtd \
        -mregparm=3 \
        -DUSE_XREAD \
@@ -43,6 +40,10 @@ CFLAGS=      -Os \
        -Winline --param max-inline-insns-single=100 \
        ${CLANG_OPT_SMALL}
 
+CFLAGS.gcc+=   -fno-guess-branch-probability \
+               -fno-unit-at-a-time \
+               -mno-align-long-strings \
+
 LDFLAGS=-static -N --gc-sections
 
 # Pick up ../Makefile.inc early.

Modified: head/sys/boot/pc98/Makefile.inc
==============================================================================
--- head/sys/boot/pc98/Makefile.inc     Thu Dec 26 10:45:17 2013        
(r259912)
+++ head/sys/boot/pc98/Makefile.inc     Thu Dec 26 11:32:39 2013        
(r259913)
@@ -5,8 +5,9 @@
 BINDIR?=       /boot
 
 LOADER_ADDRESS?=0x200000
-CFLAGS+=       -march=i386 -ffreestanding -mpreferred-stack-boundary=2 \
-               -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
+CFLAGS+=       -march=i386 -ffreestanding
+CFLAGS.gcc+=   -mpreferred-stack-boundary=2
+CFLAGS+=       -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
 CFLAGS+=       -Os -DPC98
 LDFLAGS+=      -nostdlib
 

Modified: head/sys/boot/usb/Makefile
==============================================================================
--- head/sys/boot/usb/Makefile  Thu Dec 26 10:45:17 2013        (r259912)
+++ head/sys/boot/usb/Makefile  Thu Dec 26 11:32:39 2013        (r259913)
@@ -53,7 +53,7 @@ CFLAGS+=      -g
 
 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
 CFLAGS+=       -march=i386
-CFLAGS+=       -mpreferred-stack-boundary=2
+CFLAGS.gcc+=   -mpreferred-stack-boundary=2
 .endif
 .if ${MACHINE_CPUARCH} == "amd64"
 CFLAGS+=       -m32

Modified: head/sys/boot/usb/Makefile.test
==============================================================================
--- head/sys/boot/usb/Makefile.test     Thu Dec 26 10:45:17 2013        
(r259912)
+++ head/sys/boot/usb/Makefile.test     Thu Dec 26 11:32:39 2013        
(r259913)
@@ -40,7 +40,7 @@ CFLAGS+= -g
 
 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
 CFLAGS+=       -march=i386
-CFLAGS+=       -mpreferred-stack-boundary=2
+CFLAGS.gcc+=   -mpreferred-stack-boundary=2
 .endif
 .if ${MACHINE_CPUARCH} == "amd64"
 CFLAGS+=       -m32

Modified: head/sys/boot/userboot/ficl/Makefile
==============================================================================
--- head/sys/boot/userboot/ficl/Makefile        Thu Dec 26 10:45:17 2013        
(r259912)
+++ head/sys/boot/userboot/ficl/Makefile        Thu Dec 26 11:32:39 2013        
(r259913)
@@ -16,7 +16,7 @@ CFLAGS+=      -ffreestanding -fPIC
 CFLAGS+=       -mno-mmx -mno-3dnow -mno-sse -mno-sse2
 .endif
 .if ${MACHINE_CPUARCH} == "i386"
-CFLAGS+=       -mpreferred-stack-boundary=2
+CFLAGS.gcc+=   -mpreferred-stack-boundary=2
 CFLAGS+=       -mno-sse3
 .endif
 .if ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_CPUARCH} == "arm"

Modified: head/sys/boot/userboot/libstand/Makefile
==============================================================================
--- head/sys/boot/userboot/libstand/Makefile    Thu Dec 26 10:45:17 2013        
(r259912)
+++ head/sys/boot/userboot/libstand/Makefile    Thu Dec 26 11:32:39 2013        
(r259913)
@@ -28,7 +28,7 @@ CFLAGS+= -I${.CURDIR}/../../../../lib/li
 CFLAGS+=       -mno-mmx -mno-3dnow -mno-sse -mno-sse2
 .endif
 .if ${MACHINE_CPUARCH} == "i386"
-CFLAGS+=       -mpreferred-stack-boundary=2
+CFLAGS.gcc+=   -mpreferred-stack-boundary=2
 CFLAGS+=       -mno-sse3
 .endif
 .if ${MACHINE} == "pc98"

Modified: head/sys/boot/zfs/Makefile
==============================================================================
--- head/sys/boot/zfs/Makefile  Thu Dec 26 10:45:17 2013        (r259912)
+++ head/sys/boot/zfs/Makefile  Thu Dec 26 11:32:39 2013        (r259913)
@@ -13,7 +13,7 @@ CFLAGS+=      -I${.CURDIR}/../../cddl/boot/zf
 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} == "powerpc" || ${MACHINE_CPUARCH} == "arm"
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to