> > FWIW, elsewhere in gcc we use "continue;" for empty loop bodies.
>
> I think I've never run into this idiom in about a decade of work on GCC. :-)
Nor have I. I'm used to seeing just a ";" on its own line.
> FWIW, elsewhere in gcc we use "continue;" for empty loop bodies.
I think I've never run into this idiom in about a decade of work on GCC. :-)
Sometimes there is a comment after the ; on the line, but this is somewhat
redundant IMO. Maybe we should simply ban loops with emtpy bodies.
--
Eric
On 07/12/2011 01:07 PM, Eric Botcazou wrote:
> - while (*constraint++ != ',');
> + while (*constraint++ != ',')
> + ;
FWIW, elsewhere in gcc we use "continue;" for empty loop bodies.
r~
G++ kindly suggested making the following changes during a build so here we go.
Bootstrapped/regtested on x86_64-suse-linux, applied as obvious.
2011-07-12 Eric Botcazou
* cse.c (insert_with_costs): Put semi-colon after empty loop body
on the next line.
* emit-rtl.c (