From b1aff8bff11d702e9c66cb03e5264f2dfe747c71 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 22 May 2003 16:56:46 +0000 Subject: 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 --- share/mk/bsd.cpu.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'share/mk') diff --git a/share/mk/bsd.cpu.mk b/share/mk/bsd.cpu.mk index 1674f9e42f33..a8507cbaff92 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" -- cgit v1.3