[Python-Dev] mingw32 and gc-header weirdness
Roumen Petrov
bugtrack at roumenpetrov.info
Thu Jul 23 01:56:01 CEST 2009
Martin v. Löwis wrote:
[SNIP]
> No. tim_one changed it to be long double in r25454 to support some
> system that Dave Abrahams uses, so it needs to stay that way :-)
>
> However, we can certainly acknowledge that this is a bug in MingW,
> and special case it. Either introduce a symbolic type gchead_align_t
> which gets defined to just double on MingW, or put the #ifdef right
> into the structure.
No this is not GCC bug. GCC support "hardware extended precision" as
implement long double and mingw w32api implement long double functions.
According to http://msdn.microsoft.com/en-us/library/9cx8xs15.aspx it is
MSVC limitation.
> It might also be useful to assert that sizeof(gchead_align_t) is
> 8 or 16, and reject 12 as a value. The point is that we need the
> maximum alignment, and that certainly shouldn't be 12.
So look like python bug.
> Regards,
> Martin
Regards,
Roumen
More information about the Python-Dev
mailing list