update
[tinycc.git] / TODO
blob86faf7e97bb9aa97287c790ae2b937a8a3ef6895
1 TODO list:
3 - fix asm without input/output (no % preprocessing)
4 - handle inline functions as macros.
5 - see transparent union pb in /urs/include/sys/socket.h
6 - precise behaviour of typeof with arrays ? (__put_user macro)
7 - #include_next support for /usr/include/limits ?
8   but should suffice for most cases)
9 - handle '? x, y : z' in reversed function arguments or unsized
10   variable initialization (',' is considered incorrectly as separator
11   in preparser) : change func argument code generator ?
12 - function pointers/lvalues in ? : (linux kernel net/core/dev.c)
13 - add A x86 asm constraint (linux asm-i386/div64.h)
14 - transform functions to function pointers in function parameters (net/ipv4/ip_output.c)
15 - fix function pointer type display
16 - fix bound exit on RedHat 7.3
17 - fix static link on RedHat 7.3
18 - check lcc test suite -> fix bitfield binary operations
19 - check section alignment in C
20 - fix invalid cast in comparison 'if (v == (int8_t)v)'
21 - packed attribute
22 - look at patches from Scott Lafferty
23 - look at bugs from Jason Petrasko.
24 - support link once trick (gcc 3.2 / glibc compilation issue)
25 - finish varargs.h support (gcc 3.2 testsuite issue)
26 - add alloca()
27 - fix static functions declared inside block
28 - C99: add variable size arrays (gcc 3.2 testsuite issue)
29 - C99: add complex types (gcc 3.2 testsuite issue)
30 - postfix compound literals (see 20010124-1.c)
31 - fix multiple unions init
32 - test includes in libtcc_test.
33 - look at GCC 3.2 compatibility problems.
34 - add option for auto run
35 - setjmp is not supported properly in bound checking.
36 - better local variables handling (needed for other targets)
37 - fix bound check code with '&' on local variables (currently done
38   only for local arrays).
39 - sizeof, alignof, typeof can still generate code in some cases.
40 - bound checking and float/long long/struct copy code. bound
41   checking and symbol + offset optimization
42 - Fix the remaining libtcc memory leaks.
43 - make libtcc fully reentrant (except for the compilation stage itself).
44 - '-MD' option
46 Optimizations:
48 - suppress specific anonymous symbol handling
49 - more parse optimizations (=even faster compilation)
50 - memory alloc optimizations (=even faster compilation)
52 Not critical:
54 - C99: fix multiple compound literals inits in blocks (ISOC99
55   normative example - only relevant when using gotos! -> must add
56   boolean variable to tell if compound literal was already
57   initialized).
58 - add PowerPC or ARM code generator and improve codegen for RISC (need
59   to suppress VT_LOCAL and use a base register instead).
60 - interactive mode / integrated debugger
61 - fix preprocessor symbol redefinition
62 - better constant opt (&&, ||, ?:)
63 - add portable byte code generator and interpreter for other
64   unsupported architectures.
65 - C++: variable declaration in for, minimal 'class' support.
66 - win32: add __stdcall, __intxx. use resolve for bchecked malloc et
67   al. check GetModuleHandle for dlls. check exception code (exception
68   filter func).
69 - handle void (__attribute__() *ptr)()