Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Dec 2003 15:12:57 -0600
From:      Jon Noack <noackjr@alumni.rice.edu>
To:        toxa <postfix@sendmail.ru>
Cc:        freebsd-current@freebsd.org
Subject:   Re: CURRENT state of acpi and -O'ptimisations in buildworld
Message-ID:  <3FDA2F59.3060009@alumni.rice.edu>
In-Reply-To: <200312121823.22352.postfix@sendmail.ru>
References:  <200312121749.12408.postfix@sendmail.ru> <1071241208.970.49.camel@localhost> <200312121823.22352.postfix@sendmail.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On 12/12/2003 9:23 AM, toxa wrote:
> On Friday 12 December 2003 18:00, Ryan Sommers wrote:
> 
> 
>>>The second is about buildworld. Usually I use this opimisaton flags to
>>>build world and userland (putting them to /etc/make.conf):
>>>
>>>CFLAGS= -O3 -pipe -ffast-math -funroll-loops -mno-sse2 -march=pentium4
>>>COPTFLAGS= -O2 -pipe -march=pentium4 -ffast-math -funroll-loops
>>>CPUTYPE= p4
>>
>>Building with any optimization higher then -O is not supported.
> 
> 
> Does it mean that -O3 really translated into -O then making buildworld OR that 
> with any optimisation higher than -O you may have _success_ with buildworld 
> BUT binaries may be _broken_? I have used -O2 and -O3 with 5-CURRENT for many 
> months (cvsuping to -current since 5.1-release) without any problem until 
> tonight.
> 
> Thanks for your reply.

They are not translated to -O -- they simply may not work (as you have 
seen).

The following are excerpts from /etc/defaults/make.conf.

On CFLAGS:
"Note that optimization settings above -O (-O2, ...) are not recommended 
or supported for compiling the world or the kernel - please revert any 
nonstandard optimization settings to "-O" before submitting bug reports 
to the developers."

On COPTFLAGS:
"There is very little to gain by using higher optimization levels, and 
doing so can cause problems."

Jon Noack



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3FDA2F59.3060009>