This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Eliminating Assembler Already Defined Messages for Java Library
- To: apbianco at cygnus dot com
- Subject: Re: Eliminating Assembler Already Defined Messages for Java Library
- From: Per Bothner <per at bothner dot com>
- Date: 13 Mar 2001 17:45:03 -0800
- Cc: gcc-patches at gcc dot gnu dot org, java at gcc dot gnu dot org
- References: <10103122246.AA20045@vlsi1.ultra.nyu.edu><m21ys2xzfg.fsf@kelso.bothner.com><20010312190326N.mitchell@codesourcery.com><m2ofv5w8ad.fsf@kelso.bothner.com><15022.51187.126170.858305@deliverance.cygnus.com>
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/