convert.c (convert_to_integer): Ensure `long_integer_type_node' isn't NULL before...
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Thu, 29 Apr 2004 21:10:59 +0000 (21:10 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Thu, 29 Apr 2004 21:10:59 +0000 (21:10 +0000)
       * convert.c (convert_to_integer): Ensure `long_integer_type_node'
       isn't NULL before using it.

From-SVN: r81305

gcc/ChangeLog
gcc/convert.c

index a64562a2a0adae39250838f385ebade0f0fe3531..6dcca95cc93690c5777c95798ed728892d1999b8 100644 (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
index c7d12b502004adf61a22e38faab0663051175ccb..5f5d50e0f3bce7dce11877624d9148a236cacc84 100644 (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);