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