From: John B. <joh...@gm...> - 2013-09-12 01:00:48
|
On Wed, Sep 11, 2013 at 5:55 PM, Glenn Randers-Pehrson <gl...@gm...>wrote: > OK, so jmp_buf requires 16-bit alignment on some implementation (Windows?) > that > also has an implementation of malloc() that does not align properly. > No. That would be a very serious bug in the compiler. The alignment requirement of jmp_buf is *always* correct, and the hosted implementation of malloc() *always* returns a pointer that is aligned to the most stringent alignment requirement of the implementation. Typically this matches that of jmp_buf because jmp_buf is (typically) just an array of machine registers stored to memory and the load/store of machine registers is what determines the alignment requirement of C structs. There is no issue; GhostScript has, once again, done something that only works on x86 and the implementers are suffering for it. We should not be joining the suffering. John Bowler |