[Bug c++/44786] -fcatch-undefined-behavior: Turn on runtime code generation to check for undefined behavior
vanyacpp at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sun Apr 8 12:11:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44786
Ivan Sorokin <vanyacpp at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |vanyacpp at gmail dot com
--- Comment #3 from Ivan Sorokin <vanyacpp at gmail dot com> 2012-04-08 12:11:02 UTC ---
> Really I think this is a not good option. It adds a huge overhead in some
> cases and does not fix a security issue. In fact it allows the developer to
> feel more safe when in reality they are not.
I think the rationale for this checking is not a security issue, but the ease
of debugging. When a program is shipped to end user these checks could be
omitted.
More information about the Gcc-bugs
mailing list