abs() bug in gcc - Slackware

This is a discussion on abs() bug in gcc - Slackware ; It appears there is a bug in gcc's abs(). Slackware 12's gcc version 4.1.2 is affected. see http://lkml.org/lkml/2007/11/19/493...

+ Reply to Thread
Results 1 to 2 of 2

Thread: abs() bug in gcc

  1. abs() bug in gcc

    It appears there is a bug in gcc's abs(). Slackware 12's gcc version 4.1.2
    is affected.

    see http://lkml.org/lkml/2007/11/19/493

  2. Re: abs() bug in gcc

    rjckluin@hot_n0zpam_mail.com wrote:
    > It appears there is a bug in gcc's abs(). Slackware 12's gcc version 4.1.2
    > is affected.
    >
    > see http://lkml.org/lkml/2007/11/19/493


    That's scary. i=2; -10 * abs(i-1) == 10 ?
    Gcc bug report is here: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34130
    Slackware 12.0 has gcc-4.1.2, but the bug is also in the latest gcc-4.2.2.
    The bug fix is planned for gcc-4.2.3, says the report.

+ Reply to Thread