[LLVMdev] RFA: Problem with Exceptions
Bill Wendling
isanbard at gmail.com
Thu Aug 30 15:31:22 PDT 2007
Hi all,
I'm compiling this trivial program on Darwin:
int main(int argc, char **argv) {
try {
throw argc;
} catch(int i) {
return i;
}
return 0;
}
However, it segfaults when I run it. I've attached the .s files
generated by LLVM and GCC, but it looks as if LLVM isn't generating a
gxx_personality_v0 section (like it does for Unwind_Resume, et al). Is
this what's causing the failure? Does anyone know how to get it to
generate this section?
Thanks!
-bw
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.gcc.s
Type: application/octet-stream
Size: 4259 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20070830/dcb10eab/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.llvm.s
Type: application/octet-stream
Size: 4162 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20070830/dcb10eab/attachment-0001.obj>
More information about the llvm-dev
mailing list