This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Loop unrolling
- To: amylaar at cygnus dot co dot uk, branko dot cibej at hermes dot si
- Subject: Re: Loop unrolling
- From: mrs at wrs dot com (Mike Stump)
- Date: Fri, 12 Jun 1998 18:29:13 -0700
- Cc: egcs at cygnus dot com, pfeifer at dbai dot tuwien dot ac dot at
> From: Joern Rennecke <amylaar@cygnus.co.uk>
> To: branko.cibej@hermes.si (Branko Cibej)
> Date: Fri, 12 Jun 1998 17:42:58 +0100 (BST)
> Cc: mrs@wrs.com, egcs@cygnus.com, pfeifer@dbai.tuwien.ac.at
> Apropos... is the following an empty loop?
I feel these cases were already covered in my prior definition...
> for (i = 0; i <= 9; i = foo (i));
Yes.
> Or this one?
> for (i = 0; i <= bar (); i++);
Yes.
> Or that one?
> for (i = 0; baz (i, 9); i++);
Yes.
The token sequence `);' is the definition of empty (only for while and
for statements). For a do while statement, as some cleaver person
pointed out, the sequemce would be do {} while or do ; while.