This is the mail archive of the gcc-bugs@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]

[Bug pch/10591] Members of anonymous namespaces get name mangled with header name


------- 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


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