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: preserve parameter attributes during C++ decl smashing


On Tue, Apr 28, 2009 at 3:40 PM, Mark Mitchell <mark@codesourcery.com> wrote:
>
> If we emit a definition of "f", I don't think we should emit it as weak.
> ?AFAIK, it only makes sense for a symbol to be weak when we are emitted
> a reference to it, not a definition of it. ?But, that's not really a
> question about merging attributes; the same question applies to:
>
> ? __attribute__((weak)) void f(int i) { ... }
>

Try

#  readelf -s --wide libstdc++.a| grep WEAK

on Linux. You may find many weak definitions.


-- 
H.J.


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