diff options
author | Vladimir Makarov <vmakarov@redhat.com> | 2012-10-25 02:31:31 +0000 |
---|---|---|
committer | Vladimir Makarov <vmakarov@redhat.com> | 2012-10-25 02:31:31 +0000 |
commit | e6e3c424e933671b969eaa451c34f415d2379201 (patch) | |
tree | bf33e0ab3a86b64390bdee52be696fdb1fb7ab63 | |
parent | ac402c5cdcbcabb6c512288de9b6241e1bf634bb (diff) |
2012-10-24 Vladimir Makarov <vmakarov@redhat.com>
PR bootstrap/55067
* lra.c: Rename loc to sloc and loc_t to sloc_t.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@192794 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/lra.c | 26 |
2 files changed, 18 insertions, 13 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index efd89a0a485..48ccc22fe09 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2012-10-24 Vladimir Makarov <vmakarov@redhat.com> + + PR bootstrap/55067 + * lra.c: Rename loc to sloc and loc_t to sloc_t. + 2012-10-24 Sharad Singhai <singhai@google.com> * config/rs6000/rs6000.c (rs6000_density_test): Use dump_enabled_p diff --git a/gcc/lra.c b/gcc/lra.c index 1897e8593cf..a56da78380b 100644 --- a/gcc/lra.c +++ b/gcc/lra.c @@ -1859,19 +1859,19 @@ lra_process_new_insns (rtx insn, rtx before, rtx after, const char *title) scratches at the end of LRA. */ /* Description of location of a former scratch operand. */ -struct loc +struct sloc { rtx insn; /* Insn where the scratch was. */ int nop; /* Number of the operand which was a scratch. */ }; -typedef struct loc *loc_t; +typedef struct sloc *sloc_t; -DEF_VEC_P(loc_t); -DEF_VEC_ALLOC_P(loc_t, heap); +DEF_VEC_P(sloc_t); +DEF_VEC_ALLOC_P(sloc_t, heap); /* Locations of the former scratches. */ -static VEC (loc_t, heap) *scratches; +static VEC (sloc_t, heap) *scratches; /* Bitmap of scratch regnos. */ static bitmap_head scratch_bitmap; @@ -1902,11 +1902,11 @@ remove_scratches (void) bool insn_changed_p; basic_block bb; rtx insn, reg; - loc_t loc; + sloc_t loc; lra_insn_recog_data_t id; struct lra_static_insn_data *static_id; - scratches = VEC_alloc (loc_t, heap, get_max_uid ()); + scratches = VEC_alloc (sloc_t, heap, get_max_uid ()); bitmap_initialize (&scratch_bitmap, ®_obstack); bitmap_initialize (&scratch_operand_bitmap, ®_obstack); FOR_EACH_BB (bb) @@ -1926,10 +1926,10 @@ remove_scratches (void) *id->operand_loc[i], ALL_REGS, NULL); add_reg_note (insn, REG_UNUSED, reg); lra_update_dup (id, i); - loc = XNEW (struct loc); + loc = XNEW (struct sloc); loc->insn = insn; loc->nop = i; - VEC_safe_push (loc_t, heap, scratches, loc); + VEC_safe_push (sloc_t, heap, scratches, loc); bitmap_set_bit (&scratch_bitmap, REGNO (*id->operand_loc[i])); bitmap_set_bit (&scratch_operand_bitmap, INSN_UID (insn) * MAX_RECOG_OPERANDS + i); @@ -1950,11 +1950,11 @@ static void restore_scratches (void) { int i, regno; - loc_t loc; + sloc_t loc; rtx last = NULL_RTX; lra_insn_recog_data_t id = NULL; - for (i = 0; VEC_iterate (loc_t, scratches, i, loc); i++) + for (i = 0; VEC_iterate (sloc_t, scratches, i, loc); i++) { if (last != loc->insn) { @@ -1977,9 +1977,9 @@ restore_scratches (void) INSN_UID (loc->insn), loc->nop); } } - for (i = 0; VEC_iterate (loc_t, scratches, i, loc); i++) + for (i = 0; VEC_iterate (sloc_t, scratches, i, loc); i++) free (loc); - VEC_free (loc_t, heap, scratches); + VEC_free (sloc_t, heap, scratches); bitmap_clear (&scratch_bitmap); bitmap_clear (&scratch_operand_bitmap); } |