-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spurious -Warray-bounds
warning on GCC 11 in free-threaded build
#122974
Labels
Comments
colesbury
added a commit
to colesbury/cpython
that referenced
this issue
Aug 16, 2024
…uild GCC 11 and newerwarn about the access to `unique_id` in non-debug builds due to inlining the call on static non-heap types.
colesbury
added a commit
to colesbury/cpython
that referenced
this issue
Aug 16, 2024
…uild GCC 11 and newer warn about the access to `unique_id` in non-debug builds due to inlining the call on static non-heap types.
colesbury
added a commit
that referenced
this issue
Aug 17, 2024
…123071) GCC 11 and newer warn about the access to `unique_id` in non-debug builds due to inlining the call on static non-heap types.
jeremyhylton
pushed a commit
to jeremyhylton/cpython
that referenced
this issue
Aug 19, 2024
…uild (python#123071) GCC 11 and newer warn about the access to `unique_id` in non-debug builds due to inlining the call on static non-heap types.
blhsing
pushed a commit
to blhsing/cpython
that referenced
this issue
Aug 22, 2024
…uild (python#123071) GCC 11 and newer warn about the access to `unique_id` in non-debug builds due to inlining the call on static non-heap types.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After #122418, GCC 11+ now emits a (spurious) warning in optimized builds, but not debug builds. Clang does not issue a warning
GCC is clever enough to inline the
_Py_INCREF_TYPE
call onPyLong_Type
, but not clever enough to understand the_PyType_HasFeature(type, Py_TPFLAGS_HEAPTYPE)
guard.cpython/Include/internal/pycore_object.h
Lines 296 to 322 in db6f5e1
I don't see a great way to rewrite
_Py_INCREF_TYPE
to avoid the warning, so maybe we should just use a#pragma
to suppress theWarray-bounds
warnings in that function.Linked PRs
The text was updated successfully, but these errors were encountered: