From ca0a2d5d0dffed4a7e9f5a5b039876e773ea8624 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Mon, 9 Dec 2013 22:29:58 +0000 Subject: * optabs.c (gen_int_libfunc): Do not compare modes directly. From-SVN: r205835 --- gcc/optabs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/optabs.c') 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); } -- cgit v1.1