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