RFC: Stricter semantics for renaming pragmas

Gabriel Dos Reis gdr@integrable-solutions.net
Wed May 19 18:57:00 GMT 2004


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



More information about the Gcc mailing list