Re: [Tinycc-devel] float value triggers error

2013-11-03 Thread Thomas Preud'homme
Le vendredi 1 novembre 2013 12:04:41 Stevie G. Messervey a écrit :
 Hello,
  I have a small correction. The value that triggers the error is a double,
 not a float. A float would have an 'f' appended to it.

Thanks for the extra information.

 
 Has anyone had time to have a look?

No sorry, I had a planned travel and I didn't had time to take a look before 
that. Maybe tomorrow.

Best regards,

Thomas

___
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel


Re: [Tinycc-devel] float value triggers error

2013-11-03 Thread Daniel Glöckner
On Sun, Nov 03, 2013 at 12:09:32PM -0800, Steven G. Messervey wrote:
 mob-branch, configured with --with-libgcc only, debian squeeze 32-bit:
 tcc: error: undefined symbol '__tcc_fpinit'
 tcc: error: undefined symbol '__tcc_cvt_ftol'

--with-libgcc uses libgcc instead of libtcc1.
This will of course fail for tcc specific functions.

__tcc_cvt_ftol does the same as libgcc's __fix{s,d,x}fdi
and there are already tokens defined for those functions
for use on ARM. The only difference is that __tcc_cvt_ftol
passes the floating point value in a register and therefore
does not have to distinguish between float, double, and
long double.

__tcc_fpinit is probably redundant on Linux as GLIBC
already calls __setfpucw right before calling main.

  Daniel


___
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel