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