]> git.ipfire.org Git - thirdparty/valgrind.git/commit
s390x: Fix compile warnings in test cases
authorAndreas Arnez <arnez@linux.ibm.com>
Fri, 24 Sep 2021 18:06:39 +0000 (20:06 +0200)
committerAndreas Arnez <arnez@linux.ibm.com>
Mon, 4 Oct 2021 12:50:26 +0000 (14:50 +0200)
commitebfbc9541753b55fb1b22ba762571f80e4a497f7
tree89d4cadaaeabb74b75825cca440834e37e86a8e9
parent9aa51a6e25f21b990cbb75b8e3f486653e6173e4
s390x: Fix compile warnings in test cases

Some GCC versions emit the following warnings for some s390x-specific test
cases:

   warning: listing the stack pointer register '15' in a clobber list is
   deprecated

   warning: this 'else' clause does not
   guard... [-Wmisleading-indentation] ...this statement, but...

Fix these.

Most of inline assemblies declaring r15 as clobbered do not actually
change its value.  Only in stmg_wrap() it becomes necessary to save and
restore r15.
none/tests/s390x/cgij.c
none/tests/s390x/cgrj.c
none/tests/s390x/cij.c
none/tests/s390x/clgij.c
none/tests/s390x/clgrj.c
none/tests/s390x/clij.c
none/tests/s390x/clrj.c
none/tests/s390x/crj.c
none/tests/s390x/cu42.c
none/tests/s390x/stmg.c