Re: weak-attribute over-optimisation with 4.1

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

 



* Jan Kiszka:

> Florian Weimer wrote:
>> * Jan Kiszka:
>> 
>>> So, is this a regression? Does it also happen with vanilla 4.1?
>> 
>> According to the documentation, the weak attribute affects
>> declarations, not definitions, and is an instruction to the linker.
>> Technically, the GCC 4.1 behavior is correct.  I'm not sure if it's
>> desirably, though.
>
> Looks at least very surprising for the user - given the fact that only
> empty weak functions suffer from this, that this behaviour depends on
> optimisation levels, and that it was fine with earlier versions for
> quite a while.

It looks like a bug because other optimizations are correctly
prevented.  Please file a bug report: <http://gcc.gnu.org/bugs.html>

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux