[patch-rfc] N2179: Exception Propagation in C++

Paolo Carlini paolo.carlini@oracle.com
Wed Aug 13 21:08:00 GMT 2008


Hi again,

> Sebastian, please investigate, I'm reverting the patch. It
> looks like the patch assumes the availability of the atomic
> builtins also on i386 (the default x86 subtarget, unfortunately)

In fact, I should have noticed that you have naked __sync_sub_and_fetch and __sync_add_and_fetch in your code, sigh, my fault. This is not going to work. If you can live with a smaller referenceCount, an int, you can probably change the patch minimally to just use __exchange_and_add and __atomic_add (check many uses in the library proper: string, locale). If you *really* need a size_t for conformance the issue is going to be much more difficult, because of the i386 default, I remind you.

Paolo. 



More information about the Gcc-patches mailing list