This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Remove some unused fields from
- From: Steven Bosscher <stevenb at novell dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 9 Oct 2004 16:33:39 +0200
- Subject: Remove some unused fields from
- Organization: SUSE Linux AG, a Novell Company
Hi,
This patch removes a few unused fields and macros that I
noticed while looking at something else.
Bootstrapped and tested on i686-pc-linux-gnu. OK?
Gr.
Steven
* regs.h (struct reg_info_def): Remove the last_node_uid and
changes_mode fields.
(REGNO_LAST_NOTE_UID): Don't define.
* regclass.c (reg_scan_mark_refs): Don't set REGNO_LAST_NOTE_UID.
* regmove.c (copy_src_to_dest): Likewise.
Index: regclass.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/regclass.c,v
retrieving revision 1.198
diff -c -3 -p -r1.198 regclass.c
*** regclass.c 24 Sep 2004 19:47:04 -0000 1.198
--- regclass.c 9 Oct 2004 11:08:20 -0000
*************** reg_scan_mark_refs (rtx x, rtx insn, int
*** 2395,2401 ****
if (regno >= min_regno)
{
- REGNO_LAST_NOTE_UID (regno) = INSN_UID (insn);
if (!note_flag)
REGNO_LAST_UID (regno) = INSN_UID (insn);
if (REGNO_FIRST_UID (regno) == 0)
--- 2395,2400 ----
Index: regmove.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/regmove.c,v
retrieving revision 1.163
diff -c -3 -p -r1.163 regmove.c
*** regmove.c 21 Sep 2004 05:57:55 -0000 1.163
--- regmove.c 9 Oct 2004 11:08:20 -0000
*************** copy_src_to_dest (rtx insn, rtx src, rtx
*** 834,842 ****
if (REGNO_LAST_UID (src_regno) == insn_uid)
REGNO_LAST_UID (src_regno) = move_uid;
-
- if (REGNO_LAST_NOTE_UID (src_regno) == insn_uid)
- REGNO_LAST_NOTE_UID (src_regno) = move_uid;
}
}
--- 834,839 ----
Index: regs.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/regs.h,v
retrieving revision 1.36
diff -c -3 -p -r1.36 regs.h
*** regs.h 24 Sep 2004 19:47:05 -0000 1.36
--- regs.h 9 Oct 2004 11:08:20 -0000
*************** typedef struct reg_info_def
*** 50,56 ****
{ /* fields set by reg_scan */
int first_uid; /* UID of first insn to use (REG n) */
int last_uid; /* UID of last insn to use (REG n) */
- int last_note_uid; /* UID of last note to use (REG n) */
/* fields set by reg_scan & flow_analysis */
int sets; /* # of times (REG n) is set */
--- 50,55 ----
*************** typedef struct reg_info_def
*** 62,69 ****
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_mode; /* whether (SUBREG (REG n)) exists and
- is illegal. */
} reg_info;
extern varray_type reg_n_info;
--- 61,66 ----
*************** extern enum machine_mode reg_raw_mode[FI
*** 187,196 ****
#define REGNO_LAST_UID(N) (VARRAY_REG (reg_n_info, N)->last_uid)
- /* Similar, but includes insns that mention the reg in their notes. */
-
- #define REGNO_LAST_NOTE_UID(N) (VARRAY_REG (reg_n_info, N)->last_note_uid)
-
/* List made of EXPR_LIST rtx's which gives pairs of pseudo registers
that have to go in the same hard reg. */
extern rtx regs_may_share;
--- 184,189 ----