This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Merge from LTO: eh_personality changes
On Thu, 10 Sep 2009, Richard Guenther wrote:
> On Thu, 10 Sep 2009, Richard Henderson wrote:
>
> > > *** gcc/fortran/f95-lang.c.orig 2009-09-10 13:40:45.000000000 +0200
> > > --- gcc/fortran/f95-lang.c 2009-09-10 14:18:42.000000000 +0200
> > > *************** gfc_maybe_initialize_eh (void)
> > > *** 1155,1164 ****
> > > return;
> > >
> > > gfc_eh_initialized_p = true;
> > > ! eh_personality_libfunc
> > > ! = init_one_libfunc (USING_SJLJ_EXCEPTIONS
> > > ! ? "__gcc_personality_sj0"
> > > ! : "__gcc_personality_v0");
> > > default_init_unwind_resume_libfunc ();
> > > using_eh_for_cleanups ();
> > > }
> > > --- 1155,1164 ----
> > > return;
> > >
> > > gfc_eh_initialized_p = true;
> > > ! eh_personality_decl
> > > ! = build_personality_function (USING_SJLJ_EXCEPTIONS
> > > ! ? "__gcc_personality_sj0"
> > > ! : "__gcc_personality_v0");
> >
> > Surely Fortran can simply avoid setting this up at all?
>
> Good question - I'll check.
No. It needs it for OMP and the MUST_NOT_THROW regions that generates.
Richard.