This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
DOC PATCH: Document VA_ARG_EXPR
- From: Gabriel Dos Reis <gdr at nerim dot net>
- To: gcc-patches at gcc dot gnu dot org
- Date: 05 Aug 2002 17:50:28 +0200
- Subject: DOC PATCH: Document VA_ARG_EXPR
I committed this on mainline as documention for the VA_ARG_EXPR nodes.
-- Gaby
2002-08-05 Gabriel Dos Reis <gdr@nerim.net>
* doc/c-tree.texi (Expression trees): Document VA_ARG_EXPR
Index: doc/c-tree.texi
===================================================================
RCS file: /cvs/gcc/egcs/gcc/doc/c-tree.texi,v
retrieving revision 1.32
diff -p -r1.32 c-tree.texi
*** doc/c-tree.texi 25 Apr 2002 09:30:11 -0000 1.32
--- doc/c-tree.texi 5 Aug 2002 15:48:30 -0000
*************** This macro returns the attributes on the
*** 1771,1776 ****
--- 1771,1777 ----
@tindex CLEANUP_POINT_EXPR
@tindex ARRAY_REF
@tindex VTABLE_REF
+ @tindex VA_ARG_EXPR
The internal representation for expressions is for the most part quite
straightforward. However, there are a few facts that one must bear in
*************** survives the balance of code generation.
*** 2311,2315 ****
--- 2312,2322 ----
The first operand is the expression that computes the vtable reference.
The second operand is the @code{VAR_DECL} of the vtable. The third
operand is an @code{INTEGER_CST} of the byte offset into the vtable.
+
+ @item VA_ARG_EXPR
+ This node is used to implement support for the C/C++ variable argument-list
+ mechanism. It represents expressions like @code{va_arg (ap, type)}.
+ Its @code{TREE_TYPE} yields the tree representation for @code{type} and
+ its sole argument yields the representation for @code{ap}.
@end table