From: Christian Schoenebeck <qemu_oss@crudebyte.com>
To: Nikita Ivanov <nivanov@cloudlinux.com>,
qemu-devel@nongnu.org, Markus Armbruster <armbru@redhat.com>
Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Greg Kurz" <groug@kaod.org>, "Jason Wang" <jasowang@redhat.com>,
"Michael Roth" <michael.roth@amd.com>,
"Konstantin Kostiuk" <kkostiuk@redhat.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Peter Maydell" <peter.maydell@linaro.org>
Subject: Re: [PATCH] error handling: Use TFR() macro where applicable
Date: Thu, 18 Aug 2022 16:07:15 +0200 [thread overview]
Message-ID: <1727925.InMztqvFxb@silver> (raw)
In-Reply-To: <CAFEAcA80d1Qd3VrzV79_ywEryikfLrLNMbe50hjMEP8_HKNBvg@mail.gmail.com>
On Mittwoch, 17. August 2022 17:55:24 CEST Peter Maydell wrote:
> On Wed, 17 Aug 2022 at 15:49, Nikita Ivanov <nivanov@cloudlinux.com> wrote:
> > Well...
> >
> > What exactly is still under discussion? In my perspective, the main
> > pitfalls have been resolved:
> >
> > 0. All possible places where TFR() macro could be applied are covered.
> > 1. Macro has been renamed in order to be more transparent. The name has
> > been chosen in comparison with a similar glibc macro. 2. The macro itself
> > has been refactored, in order to replace it entirely with glibc
> > alternative. 3. Problems with statement/expressions differences in qemu
> > and glibc implementation have been resolved.
> >
> > Is there any room for improvement?
>
> (a) do we want the statement version or the expression version?
I think the tendency was in favour for the expression version? Markus made it
clear that the glibc version indeed may evaluate as an expression (GCC
extension).
> (b) do we want "use the glibc one, with same-semantics version for
> compatibility", or do we want "we have our own thing"?
>
> I would have voted for following glibc, except that it does
> that cast-to-long thing, which is incorrect behaviour when
> long is 32 bits and the return value from the function being
> tested is 64 bits.
Then simply int64_t as a type instead, and as "our own thing"?
Best regards,
Christian Schoenebeck
next prev parent reply other threads:[~2022-08-18 14:08 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-04 7:25 [PATCH] error handling: Use TFR() macro where applicable Nikita Ivanov
2022-08-05 11:10 ` Christian Schoenebeck
2022-08-05 11:18 ` Marc-André Lureau
2022-08-05 11:40 ` Peter Maydell
2022-08-08 7:19 ` Nikita Ivanov
2022-08-08 8:05 ` Markus Armbruster
2022-08-08 8:27 ` Nikita Ivanov
2022-08-08 12:52 ` Christian Schoenebeck
2022-08-08 13:11 ` Christian Schoenebeck
2022-08-08 14:22 ` Markus Armbruster
2022-08-08 18:00 ` Nikita Ivanov
2022-08-08 18:03 ` Nikita Ivanov
2022-08-17 14:06 ` Nikita Ivanov
2022-08-17 14:16 ` Peter Maydell
2022-08-17 14:49 ` Nikita Ivanov
2022-08-17 15:55 ` Peter Maydell
2022-08-18 14:07 ` Christian Schoenebeck [this message]
2022-08-18 14:11 ` Peter Maydell
2022-10-07 11:44 ` Nikita Ivanov
2022-10-07 14:50 ` Christian Schoenebeck
2022-10-07 15:32 ` Peter Maydell
2022-10-10 8:33 ` Nikita Ivanov
2022-10-10 9:56 ` Peter Maydell
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=1727925.InMztqvFxb@silver \
--to=qemu_oss@crudebyte.com \
--cc=armbru@redhat.com \
--cc=groug@kaod.org \
--cc=jasowang@redhat.com \
--cc=kkostiuk@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=michael.roth@amd.com \
--cc=nivanov@cloudlinux.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/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.