Hi,

From: "Sergey Korshunoff" <[email protected]>
Sent: Monday, January 19, 2015 1:14 AM


Hi! Another question:  Compiling a nimrod compiler by i386-win-tcc I
got  the following error:
/usr/local/lib/win32/include/math.h:541: error: invalid clobber register 'st'


Go into include/math.h:541:

 __CRT_INLINE long __cdecl lrint (double x)
 {
   long retval;
   __asm__ __volatile__             \
     ("fistpl %0"  : "=m" (retval) : "t" (x) : "st");          \
     return retval;
 }

__asm__ __volatile__("Instruction List" : Output : Input : Clobber/Modify);

Guide to Inline Assembly:
http://www.delorie.com/djgpp/doc/brennan/brennan_att_inline_djgpp.html
Clobber List:
http://www.ibiblio.org/gferg/ldp/GCC-Inline-Assembly-HOWTO.html#ss5.3
st:
http://sourceware.org/binutils/docs-2.25/as/i386_002dRegs.html#i386_002dRegs

Anyone know more abount it?



_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to