Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[3.9] bpo-40052: Fix alignment issue in PyVectorcall_Function() (GH-23999) #24005

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

Merged
merged 1 commit into from
Jan 5, 2021

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Dec 29, 2020

In file included from /usr/include/python3.8/Python.h:147:
In file included from /usr/include/python3.8/abstract.h:837:
/usr/include/python3.8/cpython/abstract.h:91:11: error: cast from 'char *' to 'vectorcallfunc *'
(aka 'struct _object *(**)(struct _object *, struct _object *const *, unsigned long, struct _object *)')
increases required alignment from 1 to 8 [-Werror,-Wcast-align]

    ptr = (vectorcallfunc*)(((char *)callable) + offset);
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Co-Authored-By: Andreas Schneider [email protected]
Co-Authored-By: Antoine Pitrou [email protected]
(cherry picked from commit 056c082)

Co-authored-by: Petr Viktorin [email protected]

https://bugs.python.org/issue40052

…3999)

```
In file included from /usr/include/python3.8/Python.h:147:
In file included from /usr/include/python3.8/abstract.h:837:
/usr/include/python3.8/cpython/abstract.h:91:11: error: cast from 'char *' to 'vectorcallfunc *'
(aka 'struct _object *(**)(struct _object *, struct _object *const *, unsigned long, struct _object *)')
increases required alignment from 1 to 8 [-Werror,-Wcast-align]

    ptr = (vectorcallfunc*)(((char *)callable) + offset);
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
```
Co-Authored-By: Andreas Schneider <[email protected]>
Co-Authored-By: Antoine Pitrou <[email protected]>
(cherry picked from commit 056c082)

Co-authored-by: Petr Viktorin <[email protected]>
@miss-islington
Copy link
Contributor Author

@encukou: Status check is done, and it's a success ✅ .

@miss-islington
Copy link
Contributor Author

@encukou: Status check is done, and it's a success ✅ .

@encukou encukou merged commit 6e72ab9 into python:3.9 Jan 5, 2021
@miss-islington miss-islington deleted the backport-056c082-3.9 branch January 5, 2021 15:47
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.

4 participants