|
From: | Michael Matz |
Subject: | Re: [Tinycc-devel] -fno-hex-floats option |
Date: | Sun, 24 Apr 2016 20:27:38 +0200 (CEST) |
User-agent: | Alpine 2.20 (LSU 67 2015-01-07) |
Hi, On Sun, 24 Apr 2016, Sergey Korshunoff wrote:
Hi! https://github.com/seyko2/tinycc/commit/086ae74b696b7e2a73980bd852516b84251bd553 don't accept 0x123e-3 float format. This allow to compile tccboot kernel with a macro expansion like __asm__( "pushl $""0xfe""-256\n\t" );
No, simply fix the TCC bug. 0xfe+1 (and similar) simply is no valid token. Look at parse_number for inspiration (hint: remember the base and accept 'e'/'E' only if base is 10).
Ciao, Michael.
[Prev in Thread] | Current Thread | [Next in Thread] |