This is the mail archive of the gcc@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: Been Looking how gcc operates there is a major weaknesses in its optimiser.


Peter Dolding wrote:
> Ian Lance Taylor wrote:
>> "Peter Dolding" <oiaohm@gmail.com> writes:
>>
>>  
>>> Since test is in a different object file it gets completely skiped
>>> from optimising even that it should be optimised out.
>>>     
>>
>> http://gcc.gnu.org/wiki/LTO_Driver
>>
>> Ian
>>   
> Ok that is half my idea.  Let it sort out at link stage.  But that does
> not cover like libc and dynamic dependencies.

And it can't, either, at least not on GNU/Linux.  When a bug fix is
imported into glibc, every user of glibc immediately benefits.  That's one
of the reasons we don't link statically on that system.  This is far
more important than the performance issue.

Andrew.


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