Re: [patch] Fix bitmap_last_set_bit

2012-09-06 Thread Richard Guenther
On Wed, Sep 5, 2012 at 10:40 PM, Steven Bosscher wrote: > Hi, > > bitmap.c:bitmap_last_set_bit() is not used by any code in the current > GCC trunk, but I'm using it and I noticed it returns an incorrect > result. This patch rewrites most of the function to return the correct > result. > > Not sur

[patch] Fix bitmap_last_set_bit

2012-09-05 Thread Steven Bosscher
Hi, bitmap.c:bitmap_last_set_bit() is not used by any code in the current GCC trunk, but I'm using it and I noticed it returns an incorrect result. This patch rewrites most of the function to return the correct result. Not sure how to test this other than to say that my code, that uses this funct