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

[3.13] gh-132026: Ensure _MIPS_SIM has defined _ABI identifiers for comparison (GH-132027)#133092

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

Merged
zware merged 1 commit intopython:3.13frommiss-islington:backport-6985e2e-3.13
Apr 28, 2025

Conversation

miss-islington
Copy link
Contributor

@miss-islingtonmiss-islington commentedApr 28, 2025
edited by bedevere-appbot
Loading

When built on a MIPS architecture,_MIPS_SIM is used to determine
architecture specifics. The value is expected to match either
_ABIO32,_ABIN32 or_ABI64.

Ingcc config/mips/mips.h these values are defined as compiler
builtin_define inside of a switch/case. That means, mips64el and
mips64 architectures know about_ABI64 but don't know about_ABIO32
and_ABIN32. In turn, when CPython tries to use them in comparison,
they may be undefined identifiers.

In default compiler behavior, the undefined identifier will be
evaluated as zero, and it will not match_MIPS_SIM. However, the
issues pop up when-Wundef (or, even worse,-Werror=undef) compiler
flag is enabled. Then suddenly it's visible as a warning or error.
(cherry picked from commit6985e2e)

Co-authored-by: Valters Jansonssigv@users.noreply.github.com

…mparison (pythonGH-132027)When built on a MIPS architecture, `_MIPS_SIM` is used to determinearchitecture specifics. The value is expected to match either`_ABIO32`, `_ABIN32` or `_ABI64`.In `gcc` config/mips/mips.h these values are defined as compiler`builtin_define` inside of a switch/case. That means, mips64el andmips64 architectures know about `_ABI64` but don't know about `_ABIO32`and `_ABIN32`. In turn, when CPython tries to use them in comparison,they may be undefined identifiers.In default compiler behavior, the undefined identifier will beevaluated as zero, and it will not match `_MIPS_SIM`. However, theissues pop up when `-Wundef` (or, even worse, `-Werror=undef`) compilerflag is enabled. Then suddenly it's visible as a warning or error.(cherry picked from commit6985e2e)Co-authored-by: Valters Jansons <sigv@users.noreply.github.com>
@python-cla-bot
Copy link

python-cla-botbot commentedApr 28, 2025
edited
Loading

All commit authors signed the Contributor License Agreement.

CLA signed

@zwarezware merged commit507b4fa intopython:3.13Apr 28, 2025
24 of 25 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@miss-islington@zware@sigv

[8]ページ先頭

©2009-2025 Movatter.jp