From: DJ Delorie Date: Fri, 21 Mar 2003 16:58:35 +0000 (-0500) Subject: optabs.c (init_integral_libfuncs): Make sure we init at least up to "long long" size... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c0510d84b7e1e57f475d27a3390b7177a1cf9d27;p=gcc.git optabs.c (init_integral_libfuncs): Make sure we init at least up to "long long" size words. * optabs.c (init_integral_libfuncs): Make sure we init at least up to "long long" size words. From-SVN: r64670 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 874cad12ba6..50f175522fe 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-03-21 DJ Delorie + + * optabs.c (init_integral_libfuncs): Make sure we init at least up + to "long long" size words. + 2003-03-21 Ulrich Weigand * config/s390/s390.h: Do not include fixdfdi.h on s390x. diff --git a/gcc/optabs.c b/gcc/optabs.c index ffad83fb81e..bd5c385cec5 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -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); }