|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH 04/12] x86: add noreturn in a few more places
On 2026-09-01 08:26, Jan Beulich wrote: On 31.08.2026 21:13, Andrew Cooper wrote:On 28/08/2026 8:01 am, Jan Beulich wrote: If you find a suitable argument from the toolchain that the generated code is correct even though you return from a function where you promised not to return in its declaration, I suppose that's fine, but that MISRA Rule I mentioned ("A function declared with a _Noreturn function specifier shall not return to its caller"), which is not (yet) applied to Xen exists to defend from stumbling on UB 71 of C11: A function declared with a _Noreturn function specifier shall not return to its caller. So in general ECLAIR should not accept this by default. What you can do is deviate these (hopefully few) cases if you have backing evidence of the correct behavior. -- Nicola Vetrini, B.Sc. Software Engineer BUGSENG (https://bugseng.com) LinkedIn: https://www.linkedin.com/in/nicola-vetrini-a42471253
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |