This is the mail archive of the gcc-patches@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]

Re: Loop unrolling


On Thu, Jun 11, 1998 at 11:04:17AM -0700, Mike Stump wrote:
> > Well, how about some plain C macroid code:
> 
> macros are not your friend, don't use them.

Ok, now that's just stupid.  Macros in C are as to inlines in C++,
that is, indespensible.

> Having said that...
> After preprocessing, the ')' and ';' appear adjacent, hence it is a
> empty loop, hence it should not be removed.

Also a nonsense definition:

	for (i = 0; i < 10; ++i) continue;

is by that definition not an empty loop.  But if you distinguish
between that and just `;' you are being gratuitously obtuse.

In summary, there are lots of empty loops that occur naturally
in C, very few programs rely on such things, and for them we
provide a switch.


r~


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