[testsuite] Fix sibcall-9 & sibcall-10 with -fPIC
authorThomas Preud'homme <thomas.preudhomme@linaro.org>
Thu, 25 Oct 2018 10:19:49 +0000 (10:19 +0000)
committerThomas Preud'homme <thopre01@gcc.gnu.org>
Thu, 25 Oct 2018 10:19:49 +0000 (10:19 +0000)
commit541eccada375ed8309ab805e0a4df146ac07fc2d
tree2af6730900abf22c291c54691070c865ef1294c8
parent7852940e7bbeae3c40cdc6c61356099216bde688
[testsuite] Fix sibcall-9 & sibcall-10 with -fPIC

gcc.dg/sibcall-9.c and gcc.dg/sibcall-10.c give execution failure
on ARM when compiled with -fPIC due to the PIC access to volatile
variable v creating an extra spill which causes the frame size of the
two recursive functions to be different. Making the variable static
solve the issue because the variable can be access in a PC-relative way
and avoid the spill, while still testing sibling call as originally
intended.

2018-10-25  Thomas Preud'homme  <thomas.preudhomme@linaro.org>

gcc/testsuite/
    * gcc.dg/sibcall-9.c: Make v static.
    * gcc.dg/sibcall-10.c: Likewise.

From-SVN: r265482
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/sibcall-10.c
gcc/testsuite/gcc.dg/sibcall-9.c