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

Re: RFC: Stricter semantics for renaming pragmas


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


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