long long alignment in structure for GCC 7.2.0 on Windows

Gaoxiang (OS) gaoxiang25@huawei.com
Wed Dec 27 14:25:00 GMT 2017



On 2017/12/27 22:14, Xi Ruoyao wrote:
> On 2017-12-27 13:50 +0000, Gaoxiang (OS) wrote:
> 
>> It prints 0000000000000028 on Windows instead of 0000000000000024 on Linux, it seems weird for the packed struct.
>> And I compile the same code with clang on windows ("clang -target x86_64-pc-windows-gnu test.c"), it prints
>> 0000000000000024.
>>
>> I have no idea what happened, Could someone give some hints?
> 
> I think this is PR 52991 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52991>.
>
Oh thanks :)


More information about the Gcc-help mailing list