From d2be43686c2390553e6c6446170645f24036b202 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Thu, 29 Apr 2004 21:10:59 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/convert.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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); -- 2.30.2