From owner-freebsd-arch Thu Feb 22 14: 9: 7 2001 Delivered-To: freebsd-arch@freebsd.org Received: from mout1.freenet.de (mout1.freenet.de [194.97.50.132]) by hub.freebsd.org (Postfix) with ESMTP id ABE6137B491 for ; Thu, 22 Feb 2001 14:09:04 -0800 (PST) (envelope-from netchild@leidinger.net) Received: from [194.97.50.144] (helo=mx1.freenet.de) by mout1.freenet.de with esmtp (Exim 3.22 #1) id 14W3v5-0007kk-00; Thu, 22 Feb 2001 23:09:03 +0100 Received: from b8420.pppool.de ([213.7.132.32] helo=Magelan.Leidinger.net) by mx1.freenet.de with esmtp (Exim 3.22 #1) id 14W3v4-00039i-00; Thu, 22 Feb 2001 23:09:03 +0100 Received: from Leidinger.net (netchild@localhost [127.0.0.1]) by Magelan.Leidinger.net (8.11.2/8.11.2) with ESMTP id f1MLrsf01077; Thu, 22 Feb 2001 22:53:56 +0100 (CET) (envelope-from netchild@Leidinger.net) Message-Id: <200102222153.f1MLrsf01077@Magelan.Leidinger.net> Date: Thu, 22 Feb 2001 22:53:52 +0100 (CET) From: Alexander Leidinger Subject: Re: cvs commit: src/share/mk sys.mk To: kris@obsecurity.org Cc: arch@FreeBSD.ORG In-Reply-To: <20010222125552.B6517@mollari.cthul.hu> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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