From: Jerry Quinn Date: Mon, 4 Jan 2010 05:48:07 +0000 (+0000) Subject: c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. X-Git-Tag: upstream/12.2.0~95284 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f42621553669746ede1f161f110f78c7df817aa6;p=platform%2Fupstream%2Fgcc.git c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. 2010-01-03 Jerry Quinn * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update description of expression operand. From-SVN: r155604 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c7e8c96..35009dc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-01-03 Jerry Quinn + + * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update + description of expression operand. + 2010-01-03 Andrew Jenner * configure.ac: Add install-html to target_list for Make-hooks. diff --git a/gcc/doc/c-tree.texi b/gcc/doc/c-tree.texi index b53f758..fd64102 100644 --- a/gcc/doc/c-tree.texi +++ b/gcc/doc/c-tree.texi @@ -1802,11 +1802,13 @@ statement can be obtained with the @code{LABEL_EXPR_LABEL} macro. The @code{IDENTIFIER_NODE} giving the name of the label can be obtained from the @code{LABEL_DECL} with @code{DECL_NAME}. -@item RETURN_STMT +@item RETURN_EXPR -Used to represent a @code{return} statement. The @code{RETURN_EXPR} is -the expression returned; it will be @code{NULL_TREE} if the statement -was just +Used to represent a @code{return} statement. Operand 0 represents the +value to return. It should either be the @code{RESULT_DECL} for the +containing function, or a @code{MODIFY_EXPR} or @code{INIT_EXPR} +setting the function's @code{RESULT_DECL}. It will be +@code{NULL_TREE} if the statement was just @smallexample return; @end smallexample