loader breaks with -O2 optimizations

Kris Kennaway kris at FreeBSD.org
Thu Nov 1 02:20:38 PDT 2007

Josh Carroll wrote:
>> Presumably you mean -O2 -funroll-loops, not -O2.  Or are you saying the
>> latter also breaks the loader?
> Just -O2 broke it for me in RELENG_7, for the reason I said before
> (-O2 later in the gcc command line supersedes the -Os from the loader
> Makefile).

OK.  -funroll-loops is still bogus as a general setting, but I guess the 
real lesson is to stick with the defaults unless you want to fix the 
problem :)


More information about the freebsd-current mailing list