(init_optabs): Function `ffs' takes `int', not mode that is
authorRichard Kenner <kenner@gcc.gnu.org>
Tue, 2 Nov 1993 12:19:58 +0000 (07:19 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Tue, 2 Nov 1993 12:19:58 +0000 (07:19 -0500)
BITS_PER_WORD wide.

From-SVN: r5973

gcc/optabs.c

index 0ef9ce0dc63b8368d89eee8db3dc31a305edfc5c..de0098bdefb6d03ed9d5ad15a7a8e027be2b1cdf 100644 (file)
@@ -3724,7 +3724,11 @@ init_optabs ()
   abs_optab->handlers[(int) DCmode].libfunc
     = gen_rtx (SYMBOL_REF, Pmode, "cabs");
 
-  ffs_optab->handlers[(int) mode_for_size (BITS_PER_WORD, MODE_INT, 0)] .libfunc
+  /* The ffs function operates on `int'.  */
+#ifndef INT_TYPE_SIZE
+#define INT_TYPE_SIZE BITS_PER_WORD
+#endif
+  ffs_optab->handlers[(int) mode_for_size (INT_TYPE_SIZE, MODE_INT, 0)] .libfunc
     = gen_rtx (SYMBOL_REF, Pmode, "ffs");
 
   extendsfdf2_libfunc = gen_rtx (SYMBOL_REF, Pmode, "__extendsfdf2");