[Bug rtl-optimization/38534] gcc 4.2.1 and above: No need to save called-saved registers in 'noreturn' function
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Feb 1 12:43:01 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38534
--- Comment #26 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Lukas Grätz from comment #25)
> (In reply to Jakub Jelinek from comment #19)
> > (In reply to H.J. Lu from comment #18)
> > > (In reply to Jakub Jelinek from comment #17)
> > > > E.g. shouldn't it at least be disabled for -O0 and -Og and shouldn't we
> > >
> > > We can disable this for -O0 and -Og.
> >
> > I think we should go for that.
> >
>
> This is independent from debugging, but I thought the patch was only meant
> for -O3. Have you thought about the following situation:
Throwing an exception through -fno-exceptions code is UB, don't do that.
More information about the Gcc-bugs
mailing list