This is the mail archive of the
mailing list for the GCC project.
Re: Language-independent functions-as-trees representation
Jason Merrill wrote:
The Java frontend uses a LOOP_EXPR (infinite loop) with an EXIT_EXPR for
the loop condition, either at the beginning or end of the statement chain
in LOOP_EXPR_BODY, for while and do-while loops respectively.
Note that EXIT_EXPR is redundant - we could just use an EXIT_BLOCK_EXPR.
I don't feel strongly either way. Or we could combine the two: Add an
optional third operand to EXIT_BLOCK_EXPR which is a conditional.
Either is equivalent to a COND_EXPR that contains an EXIT_BLOCK_EXPR.