diff options
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/optabs.c | 5 |
2 files changed, 9 insertions, 1 deletions
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 <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. 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); } |

