Eliminating Assembler Already Defined Messages for Java Library
Per Bothner
per@bothner.com
Tue Mar 13 17:33:00 GMT 2001
Alexandre Petit-Bianco <apbianco@cygnus.com> writes:
> Per Bothner writes:
>> > It may be possible to re-enable the error checks if we get rid of
> > the BLOCK_SUBBLOCKS/BLOCK_EXPR_BODY pun. Using BIND_EXPR instead of
> > BLOCK seems the best way to do that.
>> What do you mean? The way we're keeping track of locals by creating
> blocks?
Yes. The problem is that the block subblocks fields is used for
BLOCK_EXPR_BODY by the Java front-end, and used for BLOCK_SUBBLOCKS
by the back-end. This seems a bit kludgy, but it is difficult to
deal with it given that all of the fields of a BLOCK are used. We
can probably use TREE_TYPE, with some care. But a cleaner solution
seems to be to use BIND_EXPR to encapsulate decls+body: I.e. we
replace BLOCK_EXPR_DECLS (block) by TREE_OPERAND (bind, 0),
and BLOCK_EXPR_BODY (block) by TREE_OPERAND (bind, 1). However,
this is probably more work that it is worth.
--
--Per Bothner
per@bothner.com http://www.bothner.com/~per/
More information about the Java
mailing list