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: committed: Ada updates


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~


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