Re: [XEN PATCH 1/3] xen: introduce static_assert_unreachable()

2024-01-24 Thread Jan Beulich
On 24.01.2024 09:20, Federico Serafini wrote: > On 22/01/24 15:02, Jan Beulich wrote: >> On 22.01.2024 14:48, Federico Serafini wrote: >>> --- a/xen/include/xen/compiler.h >>> +++ b/xen/include/xen/compiler.h >>> @@ -64,6 +64,14 @@ >>> # define fallthroughdo {} while (0) /* fallthrough

Re: [XEN PATCH 1/3] xen: introduce static_assert_unreachable()

2024-01-24 Thread Federico Serafini
On 22/01/24 15:02, Jan Beulich wrote: On 22.01.2024 14:48, Federico Serafini wrote: Introduce macro static_asser_unreachable() to check that a program point is considered unreachable by the static analysis performed by the compiler, even at optimization level -O0. Is it really intended to

Re: [XEN PATCH 1/3] xen: introduce static_assert_unreachable()

2024-01-22 Thread Jan Beulich
On 22.01.2024 14:48, Federico Serafini wrote: > Introduce macro static_asser_unreachable() to check that a program > point is considered unreachable by the static analysis performed by the > compiler, even at optimization level -O0. Is it really intended to limit use of this macro to cases where

[XEN PATCH 1/3] xen: introduce static_assert_unreachable()

2024-01-22 Thread Federico Serafini
Introduce macro static_asser_unreachable() to check that a program point is considered unreachable by the static analysis performed by the compiler, even at optimization level -O0. The use of such macro will lead to one of the following outcomes: - the program point identified by the macro is