OSDN Git Service

* optabs.c (init_integral_libfuncs): Make sure we init at least up
authordj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 Mar 2003 16:58:35 +0000 (16:58 +0000)
committerdj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 Mar 2003 16:58:35 +0000 (16:58 +0000)
to "long long" size words.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64670 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/optabs.c

index 874cad1..50f1755 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 ffad83f..bd5c385 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);
 }