optabs.c (init_integral_libfuncs): Make sure we init at least up to "long long" size...
authorDJ Delorie <dj@redhat.com>
Fri, 21 Mar 2003 16:58:35 +0000 (11:58 -0500)
committerDJ Delorie <dj@gcc.gnu.org>
Fri, 21 Mar 2003 16:58:35 +0000 (11:58 -0500)
* optabs.c (init_integral_libfuncs): Make sure we init at least up
to "long long" size words.

From-SVN: r64670

gcc/ChangeLog
gcc/optabs.c

index 874cad12ba65fec9f693559a0eb96fc92aefd65f..50f175522fe9287d6459af1cd26306f2e052a000 100644 (file)
@@ -1,3 +1,8 @@
+2003-03-21  DJ Delorie  <dj@redhat.com>
+
+       * optabs.c (init_integral_libfuncs): Make sure we init at least up
+       to "long long" size words.
+
 2003-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * config/s390/s390.h: Do not include fixdfdi.h on s390x.
index ffad83fb81e53d4128419452738c5218156add01..bd5c385cec55a8ffd506a7d5cad569fd1062ed64 100644 (file)
@@ -5344,8 +5344,11 @@ init_integral_libfuncs (optable, opname, suffix)
      const char *opname;
      int suffix;
 {
+  int maxsize = 2*BITS_PER_WORD;
+  if (maxsize < LONG_LONG_TYPE_SIZE)
+    maxsize = LONG_LONG_TYPE_SIZE;
   init_libfuncs (optable, word_mode,
-                mode_for_size (2*BITS_PER_WORD, MODE_INT, 0),
+                mode_for_size (maxsize, MODE_INT, 0),
                 opname, suffix);
 }