https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89726

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |jakub at gcc dot gnu.org
         Resolution|---                         |INVALID

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
This is just incorrect expectations.
"The signbit macro returns a nonzero value if and only if the sign of its
argument value is negative."
says the standard and gcc implements that exactly like that.
In i387 math, it just returns 0x200 instead of 1 you are expecting to see.
And, as on Unix the exit codes are just 0 to 255, (unsigned char) 0x200 is 0.
Perhaps you mean to return signbit (...) != 0 or return !!signbit (...)?

Reply via email to