aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/doc/c-tree.texi7
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1170712..88cfb93 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2002-08-05 Gabriel Dos Reis <gdr@nerim.net>
+
+ * doc/c-tree.texi (Expression trees): Document VA_ARG_EXPR
+
2002-08-04 Chris Demetriou <cgd@broadcom.com>
* doc/invoke.texi: Remove duplicated paragraph describing
diff --git a/gcc/doc/c-tree.texi b/gcc/doc/c-tree.texi
index 0e821e5..dc0cb57 100644
--- a/gcc/doc/c-tree.texi
+++ b/gcc/doc/c-tree.texi
@@ -1771,6 +1771,7 @@ This macro returns the attributes on the type @var{type}.
@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
@@ -2312,4 +2313,10 @@ 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