This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Compiling with gcc-4.0.0 and -fno-exceptions
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Daniel Kegel <dank at kegel dot com>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Tue, 07 Jun 2005 20:35:00 +0200
- Subject: Re: Compiling with gcc-4.0.0 and -fno-exceptions
- References: <42A5E475.9020508@kegel.com>
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.