[RFC] Cygwin libstdc++ plan (operator new/delete replacement)

Dave Korn dave.korn.cygwin@googlemail.com
Fri Oct 2 05:16:00 GMT 2009


Christopher Faylor wrote:

> Why isn't this handled by change #1.362 to dcrt0.cc?  

  It is!  I was using -61 instead of the snapshot.

> That should always
> set cxx_malloc unconditionally (which, now that I think of it, might not
> always be what you want either).

  Yeh, I'd like to replace these hacks with something that copies back the
updated entries if it finds the malloc stuct pointer has been redirected, and
then resets the pointer if it has been either nulled or redirected.  Also
remove the hack in cygwin_external; when the pointer is wrong, we should
correct it as soon as we practically can, when the code in the crt returns
from _cygwin_crt0_common to cygwin_attach_dll or cygwin_crt0 and those hand
off to dll_dllcrt0/_dll_crt0 respectively.

  (Right now however head isn't working for me at all, for what I think must
be unrelated reasons, given that the snapshot works but clean head doesn't.
I've been up all night though so I could just be doing something wrong because
I'm tired; I'll have another go after a few hours sleep.)

    cheers,
      DaveK



More information about the Cygwin-developers mailing list