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
This commit is contained in:
DJ Delorie 2003-03-21 11:58:35 -05:00 committed by DJ Delorie
parent fe86047cda
commit c0510d84b7
2 changed files with 9 additions and 1 deletions

View 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.

View 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);
}