From: Pierrick Bouvier <pierrick.bouvier@linaro.org>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
"Daniel P. Berrangé" <berrange@redhat.com>,
"Thomas Huth" <thuth@redhat.com>,
"Alex Bennée" <alex.bennee@linaro.org>,
"Richard Henderson" <richard.henderson@linaro.org>,
"Peter Maydell" <peter.maydell@linaro.org>
Subject: Re: Supporting clang on windows
Date: Mon, 25 Nov 2024 08:55:10 -0800 [thread overview]
Message-ID: <55e0ff78-765e-4db7-9406-e8a42679c1c6@linaro.org> (raw)
In-Reply-To: <CABgObfbpEEHbLYNNXoNUwD0VNPiNAYB-9REqgEFhRz3QQKTZYw@mail.gmail.com>
On 11/24/24 23:00, Paolo Bonzini wrote:
> On Sun, Nov 24, 2024 at 9:23 PM Pierrick Bouvier
> <pierrick.bouvier@linaro.org> wrote:
> * there is no pushback against clang support, there is pushback
> against asking for a change without understanding the problem
>
Thanks for taking time to share more insights about it.
> As an aside, at https://github.com/msys2/MINGW-packages/pull/21540 you
> said "I think too it's more a FUD argument than a real problem", which
> is a bit too dismissive. If anything it's a case of "once bitten,
> twice shy".
>
There was no intention to have a personal jugdment, not blame anyone,
and I hope you didn't take it this way. If that's the case, sorry about
that.
FUD applies when Fear and Uncertainty applies, and it's definitely where
we are on this - we fear something from a past experience, and we are
uncertain about the current status. I totally understand that's a very
hard issue to diagnose when you meet those kind of memory layout bugs.
> I understand that, and I'm asking you to do another experiment. Do not
> change the compile-time options. Instead, change QEMU_PACKED to just
>
> #define QEMU_PACKED __attribute__((packed))
>
> and see if any struct definitions (which will all follow the ms_struct
> rules) change. If there are changes, let's examine what they are and
> why my analysis above was incorrect. Fix those cases, add
> QEMU_BUILD_BUG_ON checks only to the affected structs, and once you've
> addressed any differences (if they exist), you can proceed with
> dropping gcc_struct since there will be concrete evidence proving it's
> safe.
>
I didn't expect the issue of our conversation would be to get rid of
gcc_struct entirely. Thanks for pushing in the right direction.
I answered later on this thread for this, and it's a very positive
conclusion: no difference was found with/without gcc_struct attribute.
> Paolo
>
Thanks,
Pierrick
next prev parent reply other threads:[~2024-11-25 16:56 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-24 0:21 Supporting clang on windows Pierrick Bouvier
2024-11-24 12:10 ` Paolo Bonzini
2024-11-24 20:23 ` Pierrick Bouvier
2024-11-25 7:00 ` Paolo Bonzini
2024-11-25 9:34 ` Daniel P. Berrangé
2024-11-25 9:39 ` Paolo Bonzini
2024-11-25 10:42 ` Peter Maydell
2024-11-25 11:19 ` Thomas Huth
2024-11-25 16:48 ` Pierrick Bouvier
2024-11-25 17:05 ` Peter Maydell
2024-11-25 21:47 ` Pierrick Bouvier
2024-11-26 21:24 ` Pierrick Bouvier
2024-11-25 16:55 ` Pierrick Bouvier [this message]
2024-11-25 7:15 ` Thomas Huth
2024-11-24 12:28 ` Philippe Mathieu-Daudé
2024-11-24 20:24 ` Pierrick Bouvier
2024-11-25 6:31 ` Thomas Huth
2024-11-25 14:04 ` Richard Henderson
2024-11-25 16:19 ` Pierrick Bouvier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55e0ff78-765e-4db7-9406-e8a42679c1c6@linaro.org \
--to=pierrick.bouvier@linaro.org \
--cc=alex.bennee@linaro.org \
--cc=berrange@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.