From owner-freebsd-current Sat May 11 13:33:45 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 159C837B400 for ; Sat, 11 May 2002 13:33:39 -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 g4BKXc9Q073356; Sat, 11 May 2002 13:33:38 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.12.3/8.12.3/Submit) id g4BKXcJY073355; Sat, 11 May 2002 13:33:38 -0700 (PDT) Date: Sat, 11 May 2002 13:33:38 -0700 From: Steve Kargl To: Kris Kennaway Cc: "Steven G. Kargl" , freebsd-current@FreeBSD.ORG Subject: Re: patch to add athlon to bsd.cpu.mk Message-ID: <20020511133338.B73047@troutmask.apl.washington.edu> References: <200205111912.g4BJCG8W072725@troutmask.apl.washington.edu> <20020511130835.B55218@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020511130835.B55218@xor.obsecurity.org>; from kris@obsecurity.org on Sat, May 11, 2002 at 01:08:35PM -0700 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 On Sat, May 11, 2002 at 01:08:35PM -0700, Kris Kennaway wrote: > On Sat, May 11, 2002 at 12:12:16PM -0700, Steven G. Kargl wrote: > > -. if ${CPUTYPE} == "k7" > > -_CPUCFLAGS = -march=k6 # gcc doesn't support athlon yet, but it will > > +. if ${CPUTYPE} == "athlon" > > +_CPUCFLAGS = -march=athlon > > AFAIK the k7 is a valid name for the athlon (marchitecture name). > Don't break backwards compatibility here. > info gcc `-mcpu=CPU-TYPE' Tune to CPU-TYPE everything applicable about the generated code, except for the ABI and the set of available instructions. The choices for CPU-TYPE are `i386', `i486', `i586', `i686', `pentium', `pentium-mmx', `pentiumpro', `pentium2', `pentium3', `pentium4', `k6', `k6-2', `k6-3', `athlon', `athlon-tbird', `athlon-4', `athlon-xp' and `athlon-mp'. There is no -mk7 switch not -mcpu=k7. I tried both with a Hello World program. kargl[146] gcc -mcpu=k7 a.c cc1: bad value (k7) for -mcpu= switch kargl[147] gcc -mk7 a.c cc1: invalid option `k7' kargl[148] gcc -march=k7 a.c cc1: bad value (k7) for -march= switch cc1: bad value (k7) for -mcpu= switch -- Steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message