[PATCH] w32-shared-ptr [WAS: Re: Re [2]: [MinGW-dvlpr] Re: Exception handling in gcc-3]
Thomas Pfaff <[email protected]>
| Newsgroups | gmane.comp.gnu.mingw.patches |
|---|---|
| Message-ID | <[email protected]> |
Thanks for the flowers Danny. Unfortunately i have to admit that the really brilliant part was Adrianos work to encode a ptr in an atom name. Since you already incorporated the unwind stuff i have attached only w32-shared-ptr.[ch]. Thomas 2002-11-22 Thomas Pfaff <[email protected]> * config/i386/w32-shared-ptr.h: New file. Define W32_EH_SHARED structure, global pointer and function prototypes. * config/i386/w32-shared-ptr.c (__w32_sharedptr): Change to public global var. (__w32_sharedptr_unseen_objects): Remove global var. (__w32_sharedptr_seen_objects): Ditto. (__ultobstr): Remove. (__w32_eh_shared_initialize): New static function. (__w32_sharedptr_initialize): Complete rewrite. (__w32_sharedptr_set): New function. (__w32_sharedptr_get): Ditto. (__w32_sharedptr_fixup_after_fork): Ditto. On Wed, 20 Nov 2002, Danny Smith wrote: > I have answered my own question about main. Thanks very much Thomas, > this is really much cleaner than my clumsy efforts and it avoids all the > problems with runtime compatability. > > I have made a few minor changes to crtstuff so that it doesn't drag in > unwind-dw2-fde.o when __USING_SJLJ_EXCEPTIONS__, > > It may be simpler to do the #include "w32-shared-ptr.h" from target > header cygming.h. We will probably need to neutralize the "w32" > business with new TARGET_SHARED_PTR macros that could also be defined in > w32-shared-ptr.h or in cygming.h. Once we do that it should be > submitted as patch, for 3.4 when it opens or BIB. > > Thomas, could you post a changelog for your work.? > > Chris, have you had a chance to look at this? I've only done testing > with 3.3, but I foresee no problem with getting this working with 3.2.1. > If mingw is going to release binaries for 3.2.1, I think it should be > with SJLJ. > > Thanks again Thomas > > Jerry and other who might have tried my attempt, please throw it in the > rubbish. > > Danny >
w32-shared-ptr.tar.gz
(application/x-gzip, 2.1 KB) - not displayed