From: Eric Botcazou Date: Mon, 9 Dec 2013 22:29:58 +0000 (+0000) Subject: * optabs.c (gen_int_libfunc): Do not compare modes directly. X-Git-Tag: releases/gcc-4.9.0~2179 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ca0a2d5d0dffed4a7e9f5a5b039876e773ea8624;p=thirdparty%2Fgcc.git * optabs.c (gen_int_libfunc): Do not compare modes directly. From-SVN: r205835 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 846d5b355563..7fe4851270a4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2013-12-09 Eric Botcazou + + * optabs.c (gen_int_libfunc): Do not compare modes directly. + 2013-12-09 David Malcolm * basic-block.h (FOR_ALL_BB): Eliminate macro. diff --git a/gcc/optabs.c b/gcc/optabs.c index 5172bd41666b..302bc6cf9d82 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); }