]> gcc.gnu.org Git - gcc.git/commit
IBM zSystems: Fix function_ok_for_sibcall [PR106355]
authorStefan Schulze Frielinghaus <stefansf@linux.ibm.com>
Wed, 19 Oct 2022 12:28:22 +0000 (14:28 +0200)
committerStefan Schulze Frielinghaus <stefansf@linux.ibm.com>
Tue, 25 Oct 2022 08:33:22 +0000 (10:33 +0200)
commit0737125ec0e9102e139f8f49130b4666be4cc626
tree0d321b22433c6dd96545acc073c4f0d9e1bb0ba5
parent2a2093a9d40b5bc97b970fca9c02ff64056f3ed0
IBM zSystems: Fix function_ok_for_sibcall [PR106355]

For a parameter with BLKmode we cannot use REG_NREGS in order to
determine the number of consecutive registers.  Streamlined this with
the implementation of s390_function_arg.

Fix some indentation whitespace, too.

gcc/ChangeLog:

PR target/106355
* config/s390/s390.cc (s390_call_saved_register_used): For a
parameter with BLKmode fix determining number of consecutive
registers.

gcc/testsuite/ChangeLog:

* gcc.target/s390/pr106355.h: Common code for new tests.
* gcc.target/s390/pr106355-1.c: New test.
* gcc.target/s390/pr106355-2.c: New test.
* gcc.target/s390/pr106355-3.c: New test.

(cherry picked from commit cb994acc08b67f26a54e7c5dc1f4995a2ce24d98)
gcc/config/s390/s390.cc
gcc/testsuite/gcc.target/s390/pr106355-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/s390/pr106355-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/s390/pr106355-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/s390/pr106355.h [new file with mode: 0644]
This page took 0.063328 seconds and 6 git commands to generate.