[llvm] r331059 - [docs] add fp-cast-overflow-workaround options to release notes
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 27 09:33:35 PDT 2018
Author: spatel
Date: Fri Apr 27 09:33:35 2018
New Revision: 331059
URL: http://llvm.org/viewvc/llvm-project?rev=331059&view=rev
Log:
[docs] add fp-cast-overflow-workaround options to release notes
Modified:
llvm/trunk/docs/ReleaseNotes.rst
Modified: llvm/trunk/docs/ReleaseNotes.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/ReleaseNotes.rst?rev=331059&r1=331058&r2=331059&view=diff
==============================================================================
--- llvm/trunk/docs/ReleaseNotes.rst (original)
+++ llvm/trunk/docs/ReleaseNotes.rst Fri Apr 27 09:33:35 2018
@@ -62,9 +62,12 @@ Non-comprehensive list of changes in thi
applied by default.
* Optimization of floating-point casts is improved. This may cause surprising
- results for code that is relying on undefined behavior. Code sanitizers can
- be used to detect affected patterns. The option for detecting this problem
- alone is "-fsanitize=float-cast-overflow":
+ results for code that is relying on the undefined behavior of overflowing
+ casts. The optimization can be disabled by specifying a function attribute:
+ "fp-cast-overflow-workaround"="true". This attribute may be created by the
+ clang option :option:`-ffp-cast-overflow-workaround`.
+ Code sanitizers can be used to detect affected patterns. The option for
+ detecting this problem alone is "-fsanitize=float-cast-overflow":
.. code-block:: c
More information about the llvm-commits
mailing list