This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: committed: Ada updates
- From: Richard Henderson <rth at redhat dot com>
- To: Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>
- Cc: dnovillo at redhat dot com, gcc-patches at gcc dot gnu dot org
- Date: Thu, 8 Apr 2004 10:54:52 -0700
- Subject: Re: committed: Ada updates
- References: <10404081515.AA18369@vlsi1.ultra.nyu.edu>
On Thu, Apr 08, 2004 at 11:15:12AM -0400, Richard Kenner wrote:
> If I've done my documentation job right, knowlege of Ada shouldn't be
> needed to do the job of converting it to tree-ssa. To get some idea
> of what's involved, look at the *_STMT nodes in ada/ada-tree.def and the
> function gnat_expand_stmt in ada/trans.c.
DEFTREECODE (TRANSFORM_EXPR, "transform_expr", 'e', 0)
No idea what this does. Cruft?
DEFTREECODE (ALLOCATE_EXPR, "allocate_expr", '2', 2)
We use __builtin_stack_alloc in the C front end for
dynamic allocations. It doesn't take an alignment
argument at this time, but that could be changed.
DEFTREECODE (NULL_EXPR, "null_expr", 'e', 1)
I expect this doesn't need to exist, but I can't
quite tell what it's used for.
DEFTREECODE (USE_EXPR, "use_expr", 'e', 1)
Why?
DEFTREECODE (EXPR_STMT, "expr_stmt", 's', 1)
DEFTREECODE (BLOCK_STMT, "block_stmt", 's', 1)
DEFTREECODE (IF_STMT, "if_stmt", 's', 4)
DEFTREECODE (GOTO_STMT, "goto_stmt", 's', 1)
DEFTREECODE (LABEL_STMT, "label_stmt", 's', 1)
DEFTREECODE (RETURN_STMT, "return_stmt", 's', 1)
These all have direct GENERIC replacements.
r~