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