Date: Thu, 22 Feb 2001 22:53:52 +0100 (CET) From: Alexander Leidinger <Alexander@Leidinger.net> To: kris@obsecurity.org Cc: arch@FreeBSD.ORG Subject: Re: cvs commit: src/share/mk sys.mk Message-ID: <200102222153.f1MLrsf01077@Magelan.Leidinger.net> In-Reply-To: <20010222125552.B6517@mollari.cthul.hu>
next in thread | previous in thread | raw e-mail | index | archive | help
On 22 Feb, Kris Kennaway wrote: > 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. The docs are wrong. > `-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'. That's not true, test it on your own (see my previous mail with my test program) if you think the doc is right (or have a look at "man gcc" on a system with gcc 2.95.3 (e.g. a recent -current)). Bye, Alexander. -- It is easier to fix Unix than to live with NT. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 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?200102222153.f1MLrsf01077>