diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-01-01 22:22:25 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-01-01 22:22:25 +0000 |
commit | 80fabb9006953bd8adbe038b8e1182238917a1d5 (patch) | |
tree | 5db1dfd712c394d01480a188c6968a697f6d4ef4 /gcc/caller-save.c | |
parent | ffa4ba83e7991139f3c53f6df642deadac99ddc8 (diff) | |
download | gcc-80fabb9006953bd8adbe038b8e1182238917a1d5.tar.gz |
* attribs.c (handle_vector_size_attribute): Use host_integerp
and tree_int_cst; remove warnings.
* caller-save.c (insert_restore): Add cast to get rid of warning.
(insert_save): Likewise.
* emit-rtl.c (adjust_address_1, offset_address): Likewise.
* regmove.c (find_matches): Add temporary var to kill a warning.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48452 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/caller-save.c')
-rw-r--r-- | gcc/caller-save.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gcc/caller-save.c b/gcc/caller-save.c index 1e6e6349aa1..87a13dc0fad 100644 --- a/gcc/caller-save.c +++ b/gcc/caller-save.c @@ -1,6 +1,6 @@ /* Save and restore call-clobbered registers which are live across a call. Copyright (C) 1989, 1992, 1994, 1995, 1997, 1998, - 1999, 2000, 2001 Free Software Foundation, Inc. + 1999, 2000, 2001, 2002 Free Software Foundation, Inc. This file is part of GCC. @@ -675,7 +675,7 @@ insert_restore (chain, before_p, regno, maxrestore, save_mode) mem = regno_save_mem [regno][numregs]; if (save_mode [regno] != VOIDmode && save_mode [regno] != GET_MODE (mem) - && numregs == HARD_REGNO_NREGS (regno, save_mode [regno])) + && numregs == (unsigned int) HARD_REGNO_NREGS (regno, save_mode [regno])) mem = adjust_address (mem, save_mode[regno], 0); pat = gen_rtx_SET (VOIDmode, gen_rtx_REG (GET_MODE (mem), @@ -691,13 +691,12 @@ insert_restore (chain, before_p, regno, maxrestore, save_mode) n_regs_saved--; } - - /* Tell our callers how many extra registers we saved/restored */ return numregs - 1; } /* Like insert_restore above, but save registers instead. */ + static int insert_save (chain, before_p, regno, to_save, save_mode) struct insn_chain *chain; @@ -752,7 +751,7 @@ insert_save (chain, before_p, regno, to_save, save_mode) mem = regno_save_mem [regno][numregs]; if (save_mode [regno] != VOIDmode && save_mode [regno] != GET_MODE (mem) - && numregs == HARD_REGNO_NREGS (regno, save_mode [regno])) + && numregs == (unsigned int) HARD_REGNO_NREGS (regno, save_mode [regno])) mem = adjust_address (mem, save_mode[regno], 0); pat = gen_rtx_SET (VOIDmode, mem, gen_rtx_REG (GET_MODE (mem), |