Re: [PATCH] x86: avoid Misra Rule 19.1 violations

2023-07-31 Thread Andrew Cooper
On 17/07/2023 3:13 pm, Jan Beulich wrote: > Not exactly overlapping accesses to objects on the left and right hand > sides of an assignment are generally UB, and hence disallowed by Misra. > While in the specific cases we're talking about here no actual UB can > result as long as the compiler doesn

[PATCH] x86: avoid Misra Rule 19.1 violations

2023-07-17 Thread Jan Beulich
Not exactly overlapping accesses to objects on the left and right hand sides of an assignment are generally UB, and hence disallowed by Misra. While in the specific cases we're talking about here no actual UB can result as long as the compiler doesn't act actively "maliciously", let's still switch