Re: [Tinycc-devel] aarch64: subnormal double to long double conversion bug

2020-07-15 Thread Christian JULLIEN
I tested latest patches on Rpi Fedora 32 (aarch64) and I confirm it now pass all mpfr tests on this platform.Many thanks. C. Le : 16 juillet 2020 à 02:13 (GMT +02:00) De : "Vincent Lefevre" À : "tinycc-devel@nongnu.org" Objet : Re: [Tinycc-devel] aa

Re: [Tinycc-devel] missing dlfcn.h but defined in tcclib.h, also missing RTLD_LOCAL

2020-07-15 Thread UnknownGamer40464
Alright thanks, I get its purpose now. Thanks for taking the time to explain. On Wed, Jul 15, 2020 at 9:41 AM Michael Matz wrote: > Hello, > > On Tue, 14 Jul 2020, UnknownGamer40464 wrote: > > > I see. I had assumed it was for unix compatibility but I guess not. > > > > Is it supposed to show u

Re: [Tinycc-devel] aarch64: subnormal double to long double conversion bug

2020-07-15 Thread Vincent Lefevre
On 2020-07-15 23:15:59 +0200, Michael Matz wrote: > Hello, > > On Wed, 15 Jul 2020, Vincent Lefevre wrote: > > > With TCC mob on aarch64, the double to long double conversion > > is buggy on subnormal values. This makes a MPFR test fail > > (reported by Christian Jullien). > > Thanks for the rep

Re: [Tinycc-devel] aarch64: subnormal double to long double conversion bug

2020-07-15 Thread Michael Matz
Hello, On Wed, 15 Jul 2020, Vincent Lefevre wrote: With TCC mob on aarch64, the double to long double conversion is buggy on subnormal values. This makes a MPFR test fail (reported by Christian Jullien). Thanks for the report, it was indeed unhandled in the support routines. I fixed this in

[Tinycc-devel] the format of the __TINYC__ macro should be documented

2020-07-15 Thread Vincent Lefevre
The TCC manual just says about the __TINYC__ macro: * '__TINYC__' is a predefined macro to indicate that you use TCC. But it actually contains the version, computed with sprintf(buffer, "%d", a*1 + b*100 + c); This should be documented (this is not obvious without reading the source si

[Tinycc-devel] aarch64: subnormal double to long double conversion bug

2020-07-15 Thread Vincent Lefevre
With TCC mob on aarch64, the double to long double conversion is buggy on subnormal values. This makes a MPFR test fail (reported by Christian Jullien). Testcase: #include int main (void) { volatile double d = 0x0.88p-1022; /* subnormal */ printf ("d = %a\n", d); printf ("d = %.40g\n", d

Re: [Tinycc-devel] aarch64: wrong constant values for float.h

2020-07-15 Thread Michael Matz
Hello, On Wed, 15 Jul 2020, Christian JULLIEN wrote: I think that float.h should be modified accordingly, is it Ok? Yes, as the aarch64 backend indeed uses the IEEE float128 for long double. (what are the risc-v values) Same as on aarch64. Ciao, Michael. ___

Re: [Tinycc-devel] missing dlfcn.h but defined in tcclib.h, also missing RTLD_LOCAL

2020-07-15 Thread Michael Matz
Hello, On Tue, 14 Jul 2020, UnknownGamer40464 wrote: I see. I had assumed it was for unix compatibility but I guess not. Is it supposed to show up in the win32 tcclib.h file then? tcclib.h is a small convenience header that exists merely to show how a minimal installation on unix-like syste