Displaying 1 result from an estimated 1 matches for "1031801".
Did you mean:
1031501
2013 Jul 24
2
[LLVMdev] Program compiled with Clang -pg and -O crashes with SEGFAULT
Hi,
I am trying to compile a simple program with Clang 3.3 on Linux and used -pg and -O2 option. The program would crash with segfault. Interestingly if I compile it with -pg option only it works. Do you have any idea why it crashes? And any workaround?
$ cat myprog.c
int main() {
return 0;
}
$ clang -v -pg -O2 myprog.c
clang version 3.3 (tags/RELEASE_33/final)
Target: