Paul Eggert <[EMAIL PROTECTED]> wrote:
> How about if we install the following coreutils patch?
> It should catch the more-general problem, if I understand it aright.
>
> My understanding is that the following little C program:
>
>    #include <stdbool.h>
>    #include <assert.h>
>    int main (void) {
>      assert (-1 - (_Bool) 0 < 0);
>      assert (-1 - (bool) 0 < 0);
>      return 0;
>    }
>
> will have an assertion failure with the buggy IBM compiler.
> If it doesn't, we'd need to modify the stdbool.m4 part of this fix.
>
> 2005-10-06  Paul Eggert  <[EMAIL PROTECTED]>
>
>       * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
>       promotes to int, not unsigned int, to catch the AIX 5.3
>       compiler bug.
>       * src/sort.c (sortlines_temp): Undo previous change, since
>       the above should catch it.

That looks fine.
Thanks for the better fix!


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to