mirror of git://gcc.gnu.org/git/gcc.git
re PR bootstrap/55067 (AIX bootstrap failure due to lra.c loc_t)
2012-10-24 Vladimir Makarov <vmakarov@redhat.com> PR bootstrap/55067 * lra.c: Rename loc to sloc and loc_t to sloc_t. From-SVN: r192794
This commit is contained in:
parent
4ede4ee462
commit
926cd61f45
|
|
@ -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>
|
2012-10-24 Sharad Singhai <singhai@google.com>
|
||||||
|
|
||||||
* config/rs6000/rs6000.c (rs6000_density_test): Use dump_enabled_p
|
* config/rs6000/rs6000.c (rs6000_density_test): Use dump_enabled_p
|
||||||
|
|
|
||||||
26
gcc/lra.c
26
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. */
|
scratches at the end of LRA. */
|
||||||
|
|
||||||
/* Description of location of a former scratch operand. */
|
/* Description of location of a former scratch operand. */
|
||||||
struct loc
|
struct sloc
|
||||||
{
|
{
|
||||||
rtx insn; /* Insn where the scratch was. */
|
rtx insn; /* Insn where the scratch was. */
|
||||||
int nop; /* Number of the operand which was a scratch. */
|
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_P(sloc_t);
|
||||||
DEF_VEC_ALLOC_P(loc_t, heap);
|
DEF_VEC_ALLOC_P(sloc_t, heap);
|
||||||
|
|
||||||
/* Locations of the former scratches. */
|
/* Locations of the former scratches. */
|
||||||
static VEC (loc_t, heap) *scratches;
|
static VEC (sloc_t, heap) *scratches;
|
||||||
|
|
||||||
/* Bitmap of scratch regnos. */
|
/* Bitmap of scratch regnos. */
|
||||||
static bitmap_head scratch_bitmap;
|
static bitmap_head scratch_bitmap;
|
||||||
|
|
@ -1902,11 +1902,11 @@ remove_scratches (void)
|
||||||
bool insn_changed_p;
|
bool insn_changed_p;
|
||||||
basic_block bb;
|
basic_block bb;
|
||||||
rtx insn, reg;
|
rtx insn, reg;
|
||||||
loc_t loc;
|
sloc_t loc;
|
||||||
lra_insn_recog_data_t id;
|
lra_insn_recog_data_t id;
|
||||||
struct lra_static_insn_data *static_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_bitmap, ®_obstack);
|
||||||
bitmap_initialize (&scratch_operand_bitmap, ®_obstack);
|
bitmap_initialize (&scratch_operand_bitmap, ®_obstack);
|
||||||
FOR_EACH_BB (bb)
|
FOR_EACH_BB (bb)
|
||||||
|
|
@ -1926,10 +1926,10 @@ remove_scratches (void)
|
||||||
*id->operand_loc[i], ALL_REGS, NULL);
|
*id->operand_loc[i], ALL_REGS, NULL);
|
||||||
add_reg_note (insn, REG_UNUSED, reg);
|
add_reg_note (insn, REG_UNUSED, reg);
|
||||||
lra_update_dup (id, i);
|
lra_update_dup (id, i);
|
||||||
loc = XNEW (struct loc);
|
loc = XNEW (struct sloc);
|
||||||
loc->insn = insn;
|
loc->insn = insn;
|
||||||
loc->nop = i;
|
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_bitmap, REGNO (*id->operand_loc[i]));
|
||||||
bitmap_set_bit (&scratch_operand_bitmap,
|
bitmap_set_bit (&scratch_operand_bitmap,
|
||||||
INSN_UID (insn) * MAX_RECOG_OPERANDS + i);
|
INSN_UID (insn) * MAX_RECOG_OPERANDS + i);
|
||||||
|
|
@ -1950,11 +1950,11 @@ static void
|
||||||
restore_scratches (void)
|
restore_scratches (void)
|
||||||
{
|
{
|
||||||
int i, regno;
|
int i, regno;
|
||||||
loc_t loc;
|
sloc_t loc;
|
||||||
rtx last = NULL_RTX;
|
rtx last = NULL_RTX;
|
||||||
lra_insn_recog_data_t id = NULL;
|
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)
|
if (last != loc->insn)
|
||||||
{
|
{
|
||||||
|
|
@ -1977,9 +1977,9 @@ restore_scratches (void)
|
||||||
INSN_UID (loc->insn), loc->nop);
|
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);
|
free (loc);
|
||||||
VEC_free (loc_t, heap, scratches);
|
VEC_free (sloc_t, heap, scratches);
|
||||||
bitmap_clear (&scratch_bitmap);
|
bitmap_clear (&scratch_bitmap);
|
||||||
bitmap_clear (&scratch_operand_bitmap);
|
bitmap_clear (&scratch_operand_bitmap);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue