This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]