Skip to content

bpo-37236: pragma optimize off for _Py_c_quot on Windows arm64 #13983

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 12, 2019

Conversation

paulmon
Copy link
Contributor

@paulmon paulmon commented Jun 11, 2019

There is a compiler optimization error on Windows ARM64 that causes test_truediv (test.test_complex.ComplexTest) to fail with ZeroDivisionError: complex division by zero.

Adding a pragma optimize around the affected function fixes the issue. I am also submitting a report to the compiler team

@zooba

https://bugs.python.org/issue37236

Co-Authored-By: Steve Dower <steve.dower@microsoft.com>
@paulmon
Copy link
Contributor Author

paulmon commented Jun 12, 2019

I merged the suggested comment

@zooba zooba merged commit ff6bb0a into python:master Jun 12, 2019
@miss-islington
Copy link
Contributor

Thanks @paulmon for the PR, and @zooba for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-14024 is a backport of this pull request to the 3.8 branch.

@paulmon
Copy link
Contributor Author

paulmon commented Jun 12, 2019

Thanks!

miss-islington added a commit that referenced this pull request Jun 12, 2019
)

(cherry picked from commit ff6bb0a)

Co-authored-by: Paul Monson <paulmon@users.noreply.github.com>
@paulmon paulmon deleted the test_complex branch June 19, 2019 21:29
lisroach pushed a commit to lisroach/cpython that referenced this pull request Sep 10, 2019
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.

5 participants