diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 69c063654e4..9d5822a2bf4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2001-02-11 Richard Henderson + + * tree.c (build1): Check for null operand in last change. + 2001-02-11 Richard Henderson * fold-const.c (split_tree): Don't assume a constant isn't splittable. diff --git a/gcc/tree.c b/gcc/tree.c index b45dc19a813..4ef1441041b 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; }