[cxx-abi-dev] function pointer linkage for __cxa_vec_new, etc.

Jim Dehnert dehnert at transmeta.com
Wed Nov 6 21:26:20 UTC 2002


Mark Mitchell wrote:
> 
>> scott douglass <sdouglass at arm.com> writes:
>>
>>> The declarations of __cxa_vec_new, etc. given in section 3.3.3
>>> (inadvertantly) make the function pointer parameters
>>> (i.e. constructor, destructor, alloc and dealloc) pointers to "C"
>>> functions.  Is suspect that these function pointer parameters want
>>> to be pointers to "C++" functions not pointer to "C" functions.
> 
> There is an assumption in the ABI (one that should probably be stated
> explicitly somewhere) that C and C++ functions have the same calling
> conventions and so forth.

There was also a conscious effort to make sure that all
specified library routines that might be useful to both
C and C++ would have C linkage.

Jim






More information about the cxx-abi-dev mailing list