diff options
author | Richard Henderson <rth@redhat.com> | 2001-02-11 11:04:31 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2001-02-11 11:04:31 -0800 |
commit | 258835c78bfbb74c7cf9f0cf98e5939dec3fdb26 (patch) | |
tree | 07df2b6c6082ca3eb9f279bb333847f247f1a7ab | |
parent | 48dbafe4a98239d93121fdc79e0af05b95b3f682 (diff) | |
download | gcc-258835c78bfbb74c7cf9f0cf98e5939dec3fdb26.zip gcc-258835c78bfbb74c7cf9f0cf98e5939dec3fdb26.tar.gz gcc-258835c78bfbb74c7cf9f0cf98e5939dec3fdb26.tar.bz2 |
* tree.c (build1): Check for null operand in last change.
From-SVN: r39587
-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; } |