Title: gh-127545: Replace _Py_ALIGN_AS(V) by _Py_ALIGNED_DEF(N, T) by encukou · Pull Request #135209 · python/cpython · GitHub
Open Graph Title: gh-127545: Replace _Py_ALIGN_AS(V) by _Py_ALIGNED_DEF(N, T) by encukou · Pull Request #135209 · python/cpython
X Title: gh-127545: Replace _Py_ALIGN_AS(V) by _Py_ALIGNED_DEF(N, T) by encukou · Pull Request #135209 · python/cpython
Description: _Py_ALIGNED_DEF(N, T) might be a better way to make the various _Alignas alternatives, which behave in interesting ways, increase (rather than set) a variable's alignment. The standard alignas/_Alignas error out if they would decrease the alignment. To prevent that, they can be used again with the defined variable's type. The standard alignas/_Alignas can't be used on a struct definition, the workaround is to use it on one of the struct's members. MSVC declspec(aligned) only takes integer literals. MSVC declspec(aligned) had a bug when applied to a combined struct+member definition; a workaround is to separate the struct definition. This avoids a potentially ABI-breaking bug in older MSVC versions (which newer versions warn about, using code C5274). This PR does that for PyASCIIObject.state. Issue: gh-127545
Open Graph Description: _Py_ALIGNED_DEF(N, T) might be a better way to make the various _Alignas alternatives, which behave in interesting ways, increase (rather than set) a variable's alignment. The standard alignas/...
X Description: _Py_ALIGNED_DEF(N, T) might be a better way to make the various _Alignas alternatives, which behave in interesting ways, increase (rather than set) a variable's alignment. The standard alig...
Opengraph URL: https://github.com/python/cpython/pull/135209
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:0af0647f-34e2-db61-166c-cb955d206f6f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C132:3D9B0D:11996EB:19A130B:6A563868 |
| html-safe-nonce | 0ccfadb83d3c6e217ef7d597b1804158a9c7bf2726eb94e12797d30e6b3bf53d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTMyOjNEOUIwRDoxMTk5NkVCOjE5QTEzMEI6NkE1NjM4NjgiLCJ2aXNpdG9yX2lkIjoiNTUxOTYwNTcyMzkxNzg1ODkyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d4882ecfc533c994548b5ddb307a6709d3d04d219ec071d1632e882beeb00747 |
| hovercard-subject-tag | pull_request:2573398766 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/135209/files |
| twitter:image | https://avatars.githubusercontent.com/u/302922?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/302922?s=400&v=4 |
| og:image:alt | _Py_ALIGNED_DEF(N, T) might be a better way to make the various _Alignas alternatives, which behave in interesting ways, increase (rather than set) a variable's alignment. The standard alignas/... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9d78ea552aac0685ca5f006d44f88166cbbf3bb96843f8da0c5a2c0b9908430b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423b2fb76ac2b90de5ab599b7a76a0d2b2c83f24 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width