Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Mar 2008 12:29:24 +0100
From:      Kris Kennaway <kris@FreeBSD.org>
To:        Mikael Ikivesi <mikael.ikivesi@pp.inet.fi>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: gcc -O2 error
Message-ID:  <47E63F14.2070706@FreeBSD.org>
In-Reply-To: <20080323121230.2d4f067b@pp.inet.fi>
References:  <20080322192433.3719eb44@pp.inet.fi>	<47E55264.2030004@FreeBSD.org> <20080323121230.2d4f067b@pp.inet.fi>

next in thread | previous in thread | raw e-mail | index | archive | help
Mikael Ikivesi wrote:
> 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
> 
> 

The latter.  When the gcc people fix it, if there is a patch that 
applies to 4.2 then we could import it.

Kris



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47E63F14.2070706>