This is the mail archive of the ecos-maintainers@sources.redhat.com mailing list for the eCos 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]

[APPROVE] __cxa_pure_virtual()


I have just committed a patch to CYGPKG_INFRA to provide an
implementation of __cxa_pure_virtual() that is appropriate for eCos,
overriding the one in libsupc++. 

  http://sources.redhat.com/ml/ecos-patches/2003-03/msg00209.html

Without this patch any C++ code that uses pure virtual functions will
fail to link. The patch adds a single new function
__cxa_pure_virtual() which will never get called in normal operation,
but which does get referenced by the compiled C++ code. The only time
this function may get called is if the application calls a virtual
function while the object is still being created, which gives
undefined behaviour. Hence the risk is small.

Bart


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