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


Richard Henderson <rth@cygnus.com> writes:

> Also a nonsense definition:

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

Someone once has suggested a special syntax to denote an empty loop:

for (i=0; i<10; ++i) {{;;}}

The {{;;}} sequence would be recognized by gcc as a special token,
that expanded to a special RTL node that marked the enclosing loop as
non-removable.

Alternatively, we could use this ``nonsense'' definition you have
presented to denote non-removable empty loops.

-- 
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil



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