Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-139922: Tail calling for MSVC (VS 2026)#139962

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
Show file tree
Hide file tree
Changes from1 commit
Commits
Show all changes
33 commits
Select commitHold shift + click to select a range
82d1259
Brandt's changes
Fidget-SpinnerAug 21, 2025
3248658
Hulon's and mine changes
Fidget-SpinnerAug 21, 2025
9ac430d
push stackrefs into tstate
Fidget-SpinnerAug 21, 2025
085c1d7
Fix last few remaining problems
Fidget-SpinnerAug 21, 2025
0b12f2e
fix handling of recursion
Fidget-SpinnerAug 24, 2025
acf48f5
Changes by Chris to support clang-cl
Fidget-SpinnerOct 11, 2025
35e96c1
Make the restrict MSVC only for now
Fidget-SpinnerOct 11, 2025
d7737e9
Merge remote-tracking branch 'upstream/main' into msvc-tailcall-take-two
Fidget-SpinnerOct 11, 2025
86f19cf
Change restricts to MSVC only
Fidget-SpinnerOct 11, 2025
40013cc
📜🤖 Added by blurb_it.
blurb-it[bot]Oct 11, 2025
48db59e
Reduce diff
Fidget-SpinnerOct 11, 2025
bc9d23c
Merge branch 'msvc-tailcall-take-two' of github.com:Fidget-Spinner/cp…
Fidget-SpinnerOct 11, 2025
19e02c2
Work around specialization
Fidget-SpinnerOct 11, 2025
66ec774
Fix VS 2026
Fidget-SpinnerOct 11, 2025
50f8ff7
fix a typo
Fidget-SpinnerOct 11, 2025
5d908b4
Move to macros to internal header
Fidget-SpinnerOct 11, 2025
0786133
Merge branch 'msvc-tailcall-take-two' of github.com:Fidget-Spinner/cp…
Fidget-SpinnerOct 11, 2025
e699d40
Reduce number of restricts
Fidget-SpinnerOct 13, 2025
66d6c39
Merge branch 'msvc-tailcall-take-two' of https://github.com/Fidget-Sp…
Fidget-SpinnerOct 13, 2025
5584fec
Reduce restrict use even more, reduce usage
Fidget-SpinnerOct 13, 2025
7eeeaa8
Apply Chris' changes
Fidget-SpinnerOct 23, 2025
6f3d525
Merge remote-tracking branch 'upstream/main' into msvc-tailcall-take-two
Fidget-SpinnerNov 4, 2025
81618e2
Merge remote-tracking branch 'upstream/main' into msvc-tailcall-take-two
Fidget-SpinnerNov 11, 2025
2008d1d
Use choco for now to get VS 2026
Fidget-SpinnerNov 11, 2025
7c84388
Update tail-call.yml
Fidget-SpinnerNov 11, 2025
68b41cf
Update tail-call.yml
Fidget-SpinnerNov 11, 2025
c7316fc
Update tail-call.yml
Fidget-SpinnerNov 11, 2025
9214d5b
Update tail-call.yml
Fidget-SpinnerNov 11, 2025
52c6f9c
Update tail-call.yml
Fidget-SpinnerNov 11, 2025
34d98d3
Update tail-call.yml
Fidget-SpinnerNov 11, 2025
7ec626e
Update tail-call.yml
Fidget-SpinnerNov 11, 2025
ad1c5a2
Update tail-call.yml
Fidget-SpinnerNov 11, 2025
4155337
Update tail-call.yml
Fidget-SpinnerNov 11, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Fix VS 2026
  • Loading branch information
@Fidget-Spinner
Fidget-Spinner committedOct 11, 2025
commit66ec774074592353e73276df8e34a7865fc07cd1
11 changes: 7 additions & 4 deletionsPython/bytecodes.c
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2288,10 +2288,13 @@ dummy_func(
STAT_INC(LOAD_SUPER_ATTR, hit);
PyObject *name = GETITEM(FRAME_CO_NAMES, oparg >> 2);
PyTypeObject *cls = (PyTypeObject *)class;
// Note: not actually a pointer, just so that we can use restrict on it.
int *Py_MSVC_RESTRICT method_found = NULL;
PyObject *attr_o = _PySuper_Lookup(cls, self, name,
Py_TYPE(self)->tp_getattro == PyObject_GenericGetAttr ? (int *)&method_found : NULL);
int method_found = 0;
PyObject *attr_o;
Py_BEGIN_LOCALS_MUST_NOT_ESCAPE();.
int *Py_MSVC_RESTRICT method_found_ptr = &method_found;
attr_o = _PySuper_Lookup(cls, self, name,
Py_TYPE(self)->tp_getattro == PyObject_GenericGetAttr ? method_found_ptr : NULL);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Indent? Like in other places

Py_END_LOCALS_MUST_NOT_ESCAPE();
if (attr_o == NULL) {
ERROR_NO_POP();
}
Expand Down
10 changes: 7 additions & 3 deletionsPython/executor_cases.c.h
View file
Open in desktop

Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.

10 changes: 7 additions & 3 deletionsPython/generated_cases.c.h
View file
Open in desktop

Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.

Loading

[8]ページ先頭

©2009-2026 Movatter.jp