[cfe-dev] -fcatch-undefined-behavior testing

Mike Stump mrs at apple.com
Tue Dec 15 19:26:03 PST 2009


If people want to try a neat new feature, go ahead and compile your software with -fcatch-undefined-behavior and then test your software.  If there are any traps at runtime, investigate your code and see if it is trying to execute some undefined behavior.  See http://clang.llvm.org/docs/UsersManual.html#codegen for some details on the checks that are inserted.

Questions, comments, concerns...  let me know.  If it catches any real bugs, that'd be interesting to know.  If you find any bugs, I'd be interested in those as well.



More information about the cfe-dev mailing list