summaryrefslogtreecommitdiff
path: root/docs/ReleaseNotes.rst
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2018-04-27 16:33:35 +0000
committerSanjay Patel <spatel@rotateright.com>2018-04-27 16:33:35 +0000
commit534e40103f6b7ce3b2f408112b0068079dd28001 (patch)
treee58ec6546c84e784f59acc25d02fe4d796ccf73e /docs/ReleaseNotes.rst
parent9ef9fcf66c48a8d6ab24b06c25d5ee18e762e5d6 (diff)
[docs] add fp-cast-overflow-workaround options to release notes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@331059 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/ReleaseNotes.rst')
-rw-r--r--docs/ReleaseNotes.rst9
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/ReleaseNotes.rst b/docs/ReleaseNotes.rst
index cf00ae2ad56..06f3f1a9c19 100644
--- a/docs/ReleaseNotes.rst
+++ b/docs/ReleaseNotes.rst
@@ -62,9 +62,12 @@ Non-comprehensive list of changes in this release
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