This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Unused letters in Windows-specific pragma optimize
Type: Stage: resolved
Components: Windows Versions: Python 3.10
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: steve.dower Nosy List: db3l, gvanrossum, neonene, paul.moore, steve.dower, tim.golden, vstinner, zach.ware
Priority: normal Keywords: patch

Created on 2021-02-08 19:48 by gvanrossum, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 24485 merged steve.dower, 2021-02-09 18:13
PR 32023 merged neonene, 2022-03-21 07:09
Messages (4)
msg386646 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2021-02-08 19:48
A coworker happened to look at our use of #pragma optimize() for Windows (VS 2017) and noticed:

unless there’s something I’m missing, the ‘a’ and ‘w’ portions of the string being passed to the optimize pragma are not doing anything; I’m pretty sure they’ve been useless for 10+ years. The ‘g’ means turn on global optimizations and the ‘t’ means optimize for “time” (i.e. speed). See the documentation at
msg386735 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2021-02-09 18:14
New changeset b74396c3167cc780f01309148db02709bc37b432 by Steve Dower in branch 'master':
bpo-43166: Disable ceval.c optimisations for Windows debug builds (GH-24485)
msg387349 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2021-02-19 20:27
Since this change, AMD64 Windows10 3.x buildbot started to crash with Windows fatal exception: stack overflow -> see bpo-43271.
msg415843 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2022-03-23 00:35
New changeset cd05d0a423d97be69f9de4650f68f89e99ad68d1 by neonene in branch 'main':
bpo-43166: Disable ceval.c optimizations for Windows debug builds (GH-32023)
Date User Action Args
2022-04-11 14:59:41adminsetgithub: 87332
2022-03-23 00:35:32steve.dowersetmessages: + msg415843
2022-03-21 07:09:09neonenesetnosy: + neonene

pull_requests: + pull_request30111
2021-02-21 02:45:56db3lsetnosy: + db3l
2021-02-19 20:27:43vstinnersetnosy: + vstinner
messages: + msg387349
2021-02-09 18:14:19steve.dowersetmessages: + msg386735
2021-02-09 18:13:51steve.dowersetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2021-02-09 18:13:07steve.dowersetkeywords: + patch
stage: patch review
pull_requests: + pull_request23286
2021-02-08 19:49:55zach.waresetassignee: steve.dower

components: + Windows
nosy: + paul.moore, tim.golden, zach.ware, steve.dower
2021-02-08 19:48:37gvanrossumcreate