Subject: Re: mk.conf & compiler flags
To: Chuck Swiger <cswiger@mac.com>
From: Dan LaBell <dan4l-nospam@verizon.net>
List: netbsd-users
Date: 02/03/2005 01:05:17
On Wednesday, February 2, 2005, at 11:59 PM, Chuck Swiger wrote:
> Dunric wrote:
>> I just wish to rebuild whole system including packages with
>> "-O2 -pipe -march=pentium3" in proper way.
>
> Be careful. gcc-3.x using -O2 enables a form of optimization which
> can break a fair amount of source code. Consider using:
>
> -O2 -fno-strict-aliasing
>
> ...unless you understand and are willing to fix the type-punning
> warnings.
>
>
What about -Os ? It seemed more like gcc-2's -O2.