Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: -O0 -g for the whole base system



On Mon, Jul 16, 2012 at 02:49:03PM +0300, Aleksey Cheusov wrote:
> Due to diverse crashes of my netbsd-6 system I decided to recompile
> everything (including X11) without optimization and with debugging info.
> Is the following
> 
> COPTS='-O0 -g'

This is a bad idea and unlikely to work.  It's pretty widely known that
GCC is much buggier at -O0 than at -O1 due to lack of use.

Also, unless something has changed recently, -O0 on the command line will
disable explicit inlining, with the result that some code in NetBSD may
not compile.

Thor


Home | Main Index | Thread Index | Old Index