diff options
author | Paul Monson <paulmon@users.noreply.github.com> | 2019-06-12 18:08:40 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@python.org> | 2019-06-12 18:08:40 (GMT) |
commit | ff6bb0aa95259413f359d42410526ff0b4dccfb7 (patch) | |
tree | be24e3c9e6e69ce747d139dd1310f05e277b0912 | |
parent | daf62627518ad97ce66a48c49496aa0573cf0731 (diff) | |
download | cpython-ff6bb0aa95259413f359d42410526ff0b4dccfb7.zip cpython-ff6bb0aa95259413f359d42410526ff0b4dccfb7.tar.gz cpython-ff6bb0aa95259413f359d42410526ff0b4dccfb7.tar.bz2 |
bpo-37236: pragma optimize off for _Py_c_quot on Windows arm64 (GH-13983)
-rw-r--r-- | Objects/complexobject.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Objects/complexobject.c b/Objects/complexobject.c index f78c0fd..a49da40 100644 --- a/Objects/complexobject.c +++ b/Objects/complexobject.c @@ -55,6 +55,10 @@ _Py_c_prod(Py_complex a, Py_complex b) return r; } +/* Avoid bad optimization on Windows ARM64 until the compiler is fixed */ +#ifdef _M_ARM64 +#pragma optimize("", off) +#endif Py_complex _Py_c_quot(Py_complex a, Py_complex b) { @@ -112,6 +116,9 @@ _Py_c_quot(Py_complex a, Py_complex b) } return r; } +#ifdef _M_ARM64 +#pragma optimize("", on) +#endif Py_complex _Py_c_pow(Py_complex a, Py_complex b) |