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


Ian Lance Taylor wrote:
> Mark Mitchell <mark@codesourcery.com> writes:
> 
>> 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.
> 
> That turns out not to be the case.  Weak definitions are meaningful and
> widely used for static links.  For example, glibc provides a weak
> definition of __pthread_initialize_minimal which is used unless a strong
> definition is linked in from libpthread.a.

I stand corrected, then.

Thanks,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


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