Skip site navigation (1)Skip section navigation (2)
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>

next in thread | previous in thread | raw e-mail | index | archive | help

--tKW2IUtsqtDRztdT
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Feb 22, 2001 at 12:50:50PM +0100, Alexander Leidinger wrote:
> On 21 Feb, Kris Kennaway wrote:
>=20
> > .if ${MACHINE_CPU:Mi686}
> > CFLAGS +=3D -mpentiumpro
> > .elif ${MACHINE_CPU:Mi586}
> > CFLAGS +=3D -mpentium
> > ...
> > .endif
> >=20
> > which may be worthwhile to do.
> >=20
> > 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)
>=20
> You want to use "-mXXX -march=3DXXX". 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=3DCPU TYPE'
     Generate instructions for the machine type CPU TYPE.  The choices
     for CPU TYPE are the same as for `-mcpu'.  Moreover, specifying
     `-march=3DCPU TYPE' implies `-mcpu=3DCPU TYPE'.

`-m386'
`-m486'
`-mpentium'
`-mpentiumpro'
     Synonyms for -mcpu=3Di386, -mcpu=3Di486, -mcpu=3Dpentium, and
     -mcpu=3Dpentiumpro respectively.  These synonyms are deprecated.

Kris

--tKW2IUtsqtDRztdT
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE6lXzYWry0BWjoQKURAlK6AJ49Sn5EGdd3oD79hnAUHOIfLoyPOwCgnWkc
GZTJmOtmMVHNl81UMsa2lD8=
=9u/z
-----END PGP SIGNATURE-----

--tKW2IUtsqtDRztdT--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




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