diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-02-11 19:04:31 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-02-11 19:04:31 +0000 |
commit | 81fae3ff4b1127d8ad986fee8be63c9a1e819ad7 (patch) | |
tree | 07df2b6c6082ca3eb9f279bb333847f247f1a7ab | |
parent | ab6ff4e7311523f449eb9439605dececf7b6032b (diff) | |
download | gcc-81fae3ff4b1127d8ad986fee8be63c9a1e819ad7.tar.gz |
* tree.c (build1): Check for null operand in last change.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39587 138bc75d-0d04-0410-961f-82ee72b054a4
-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 69c063654e4..9d5822a2bf4 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 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; } |