Date: Sun, 23 Mar 2008 12:12:30 +0200 From: Mikael Ikivesi <mikael.ikivesi@pp.inet.fi> To: Kris Kennaway <kris@FreeBSD.org> Cc: freebsd-stable@freebsd.org Subject: Re: gcc -O2 error Message-ID: <20080323121230.2d4f067b@pp.inet.fi> In-Reply-To: <47E55264.2030004@FreeBSD.org> References: <20080322192433.3719eb44@pp.inet.fi> <47E55264.2030004@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 22 Mar 2008 19:39:32 +0100
Kris Kennaway <kris@FreeBSD.org> wrote:
> So, did you consider perhaps following this advice? ;-)
>
> Kris
>
Yes I did.
The reason I send to this list also is that in make.conf manual says:
CFLAGS (str) Controls the compiler setting when compiling C code.
Optimization levels other than -O and -O2 are not
sup- ported.
That means that -O2 should be supported in FreeBSD. And now it happens
to produce bad code.
GCC people think that this should be fixed in gcc 4.3.
I have not yet installed and verified that. However I tried the code
with linux installation with gcc 4.1.2 and it was ok.
As I don't known if gcc has some maintaining done in FreeBSD tree by
patching or just by integrating the next snapshot from time to time.
So I just though to report it in case that maintainers of
FreeBSD version of gcc might want to take a look at this.
-Mikael
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080323121230.2d4f067b>
