public inbox for ecos-maintainers@sourceware.org
 help / color / mirror / Atom feed
* [APPROVE] __cxa_pure_virtual()
@ 2003-03-27 17:56 Bart Veer
  2003-03-27 18:07 ` Jonathan Larmour
  0 siblings, 1 reply; 5+ messages in thread
From: Bart Veer @ 2003-03-27 17:56 UTC (permalink / raw)
  To: ecos-maintainers

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-03-27 19:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-27 17:56 [APPROVE] __cxa_pure_virtual() Bart Veer
2003-03-27 18:07 ` Jonathan Larmour
2003-03-27 18:32   ` John Dallaway
2003-03-27 18:57   ` Bart Veer
2003-03-27 19:58     ` Jonathan Larmour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).