-fuse-caller-save - Collect register usage information

Programming / Compilers / GCC - vries [138bc75d-0d04-0410-961f-82ee72b054a4] - 28 May 2014 04:43 UTC

2014-05-28 Radovan Obradovic Tom de Vries

- cgraph.h (struct cgraph_rtl_info): Add function_used_regs and function_used_regs_valid fields.
- final.c: Move include of hard-reg-set.h to before rtl.h to declare find_all_hard_reg_sets. (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info) (get_call_reg_set_usage): New function. (rest_of_handle_final): Use collect_fn_hard_reg_usage.
- regs.h (get_call_reg_set_usage): Declare.

9ac9a75 -fuse-caller-save - Collect register usage information
gcc/ChangeLog | 12 ++++++
gcc/cgraph.h | 7 ++++
gcc/final.c | 117 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
gcc/regs.h | 4 ++
4 files changed, 139 insertions(+), 1 deletion(-)

Upstream: gcc.gnu.org


  • Share