PATCH to doc/c-tree.texi
Gabriel Dos Reis
gdr@integrable-solutions.net
Mon Dec 5 22:24:00 GMT 2005
The old extension of named-return-variable was gone a long time ago.
This patch removes its remainings from the doc.
Applied to mainline.
-- Gaby
2005-12-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
* doc/c-tree.texi (Function Bodies): Remove description of
RETURN_INIT.
*** doc/c-tree.texi (revision 108078)
--- doc/c-tree.texi (local)
*************** This predicate holds if the function an
*** 1477,1483 ****
@findex IF_COND
@findex THEN_CLAUSE
@findex ELSE_CLAUSE
- @tindex RETURN_INIT
@tindex RETURN_STMT
@findex RETURN_EXPR
@tindex SUBOBJECT
--- 1477,1482 ----
*************** statement can be obtained with the @code
*** 1720,1741 ****
@code{IDENTIFIER_NODE} giving the name of the label can be obtained from
the @code{LABEL_DECL} with @code{DECL_NAME}.
- @item RETURN_INIT
-
- If the function uses the G++ ``named return value'' extension, meaning
- that the function has been defined like:
- @smallexample
- S f(int) return s @{@dots{}@}
- @end smallexample
- then there will be a @code{RETURN_INIT}. There is never a named
- returned value for a constructor. The first argument to the
- @code{RETURN_INIT} is the name of the object returned; the second
- argument is the initializer for the object. The object is initialized
- when the @code{RETURN_INIT} is encountered. The object referred to is
- the actual object returned; this extension is a manual way of doing the
- ``return-value optimization''. Therefore, the object must actually be
- constructed in the place where the object will be returned.
-
@item RETURN_STMT
Used to represent a @code{return} statement. The @code{RETURN_EXPR} is
--- 1719,1724 ----
More information about the Gcc-patches
mailing list