2001-11-12 02:01:29 +08:00
|
|
|
TODO list:
|
2001-10-28 07:48:39 +08:00
|
|
|
|
2008-01-17 06:33:56 +08:00
|
|
|
Bugs:
|
|
|
|
|
2017-02-18 16:55:34 +08:00
|
|
|
- i386 fastcall is mostly wrong
|
2008-01-17 06:33:56 +08:00
|
|
|
- FPU st(0) is left unclean (kwisatz haderach). Incompatible with
|
|
|
|
optimized gcc/msc code
|
2003-01-07 04:19:20 +08:00
|
|
|
- see transparent union pb in /urs/include/sys/socket.h
|
|
|
|
- precise behaviour of typeof with arrays ? (__put_user macro)
|
|
|
|
but should suffice for most cases)
|
2003-05-25 00:12:58 +08:00
|
|
|
- handle '? x, y : z' in unsized variable initialization (',' is
|
|
|
|
considered incorrectly as separator in preparser)
|
2008-01-17 06:33:56 +08:00
|
|
|
- transform functions to function pointers in function parameters
|
|
|
|
(net/ipv4/ip_output.c)
|
2003-01-07 04:19:20 +08:00
|
|
|
- fix function pointer type display
|
|
|
|
- check section alignment in C
|
|
|
|
- fix invalid cast in comparison 'if (v == (int8_t)v)'
|
2002-12-08 22:34:02 +08:00
|
|
|
- finish varargs.h support (gcc 3.2 testsuite issue)
|
2002-11-24 23:58:28 +08:00
|
|
|
- fix static functions declared inside block
|
|
|
|
- fix multiple unions init
|
2008-01-17 06:33:56 +08:00
|
|
|
- make libtcc fully reentrant (except for the compilation stage itself).
|
2015-11-26 20:31:23 +08:00
|
|
|
- struct/union/enum definitions in nested scopes (see also Debian bug #770657)
|
|
|
|
- __STDC_IEC_559__: float f(void) { static float x = 0.0 / 0.0; return x; }
|
2017-02-14 02:03:29 +08:00
|
|
|
- memory may be leaked after errors (longjmp).
|
2008-01-17 06:33:56 +08:00
|
|
|
|
2015-11-21 08:04:58 +08:00
|
|
|
Portability:
|
|
|
|
|
|
|
|
- it is assumed that int is 32-bit and sizeof(int) == 4
|
|
|
|
- int is used when host or target size_t would make more sense
|
2015-11-21 18:35:47 +08:00
|
|
|
- TCC handles target floating-point (fp) values using the host's fp
|
|
|
|
arithmetic, which is simple and fast but may lead to exceptions
|
|
|
|
and inaccuracy and wrong representations when cross-compiling
|
2015-11-21 08:04:58 +08:00
|
|
|
|
|
|
|
Linking:
|
|
|
|
|
2017-02-14 02:03:29 +08:00
|
|
|
- static linking (-static) does not work
|
2015-11-21 08:04:58 +08:00
|
|
|
|
2008-01-17 06:33:56 +08:00
|
|
|
Bound checking:
|
|
|
|
|
|
|
|
- fix bound exit on RedHat 7.3
|
2002-08-31 20:44:16 +08:00
|
|
|
- setjmp is not supported properly in bound checking.
|
2002-01-06 03:50:17 +08:00
|
|
|
- fix bound check code with '&' on local variables (currently done
|
|
|
|
only for local arrays).
|
2002-11-03 08:44:38 +08:00
|
|
|
- bound checking and float/long long/struct copy code. bound
|
2002-08-31 20:44:16 +08:00
|
|
|
checking and symbol + offset optimization
|
2008-01-17 06:33:56 +08:00
|
|
|
|
|
|
|
Missing features:
|
|
|
|
|
|
|
|
- disable-asm and disable-bcheck options
|
|
|
|
- __builtin_expect()
|
|
|
|
- atexit (Nigel Horne)
|
|
|
|
- C99: add complex types (gcc 3.2 testsuite issue)
|
|
|
|
- postfix compound literals (see 20010124-1.c)
|
2017-02-14 02:03:29 +08:00
|
|
|
- interactive mode / integrated debugger
|
2001-11-12 02:01:29 +08:00
|
|
|
|
2002-11-24 23:58:28 +08:00
|
|
|
Optimizations:
|
|
|
|
|
|
|
|
- suppress specific anonymous symbol handling
|
|
|
|
- more parse optimizations (=even faster compilation)
|
|
|
|
- memory alloc optimizations (=even faster compilation)
|
2008-01-17 06:33:56 +08:00
|
|
|
- optimize VT_LOCAL + const
|
|
|
|
- better local variables handling (needed for other targets)
|
2002-11-24 23:58:28 +08:00
|
|
|
|
2001-11-12 02:01:29 +08:00
|
|
|
Not critical:
|
|
|
|
|
2002-08-18 22:34:02 +08:00
|
|
|
- C99: fix multiple compound literals inits in blocks (ISOC99
|
|
|
|
normative example - only relevant when using gotos! -> must add
|
|
|
|
boolean variable to tell if compound literal was already
|
|
|
|
initialized).
|
2017-02-14 02:03:29 +08:00
|
|
|
- add PowerPC generator and improve codegen for RISC (need
|
2002-08-18 22:44:08 +08:00
|
|
|
to suppress VT_LOCAL and use a base register instead).
|
2001-12-03 05:44:40 +08:00
|
|
|
- fix preprocessor symbol redefinition
|
2001-11-19 00:33:35 +08:00
|
|
|
- add portable byte code generator and interpreter for other
|
|
|
|
unsupported architectures.
|
2002-07-25 06:13:02 +08:00
|
|
|
- C++: variable declaration in for, minimal 'class' support.
|
2008-01-17 06:33:56 +08:00
|
|
|
- win32: __intxx. use resolve for bchecked malloc et al.
|
|
|
|
check exception code (exception filter func).
|
2002-08-18 22:34:02 +08:00
|
|
|
- handle void (__attribute__() *ptr)()
|
2015-11-21 08:04:58 +08:00
|
|
|
- VLAs are implemented in a way that is not compatible with signals:
|
|
|
|
http://lists.gnu.org/archive/html/tinycc-devel/2015-11/msg00018.html
|
2002-11-24 23:58:28 +08:00
|
|
|
|
2008-01-17 06:33:56 +08:00
|
|
|
Fixed (probably):
|
2002-11-24 23:58:28 +08:00
|
|
|
|
2008-01-17 06:33:56 +08:00
|
|
|
- bug with defines:
|
|
|
|
#define spin_lock(lock) do { } while (0)
|
|
|
|
#define wq_spin_lock spin_lock
|
|
|
|
#define TEST() wq_spin_lock(a)
|
|
|
|
- typedefs can be structure fields
|
|
|
|
- see bugfixes.diff + improvement.diff from Daniel Glockner
|
|
|
|
- long long constant evaluation
|
|
|
|
- add alloca()
|
|
|
|
- gcc '-E' option.
|
|
|
|
- #include_next support for /usr/include/limits ?
|
|
|
|
- function pointers/lvalues in ? : (linux kernel net/core/dev.c)
|
|
|
|
- win32: add __stdcall, check GetModuleHandle for dlls.
|
2017-02-14 02:03:29 +08:00
|
|
|
- macro substitution with nested definitions (ShangHongzhang)
|
|
|
|
- with "-run" and libtcc, a PLT is now built.
|
|
|
|
- '-E' option was improved
|
|
|
|
- packed attribute is now supported
|
|
|
|
- ARM and ARM64 code generators have been added.
|