Skip to content
Commit b56e1385 authored by Keith Packard's avatar Keith Packard Committed by Benjamin Cabé
Browse files

tests/arm_mpu_pxn: Insist that trivial functions are not inlined



GCC 14 takes a look these functions which are just 'return true' and
inlines them even though they has the noinline attribute set. This happens
because the compiler computes the possible range of values from the
function call, and as that is a single value (true), it replaces the call
with that value. So it's not strictly inlining the function?

Insist a bit harder by adding a compiler_barrier to the functions which
seems to solve the issue.

Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
parent 302b192d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment