OpenCloudOS-Kernel/tools/testing/selftests/powerpc/ptrace
Simon Guo f36dbfe1a5 selftests/powerpc: Fix build errors in powerpc ptrace selftests
GCC 7 will take "r2" in clobber list as an error and it will get
following build errors for powerpc ptrace selftests even with -fno-pic
option:
  ptrace-tm-vsx.c: In function ‘tm_vsx’:
  ptrace-tm-vsx.c:42:2: error: PIC register clobbered by ‘r2’ in ‘asm’
    asm __volatile__(
    ^~~
  make[1]: *** [ptrace-tm-vsx] Error 1
  ptrace-tm-spd-vsx.c: In function ‘tm_spd_vsx’:
  ptrace-tm-spd-vsx.c:55:2: error: PIC register clobbered by ‘r2’ in ‘asm’
    asm __volatile__(
    ^~~
  make[1]: *** [ptrace-tm-spd-vsx] Error 1
  ptrace-tm-spr.c: In function ‘tm_spr’:
  ptrace-tm-spr.c:46:2: error: PIC register clobbered by ‘r2’ in ‘asm’
    asm __volatile__(
    ^~~

Fix the build error by removing "r2" from the clobber list. None of
these asm blocks actually clobber r2.

Reported-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Simon Guo <wei.guo.simon@gmail.com>
Tested-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2017-12-11 13:03:37 +11:00
..
.gitignore selftests/powerpc: Add ptrace tests for TM SPR registers 2016-11-17 17:11:52 +11:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ptrace-gpr.c
ptrace-gpr.h
ptrace-tar.c selftests/powerpc: Add ptrace tests for TAR, PPR, DSCR registers 2016-11-17 17:11:49 +11:00
ptrace-tar.h selftests/powerpc: Add ptrace tests for TAR, PPR, DSCR registers 2016-11-17 17:11:49 +11:00
ptrace-tm-gpr.c selftests/powerpc: Add ptrace tests for GPR/FPR registers in TM 2016-11-17 17:11:48 +11:00
ptrace-tm-spd-gpr.c selftests/powerpc: Add ptrace tests for GPR/FPR registers in suspended TM 2016-11-17 17:11:49 +11:00
ptrace-tm-spd-tar.c selftests/powerpc: Add ptrace tests for TAR, PPR, DSCR in suspended TM 2016-11-17 17:11:50 +11:00
ptrace-tm-spd-vsx.c selftests/powerpc: Fix build errors in powerpc ptrace selftests 2017-12-11 13:03:37 +11:00
ptrace-tm-spr.c selftests/powerpc: Fix build errors in powerpc ptrace selftests 2017-12-11 13:03:37 +11:00
ptrace-tm-tar.c selftests/powerpc: Add ptrace tests for TAR, PPR, DSCR in TM 2016-11-17 17:11:50 +11:00
ptrace-tm-vsx.c selftests/powerpc: Fix build errors in powerpc ptrace selftests 2017-12-11 13:03:37 +11:00
ptrace-vsx.c selftests/powerpc: Add ptrace tests for VSX, VMX registers 2016-11-17 17:11:51 +11:00
ptrace-vsx.h selftests/powerpc: Add ptrace tests for VSX, VMX registers 2016-11-17 17:11:51 +11:00
ptrace.h selftests/powerpc: Add ptrace tests for TM SPR registers 2016-11-17 17:11:52 +11:00