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: Fix for 10591, make variables in anonymous namespace static


On Thu, Dec 04, 2003 at 05:49:38PM -0500, Jason Merrill wrote:
> I'm dubious.  The whole point of the anonymous namespace is that
> declarations have external linkage, so that their addresses can be used as
> template arguments.  This may not be important now, but it will be once we
> implement export.

If we ever implement export, then we'll know which variables are so
referenced by templates, and can export only those.

In the meantime, exporting these names just pollutes the object file
symbol table and causes cgraph to not optimize them as well as it
could otherwise.


r~


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