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]

Re: Loop unrolling


> 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.


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