diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-04-29 21:10:59 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-04-29 21:10:59 +0000 |
commit | 34787dd1993c8b8f3a38728647570cc0289db78b (patch) | |
tree | 1f3ead9bc7eb9080a9fee6fe19972527236c97c9 /gcc/convert.c | |
parent | b1ac5800f5a364ff1bdf4ba9b49616868cff9d46 (diff) | |
download | gcc-34787dd1993c8b8f3a38728647570cc0289db78b.tar.gz |
* convert.c (convert_to_integer): Ensure `long_integer_type_node'
isn't NULL before using it.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81305 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/convert.c')
-rw-r--r-- | gcc/convert.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/convert.c b/gcc/convert.c index c7d12b50200..5f5d50e0f3b 100644 --- a/gcc/convert.c +++ b/gcc/convert.c @@ -339,7 +339,8 @@ convert_to_integer (tree type, tree expr) so only proceed in "unsafe" math mode. */ if (optimize && (flag_unsafe_math_optimizations - || outprec >= TYPE_PRECISION (long_integer_type_node))) + || (long_integer_type_node + && outprec >= TYPE_PRECISION (long_integer_type_node)))) { tree s_expr = strip_float_extensions (expr); tree s_intype = TREE_TYPE (s_expr); |