This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Inlining function into itself (via transitivity
> > is it correct to inline function into itself (via transitivity), i.e.
> >
> > a <-- b <-- c <-- a
> >
> > where x <-- y means that y is inlined into x.
> >
> > Thanks for answer.
>
> Yes, this can be done without changing the meaning of the program. It
> is often pointless, though.
I have a testcase which GCC (mainline) gets ICE (because of jump to undefined
label) on.
First it inlines a <-- b, then b <-- a.
I have probably found the problem, I'm going to make a patch.
Josef