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

Daniel Dunbar daniel at zuster.org
Wed Dec 16 03:39:01 PST 2009

Very cool, I've long wanted this feature.

Have you considered running this on an LLVM nightly test run? That
might be a good way to flush out either undefined behavior in the
tests (which would be nice to fix) or bugs in the code.

 - Daniel

On Tue, Dec 15, 2009 at 7:26 PM, Mike Stump <mrs at apple.com> wrote:
> 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.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

More information about the cfe-dev mailing list