This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++ name mangling for local entities
- From: Ian Lance Taylor <iant at google dot com>
- To: gkeating at apple dot com (Geoffrey Keating)
- Cc: cxx-abi-dev at codesourcery dot com, gcc at gcc dot gnu dot org
- Date: 19 Oct 2006 15:04:15 -0700
- Subject: Re: C++ name mangling for local entities
- References: <20061019215504.6F0284E34C0D@geoffk5.apple.com>
gkeating@apple.com (Geoffrey Keating) writes:
> For GCC, I've found it necessary to have a way to name local (that is,
> namespace-scope 'static') variables and functions which allows more
> than one such symbol to be present and have distinct mangled names.
Out of curiousity: why start the name with "_Z" at all? If you don't
start it with "_Z", then you don't have to worry about the standard
name mangling.
Ian