This is the mail archive of the gcc-patches@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: [tree-ssa] Gimplifying Java


On Tue, 1 Jul 2003 00:00:00 -0400 (EDT), Jeff Sturm <jsturm@one-point.com> wrote:

> 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.

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).

The gimplifier should handle that by wrapping it in a MODIFY_EXPR via
voidify_wrapper_expr.

Jason


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