diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-05-22 19:41:10 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-05-22 19:41:10 +0000 |
commit | 0ff4fe1d37a2696ae0ca4aa50daf942a8d2c60dc (patch) | |
tree | 06192d0d08eccbb2b355b3e2e5ce211460c105fc /gcc/mode-switching.c | |
parent | ddc556d140656052c5583cc83c8d795107786dfc (diff) | |
download | gcc-0ff4fe1d37a2696ae0ca4aa50daf942a8d2c60dc.tar.gz |
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
Diffstat (limited to 'gcc/mode-switching.c')
-rw-r--r-- | gcc/mode-switching.c | 10 |
1 files changed, 5 insertions, 5 deletions
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); } } |