Hi.
I found this bug in current mob on the current gawk sources. Test case:
-----------------------------
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
double d = strtod("-nan", NULL);
d = -d;
printf("%g, signbit(d) = %d\n", d, signbit(d));
return 0;
}
-----------------------------
Results:
$ gcc foo.c -o foo && ./foo
-nan, signbit(d) = 1
$ tcc foo.c -o foo2 && ./foo2
nan, signbit(d) = 0
I get the same results as gcc with clang and pcc. tcc is the outlier.
Can we get this fixed please?
Thanks!
Arnold
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel