[LLVMbugs] [Bug 18095] clang 3.3 and more recent miscompiles NULL pointer arithmetic in optimized builds (O2)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Nov 29 13:34:28 PST 2013


http://llvm.org/bugs/show_bug.cgi?id=18095

Mathieu Desnoyers <mathieu.desnoyers at efficios.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #3 from Mathieu Desnoyers <mathieu.desnoyers at efficios.com> ---
Have you guys considered perhaps emitting a warning when clang finds such an
undefined behavior ? This would have the advantage of both carrying the
optimization when undefined behaviors are detected (performance) and making
sure existing code that worked fine on gcc and previous llvm versions don't end
up crashing in front of application end-users without warning to the developer
(robustness).

Thanks for the pointers,

Mathieu

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131129/02870751/attachment.html>


More information about the llvm-bugs mailing list