[tree-ssa] Computed gotos
Paul Brook
paul@nowt.org
Tue Jun 17 19:37:00 GMT 2003
On Tuesday 17 June 2003 3:21 am, law@redhat.com wrote:
> It makes sense :-) I'd expect it to "just work" if you pass a copy of
> the initializer down to the gimplifier. See c-simplify.c
> gimplify_decl_stmt:
>
> /* We must still examine initializers for static variables
> as they may contain a label address. However, we must
> not make any changes to the node or the queues. So we make a copy of the
> node before calling the gimplifier and we use throw-away queues. */
Ah, that'd explain why it wasn't working. We (g95) generate GENERIC trees
directly, adding variable decls into the BIND_EXPRs. We don't have a
DECL_STMT.
I'd guess that gimplify_bind_expr needs to be tought to gimplify the
initializers of any variables it contains.
Paul
More information about the Gcc
mailing list