Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RISC-V: fix TARGET_PROMOTE_FUNCTION_MODE hook for libcalls
riscv_promote_function_mode doesn't promote a SI to DI for libcalls case. The fix is what generic promote_mode () in explow.cc does. I really don't understand why the old code didn't work, but stepping thru the debugger shows old code didn't and fixed does. This showed up when testing Ajit's REE ABI extension series which probes the ABI (using a NULL tree type) and ends up hitting the libcall code path. [Usual caveat, I'll wait for Pre-commit CI to run the tests and report] gcc/ChangeLog: * config/riscv/riscv.cc (riscv_promote_function_mode): Fix mode returned for libcall case. Signed-off-by: Vineet Gupta <vineetg@rivosinc.com>
- Loading branch information