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
This commit is contained in:
Kaveh R. Ghazi 2004-04-29 21:10:59 +00:00 committed by Kaveh Ghazi
parent ec52e7d58f
commit d2be43686c
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* convert.c (convert_to_integer): Ensure `long_integer_type_node'
isn't NULL before using it.
2004-04-29 Richard Sandiford <rsandifo@redhat.com>
PR target/15189

View File

@ -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);