This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: __attribute__((cleanup(function)) versus try/finally
On Thu, 2003-05-15 at 09:57, Jason Merrill wrote:
> On 13 May 2003 14:06:50 -0700, Mark Mitchell <mark@codesourcery.com> wrote:
>
> > I'd also still prefer to see a solution that was maximally circumspect;
> > rather than approach this from a "what is the most elegant language
> > design?" point of view, I'd prefer a "what is the absolute minimal
> > feature needed to implement this POSIX requirement?" point of view.
> >
> > That leads me towards __builtin_pthread_cleanup_push.
>
> I think this is the core of the disagreement, and it seems like a
> philosophical difference which can't really be addressed with technical
> arguments. Perhaps this is a matter for the steering committee, after all.
>
> Basically, the choice is between a general language extension and a
> specific compiler hook.
I agree.
I think that are some semi-technical issues involved, but we have
resolved many of them, and the core policy decision seems to be more
important than the remaining ones.
--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com