Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 May 2002 13:33:38 -0700
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        "Steven G. Kargl" <kargl@troutmask.apl.washington.edu>, freebsd-current@FreeBSD.ORG
Subject:   Re: patch to add athlon to bsd.cpu.mk
Message-ID:  <20020511133338.B73047@troutmask.apl.washington.edu>
In-Reply-To: <20020511130835.B55218@xor.obsecurity.org>; from kris@obsecurity.org on Sat, May 11, 2002 at 01:08:35PM -0700
References:  <200205111912.g4BJCG8W072725@troutmask.apl.washington.edu> <20020511130835.B55218@xor.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020511133338.B73047>