diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2013-12-09 22:29:58 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2013-12-09 22:29:58 +0000 |
commit | ca0a2d5d0dffed4a7e9f5a5b039876e773ea8624 (patch) | |
tree | 99ea963e4cb13d73e73d20836cf62647647ee8cd /gcc/optabs.c | |
parent | 04a90bec0962d8033af1178899f1bf3501ff062e (diff) | |
download | gcc-ca0a2d5d0dffed4a7e9f5a5b039876e773ea8624.zip gcc-ca0a2d5d0dffed4a7e9f5a5b039876e773ea8624.tar.gz gcc-ca0a2d5d0dffed4a7e9f5a5b039876e773ea8624.tar.bz2 |
* optabs.c (gen_int_libfunc): Do not compare modes directly.
From-SVN: r205835
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r-- | gcc/optabs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c index 5172bd4..302bc6c 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -5506,7 +5506,8 @@ gen_int_libfunc (optab optable, const char *opname, char suffix, if (maxsize < LONG_LONG_TYPE_SIZE) maxsize = LONG_LONG_TYPE_SIZE; if (GET_MODE_CLASS (mode) != MODE_INT - || mode < word_mode || GET_MODE_BITSIZE (mode) > maxsize) + || GET_MODE_BITSIZE (mode) < BITS_PER_WORD + || GET_MODE_BITSIZE (mode) > maxsize) return; gen_libfunc (optable, opname, suffix, mode); } |