diff options
author | Sanjay Patel <spatel@rotateright.com> | 2018-04-27 16:33:35 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2018-04-27 16:33:35 +0000 |
commit | f6d595bd44573ede3c1af64ef75ea9b4a08ceace (patch) | |
tree | c5fb4183009750f34fa0a65db2b012bd9c1cdbd5 /llvm/docs | |
parent | 9bf1006278bb9682b9ef8f4074432cae5a4c7468 (diff) | |
download | bcm5719-llvm-f6d595bd44573ede3c1af64ef75ea9b4a08ceace.tar.gz bcm5719-llvm-f6d595bd44573ede3c1af64ef75ea9b4a08ceace.zip |
[docs] add fp-cast-overflow-workaround options to release notes
llvm-svn: 331059
Diffstat (limited to 'llvm/docs')
-rw-r--r-- | llvm/docs/ReleaseNotes.rst | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/llvm/docs/ReleaseNotes.rst b/llvm/docs/ReleaseNotes.rst index cf00ae2ad56..06f3f1a9c19 100644 --- a/llvm/docs/ReleaseNotes.rst +++ b/llvm/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 |