Hi.<br>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? <br>I get the follwing output indicating error:<br><br>typedef __int128_t __int128_t;<br>typedef __uint128_t __uint128_t;<br>
struct __va_list_tag {<br> unsigned int gp_offset;<br> unsigned int fp_offset;<br> void *overflow_arg_area;<br> void *reg_save_area;<br>};<br>typedef struct __va_list_tag __va_list_tag;<br>typedef __va_list_tag __builtin_va_list[1];<br>
0 clang-cc 0x0000000000efa8ff<br>1 clang-cc 0x0000000000efc611<br>2 libpthread.so.0 0x00007f58094a1080<br>3 clang-cc 0x000000000079a6e0<br>4 clang-cc 0x00000000007a8fc4<br>5 clang-cc 0x00000000007a50db<br>
6 clang-cc 0x0000000000763f96<br>7 clang-cc 0x000000000076510c<br>8 clang-cc 0x0000000000763e98<br>9 clang-cc 0x0000000000764b6b<br>10 clang-cc 0x000000000043891d<br>11 clang-cc 0x00000000006402fb<br>
12 clang-cc 0x0000000000427ff9<br>13 clang-cc 0x0000000000430f1a main + 4906<br>14 libc.so.6 0x00007f58087905a6 __libc_start_main + 230<br>15 clang-cc 0x0000000000425b09<br>Stack dump:<br>0. Program arguments: clang-cc -ast-dump hello.c <br>
1. <eof> parser at end of file<br>Segmentation fault<br>typedef __int128_t __int128_t;<br>typedef __uint128_t __uint128_t;<br>struct __va_list_tag {<br> unsigned int gp_offset;<br> unsigned int fp_offset;<br>
void *overflow_arg_area;<br> void *reg_save_area;<br>};<br>typedef struct __va_list_tag __va_list_tag;<br>typedef __va_list_tag __builtin_va_list[1];<br>0 clang-cc 0x0000000000efa8ff<br>1 clang-cc 0x0000000000efc611<br>
2 libpthread.so.0 0x00007f58094a1080<br>3 clang-cc 0x000000000079a6e0<br>4 clang-cc 0x00000000007a8fc4<br>5 clang-cc 0x00000000007a50db<br>6 clang-cc 0x0000000000763f96<br>7 clang-cc 0x000000000076510c<br>
8 clang-cc 0x0000000000763e98<br>9 clang-cc 0x0000000000764b6b<br>10 clang-cc 0x000000000043891d<br>11 clang-cc 0x00000000006402fb<br>12 clang-cc 0x0000000000427ff9<br>13 clang-cc 0x0000000000430f1a main + 4906<br>
14 libc.so.6 0x00007f58087905a6 __libc_start_main + 230<br>15 clang-cc 0x0000000000425b09<br>Stack dump:<br>0. Program arguments: clang-cc -ast-dump hello.c <br>1. <eof> parser at end of file<br>
Segmentation fault<br><br><br>