changed printf format for size_t printing
[cparser] / TODO
1 Driver:
2 - add an -std= option (for c99, gnu99, ms at least)
3
4 Refactoring:
5 - eliminate target_architecture.h and replace with stuff in lang_features.h
6 - redo storage classes: so we can separate real from declared storage class
7
8 Lexer:
9 - Add preprocessor code
10 - proper handling of different file encodings, parsing non-ascii strings
11 - We could save some space by holding source positions in a separate (somehow
12   compressed table) and only storing pointers to it on the AST.
13
14 Parser:
15 - disallow storage class specifiers in struct/union members
16 - label: declaration; is no valid C99 but we parse it anyway
17 - add constant folding code (optional, ast2firm already does it)
18 - Refactor code, so code to handle number values (and strings?) is an own
19   module and replacable
20 - Support some attributes. noreturn, unused, printf, scanf, packed would be
21   interesting candidates
22 - Add columns to source positions
23 - SourcePositions could be stored selectively on expressions that really need
24   them.
25 - check semantic for functions declared/defined in global scope and declared
26   again in a local scope
27 - print initialisation type_path for initializer errors
28
29 ast2firm:
30 - handle non-constant initializers
31 - output source file positions for panics...
32 - handle bitfield members with 0 correctly (standard says they finish the
33   current unit)
34
35 Missing Warnings:
36 * dead assignments (int x = 5; x = bla(); -> dead assignment at x = 5;)
37 * unused label
38
39
40 Spec-Status:
41 (only test datasets tried yet)
42 164.gzip:    works
43 175.vpr:     works
44 176.gcc:     not ok
45 181.mcf:     works
46 186.crafty:  works (~though an asm is replaced with a stub)
47 253.perlbmk: not ok
48 254.gap:     not ok
49 255.vortex:  works
50 256.bzip2:   works
51 300.twolf:   works