In current, both the z80 and the r3ka port use __memcpy to implement struct assignment. Which is correct, but inefficient, since both have a builtin for memcpy that should be used instead (and AFAIR was used in the past).
P.S.: This is a regression vs. SDCC 4.5.0.
Diff:
Diff:
memcpyis special among the builtin functions, since it is both-port-specific, and used by SDCC for struct handling. Looks like the check if it is available happens before processing the list of available functions from ports.