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