[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] float value triggers error
From: |
Thomas Preud'homme |
Subject: |
Re: [Tinycc-devel] float value triggers error |
Date: |
Wed, 23 Oct 2013 11:48:58 +0800 |
User-agent: |
KMail/4.10.5 (Linux/2.6.38-ac2-ac100; KDE/4.10.5; armv7l; ; ) |
Le lundi 21 octobre 2013 07:26:07 Stevie G. Messervey a écrit :
> Hello,
Hi Stevie,
>
> Here is a small example program that reproduces the error:
>
> #!/usr/local/bin/tcc -run
> #include <stdlib.h>
> #include <stdio.h>
>
> int main(int argc, char **argv) {
> int y = (int)(25.0 * (rand() / RAND_MAX));
> printf("%d\n",y);
> exit(EXIT_SUCCESS);
> }
>
> when attempting to execute it (or even compile it, without the #!), I get
> these errors: tcc: error: undefined symbol '__tcc_int_fpu_control'
> tcc: error: undefined symbol '__tcc_fpu_control'
>
> I see this behavior on CentOS 5.9 and Debian 6.0.7
> CentOS gcc: 4.4.7 20120313 (Red Hat 4.4.7-1)
> Debian gcc: 4.4.5 (Debian 4.4.5-8)
> Both are 32-bit
> tcc version 0.9.25 & 0.9.26, configured only as '--with-libgcc'
>
> Can anyone shed some light?
Thank you for reporting this bug. Being the maintainer of tcc in Debian, you
can be sure I'll take a look at this. However I'm very busy right now as I'm
currently relocating in another country so please be patient. I'll try to look
at it before the end of the week (which doesn't mean the bug will be solved in
that time frame).
>
> Thank you,
> Steve
Best regards,
Thomas Preud'homme