[LLVMdev] SIGFPE generation

Sarah Thompson sarah at findatlantis.com
Fri Apr 9 14:52:45 PDT 2010

Just a quick question...

I've been attempting to trap floating point badness by setting up a  
SIGFPE handler. However, I'm not seeing it trigger, even for simple  
test code that forces division by zero. I'm generating bitcode with  
llvm-gcc and then executing it with a (modified) version of the  
jitter, for reference.

Is there any arcane magic necessary to turn on SIGFPE generation?

Thank you in advance,

More information about the llvm-dev mailing list