From 9bd85872d1d8c8929fcb30a1f7375867e4608b07 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Sat, 27 Jul 2002 22:15:42 +0000 Subject: [PATCH] - Fixup whitespace after previous commit. - To minimize whitespace changes, remove a test that didn't define _CPUCFLAGS if both NO_CPU_CFLAGS and NO_CPU_COPTFLAGS were defined since it is redundant (we don't use _CPUCFLAGS if those are defined). --- share/mk/bsd.cpu.mk | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/share/mk/bsd.cpu.mk b/share/mk/bsd.cpu.mk index f4eef7acd93e..14be1b42fdf5 100644 --- a/share/mk/bsd.cpu.mk +++ b/share/mk/bsd.cpu.mk @@ -5,33 +5,33 @@ # may tune support for more advanced processors. .if !defined(CPUTYPE) -.if ${MACHINE_ARCH} == "i386" +. if ${MACHINE_ARCH} == "i386" _CPUCFLAGS = -mcpu=pentiumpro CPUTYPE = i386 -.elif ${MACHINE_ARCH} == "alpha" +. elif ${MACHINE_ARCH} == "alpha" _CPUCFLAGS = -mcpu=ev4 -mtune=ev5 CPUTYPE = ev4 -.elif ${MACHINE_ARCH} == "ia64" +. elif ${MACHINE_ARCH} == "ia64" _CPUCFLAGS = CPUTYPE = itanium -.elif ${MACHINE_ARCH} == "sparc64" +. elif ${MACHINE_ARCH} == "sparc64" _CPUCFLAGS = CPUTYPE = ultrasparc -.endif +. endif .else # Handle aliases (not documented in make.conf to avoid user confusion # between e.g. i586 and pentium) -.if ${MACHINE_ARCH} == "i386" -. if ${CPUTYPE} == "pentiumpro" +. if ${MACHINE_ARCH} == "i386" +. if ${CPUTYPE} == "pentiumpro" CPUTYPE = i686 -. elif ${CPUTYPE} == "pentium" +. elif ${CPUTYPE} == "pentium" CPUTYPE = i586 -. elif ${CPUTYPE} == "athlon" +. elif ${CPUTYPE} == "athlon" CPUTYPE = k7 +. endif . endif -.endif # Logic to set up correct gcc optimization flag. This must be included # after /etc/make.conf so it can react to the local value of CPUTYPE @@ -41,7 +41,6 @@ CPUTYPE = k7 # http://gcc.gnu.org/onlinedocs/gcc/SPARC-Options.html # http://gcc.gnu.org/onlinedocs/gcc/RS-6000-and-PowerPC-Options.html -.if !defined(NO_CPU_CFLAGS) || !defined(NO_CPU_COPTFLAGS) . if ${MACHINE_ARCH} == "i386" . if ${CPUTYPE} == "k7" . if defined(BOOTSTRAPPING) @@ -86,7 +85,6 @@ _CPUCFLAGS = -mcpu=ev4 . endif . endif .endif -.endif # NB: COPTFLAGS is handled in /usr/src/sys/conf/Makefile.