diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-06-13 21:47:44 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-06-13 21:47:44 +0000 |
commit | c5af420ec97dd94ae5687cdba874f25f64cd6660 (patch) | |
tree | 18a58d10aaf4181b83524ed496b484df5ceed88e /gcc/regs.h | |
parent | d2a6ef1c68ee7ca2c078facde9bf04ec194f12a4 (diff) | |
download | gcc-c5af420ec97dd94ae5687cdba874f25f64cd6660.tar.gz |
* combine.c (subst): Use CLASS_CANNOT_CHANGE_MODE and
CLASS_CANNOT_CHANGE_MODE_P instead of CLASS_CANNOT_CHANGE_SIZE
and hard-coded tests.
(simplify_set): Likewise.
(gen_lowpart_for_combine): Likewise.
* emit-rtl.c (gen_lowpart_common): Likewise.
* global.c (find_reg): Likewise.
* local-alloc.c (find_free_reg): Likewise.
* recog.c (register_operand): Likewise.
* regclass.c (init_reg_sets_1): Likewise.
(record_operand_costs, regclass): Likewise.
* reload.c (push_reload): Likewise.
* reload1.c (choose_reload_regs): Likewise.
* flow.c (mark_used_regs): Conditionally set REG_CHANGES_MODE.
* local-alloc.c (struct qty): Rename changes_size to changes_mode.
Update all references.
* regs.h (struct reg_info_def): Likewise.
(REG_CHANGES_MODE): Rename from REG_CHANGES_SIZE.
* tm.texi (CLASS_CANNOT_CHANGE_MODE): Document.
(CLASS_CANNOT_CHANGE_MODE_P): Likewise.
* config/alpha/alpha.h (CLASS_CANNOT_CHANGE_MODE): Rename.
(CLASS_CANNOT_CHANGE_MODE_P): New.
* config/mips/mips.h: Likewise.
* config/pa/pa32-regs.h: Likewise.
* config/pa/pa64-regs.h: Likewise.
* config/rs6000/rs6000.h: Likewise.
* config/sh/sh.h: Likewise.
* config/ia64/ia64.h (CLASS_CANNOT_CHANGE_MODE): New.
(CLASS_CANNOT_CHANGE_MODE_P): New.
* config/avr/avr.h (CLASS_CANNOT_CHANGE_SIZE): Remove dead code.
* config/d30v/d30v.h: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34526 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/regs.h')
-rw-r--r-- | gcc/regs.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/regs.h b/gcc/regs.h index 9c1b886d864..c219ecc4e20 100644 --- a/gcc/regs.h +++ b/gcc/regs.h @@ -55,7 +55,8 @@ typedef struct reg_info_def int live_length; /* # of instructions (REG n) is live */ int calls_crossed; /* # of calls (REG n) is live across */ int basic_block; /* # of basic blocks (REG n) is used in */ - char changes_size; /* whether (SUBREG (REG n)) changes size */ + char changes_mode; /* whether (SUBREG (REG n)) exists and + is illegal. */ } reg_info; extern varray_type reg_n_info; @@ -80,10 +81,11 @@ extern varray_type reg_n_info; #define REG_N_DEATHS(N) (VARRAY_REG (reg_n_info, N)->deaths) /* Indexed by N; says whether a pseudo register N was ever used - within a SUBREG that changes the size of the reg. Some machines prohibit - such objects to be in certain (usually floating-point) registers. */ + within a SUBREG that changes the mode of the reg in some way + that is illegal for a given class (usually floating-point) + of registers. */ -#define REG_CHANGES_SIZE(N) (VARRAY_REG (reg_n_info, N)->changes_size) +#define REG_CHANGES_MODE(N) (VARRAY_REG (reg_n_info, N)->changes_mode) /* Get the number of consecutive words required to hold pseudo-reg N. */ |