compiler tweak offered

Tom Tromey tromey@redhat.com
Fri Aug 30 12:54:00 GMT 2002


>>>>> "Zack" == Zack Weinberg <zack@codesourcery.com> writes:

Zack> It would be better to use real labels:
Zack>   outer: for (elt=root; elt; elt=elt->link)
Zack> 	 { while (...)

FWIW, this is what Java does.  It seems mildly useful.  There are only
3 instances of it in all of libgcj.  Though libgcj may not be the most
representative code, being mostly written by people with a long C
background.  I typically forget that this construct is even available.

To my mind it would be preferable to keep the Java syntax (and
semantics) if this were to be imported into C.

Tom



More information about the Gcc-patches mailing list