diff options
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/tree.c | 2 |
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 @@ -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; } |