aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2001-01-02 18:15:18 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2001-01-02 18:15:18 +0000
commit330aa9a385a89f4d46225e10522c3b2f251305e5 (patch)
tree04976a909b1ea2e838e9a78e907260001947357d
parenteeebb824377d936450adefc8ea868e23ae35b9ef (diff)
downloadgcc-330aa9a385a89f4d46225e10522c3b2f251305e5.zip
gcc-330aa9a385a89f4d46225e10522c3b2f251305e5.tar.gz
gcc-330aa9a385a89f4d46225e10522c3b2f251305e5.tar.bz2
* tree.def (TRUTH_NOT_EXPR): Improve documentation.
From-SVN: r38631
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/tree.def14
2 files changed, 13 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d379f7a..884a4be 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2001-01-02 Mark Mitchell <mark@codesourcery.com>
+
+ * tree.def (TRUTH_NOT_EXPR): Improve documentation.
+
Tue Jan 2 10:47:38 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.
* expr.c (store_constructor_field): Update ALIGN before calling
diff --git a/gcc/tree.def b/gcc/tree.def
index c61a5ff..23fda18 100644
--- a/gcc/tree.def
+++ b/gcc/tree.def
@@ -620,11 +620,15 @@ DEFTREECODE (BIT_AND_EXPR, "bit_and_expr", '2', 2)
DEFTREECODE (BIT_ANDTC_EXPR, "bit_andtc_expr", '2', 2)
DEFTREECODE (BIT_NOT_EXPR, "bit_not_expr", '1', 1)
-/* Combination of boolean values or of integers considered only
- as zero or nonzero. ANDIF and ORIF allow the second operand
- not to be computed if the value of the expression is determined
- from the first operand. AND, OR, and XOR always compute the second
- operand whether its value is needed or not (for side effects). */
+/* ANDIF and ORIF allow the second operand not to be computed if the
+ value of the expression is determined from the first operand. AND,
+ OR, and XOR always compute the second operand whether its value is
+ needed or not (for side effects). The operand may have
+ BOOLEAN_TYPE or INTEGER_TYPE. In either case, the argument will be
+ either zero or one. For example, a TRUTH_NOT_EXPR will never have
+ a INTEGER_TYPE VAR_DECL as its argument; instead, a NE_EXPR will be
+ used to compare the VAR_DECL to zero, thereby obtaining a node with
+ value zero or one. */
DEFTREECODE (TRUTH_ANDIF_EXPR, "truth_andif_expr", 'e', 2)
DEFTREECODE (TRUTH_ORIF_EXPR, "truth_orif_expr", 'e', 2)
DEFTREECODE (TRUTH_AND_EXPR, "truth_and_expr", 'e', 2)