cparser
cparser copied to clipboard
C99 parser and frontend for libfirm
Hello ,cparser is a very good project. I like and study it. But I met an error. ``` from cmd: ./cparser --export-ir firmforth.c /usr/include/stdio.h:33:10: error: failed including : No such...
$ cat test.c int abc = 0 || "hello"; $ cparser test.c test.c:1:13: error: initialisation expression '0 || "hello"' is not constant 1 error(s), 0 warning(s)
Trying to use `__builtin_frame_address` or `__builtin_return_address` simply results in `ir/lower/lower_builtins.c:210: libFirm panic in lower_builtin: builtin kind ir_bk_frame_address not supported (for this target)` (or `ir_bk_return_address` for `__builtin_return_address`)
It makes it easier to clone submodule.
Hello -- The following code causes a segfault in is_Id. Ideally, cparser should reject this code on line 6 (`while (c[1])`) since it makes no sense in context. Thanks! ```...
cparser segfaults on following code: ```c int main(void){ int i = 0; switch(i){ i = i + ({case 0:; 0;}); } return 0; } ``` ```shell $ ./cparser/build/debug/cparser -m32 switch0.c...
```c #include const char* a = "nope"; __attribute__((__constructor__)) static void foo(void) { a = "yep"; } int main(void) { puts(a); } ``` Gives compiler warning "'void foo(void)' defined but not...
```c #define foo(x) x #define bar foo int main(void) { return bar(bar(0)); } ``` This fails under cparser 8ec1a761bf62be1028632e5eceda425d9fbeb039 with warning "implicit declaration of function 'foo'" and linker error "undefined...
git submodule update --init --recursive Submodule 'libfirm' (https://pp.info.uni-karlsruhe.de/git/libfirm.git/) registered for path 'libfirm' The submodule update hangs, due to no response from the server. I suggest having the submodule point to...
```cpp void alias(int flags) asm("open"); void alias(int flags) {} int open() {} ``` cparser outputs this : ``` Verify warning: Return X[78:10](open[71]): number of inputs does not match method type...