From: Trevor Saunders Date: Sat, 9 May 2015 04:17:00 +0000 (+0000) Subject: change more argument types to rtx_insn * X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8c797f816bf27ef6464ae6d96b25a8d4e7ec0dc1;p=gcc.git change more argument types to rtx_insn * gcc/ChangeLog: 2015-05-08 Trevor Saunders * ira-color.c: Change argument types to rtx_insn *. * lra-eliminations.c: Likewise. * ira.h: Adjust. From-SVN: r222950 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 598510c7d30..efe4ca051f4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-05-08 Trevor Saunders + + * ira-color.c: Change argument types to rtx_insn *. + * lra-eliminations.c: Likewise. + * ira.h: Adjust. + 2015-05-08 Trevor Saunders * gcse.c: Change argument types to rtx_insn *. diff --git a/gcc/ira-color.c b/gcc/ira-color.c index 0ed9eddfd90..3faa7242372 100644 --- a/gcc/ira-color.c +++ b/gcc/ira-color.c @@ -4600,7 +4600,7 @@ ira_mark_new_stack_slot (rtx x, int regno, unsigned int total_size) CALL_USED_COUNT), and the first hard regno occupied by the pseudo-registers (through FIRST_HARD_REGNO). */ static int -calculate_spill_cost (int *regnos, rtx in, rtx out, rtx insn, +calculate_spill_cost (int *regnos, rtx in, rtx out, rtx_insn *insn, int *excess_pressure_live_length, int *nrefs, int *call_used_count, int *first_hard_regno) { @@ -4661,7 +4661,7 @@ calculate_spill_cost (int *regnos, rtx in, rtx out, rtx insn, decisions. */ bool ira_better_spill_reload_regno_p (int *regnos, int *other_regnos, - rtx in, rtx out, rtx insn) + rtx in, rtx out, rtx_insn *insn) { int cost, other_cost; int length, other_length; diff --git a/gcc/ira.h b/gcc/ira.h index 19797809292..5b52cb1980c 100644 --- a/gcc/ira.h +++ b/gcc/ira.h @@ -201,7 +201,7 @@ extern bool ira_reassign_pseudos (int *, int, HARD_REG_SET, HARD_REG_SET *, HARD_REG_SET *, bitmap); extern rtx ira_reuse_stack_slot (int, unsigned int, unsigned int); extern void ira_mark_new_stack_slot (rtx, int, unsigned int); -extern bool ira_better_spill_reload_regno_p (int *, int *, rtx, rtx, rtx); +extern bool ira_better_spill_reload_regno_p (int *, int *, rtx, rtx, rtx_insn *); extern bool ira_bad_reload_regno (int, rtx, rtx); extern void ira_adjust_equiv_reg_cost (unsigned, int); diff --git a/gcc/lra-eliminations.c b/gcc/lra-eliminations.c index acf8c8adc11..4e5ba22e49f 100644 --- a/gcc/lra-eliminations.c +++ b/gcc/lra-eliminations.c @@ -873,7 +873,7 @@ mark_not_eliminable (rtx x, machine_mode mem_mode) found elmination offset. If the note is not found, return NULL. Remove the found note. */ static rtx -remove_reg_equal_offset_note (rtx insn, rtx what) +remove_reg_equal_offset_note (rtx_insn *insn, rtx what) { rtx link, *link_loc;