From owner-freebsd-alpha@FreeBSD.ORG Wed Dec 15 15:14:34 2004 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C28DD16A4CF for ; Wed, 15 Dec 2004 15:14:34 +0000 (GMT) Received: from mail5.speakeasy.net (mail5.speakeasy.net [216.254.0.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8CA7343D41 for ; Wed, 15 Dec 2004 15:14:34 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 5326 invoked from network); 15 Dec 2004 15:14:34 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 15 Dec 2004 15:14:34 -0000 Received: from slimer.baldwin.cx (slimer.baldwin.cx [192.168.0.16]) (authenticated bits=0) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id iBFFEP3O002756; Wed, 15 Dec 2004 10:14:30 -0500 (EST) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-alpha@FreeBSD.org Date: Wed, 15 Dec 2004 09:42:26 -0500 User-Agent: KMail/1.6.2 References: <200412131130.59807.kirk@strauser.com> <200412131300.34382.kirk@strauser.com> <8B2E39C7-4D3C-11D9-BEF4-000D93C47836@xcllnt.net> In-Reply-To: <8B2E39C7-4D3C-11D9-BEF4-000D93C47836@xcllnt.net> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200412150942.26797.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx Subject: Re: Safe (but quick) GCC settings on a PC64 with 5.3? X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Dec 2004 15:14:34 -0000 On Monday 13 December 2004 02:24 pm, Marcel Moolenaar wrote: > On Dec 13, 2004, at 11:00 AM, Kirk Strauser wrote: > > Out of curiosity, on my Athlon systems I can set "CPUTYPE=athlon-tbird" > > in /etc/make.conf and it will automatically add "-march=athlon-tbird" > > to my > > system and ports builds. On my Alpha, though, it only adds > > "-mcpu=ev45" > > and not the expected "-march=ev45". Is this general to all Alphas, or > > is > > it because my ev45 is the bottom of the barrel instruction-wise so > > there's > > no instruction set optimization to be had? > > The interpretation of the -m options vary per platform. The meaning of > -mcpu > on alpha is the same as -march on i386: instruction selection and > scheduling. > -mtune is used to control instruction scheduling only and on i386 (at > least) > -mcpu is a deprecated synonym for that. It's a bit odd, but it looks > like the > GCC folks are trying to normalize things here. > > See also: > http://gcc.gnu.org/onlinedocs/gcc-3.4.3/gcc/Submodel- > Options.html#Submodel-Options You can just use 'CPUTYPE' in /etc/make.conf as on the other archs and let it set the gcc -mcpu=foo option for you. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org