rtl.h (target_rtl): Add x_static_reg_base_value.

gcc/
	* rtl.h (target_rtl): Add x_static_reg_base_value.
	* alias.c (static_reg_base_value): Redefine as a macro.

From-SVN: r162092
This commit is contained in:
Richard Sandiford 2010-07-12 18:53:49 +00:00 committed by Richard Sandiford
parent 360d045b05
commit 7bf84454ff
3 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
* rtl.h (target_rtl): Add x_static_reg_base_value.
* alias.c (static_reg_base_value): Redefine as a macro.
2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
* Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.

View File

@ -212,9 +212,8 @@ static rtx *new_reg_base_value;
array. */
static GTY((deletable)) VEC(rtx,gc) *old_reg_base_value;
/* Static hunks of RTL used by the aliasing code; these are initialized
once per function to avoid unnecessary RTL allocations. */
static GTY (()) rtx static_reg_base_value[FIRST_PSEUDO_REGISTER];
#define static_reg_base_value \
(this_target_rtl->x_static_reg_base_value)
#define REG_BASE_VALUE(X) \
(REGNO (X) < VEC_length (rtx, reg_base_value) \

View File

@ -2041,6 +2041,10 @@ struct GTY(()) target_rtl {
/* A sample (mem:M stack_pointer_rtx) rtx for each mode M. */
rtx x_top_of_stack[MAX_MACHINE_MODE];
/* Static hunks of RTL used by the aliasing code; these are treated
as persistent to avoid unnecessary RTL allocations. */
rtx x_static_reg_base_value[FIRST_PSEUDO_REGISTER];
};
extern GTY(()) struct target_rtl default_target_rtl;