FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-128472: Add `-skip-funcs` to BOLT options to fix computed goto errors by zanieb · Pull Request #128511 · python/cpython · GitHub

Repository navigation

gh-128472: Add -skip-funcs to BOLT options to fix computed goto errors - #128511

Merged
corona10 merged 2 commits into
python:mainfrom
zanieb:zb/bolt-skip-funcs
Jan 7, 2025
Merged

corona10 merged 2 commits into
python:mainfrom
zanieb:zb/bolt-skip-funcs

Conversation

zanieb commented Jan 5, 2025 •
edited
Loading

Copy link
Copy Markdown
Contributor

This patch was originally authored as part of astral-sh/python-build-standalone#463

Makes use of the common options added in #128455

Closes #128472
Backport needed for #124948

zanieb and others added 2 commits January 4, 2025 22:31
Co-authored-by: Gregory Szorc <gregory.szorc@gmail.com>
Comment thread configure.ac

corona10 commented Jan 5, 2025

Copy link
Copy Markdown
Member

cc @aaupov You may be interested in this issue as the CPython use-case.. :)

Comment thread configure.ac
dnl At least LLVM 19.x doesn't support computed gotos in PIC compiled code.
dnl Exclude functions containing computed gotos.
dnl TODO this may be fixed in LLVM 20.x via https://github.com/llvm/llvm-project/pull/120267.
[-skip-funcs=_PyEval_EvalFrameDefault,sre_ucs1_match/1,sre_ucs2_match/1,sre_ucs4_match/1]

corona10 Jan 5, 2025 •
edited
Loading

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Now we have reasons to add CI to maintain this list actively.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

ref #128515

corona10 merged commit 24b147a into python:main Jan 7, 2025
zanieb added needs backport to 3.12 only security fixes needs backport to 3.13 only security fixes labels Jan 7, 2025

Copy link
Copy Markdown

Thanks @zanieb for the PR, and @corona10 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

Copy link
Copy Markdown

Thanks @zanieb for the PR, and @corona10 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 7, 2025
…to errors (pythongh-128511)

* Add `-skip-funcs` to BOLT options to fix computed goto errors

Co-authored-by: Gregory Szorc <gregory.szorc@gmail.com>

* NEWS

---------

(cherry picked from commit 24b147a)

Co-authored-by: Zanie Blue <contact@zanie.dev>
Co-authored-by: Gregory Szorc <gregory.szorc@gmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 7, 2025
…to errors (pythongh-128511)

* Add `-skip-funcs` to BOLT options to fix computed goto errors

Co-authored-by: Gregory Szorc <gregory.szorc@gmail.com>

* NEWS

---------

(cherry picked from commit 24b147a)

Co-authored-by: Zanie Blue <contact@zanie.dev>
Co-authored-by: Gregory Szorc <gregory.szorc@gmail.com>

bedevere-app Bot commented Jan 7, 2025

Copy link
Copy Markdown

GH-128572 is a backport of this pull request to the 3.12 branch.

bedevere-app Bot removed the needs backport to 3.12 only security fixes label Jan 7, 2025

bedevere-app Bot commented Jan 7, 2025

Copy link
Copy Markdown

GH-128573 is a backport of this pull request to the 3.13 branch.

bedevere-app Bot removed the needs backport to 3.13 only security fixes label Jan 7, 2025
corona10 pushed a commit that referenced this pull request Jan 7, 2025
…oto errors (gh-128511) (gh-128572)

gh-128472: Add `-skip-funcs` to BOLT options to fix computed goto errors (gh-128511)

* Add `-skip-funcs` to BOLT options to fix computed goto errors



* NEWS

---------

(cherry picked from commit 24b147a)

Co-authored-by: Zanie Blue <contact@zanie.dev>
Co-authored-by: Gregory Szorc <gregory.szorc@gmail.com>
corona10 pushed a commit that referenced this pull request Jan 7, 2025
…oto errors (gh-128511) (#128573)

gh-128472: Add `-skip-funcs` to BOLT options to fix computed goto errors (gh-128511)

* Add `-skip-funcs` to BOLT options to fix computed goto errors



* NEWS

---------

(cherry picked from commit 24b147a)

Co-authored-by: Zanie Blue <contact@zanie.dev>
Co-authored-by: Gregory Szorc <gregory.szorc@gmail.com>
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this pull request Jan 8, 2025
…to errors (pythongh-128511)

* Add `-skip-funcs` to BOLT options to fix computed goto errors

Co-authored-by: Gregory Szorc <gregory.szorc@gmail.com>

* NEWS

---------

Co-authored-by: Gregory Szorc <gregory.szorc@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BOLT fails with --enabled-shared on LLVM 19 with "unable to get new address"

2 participants


Back | FazBrowse Home | New Git URL