Hello all,
I'm hitting this old "bug" about "unknown constraint 't'" with the
inline assembly in math.h:
http://lists.gnu.org/archive/html/tinycc-devel/2007-07/msg00013.html
and I workaround it with this patch:
diff --git a/i386-asm.c b/i386-asm.c
index 664aade..1a24e30 100644
--- a/i386-asm.c
+++ b/i386-asm.c
@@ -1029,6 +1029,9 @@ static inline int constraint_priority(const char *str)
case 'i':
case 'm':
case 'g':
+ case 'f':
+ case 't':
+ case 'u':
pr = 4;
break;
default:
@@ -1211,6 +1214,11 @@ ST_FUNC void asm_compute_constraints(ASMOperand
*operands,
if (!((op->vt->r & (VT_VALMASK | VT_LVAL | VT_SYM)) == VT_CONST))
goto try_next;
break;
+ case 'f':
+ case 't':
+ case 'u':
+ /* float */
+ break;
case 'm':
case 'g':
/* nothing special to do because the operand is already in
HTH,
Roy
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel