This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: Set default optimization level to -O2 for -flto


On Fri, Mar 19, 2010 at 3:07 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Fri, Mar 19, 2010 at 6:02 AM, Basile Starynkevitch
> <basile@starynkevitch.net> wrote:
>> Nick Clifton wrote:
>>>
>>> ?An alternative action would be to issue a warning message if -flto is
>>> ?encountered without any optimization level also being set. ?i am not
>>> ?sure what people feel about this.
>>
>> I don't have authority to approve anything, but my personal feeling is that
>> make a warning -or perhaps even an error- at link time if the optimization
>> is less than at compile time.
>>
>
> Should we record compiler options in .o files? For some targets, you may need
> -fPIC with -flto if -fPIC is used to build .o files.

We do that (well, sort of and only partly), see lto-opts.c

Richard.

>
> --
> H.J.
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]