gcc-patches@gcc.gnu.org
[Top] [All Lists]

Re: [c++] Avoid C++ FE creating !public weak variables

Subject: Re: [c++] Avoid C++ FE creating !public weak variables
From: Jan Hubicka
Date: Thu, 12 Nov 2009 20:38:43 +0100
Thanks!

With some further sanity checking I noticed that with -fno-weak we also tend to
create DECL_COMDAT !TREE_PUBLIC functions.  This is caused by comdat_linkage 
function
that simply drops to this path when no weak support is there.
Is this expected behaviour or shall we also clear COMDAT flag here?
Some of cgraph code assumes that COMDAT decls are public, I can fix it on that 
side too.

Honza

<Prev in Thread] Current Thread [Next in Thread>