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


> To: Richard Henderson <rth@cygnus.com>
> Cc: Mike Stump <mrs@wrs.com>, amylaar@cygnus.co.uk, egcs-patches@cygnus.com,
>         egcs@cygnus.com, pfeifer@dbai.tuwien.ac.at
> From: Alexandre Oliva <oliva@dcc.unicamp.br>
> Date: 12 Jun 1998 17:16:24 -0300
> X-Emacs: 20.4 "Emerald" XEmacs  Lucid without mule

> Richard Henderson <rth@cygnus.com> writes:

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

This is wrong.  It was that we wanted the simple form to be
non-removable.  If we decide to change this, then we will just to to
remove any and all special handling, and just require the use
volatile...  not do anything like the above.

Now, if you want it to be removable, then we can make the above be
removable, and make only the ``;'' and ``{}'' forms non-removable, or
maybe just the ``;'' form.


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