From 0ff4fe1d37a2696ae0ca4aa50daf942a8d2c60dc Mon Sep 17 00:00:00 2001 From: rsandifo Date: Tue, 22 May 2007 19:41:10 +0000 Subject: gcc/ * mode-switching.c (reg_dies): Change type of second argument to "HARD_REG_SET *". (optimize_mode_switching): Update accordingly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124955 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/mode-switching.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gcc/mode-switching.c') diff --git a/gcc/mode-switching.c b/gcc/mode-switching.c index 3470ba7cb1a..1d4a751eb63 100644 --- a/gcc/mode-switching.c +++ b/gcc/mode-switching.c @@ -92,7 +92,7 @@ static sbitmap *comp; static struct seginfo * new_seginfo (int, rtx, int, HARD_REG_SET); static void add_seginfo (struct bb_info *, struct seginfo *); -static void reg_dies (rtx, HARD_REG_SET); +static void reg_dies (rtx, HARD_REG_SET *); static void reg_becomes_live (rtx, rtx, void *); static void make_preds_opaque (basic_block, int); @@ -160,7 +160,7 @@ make_preds_opaque (basic_block b, int j) /* Record in LIVE that register REG died. */ static void -reg_dies (rtx reg, HARD_REG_SET live) +reg_dies (rtx reg, HARD_REG_SET *live) { int regno, nregs; @@ -171,7 +171,7 @@ reg_dies (rtx reg, HARD_REG_SET live) if (regno < FIRST_PSEUDO_REGISTER) for (nregs = hard_regno_nregs[regno][GET_MODE (reg)] - 1; nregs >= 0; nregs--) - CLEAR_HARD_REG_BIT (live, regno + nregs); + CLEAR_HARD_REG_BIT (*live, regno + nregs); } /* Record in LIVE that register REG became live. @@ -500,12 +500,12 @@ optimize_mode_switching (void) /* Update LIVE_NOW. */ for (link = REG_NOTES (insn); link; link = XEXP (link, 1)) if (REG_NOTE_KIND (link) == REG_DEAD) - reg_dies (XEXP (link, 0), live_now); + reg_dies (XEXP (link, 0), &live_now); note_stores (PATTERN (insn), reg_becomes_live, &live_now); for (link = REG_NOTES (insn); link; link = XEXP (link, 1)) if (REG_NOTE_KIND (link) == REG_UNUSED) - reg_dies (XEXP (link, 0), live_now); + reg_dies (XEXP (link, 0), &live_now); } } -- cgit v1.2.1