Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 Nov 2007 10:20:30 +0100
From:      Kris Kennaway <kris@FreeBSD.org>
To:        josh.carroll@gmail.com
Cc:        freebsd-current@freebsd.org, "Stephan F. Yaraghchi" <stephan@yaraghchi.org>
Subject:   Re: loader breaks with -O2 optimizations
Message-ID:  <47299A5E.7090607@FreeBSD.org>
In-Reply-To: <8cb6106e0710311435q3e316599ye259f63679855f72@mail.gmail.com>
References:  <25f52a3d0710300732x425f0c45vde1a29361096c018@mail.gmail.com>	 <47284E4F.5030008@FreeBSD.org>	 <25f52a3d0710310303w7138bf5ds92698f1b6af2f655@mail.gmail.com>	 <4728F43A.1030500@FreeBSD.org> <8cb6106e0710311435q3e316599ye259f63679855f72@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 :)

Kris




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47299A5E.7090607>