Skip to content

Conversation

@r-devulap
Copy link
Member

Fixes #18005

@charris charris added the 09 - Backport-Candidate PRs tagged should be backported label Dec 19, 2020
@seberg seberg modified the milestones: 1.20.0 release, 1.19.5 release Dec 19, 2020
@seberg
Copy link
Member

seberg commented Dec 19, 2020

Thanks @r-devulap this sounds like a simple and good change to me. Should be backported to both 1.19.x and 1.20.x I guess.

@tomgoddard I trust this fixes the issue, but if it is easy for you to check, that would be appreciated!

@seberg seberg merged commit dc3fe03 into numpy:master Dec 19, 2020
charris pushed a commit to charris/numpy that referenced this pull request Dec 19, 2020
…y#18030)

* BUG: make a variable volatile to work around clang compiler bug

* Adding comments for relevance

* TST: Adding test to check for no overflow warnings in log

Fixes numpy#18005
charris pushed a commit to charris/numpy that referenced this pull request Dec 19, 2020
…y#18030)

* BUG: make a variable volatile to work around clang compiler bug

* Adding comments for relevance

* TST: Adding test to check for no overflow warnings in log

Fixes numpy#18005
@charris charris added component: build and removed 09 - Backport-Candidate PRs tagged should be backported labels Dec 19, 2020
@charris charris removed this from the 1.19.5 release milestone Dec 19, 2020
@tomgoddard
Copy link

tomgoddard commented Dec 20, 2020 via email

@charris
Copy link
Member

charris commented Dec 20, 2020

@tomgoddard The fix was included in that build.

@seberg
Copy link
Member

seberg commented Dec 20, 2020

Relatively speaking, not too many people are affected by this or would notice it, I think.

  1. You need to use float32 (which is not the default)
  2. You need a reasonably recent/high end CPU
  3. You need to use clang, which probably reduces it to mostly Mac OS
  4. It is just a warning, many may miss it or just not care.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BLD: Do not use clang default to ignore floating point exceptions

4 participants