diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-09 22:29:58 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-09 22:29:58 +0000 |
commit | 469b7a3d586c65fdc68864a78d5219ecf3f29d2f (patch) | |
tree | 99ea963e4cb13d73e73d20836cf62647647ee8cd /gcc/optabs.c | |
parent | ed7d889a7226c7b51155be46a4dc7acda388d50e (diff) | |
download | gcc-469b7a3d586c65fdc68864a78d5219ecf3f29d2f.tar.gz |
* optabs.c (gen_int_libfunc): Do not compare modes directly.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205835 138bc75d-0d04-0410-961f-82ee72b054a4
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 5172bd41666..302bc6cf9d8 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); } |