This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: Stricter semantics for renaming pragmas
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Ian Lance Taylor <ian at wasabisystems dot com>
- Cc: Zack Weinberg <zack at codesourcery dot com>, gcc at gcc dot gnu dot org
- Date: 19 May 2004 19:40:41 +0200
- Subject: Re: RFC: Stricter semantics for renaming pragmas
- Organization: Integrable Solutions
- References: <87lljpnn3j.fsf@codesourcery.com><m3pt90pf5p.fsf@gossamer.airs.com>
Ian Lance Taylor <ian@wasabisystems.com> writes:
[...]
| > 5) In C++:
| >
| > 5a) Applying __asm__("name") to a declaration silently makes it extern "C".
|
| Sounds right--that doesn't change the calling convention in any way,
| right? It just changes the name.
I don't really like this part. Changing a "mangled name" should be
separated from declaring something extern "C", and even more so, that
declaration should not happen implicitly. "extern "C" in C++ is not
just about changing a mangled name, it may affect types too.
-- Gaby