------- Comment #5 from jakub at gcc dot gnu dot org  2010-01-08 12:06 -------
Yeah, there are several reasons why DECL_WEAK may be set, but only when it is
because of weak attribute or #pragma weak we want to add it to weak_decls.
For vague linkage, or weakref attribute we don't want to do that.

I wonder whether we couldn't add weak attribute in apply_pragma_weak and just
add to weak_decls decls that have that attribute.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42608

Reply via email to