qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] qemu/int128: Re-shuffle Int128Alias members


From: Richard Henderson
Subject: Re: [PATCH] qemu/int128: Re-shuffle Int128Alias members
Date: Tue, 2 May 2023 11:30:19 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0

On 5/2/23 09:44, Alex Bennée wrote:

Richard Henderson <richard.henderson@linaro.org> writes:

Clang 14, with --enable-tcg-interpreter errors with

include/qemu/int128.h:487:16: error: alignment of field 'i' (128 bits)
   does not match the alignment of the first field in transparent union;
   transparent_union attribute ignored [-Werror,-Wignored-attributes]
     __int128_t i;
                ^
include/qemu/int128.h:486:12: note: alignment of first field is 64 bits
     Int128 s;
            ^
1 error generated.

By placing the __uint128_t member first, this is avoided.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>


Queued to tcg-next.

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]