From: Kaveh R. Ghazi Date: Thu, 29 Apr 2004 21:10:59 +0000 (+0000) Subject: convert.c (convert_to_integer): Ensure `long_integer_type_node' isn't NULL before... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d2be43686c2390553e6c6446170645f24036b202;p=gcc.git convert.c (convert_to_integer): Ensure `long_integer_type_node' isn't NULL before using it. * convert.c (convert_to_integer): Ensure `long_integer_type_node' isn't NULL before using it. From-SVN: r81305 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a64562a2a0a..6dcca95cc93 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-04-29 Kaveh R. Ghazi + + * convert.c (convert_to_integer): Ensure `long_integer_type_node' + isn't NULL before using it. + 2004-04-29 Richard Sandiford PR target/15189 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);