[Bug c++/44786] -fcatch-undefined-behavior: Turn on runtime code generation to check for undefined behavior

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Apr 8 14:06:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44786

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-04-08 14:06:31 UTC ---
Indeed.  I think it's meant to be useful for catching some of the problems that
valgrind identifies, and valgrind has even more performance overhead.

That said, although I haven't used it heavily clang's
-fcatch-undefined-behavior has never caught any problems for me. YMMV.



More information about the Gcc-bugs mailing list