summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>1999-10-05 23:40:00 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>1999-10-05 23:40:00 +0000
commit71b9a63beda5abb29b39cff90822f57269ecef7b (patch)
treed2fdf1e2e539c037b8793795dbb49e8f9514ce04
parent4b3830350f297136078fd8227015a0e5fe30ae85 (diff)
downloadppe42-gcc-71b9a63beda5abb29b39cff90822f57269ecef7b.tar.gz
ppe42-gcc-71b9a63beda5abb29b39cff90822f57269ecef7b.zip
* ir.texi: Document LOOP_EXPR and EXIT_EXPR.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29834 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/cp/ChangeLog2
-rw-r--r--gcc/cp/ir.texi13
2 files changed, 15 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 6caaf0aabbb..4eccf5e39a7 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,5 +1,7 @@
1999-10-05 Mark Mitchell <mark@codesourcery.com>
+ * ir.texi: Document LOOP_EXPR and EXIT_EXPR.
+
* method.c (synthesize_method): Call setup_vtbl_ptr for destructors.
* decl.c (start_function): Set current_in_charge_parm for
diff --git a/gcc/cp/ir.texi b/gcc/cp/ir.texi
index 6e1623ec159..bad2aca7deb 100644
--- a/gcc/cp/ir.texi
+++ b/gcc/cp/ir.texi
@@ -1466,6 +1466,8 @@ The @code{WHILE_BODY} is the body of the loop.
@tindex CALL_EXPR
@tindex CONSTRUCTOR
@tindex STMT_EXPR
+@tindex LOOP_EXPR
+@tindex EXIT_EXPR
@tindex ARRAY_REF
The internal representation for expressions is for the most part quite
@@ -1817,6 +1819,17 @@ contained in the expression; this is always a @code{COMPOUND_STMT}. The
value of the expression is the value of the last sub-statement in the
@code{COMPOUND_STMT}.
+@item LOOP_EXPR
+These nodes represent ``infinite'' loops. The @code{LOOP_EXPR_BODY}
+represents the body of the loop. It should be executed forever, unless
+an @code{EXIT_EXPR} is encountered.
+
+@item EXIT_EXPR
+These nodes represent conditional exits from the nearest enclosing
+@code{LOOP_EXPR}. The single operand is the condition; if it is
+non-zero, then the loop should be exited. An @code{EXIT_EXPR} will only
+appear within a @code{LOOP_EXPR}.
+
@item CONSTRUCTOR
These nodes represent the brace-enclosed initializers for a structure or
array. The first operand is reserved for use by the back-end. The
OpenPOWER on IntegriCloud