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/regmove.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/regmove.c')
-rw-r--r-- | gcc/regmove.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/regmove.c b/gcc/regmove.c index 31b935500e3..c11fbcbb15f 100644 --- a/gcc/regmove.c +++ b/gcc/regmove.c @@ -1,6 +1,6 @@ /* Move registers around to reduce number of move instructions needed. Copyright (C) 1987, 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, - 1999, 2000, 2001 Free Software Foundation, Inc. + 1999, 2000, 2001, 2002 Free Software Foundation, Inc. This file is part of GCC. @@ -1581,7 +1581,9 @@ find_matches (insn, matchp) case '5': case '6': case '7': case '8': case '9': { char *end; - unsigned long match = strtoul (p - 1, &end, 10); + unsigned long match_ul = strtoul (p - 1, &end, 10); + int match = match_ul; + p = end; if (match < op_no && likely_spilled[match]) |