Compiling with gcc-4.0.0 and -fno-exceptions

Paolo Carlini pcarlini@suse.de
Tue Jun 7 18:34:00 GMT 2005


Daniel Kegel wrote:

> Filed as http://gcc.gnu.org/PR21951
> which was immediately marked as a duplicate of
> http://gcc.gnu.org/PR19699, since my bugzilla searching skills
> are obviously not up to par!
>
> I will work around this in my local copy of libstdc++ by adding
>
> +#ifdef __EXCEPTIONS
>        catch(...)
>         {
>           std::_Destroy(__result, __cur);
>           __throw_exception_again;
>         }
> +#endif
>
> to fix the "silliness" in libstdc++, as suggested by Andrew Pinski.

Ok, agreed ;)

By the way, I'm at work on the alternate non-COW base class: should have
something in a few days (I have already a working prototype that I have
only to integrate in the new framework)

Paolo.



More information about the Libstdc++ mailing list