Skip to content

Commit

Permalink
DOC: Add release note for -ftrapping-math on clang
Browse files Browse the repository at this point in the history
  • Loading branch information
seberg committed Jul 15, 2021
1 parent 3b564f7 commit f1d082c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doc/release/upcoming_changes/19479.compatibility.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Distutils forces strict floating point model on clang
-----------------------------------------------------
NumPy now sets the ``-ftrapping-math`` option on clang to enforce correct
floating point error handling for universal functions.
Clang defaults to non-IEEE and C99 conform behaviour otherwise.
This change (using the equivalent but newer ``-ffp-exception-behavior=strict``)
was attempted in NumPy 1.21, but was effectively never used.

0 comments on commit f1d082c

Please sign in to comment.