summaryrefslogtreecommitdiffstats
path: root/share/mk
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-05-11 20:18:54 +0000
committerobrien <obrien@FreeBSD.org>2002-05-11 20:18:54 +0000
commit50d831e58554cd65ec430f27b3c9c9a88424fc95 (patch)
tree0e5f825211dbc16decf12f3ad21b25bacf62f156 /share/mk
parent368aae2d3bfcfc19a924d9c4b525af797e052af8 (diff)
downloadFreeBSD-src-50d831e58554cd65ec430f27b3c9c9a88424fc95.zip
FreeBSD-src-50d831e58554cd65ec430f27b3c9c9a88424fc95.tar.gz
Add pointers to GCC's allowable values for -march, and restore structure
of rev 1.7 until someone can sit down and think thru all the GCC 3.1 related changes.
Diffstat (limited to 'share/mk')
-rw-r--r--share/mk/bsd.cpu.mk16
1 files changed, 10 insertions, 6 deletions
diff --git a/share/mk/bsd.cpu.mk b/share/mk/bsd.cpu.mk
index c045ac2..2d1b03d 100644
--- a/share/mk/bsd.cpu.mk
+++ b/share/mk/bsd.cpu.mk
@@ -22,17 +22,21 @@ CPUTYPE = i686
. elif ${CPUTYPE} == "pentium"
CPUTYPE = i586
. elif ${CPUTYPE} == "athlon"
-CPUTYPE = athlon
+CPUTYPE = k7
. endif
.endif
-# Logic to set up correct gcc optimization flag. This must be included
+# 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
-# defined therein.
+# defined therein. Consult:
+# http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86-64-Options.html
+# http://gcc.gnu.org/onlinedocs/gcc/DEC-Alpha-Options.html
+# 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} == "athlon"
+. if ${CPUTYPE} == "k7"
_CPUCFLAGS = -march=athlon
. elif ${CPUTYPE} == "k6-2"
_CPUCFLAGS = -march=k6
@@ -83,8 +87,8 @@ CFLAGS += ${_CPUCFLAGS}
# presence of a CPU feature.
.if ${MACHINE_ARCH} == "i386"
-. if ${CPUTYPE} == "athlon"
-MACHINE_CPU = athlon 3dnow mmx k6 k5 i586 i486 i386
+. if ${CPUTYPE} == "k7"
+MACHINE_CPU = k7 3dnow mmx k6 k5 i586 i486 i386
. elif ${CPUTYPE} == "k6-2"
MACHINE_CPU = 3dnow mmx k6 k5 i586 i486 i386
. elif ${CPUTYPE} == "k6"
OpenPOWER on IntegriCloud