r274113 - in /branches/gcc-8-branch/gcc: Change...

kito@gcc.gnu.org kito@gcc.gnu.org
Mon Aug 5 10:44:00 GMT 2019


Author: kito
Date: Mon Aug  5 10:44:19 2019
New Revision: 274113

URL: https://gcc.gnu.org/viewcvs?rev=274113&root=gcc&view=rev
Log:
RISC-V: Promote type correctly for libcalls

 - argument and return value for libcall won't promote at
   default_promote_function_mode_always_promote, however we expect it
   should sign-extend as normal function.

 - Witout this patch, this test case will fail at -march=rv64i -mabi=lp64.

 - The implementation of riscv_promote_function_mode is borrowed from MIPS.

gcc/ChangeLog

	* config/riscv/riscv.c (riscv_promote_function_mode): New.
	(TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.

gcc/testsuite/ChangeLog

	* gcc.target/riscv/promote-type-for-libcall.c: New.

Added:
    branches/gcc-8-branch/gcc/testsuite/gcc.target/riscv/promote-type-for-libcall.c
Modified:
    branches/gcc-8-branch/gcc/ChangeLog
    branches/gcc-8-branch/gcc/config/riscv/riscv.c
    branches/gcc-8-branch/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list