summaryrefslogtreecommitdiff
path: root/scripts/stackdelta
diff options
context:
space:
mode:
authorBenjamin Gray <bgray@linux.ibm.com>2023-07-25 03:58:41 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2023-08-02 15:22:19 +0300
commitc3062ede9927053754ba27b280afe00b9b31b37a (patch)
tree4e0203e5987cd828c1d9d1586e5598664a8971ad /scripts/stackdelta
parentfc6732a8556c1099b89f4777a96bd6a1ae5a4378 (diff)
downloadlinux-c3062ede9927053754ba27b280afe00b9b31b37a.tar.xz
selftests/powerpc/ptrace: Declare test temporary variables as volatile
While the target is volatile, the temporary variables used to access the target cast away the volatile. This is undefined behaviour, and a compiler may optimise away/reorder these accesses, breaking the test. This was observed with GCC 13.1.1, but it can be difficult to reproduce because of the dependency on compiler behaviour. Signed-off-by: Benjamin Gray <bgray@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20230725005841.28854-5-bgray@linux.ibm.com
Diffstat (limited to 'scripts/stackdelta')
0 files changed, 0 insertions, 0 deletions