[Bug c++/89561] New: feature request: undefined behaviour configuration

2019-03-02 Thread bugsthecode at mail dot ru
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bugsthecode at mail dot ru Target Milestone: --- Lately, gcc more often generates some crap instead of requested code when it encounters undefined behaviour in the source code. It might be a good idea to provide a common

[Bug c++/89561] feature request: undefined behaviour configuration

2019-03-02 Thread bugsthecode at mail dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89561 --- Comment #2 from bugsthecode at mail dot ru --- (In reply to Andrew Pinski from comment #1) > -fsantize=undefined does exactly what 6ou want. No, -fsanitize=undefined adds code to detect and report UB at runtime. In mentioned bugs

[Bug c++/89561] feature request: undefined behaviour compile-time configuration

2019-03-04 Thread bugsthecode at mail dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89561 bugsthecode at mail dot ru changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution

[Bug c++/89561] feature request: undefined behaviour compile-time configuration

2019-03-04 Thread bugsthecode at mail dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89561 --- Comment #8 from bugsthecode at mail dot ru --- (In reply to Martin Sebor from comment #7) > It's not possible to detect all instances of undefined behavior and emit > some "reasonable" or "safe" code (w