[Python-checkins] bpo-37236: pragma optimize off for _Py_c_quot on Windows arm64 (GH-13983)
Miss Islington (bot)
webhook-mailer at python.org
Wed Jun 12 14:27:21 EDT 2019
https://github.com/python/cpython/commit/f72886a066ba7d3a3aa077cfc3cad2ca0b2cdbf6
commit: f72886a066ba7d3a3aa077cfc3cad2ca0b2cdbf6
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-06-12T11:27:15-07:00
summary:
bpo-37236: pragma optimize off for _Py_c_quot on Windows arm64 (GH-13983)
(cherry picked from commit ff6bb0aa95259413f359d42410526ff0b4dccfb7)
Co-authored-by: Paul Monson <paulmon at users.noreply.github.com>
files:
M Objects/complexobject.c
diff --git a/Objects/complexobject.c b/Objects/complexobject.c
index f78c0fdf78de..a49da4018411 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)
More information about the Python-checkins
mailing list