bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug report: sort.c or AIX compiler


From: Jim Meyering
Subject: Re: Bug report: sort.c or AIX compiler
Date: Thu, 06 Oct 2005 10:53:18 +0200

Paul Eggert <address@hidden> 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  <address@hidden>
>
>       * 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!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]