updated
[cparser] / TODO
1 Driver:
2
3 Refactoring:
4 - eliminate target_architecture.h and replace with stuff in lang_features.h
5 - redo storage classes: so we can separate real from declared storage class
6 - create structures for variables and functions, removing the omnipotent declaration
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 - check switches for: double cases, all enums
29
30 ast2firm:
31 - handle non-constant initializers
32 - output source file positions for panics...
33 - handle bitfield members with 0 correctly (standard says they finish the
34   current unit)
35
36 Missing Errors:
37 * check switches for double cases
38
39 Missing Warnings:
40 * dead assignments (int x = 5; x = bla(); -> dead assignment at x = 5;)
41 * unused label
42 * check switches for all enums values
43
44
45 Spec-Status:
46 (only test datasets tried yet)
47 164.gzip:    works
48 175.vpr:     works
49 176.gcc:     not ok
50 181.mcf:     works
51 186.crafty:  works (~though an asm is replaced with a stub)
52 253.perlbmk: not ok
53 254.gap:     not ok
54 255.vortex:  works
55 256.bzip2:   works
56 300.twolf:   works