summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlquinn <jlquinn@138bc75d-0d04-0410-961f-82ee72b054a4>2010-01-04 05:48:07 +0000
committerjlquinn <jlquinn@138bc75d-0d04-0410-961f-82ee72b054a4>2010-01-04 05:48:07 +0000
commit7c772cea972923dfd057555569aa308bdabac1b0 (patch)
tree304dd864781d27044b4168cf5142c5f827ac74a4
parent9c0bda5a1843d36158cfeb7dce6224f0ce74efdc (diff)
downloadgcc-7c772cea972923dfd057555569aa308bdabac1b0.tar.gz
2010-01-03 Jerry Quinn <jlquinn@optonline.net>
* doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update description of expression operand. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155604 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/doc/c-tree.texi10
2 files changed, 11 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c7e8c96348f..35009dc07bb 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2010-01-03 Jerry Quinn <jlquinn@optonline.net>
+
+ * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
+ description of expression operand.
+
2010-01-03 Andrew Jenner <andrew@codesourcery.com>
* 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 b53f758828b..fd641025d0a 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