From owner-freebsd-current Sat May 11 12:12:18 2002 Delivered-To: freebsd-current@freebsd.org Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by hub.freebsd.org (Postfix) with ESMTP id 6002E37B407 for ; Sat, 11 May 2002 12:12:16 -0700 (PDT) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.12.3/8.12.3) with ESMTP id g4BJCG9Q072726 for ; Sat, 11 May 2002 12:12:16 -0700 (PDT) (envelope-from kargl@troutmask.apl.washington.edu) Received: (from kargl@localhost) by troutmask.apl.washington.edu (8.12.3/8.12.3/Submit) id g4BJCG8W072725 for freebsd-current@freebsd.org; Sat, 11 May 2002 12:12:16 -0700 (PDT) From: "Steven G. Kargl" Message-Id: <200205111912.g4BJCG8W072725@troutmask.apl.washington.edu> Subject: patch to add athlon to bsd.cpu.mk To: freebsd-current@freebsd.org Date: Sat, 11 May 2002 12:12:16 -0700 (PDT) X-Mailer: ELM [version 2.4ME+ PL88 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This applies to post gcc 3.1 upgrades. -- Steve http://troutmask.apl.washington.edu/~kargl/ --- bsd.cpu.mk.orig Sat May 11 11:57:01 2002 +++ bsd.cpu.mk Sat May 11 12:00:49 2002 @@ -22,7 +22,7 @@ . elif ${CPUTYPE} == "pentium" CPUTYPE = i586 . elif ${CPUTYPE} == "athlon" -CPUTYPE = k7 +CPUTYPE = athlon . endif .endif @@ -32,8 +32,8 @@ .if !defined(NO_CPU_CFLAGS) || !defined(NO_CPU_COPTFLAGS) . if ${MACHINE_ARCH} == "i386" -. if ${CPUTYPE} == "k7" -_CPUCFLAGS = -march=k6 # gcc doesn't support athlon yet, but it will +. if ${CPUTYPE} == "athlon" +_CPUCFLAGS = -march=athlon . elif ${CPUTYPE} == "k6-2" _CPUCFLAGS = -march=k6 . elif ${CPUTYPE} == "k6" @@ -83,8 +83,8 @@ # presence of a CPU feature. .if ${MACHINE_ARCH} == "i386" -. if ${CPUTYPE} == "k7" -MACHINE_CPU = k7 3dnow mmx k6 k5 i586 i486 i386 +. if ${CPUTYPE} == "athlon" +MACHINE_CPU = athlon 3dnow mmx k6 k5 i586 i486 i386 . elif ${CPUTYPE} == "k6-2" MACHINE_CPU = 3dnow mmx k6 k5 i586 i486 i386 . elif ${CPUTYPE} == "k6" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message