This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: long long alignment in structure for GCC 7.2.0 on Windows
- From: Xi Ruoyao <ryxi at stu dot xidian dot edu dot cn>
- To: "Gaoxiang (OS)" <gaoxiang25 at huawei dot com>, "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Cc: ryxi at stu dot xidian dot edu dot cn, hutj <hutj at huawei dot com>
- Date: Wed, 27 Dec 2017 22:14:40 +0800
- Subject: Re: long long alignment in structure for GCC 7.2.0 on Windows
- Authentication-results: sourceware.org; auth=none
- References: <9047C53C18267742AB12E43B65C7F9F70BCBD95A@dggemi505-mbs.china.huawei.com>
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>.
--
Xi Ruoyao <ryxi@stu.xidian.edu.cn>
School of Aerospace Science and Technology, Xidian University