diff options
author | Florian Weimer <fw@deneb.enyo.de> | 2018-04-29 19:18:33 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2018-04-29 19:18:33 (GMT) |
commit | 0b91f8a668201fc58fa732b8acc496caedfdbae0 (patch) | |
tree | 1ff9fa9b9056975c9dbd3a5eddcf5ebe3166c6fe /Include/patchlevel.h | |
parent | bad9a580caaba5088bea569c9c6775dab12b8103 (diff) | |
download | cpython-0b91f8a668201fc58fa732b8acc496caedfdbae0.zip cpython-0b91f8a668201fc58fa732b8acc496caedfdbae0.tar.gz cpython-0b91f8a668201fc58fa732b8acc496caedfdbae0.tar.bz2 |
Indicate that _PyGC_Head is only 8-byte aligned. (closes bpo-33374)
By spec, the "long double" in _PyGC_Head requires the union to always be 16-byte
aligned. However, obmalloc only yields 8-byte alignment. Compilers including GCC
8 are starting to use alignment information to do store-merging. So, the "long
double" needs to be changed to a simple "double" as was long ago done in Python
3 by e348c8d154cf6342c79d627ebfe89dfe9de23817. For 2.7, we need to add some
dummy padding to make sure _PyGC_Head stays the same size.
Diffstat (limited to 'Include/patchlevel.h')
0 files changed, 0 insertions, 0 deletions