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: [C++ PATCH] Fix finish_static_data_member_decl (PR c++/28370)


Mark Mitchell wrote:
-  if (! processing_template_decl && TREE_PUBLIC (decl))
+  if (! processing_template_decl)
     note_vague_linkage_var (decl);

This doesn't make sense, as things without TREE_PUBLIC don't have vague linkage.

Sure they can. We've previously handled vague linkage for targets without weak symbol support by clearing TREE_PUBLIC.


> However, note_vague_linkage_var only has one caller, and all
it does is put things on the pending statics list, so just inline it
here.  OK with that change.

But I'm fine with this change.


Jason


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