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