[cfe-dev] ast-dump option in clang-cc not working?
Rahul Garg
rahulgarg44 at gmail.com
Mon Dec 21 14:41:11 PST 2009
Hi.
I am trying to understand clang and was trying to do clang-cc hello.c
-ast-dump. clang and llvm was built from LLVM 2.6 release and am on Ubuntu
9.04 64-bit. Any ideas what may be the problem?
I get the follwing output indicating error:
typedef __int128_t __int128_t;
typedef __uint128_t __uint128_t;
struct __va_list_tag {
unsigned int gp_offset;
unsigned int fp_offset;
void *overflow_arg_area;
void *reg_save_area;
};
typedef struct __va_list_tag __va_list_tag;
typedef __va_list_tag __builtin_va_list[1];
0 clang-cc 0x0000000000efa8ff
1 clang-cc 0x0000000000efc611
2 libpthread.so.0 0x00007f58094a1080
3 clang-cc 0x000000000079a6e0
4 clang-cc 0x00000000007a8fc4
5 clang-cc 0x00000000007a50db
6 clang-cc 0x0000000000763f96
7 clang-cc 0x000000000076510c
8 clang-cc 0x0000000000763e98
9 clang-cc 0x0000000000764b6b
10 clang-cc 0x000000000043891d
11 clang-cc 0x00000000006402fb
12 clang-cc 0x0000000000427ff9
13 clang-cc 0x0000000000430f1a main + 4906
14 libc.so.6 0x00007f58087905a6 __libc_start_main + 230
15 clang-cc 0x0000000000425b09
Stack dump:
0. Program arguments: clang-cc -ast-dump hello.c
1. <eof> parser at end of file
Segmentation fault
typedef __int128_t __int128_t;
typedef __uint128_t __uint128_t;
struct __va_list_tag {
unsigned int gp_offset;
unsigned int fp_offset;
void *overflow_arg_area;
void *reg_save_area;
};
typedef struct __va_list_tag __va_list_tag;
typedef __va_list_tag __builtin_va_list[1];
0 clang-cc 0x0000000000efa8ff
1 clang-cc 0x0000000000efc611
2 libpthread.so.0 0x00007f58094a1080
3 clang-cc 0x000000000079a6e0
4 clang-cc 0x00000000007a8fc4
5 clang-cc 0x00000000007a50db
6 clang-cc 0x0000000000763f96
7 clang-cc 0x000000000076510c
8 clang-cc 0x0000000000763e98
9 clang-cc 0x0000000000764b6b
10 clang-cc 0x000000000043891d
11 clang-cc 0x00000000006402fb
12 clang-cc 0x0000000000427ff9
13 clang-cc 0x0000000000430f1a main + 4906
14 libc.so.6 0x00007f58087905a6 __libc_start_main + 230
15 clang-cc 0x0000000000425b09
Stack dump:
0. Program arguments: clang-cc -ast-dump hello.c
1. <eof> parser at end of file
Segmentation fault
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20091221/37d9ce56/attachment.html>
More information about the cfe-dev
mailing list