When initializing static variables with the result of float comparisons, tcc 
errors out. This works fine on clang without warning, therefore I assume this 
is a bug. The expression -1.0 < 0 should always evaluate to 1, no?
See attached code for an example.

#define _XOPEN_SOURCE 700
#include <stdio.h>

int main()
{
	static int a = -1 < 0;
	static int e = -1.0 < 0.0;
	printf("%d %d\n", a, e);
	return 0;
}
_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to