Date: Thu, 22 Feb 2001 12:55:52 -0800 From: Kris Kennaway <kris@obsecurity.org> To: Alexander Leidinger <Alexander@leidinger.net> Cc: arch@FreeBSD.ORG Subject: Re: cvs commit: src/share/mk sys.mk Message-ID: <20010222125552.B6517@mollari.cthul.hu> In-Reply-To: <200102221150.f1MBopF07996@Magelan.Leidinger.net>; from Alexander@leidinger.net on Thu, Feb 22, 2001 at 12:50:50PM %2B0100 References: <20010221123835.A59024@mollari.cthul.hu> <200102221150.f1MBopF07996@Magelan.Leidinger.net>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
On Thu, Feb 22, 2001 at 12:50:50PM +0100, Alexander Leidinger wrote:
> On 21 Feb, Kris Kennaway wrote:
>
> > .if ${MACHINE_CPU:Mi686}
> > CFLAGS += -mpentiumpro
> > .elif ${MACHINE_CPU:Mi586}
> > CFLAGS += -mpentium
> > ...
> > .endif
> >
> > which may be worthwhile to do.
> >
> > The -march statement doesnt matter though, since some binaries built
> > with MACHINE_CPU set will already be CPU-specific (e.g. if you specify
> > i686 then openssl will use the i686 blowfish code)
>
> You want to use "-mXXX -march=XXX". You are CPU-specific already, no
> need to produce parts of code which run on an i386 too.
Hmm, that's not what's documented in the gcc info docs.
`-march=CPU TYPE'
Generate instructions for the machine type CPU TYPE. The choices
for CPU TYPE are the same as for `-mcpu'. Moreover, specifying
`-march=CPU TYPE' implies `-mcpu=CPU TYPE'.
`-m386'
`-m486'
`-mpentium'
`-mpentiumpro'
Synonyms for -mcpu=i386, -mcpu=i486, -mcpu=pentium, and
-mcpu=pentiumpro respectively. These synonyms are deprecated.
Kris
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (FreeBSD)
Comment: For info see http://www.gnupg.org
iD8DBQE6lXzYWry0BWjoQKURAlK6AJ49Sn5EGdd3oD79hnAUHOIfLoyPOwCgnWkc
GZTJmOtmMVHNl81UMsa2lD8=
=9u/z
-----END PGP SIGNATURE-----
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010222125552.B6517>
