[tree-ssa] Gimplifying Java

Jeff Sturm jsturm@one-point.com
Tue Jul 1 03:59:00 GMT 2003


Some old mail...

On 13 Jun 2003, Diego Novillo wrote:
> Does the java gimplifier generate a GIMPLE statement that is nothing but
> a VAR_DECL?  That is not good (and we should probably have a check to
> ICE early)

Not quite... but gcj did build GENERIC statments with nothing but a
VAR_DECL.  Such statements were stripped by the gimplifier, having no side
effects.  So the outcome was legal GIMPLE, but not what was intended.

Perhaps the gimplifier could do better when dealing with VAR_DECL
statements that are really expressions (i.e. nested in a non-void
BIND_EXPR that is also used as the RHS of an assignment).

Jeff



More information about the Gcc-patches mailing list