[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] error handling: Use TFR() macro where applicable
From: |
Peter Maydell |
Subject: |
Re: [PATCH] error handling: Use TFR() macro where applicable |
Date: |
Wed, 17 Aug 2022 16:55:24 +0100 |
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?
(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.
thanks
-- PMM
- Re: [PATCH] error handling: Use TFR() macro where applicable, (continued)
- Re: [PATCH] error handling: Use TFR() macro where applicable, Markus Armbruster, 2022/08/08
- Re: [PATCH] error handling: Use TFR() macro where applicable, Nikita Ivanov, 2022/08/08
- Re: [PATCH] error handling: Use TFR() macro where applicable, Christian Schoenebeck, 2022/08/08
- Re: [PATCH] error handling: Use TFR() macro where applicable, Christian Schoenebeck, 2022/08/08
- Re: [PATCH] error handling: Use TFR() macro where applicable, Markus Armbruster, 2022/08/08
- Re: [PATCH] error handling: Use TFR() macro where applicable, Nikita Ivanov, 2022/08/08
- Re: [PATCH] error handling: Use TFR() macro where applicable, Nikita Ivanov, 2022/08/08
- Re: [PATCH] error handling: Use TFR() macro where applicable, Nikita Ivanov, 2022/08/17
- Re: [PATCH] error handling: Use TFR() macro where applicable, Peter Maydell, 2022/08/17
- Re: [PATCH] error handling: Use TFR() macro where applicable, Nikita Ivanov, 2022/08/17
- Re: [PATCH] error handling: Use TFR() macro where applicable,
Peter Maydell <=
- Re: [PATCH] error handling: Use TFR() macro where applicable, Christian Schoenebeck, 2022/08/18
- Re: [PATCH] error handling: Use TFR() macro where applicable, Peter Maydell, 2022/08/18