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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message