This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug pch/10591] Members of anonymous namespaces get name mangled with header name
- From: "kevina at gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Feb 2004 19:14:15 -0000
- Subject: [Bug pch/10591] Members of anonymous namespaces get name mangled with header name
- References: <20030501232600.10591.bangerth@dealii.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From kevina at gnu dot org 2004-02-03 19:14 -------
A similar issue was brought up in the thread "Anonymous Namespaces" found
here http://gcc.gnu.org/ml/gcc/2004-01/msg02323.html and
http://gcc.gnu.org/ml/gcc/2004-02/msg00001.html .
The new unit-at-a-time optimizer is unable to optimize functions inside
anonymous namespaces namespace becuase they technically have external linkage.
The solution seams to be "to make the C++ front end not use (TREE_PUBLIC(x) ==
false) to mean a symbol with internal linkage. Instead, a language-specific
decl flag ought to be allocated to mean exactly 'internal linkage',
and all local symbols ought to get TREE_PUBLIC false." according to Zack Weinberg.
I hope this will get fixed in time for Gcc 3.4. I know nothing of Gcc internals
so I can't do it myself so I am hoping someone else will.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |kevina at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10591