summaryrefslogtreecommitdiff
path: root/docs/ReleaseNotes.rst
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2018-04-30 18:19:03 +0000
committerSanjay Patel <spatel@rotateright.com>2018-04-30 18:19:03 +0000
commitf5ef70f4cdfee6db4297252dfd21d357ffc2f1fc (patch)
tree0f69612836af257624fa8057e27e77c9c107d2dc /docs/ReleaseNotes.rst
parentd00eb8a651518f21231da87b5cd3498089ccd5a4 (diff)
downloadclang-f5ef70f4cdfee6db4297252dfd21d357ffc2f1fc.tar.gz
[Driver, CodeGen] rename options to disable an FP cast optimization
As suggested in the post-commit thread for rL331056, we should match these clang options with the established vocabulary of the corresponding sanitizer option. Also, the use of 'strict' is well-known for these kinds of knobs, and we can improve the descriptive text in the docs. So this intends to match the logic of D46135 but only change the words. Matching LLVM commit to match this spelling of the attribute to follow shortly. Differential Revision: https://reviews.llvm.org/D46236 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@331209 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/ReleaseNotes.rst')
-rw-r--r--docs/ReleaseNotes.rst15
1 files changed, 7 insertions, 8 deletions
diff --git a/docs/ReleaseNotes.rst b/docs/ReleaseNotes.rst
index b6672bdbfd..ba7898ba33 100644
--- a/docs/ReleaseNotes.rst
+++ b/docs/ReleaseNotes.rst
@@ -89,14 +89,13 @@ Non-comprehensive list of changes in this release
New Compiler Flags
------------------
-- :option:`-ffp-cast-overflow-workaround` and
- :option:`-fno-fp-cast-overflow-workaround`
- enable (disable) a workaround for code that casts floating-point values to
- integers and back to floating-point. If the floating-point value is not
- representable in the intermediate integer type, the code is incorrect
- according to the language standard. This flag will attempt to generate code
- as if the result of an overflowing conversion matches the overflowing behavior
- of a target's native float-to-int conversion instructions.
+- :option:`-fstrict-float-cast-overflow` and
+ :option:`-fno-strict-float-cast-overflow` -
+ When a floating-point value is not representable in a destination integer
+ type, the code has undefined behavior according to the language standard.
+ By default, Clang will not guarantee any particular result in that case.
+ With the 'no-strict' option, Clang attempts to match the overflowing behavior
+ of the target's native float-to-int conversion instructions.
- ...