]> granicus.if.org Git - python/commit
SF bug [#467145] Python 2.2a4 build problem on HPUX 11.0.
authorTim Peters <tim.peters@gmail.com>
Thu, 11 Oct 2001 18:31:31 +0000 (18:31 +0000)
committerTim Peters <tim.peters@gmail.com>
Thu, 11 Oct 2001 18:31:31 +0000 (18:31 +0000)
commit9e4ca10ce439845c939a9fa4264146a4cfa87fee
tree177a1b1f5fac5e873c72fdd2206b839c3947bab8
parentf3623f310e92ddb499e020635fe4977aae38a719
SF bug [#467145] Python 2.2a4 build problem on HPUX 11.0.
The platform requires 8-byte alignment for doubles, but the GC header
was 12 bytes and that threw off the natural alignment of the double
members of a subtype of complex.  The fix puts the GC header into a
union with a double as the other member, to force no-looser-than
double alignment of GC headers.  On boxes that require 8-byte alignment
for doubles, this may add pad bytes to the GC header accordingly; ditto
for platforms that *prefer* 8-byte alignment for doubles.  On platforms
that don't care, it shouldn't change the memory layout (because the
size of the old GC header is certainly greater than the size of a double
on all platforms, so unioning with a double shouldn't change size or
alignment on such boxes).
Include/objimpl.h
Modules/gcmodule.c