]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* optabs.c (gen_int_libfunc): Do not compare modes directly.
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 9 Dec 2013 22:29:58 +0000 (22:29 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 9 Dec 2013 22:29:58 +0000 (22:29 +0000)
From-SVN: r205835

gcc/ChangeLog
gcc/optabs.c

index 846d5b35556341596acd0c1d3a013343a078ab84..7fe4851270a485a2477cb9967739da4832af28c3 100644 (file)
@@ -1,3 +1,7 @@
+2013-12-09  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * optabs.c (gen_int_libfunc): Do not compare modes directly.
+
 2013-12-09  David Malcolm  <dmalcolm@redhat.com>
 
        * basic-block.h (FOR_ALL_BB): Eliminate macro.
index 5172bd41666b1cb876c626bf8d0dac7233f581db..302bc6cf9d82be270d3011f20ec2aa223c11a58f 100644 (file)
@@ -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);
 }