Re: Alignment testing

2004-04-26 Thread Dmitry Timoshkov
"Hans Leidekker" <[EMAIL PROTECTED]> wrote: > [Use a fixed width font to view this message] > > MSVC MinGW GCC > > Alignment of __int64: 8 8 8 > Size of __int64: 8 8 8 > > Alignment of large_int: 8 8 4 > Size of large_int

Re: Alignment testing

2004-04-26 Thread Alexandre Julliard
Hans Leidekker <[EMAIL PROTECTED]> writes: > Clearly GCC is the odd one out. When a double is embedded in > a structure GCC does not adjust the alignment of the structure > to the size of a double. > > So, should we add -malign-double to the compiler flags? No, that would break Unix compatibility

Re: Alignment testing

2004-04-26 Thread Hans Leidekker
Hi, [Use a fixed width font to view this message] MSVC MinGW GCC Alignment of __int64: 8 8 8 Size of __int64: 8 8 8 Alignment of large_int: 8 8 4 Size of large_int:8 8 8 Alignment of container1: 8

Re: Alignment testing

2004-04-26 Thread Dmitry Timoshkov
"Hans Leidekker" <[EMAIL PROTECTED]> wrote: > kernel/tests/generated.c currently shows one failure > when the executable is compiled with MinGW. Investigation > shows that MinGW and GCC differ when it comes to alignment > of doubles (i.e. a 64 bit wide type). > > I have constructed the test below

Alignment testing

2004-04-26 Thread Hans Leidekker
Hi, kernel/tests/generated.c currently shows one failure when the executable is compiled with MinGW. Investigation shows that MinGW and GCC differ when it comes to alignment of doubles (i.e. a 64 bit wide type). I have constructed the test below that shows the difference between MinGW and GCC. M