summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorneonene <53406459+neonene@users.noreply.github.com>2022-03-23 00:35:25 (GMT)
committerGitHub <noreply@github.com>2022-03-23 00:35:25 (GMT)
commitcd05d0a423d97be69f9de4650f68f89e99ad68d1 (patch)
treef25b5af33dd3daeef5fb8a61b62d2d66f0ab3db6 /Include
parent7ba7eae50803b11766421cb8aae1780058a57e2b (diff)
downloadcpython-cd05d0a423d97be69f9de4650f68f89e99ad68d1.zip
cpython-cd05d0a423d97be69f9de4650f68f89e99ad68d1.tar.gz
cpython-cd05d0a423d97be69f9de4650f68f89e99ad68d1.tar.bz2
bpo-43166: Disable ceval.c optimizations for Windows debug builds (GH-32023)
Also increases the stack allocation when run with `python_d.exe` to account for the extra stack checks that are added.
Diffstat (limited to 'Include')
-rw-r--r--Include/pyport.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/Include/pyport.h b/Include/pyport.h
index 62ac098..855c382 100644
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -170,23 +170,12 @@ typedef Py_ssize_t Py_ssize_clean_t;
* Py_LOCAL_INLINE does the same thing, and also explicitly requests inlining,
* for platforms that support that.
*
- * If PY_LOCAL_AGGRESSIVE is defined before python.h is included, more
- * "aggressive" inlining/optimization is enabled for the entire module. This
- * may lead to code bloat, and may slow things down for those reasons. It may
- * also lead to errors, if the code relies on pointer aliasing. Use with
- * care.
- *
* NOTE: You can only use this for functions that are entirely local to a
* module; functions that are exported via method tables, callbacks, etc,
* should keep using static.
*/
#if defined(_MSC_VER)
-# if defined(PY_LOCAL_AGGRESSIVE)
- /* enable more aggressive optimization for MSVC */
- /* active in both release and debug builds - see bpo-43271 */
-# pragma optimize("gt", on)
-#endif
/* ignore warnings if the compiler decides not to inline a function */
# pragma warning(disable: 4710)
/* fastest possible local call under MSVC */