tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] float value triggers error


From: Stevie G. Messervey
Subject: [Tinycc-devel] float value triggers error
Date: Mon, 21 Oct 2013 07:26:07 -0700 (PDT)

Hello,

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,
  Steve



reply via email to

[Prev in Thread] Current Thread [Next in Thread]