RISC-V: Fix -msave-restore bug with sibcalls.
authorJim Wilson <wilson@gcc.gnu.org>
Tue, 9 Jan 2018 00:45:46 +0000 (16:45 -0800)
committerJim Wilson <wilson@gcc.gnu.org>
Tue, 9 Jan 2018 00:45:46 +0000 (16:45 -0800)
commitc8a0c7b660a96081f320c8155f135a46b2202968
tree1ec950b0acd31b52fdea6aed493eb151f61e2a34
parentb48ae4b0809cc56c645de45008e7ce886987fa3b
RISC-V: Fix -msave-restore bug with sibcalls.

2018-01-08  Monk Chiang  <sh.chiang04@gmail.com>
    Kito Cheng  <kito.cheng@gmail.com>

gcc/
* config/riscv/riscv.c (machine_function::is_leaf): Remove field.
(riscv_leaf_function_p): Delete.
(riscv_function_ok_for_sibcall): Return false when TARGET_SAVE_RESTORE.

2018-01-08  Chih-Mao Chen <pkmx.tw@gmail.com>
    Monk Chiang  <sh.chiang04@gmail.com>

gcc/testsuite/
* gcc.target/riscv/save-restore-1.c: New.

From-SVN: r256362
gcc/ChangeLog
gcc/config/riscv/riscv.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/riscv/save-restore-1.c [new file with mode: 0644]