aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/tree.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 69c0636..9d5822a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
2001-02-11 Richard Henderson <rth@redhat.com>
+ * tree.c (build1): Check for null operand in last change.
+
+2001-02-11 Richard Henderson <rth@redhat.com>
+
* fold-const.c (split_tree): Don't assume a constant isn't splittable.
(fold): Don't assume a constant isn't foldable.
* tree.c (build): Set TREE_CONSTANT for an expression with no
diff --git a/gcc/tree.c b/gcc/tree.c
index b45dc19..4ef1441 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -2482,7 +2482,7 @@ build1 (code, type, node)
break;
default:
- if (TREE_CODE_CLASS (code) == '1' && TREE_CONSTANT (node))
+ if (TREE_CODE_CLASS (code) == '1' && node && TREE_CONSTANT (node))
TREE_CONSTANT (t) = 1;
break;
}