tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] TCC bug: error compile rint() from math.h


From: Masha Rabinovich
Subject: Re: [Tinycc-devel] TCC bug: error compile rint() from math.h
Date: Sat, 22 Nov 2008 15:44:58 +0100


math.h is from TCC package:

extern __inline__ double rint (double x)
{
  double retval;
  __asm__ ("frndint;": "=t" (retval) : "0" (x));
  return retval;
}


On Sat, Nov 22, 2008 at 3:27 PM, Marc Andre Tanner <address@hidden> wrote:
On Sat, Nov 22, 2008 at 01:13:57PM +0100, Masha Rabinovich wrote:
> // Expected result:
> // compilation without error
> //
> // Received result:
> // compilation error with invalid line number:
> //
> // 1.c:361: unknown constraint 't'
> //
>
> #include <math.h>
> main()
> {
>  printf("%f\n", rint(3.14));
> }

I guess this depends on the content of math.h which comes from your
libc. The example above works here on a glibc based linux system.

Regards,
Marc

--
 Marc Andre Tanner >< http://www.brain-dump.org/ >< GPG key: CF7D56C0


_______________________________________________
Tinycc-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/tinycc-devel


reply via email to

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