This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch] Java: Add heap dump and analyze support.
>>>>> "Joel" == Joel Dice <dicej@mailsnare.net> writes:
Joel> This is actually something I've been curious about with respect
Joel> to libgcj. My understanding is that internal linkage is
Joel> deprecated in C++, with anonymous namespaces as the prefered
Joel> mechanism. So I'm a bit suprised when I see new code that uses
Joel> the former. Is this just a matter of being consistent with old
Joel> code, or is there a technical reason?
libgcj is just old school. I suppose if we were doing it over I would
push to put all the compiler API stuff into a namespace (instead of
having it all 'extern "C"') as well.
Joel> Does g++ produce better code when using internal linkage?
Not AFAIK.
Tom