|
From: | Dmitry Antipov |
Subject: | Re: The --with-wide-int build and Lisp_Sub_Char_Table assertion |
Date: | Mon, 12 Jan 2015 21:32:32 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 |
On 01/12/2015 08:26 PM, Eli Zaretskii wrote:
This is exactly the flaw: the assumption that if the size of 'struct vectorlike_header' is 4, the offset of the next struct member is also 4. In reality, a compiler can add padding, and evidently here it did, probably to get that member aligned an a 8-byte boundary.
For MinGW/32, 1) what happens if you use -m[no-]ms-bitfields? (See https://gcc.gnu.org/onlinedocs/gcc/Variable-Attributes.html, section 6.38.5 i386 Variable Attributes). Or 2) what about using __attribute__((packed))? Stefan doesn't like it for an obvious reasons, but may be just for this particular case... Dmitry
[Prev in Thread] | Current Thread | [Next in Thread] |