[Dwarf-Discuss] Location list entries for caller-saved registers at time of call

Cary Coutant ccoutant at gmail.com
Thu Dec 6 12:47:22 PST 2018


> Another perfectly good solution is for the compiler to assure that the return PC is always in the
> right scope to begin with. All it takes is to include a (never executed) NOP following any non-returning
> CALL at the last address of the routine.Such calls are not common, plus many environments align
> the beginning of (any subsequent) functions anyway so padding bytes are likely to be available. As a
> result, such "extra" bytes are not going to be a space issue.

In fact, the PA-RISC and Itanium calling conventions specifically require this.

-cary


More information about the Dwarf-Discuss mailing list