lists.zerezo.com



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

***BOGO*** Re: [Mingw-users] MinGW gcc 3.x, 4.x and exceptions



Brian Dessent wrote:
> In gcc 3.4 this was handled by using a very ugly hack involving Win32
> Atoms in order to establish a global state between all the disparate
> unwinders; see w32-sharedptr.{c,h}.  This hack was never accepted
> upstream, and the internals of gcc changed too much in the 4.x
> development phase for this method to work with gcc 4.x.
>   

FYI: This problem is important to me also, and I did a basic 
forward-port of this hack to 4.3.0. In preliminary testing, the SJLJ 
version seems to work fine. I'm not familiar with what corner cases, if 
any, exist to be tested, but have gotten correct behavior in various 
inter-module exception throwing scenarios including multiple threads 
throwing "at the same time". DW2 unwinding in 4.3.0 does not yet work 
with this hack, and I'm looking into it.

To me it is far more desirable to include the overhead of libgcc and 
libstdc++ in every module than to have to deal with the distribution and 
versioning issues inherent in using libgcc and libstdc++ as DLLs; this 
is because by the time a program comes to rely on external modules, the 
additional code size of these two libraries is negligible as compared to 
the entire program size. Additionally, I do not have enough assurance of 
being in compliance with the libgcc and libstdc++ licenses if I were to 
distribute these DLLs commercially.

I recognize that the benefits of shared libgcc and libstdc++ might 
outweigh the downsides for other people, however, so my preference would 
be, if at all possible, to make both methods available and give 
MinGW/GCC users a choice.

-John E.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users