summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authoranholt <anholt@FreeBSD.org>2003-05-22 16:56:46 +0000
committeranholt <anholt@FreeBSD.org>2003-05-22 16:56:46 +0000
commit99b5c5ca725b6585db78f575894c74d7287f3a80 (patch)
treedb95a2c476c86d5e75756bc6d8c52664203e0855 /share
parentee01ef6898f70031356462eb5f9fefcdc92043f9 (diff)
downloadFreeBSD-src-99b5c5ca725b6585db78f575894c74d7287f3a80.zip
FreeBSD-src-99b5c5ca725b6585db78f575894c74d7287f3a80.tar.gz
Change -march=pentium4 to -march=pentium3 when CPUTYPE==p4, because gcc 3.2 is
known to produce broken code with -march=pentium4. Add a note explaining this. This should be removed when we update to gcc 3.3 or the bug is otherwise fixed. Approved by: re
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.cpu.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/share/mk/bsd.cpu.mk b/share/mk/bsd.cpu.mk
index 1674f9e..a8507cb 100644
--- a/share/mk/bsd.cpu.mk
+++ b/share/mk/bsd.cpu.mk
@@ -50,7 +50,9 @@ _CPUCFLAGS = -march=${CPUTYPE}
. elif ${CPUTYPE} == "k5"
_CPUCFLAGS = -march=pentium
. elif ${CPUTYPE} == "p4"
-_CPUCFLAGS = -march=pentium4
+# gcc 3.2 is known to produce broken code with -march=pentium4, so it is
+# disabled for now. This is fixed in gcc 3.3.
+_CPUCFLAGS = -march=pentium3
. elif ${CPUTYPE} == "p3"
_CPUCFLAGS = -march=pentium3
. elif ${CPUTYPE} == "p2"
OpenPOWER on IntegriCloud