A follow of the comments I received, I have only right now added the simple cases of HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_INT and HOST_BITS_PER_INT == HOST_BITS_PER_LONG. I might implement the other part of the patch for when HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_LONG_LONG and HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_LONG but this might take some time because I have to add some more builtins but it will clean things up. bootstraped on powerpc-apple-darwin6.3, also bootstrapped and run then testsuite on i386-unknown-openbsd3.1. Also changed need_64bit_hwint on darwin's case back to needing it and bootstraped there also. ChangeLog: 2003-01-06 Andrew Pinski * bitmap.c: (bitmap_first_set_bit) Remove comment about ffs since libiberty already includes it. When HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_INT, use ffs. genattrtab.c: (encode_units_mask) Use ffs. ggc-page.c: (ggc_alloc) Use ffs when HOST_BITS_PER_INT == HOST_BITS_PER_LONG. (compute_inverse) Use ffs. (ggc_recalculate_in_use_p) Use ffs when HOST_BITS_PER_INT == HOST_BITS_PER_LONG toplev.c.c: (exact_log2_wide) Use ffs when HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_INT. Hide log when HOST_BITS_PER_WIDE_INT != HOST_BITS_PER_INT. config/rs6000/rs6000.c: (extract_MB) Use ffs when HOST_BITS_PER_INT == HOST_BITS_PER_LONG. (extract_ME) Use ffs when HOST_BITS_PER_INT == HOST_BITS_PER_LONG. Patch: