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]
Other format: [Raw text]

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.
--
	--Per Bothner
per@bothner.com   http://www.bothner.com/per/


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