Hello,
The patch below adds support for TinyCC. Without it, tcc bails out:
isnan.c:132: division by zero in constant
Tested with tcc 0.9.25 on x86_64-linux-gnu.
Thanks,
Ludo’.
2010-10-15 Ludovic Courtès <[email protected]>
* lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like
`__SUNPRO_C' & co.
diff --git a/lib/isnan.c b/lib/isnan.c
index a59dea7..e292640 100644
--- a/lib/isnan.c
+++ b/lib/isnan.c
@@ -117,7 +117,8 @@ FUNC (DOUBLE x)
# else
/* Be careful to not do any floating-point operation on x, such as x == x,
because x may be a signaling NaN. */
-# if defined __SUNPRO_C || defined __DECC || (defined __sgi && !defined __GNUC__)
+# if defined __TINYC__ || defined __SUNPRO_C || defined __DECC \
+ || (defined __sgi && !defined __GNUC__)
/* The Sun C 5.0 compilers and the Compaq (ex-DEC) 6.4 compilers don't
recognize the initializers as constant expressions. The latter compiler
also fails when constant-folding 0.0 / 0.0 even when constant-folding is