Date: Tue, 08 Jan 2002 09:42:05 -0800 (PST) From: John Baldwin <jhb@freebsd.org> To: Idar Tollefsen <Idar.Tollefsen@baerum.kommune.no> Cc: freebsd-alpha@freebsd.org Subject: RE: Using GCC 3 for ports? Message-ID: <XFMail.020108094205.jhb@FreeBSD.org> In-Reply-To: <sc3b276d.093@mail.baerum.kommune.no>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <jhb@FreeBSD.org> <>< 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.020108094205.jhb>