On 8/18/25 7:42 AM, Kito Cheng wrote:
The FUNCTION_VALUE and LIBCALL_VALUE macros are deprecated in favor of
the TARGET_FUNCTION_VALUE and TARGET_LIBCALL_VALUE target hooks.  This
patch replaces the macro definitions with proper target hook implementations.

This change is also a preparatory step for VLS calling convention support,
which will require additional information that is more easily handled
through the target hook interface.

gcc/ChangeLog:

        * config/riscv/riscv-protos.h (riscv_init_cumulative_args): Change
        fntype parameter from tree to const_tree.
        * config/riscv/riscv.cc (riscv_init_cumulative_args): Likewise.
        (riscv_function_value): Replace with new implementation that
        conforms to TARGET_FUNCTION_VALUE hook signature.
        (riscv_libcall_value): New function implementing TARGET_LIBCALL_VALUE.
        (TARGET_FUNCTION_VALUE): Define.
        (TARGET_LIBCALL_VALUE): Define.
        * config/riscv/riscv.h (FUNCTION_VALUE): Remove.
        (LIBCALL_VALUE): Remove.
Note the CI system didn't pick this up for reasons unknown. I'm always worried if we're changing the ABI related things, but this looks sensible.

So OK once you've got a clean run through CI or at least a run with no failures related to this change.

Jeff

Reply via email to