This is the mail archive of the
mailing list for the GCC project.
Re: Inlining function into itself (via transitivity
- From: Geoff Keating <geoffk at geoffk dot org>
- To: Josef Zlomek <zlomj9am at artax dot karlin dot mff dot cuni dot cz>
- Cc: gcc at gcc dot gnu dot org
- Date: 21 Jan 2004 08:16:43 -0800
- Subject: Re: Inlining function into itself (via transitivity
- References: <20040121141142.GD13065@artax.karlin.mff.cuni.cz>
Josef Zlomek <email@example.com> writes:
> 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.
You can even inline a routine directly into itself, like:
a <-- a
although this is very often pointless.
- Geoffrey Keating <firstname.lastname@example.org>