Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Mar 2001 11:48:33 +0200 (IST)
From:      Roman Shterenzon <roman@harmonic.co.il>
To:        Matt Dillon <dillon@earth.backplane.com>
Cc:        "freebsd-stable@FreeBSD.ORG" <freebsd-stable@FreeBSD.ORG>
Subject:   Re: RE: ARCH flag in new make.conf
Message-ID:  <Pine.LNX.4.10.10103111145220.18158-100000@shark.harmonic.co.il>
In-Reply-To: <200103071856.f27Iuxl71513@earth.backplane.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Just wanted to say that for RELENG_3 with gcc 2.7.2.3 or whatever it was,
-O2 worked just fine for me (both kernel and userland, I stopped building 
userland with -O2 since 3.3 because it took much more time to build world).
Also, linux that used the same gcc always built kernel with -O2.
So, I believe that 2.95.2 is the one that having the problems.

Why/is it better vs. the former compiler?

On Wed, 7 Mar 2001, Matt Dillon wrote:

> :The impression I get is that when people use it, they usually end up 
> :complaining to the list about something not working, and then it is
> :not immediately obvious that broken optimization routines are the problem.  On 
> :the basis of a dialogue I read about 6 months ago on this list,
> :I decided to avoid it like the plague until the current version of gcc 
> :stabilizes somewhat.  Does that make sense, or am I being overly cautious?
> 
>     I think you are being entirely sensible.   I used to use -O2 all the time,
>     but as of about a year ago it started breaking things (starting with
>     the FreeBSD kernel).  Then I started using -Os because I like the code
>     compaction it produced, but that started breaking the kernel too.  Now I
>     just use -O (and -O had damn well better continue to work because my
>     static inlines will not compile properly without it!).
> 
>     Now I just don't care any more, except for the 0.1% of my personal code
>     that I need to optimize, and most of that I optimize simply by playing
>     around with the C a little or changing an algorithm out or something like
>     that.
> 
> 						-Matt
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-stable" in the body of the message
> 

--Roman Shterenzon, UNIX System Administrator and Consultant
[ Xpert UNIX Systems Ltd., Herzlia, Israel. Tel: +972-9-9522361 ]


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.10.10103111145220.18158-100000>