From owner-freebsd-alpha Tue Jan 8 9:42:51 2002 Delivered-To: freebsd-alpha@freebsd.org Received: from mail6.speakeasy.net (mail6.speakeasy.net [216.254.0.206]) by hub.freebsd.org (Postfix) with ESMTP id 75E8037B417 for ; Tue, 8 Jan 2002 09:42:39 -0800 (PST) Received: (qmail 24169 invoked from network); 8 Jan 2002 17:42:39 -0000 Received: from unknown (HELO server.baldwin.cx) ([64.81.54.73]) (envelope-sender ) by mail6.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 8 Jan 2002 17:42:39 -0000 Received: from laptop.baldwin.cx (root@laptop.baldwin.cx [192.168.0.4]) by server.baldwin.cx (8.11.6/8.11.6) with ESMTP id g08HgcK52766; Tue, 8 Jan 2002 09:42:38 -0800 (PST) (envelope-from john@laptop.baldwin.cx) Received: (from john@localhost) by laptop.baldwin.cx (8.11.6/8.11.6) id g08Hg5v01804; Tue, 8 Jan 2002 09:42:05 -0800 (PST) (envelope-from john) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Tue, 08 Jan 2002 09:42:05 -0800 (PST) From: John Baldwin To: Idar Tollefsen Subject: RE: Using GCC 3 for ports? Cc: freebsd-alpha@freebsd.org Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On 08-Jan-02 Idar Tollefsen wrote: > Hello, > > I've heard that GCC 3 fixes some, or most, of the optimization > problems on the Alpha. I was therefore wondering if there was > an easy way to use GCC 3 to build ports? > > I suppose make.conf could be used here, but expect for > the compiler itself, what other variables should be set > (include paths, paths to libraries, e.g.)? > > If someone has already done this, could they send me > the recipe? Don't use gcc 3.0.x. It will dump core on the following code: switch(foo) { default: blah(); break; } You don't want to know how many places code like this exists in our source tree much less in 3rd party software. :) Just make sure you have gcc 3.1.x which has this bug fixed. It doesn't look like gcc 3.1 is in ports (probably cause there's no released version of it yet). However, if you really want to, you can install the gcc30 port, and build by doing 'make CC=gcc30'. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message