aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2000-10-20 23:32:10 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2000-10-20 23:32:10 +0000
commit8f54374ed39bb6272d54bcd070baf30e402f3af5 (patch)
treea6d2628ab935531646e4d178e869cc3c2a075cdb
parenta9770f9a9131cbd7420d1eee0edac01ec19eda6f (diff)
downloadgcc-8f54374ed39bb6272d54bcd070baf30e402f3af5.zip
gcc-8f54374ed39bb6272d54bcd070baf30e402f3af5.tar.gz
gcc-8f54374ed39bb6272d54bcd070baf30e402f3af5.tar.bz2
Warning fixes:
* mips.h (REG_CLASS_FROM_LETTER): Cast array arg to unsigned char. * sparc.c (load_pic_register): Delete unused varaible. * libgcc2.c (__addvsi3): Delete unused variable. * libgcc2.h (__absvsi2, __absvdi2, __addvsi3, __addvdi3, __subvsi3, __subvdi3, __mulvsi3, __mulvdi3, __negvsi2, __negvdi2): Prototype. * ssa.c (apply_delayed_renames): Avoid undefined operation. * toplev.c (display_target_options): Make static to match prototype. Delete empty declaration. From-SVN: r36987
-rw-r--r--gcc/ChangeLog17
-rw-r--r--gcc/config/mips/mips.h2
-rw-r--r--gcc/config/sparc/sparc.c1
-rw-r--r--gcc/libgcc2.c2
-rw-r--r--gcc/libgcc2.h11
-rw-r--r--gcc/ssa.c4
-rw-r--r--gcc/toplev.c3
7 files changed, 33 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3aaacb4..46bfb5b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,20 @@
+2000-10-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * mips.h (REG_CLASS_FROM_LETTER): Cast array arg to unsigned char.
+
+ * sparc.c (load_pic_register): Delete unused varaible.
+
+ * libgcc2.c (__addvsi3): Delete unused variable.
+
+ * libgcc2.h (__absvsi2, __absvdi2, __addvsi3, __addvdi3,
+ __subvsi3, __subvdi3, __mulvsi3, __mulvdi3, __negvsi2,
+ __negvdi2): Prototype.
+
+ * ssa.c (apply_delayed_renames): Avoid undefined operation.
+
+ * toplev.c (display_target_options): Make static to match
+ prototype. Delete empty declaration.
+
2000-10-20 Tom Tromey <tromey@cygnus.com>
* cppspec.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT.
diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h
index a7c3366..e06e682 100644
--- a/gcc/config/mips/mips.h
+++ b/gcc/config/mips/mips.h
@@ -1902,7 +1902,7 @@ extern enum reg_class mips_regno_to_class[];
extern enum reg_class mips_char_to_class[];
-#define REG_CLASS_FROM_LETTER(C) mips_char_to_class[ (C) ]
+#define REG_CLASS_FROM_LETTER(C) mips_char_to_class[(unsigned char)(C)]
/* The letters I, J, K, L, M, N, O, and P in a register constraint
string can be used to stand for particular ranges of immediate
diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c
index a6364ab..d99e703 100644
--- a/gcc/config/sparc/sparc.c
+++ b/gcc/config/sparc/sparc.c
@@ -2836,7 +2836,6 @@ load_pic_register ()
{
/* Labels to get the PC in the prologue of this function. */
int orig_flag_pic = flag_pic;
- rtx insn;
if (! flag_pic)
abort ();
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c
index 88f1fdd..4e4a65c 100644
--- a/gcc/libgcc2.c
+++ b/gcc/libgcc2.c
@@ -69,7 +69,7 @@ __negdi2 (DWtype u)
SItype
__addvsi3 (SItype a, SItype b)
{
- SItype w, w1;
+ SItype w;
w = a + b;
diff --git a/gcc/libgcc2.h b/gcc/libgcc2.h
index e528673..ec64046 100644
--- a/gcc/libgcc2.h
+++ b/gcc/libgcc2.h
@@ -256,6 +256,17 @@ extern UWtype __udiv_w_sdiv (UWtype *, UWtype, UWtype, UWtype);
extern word_type __cmpdi2 (DWtype, DWtype);
extern word_type __ucmpdi2 (DWtype, DWtype);
+extern SItype __absvsi2 (SItype);
+extern DItype __absvdi2 (DItype);
+extern SItype __addvsi3 (SItype, SItype);
+extern DItype __addvdi3 (DItype, DItype);
+extern SItype __subvsi3 (SItype, SItype);
+extern DItype __subvdi3 (DItype, DItype);
+extern SItype __mulvsi3 (SItype, SItype);
+extern DItype __mulvdi3 (DItype, DItype);
+extern SItype __negvsi2 (SItype);
+extern DItype __negvdi2 (DItype);
+
#if BITS_PER_UNIT == 8
extern DWtype __fixdfdi (DFtype);
extern DWtype __fixsfdi (SFtype);
diff --git a/gcc/ssa.c b/gcc/ssa.c
index a328368..2f81e16 100644
--- a/gcc/ssa.c
+++ b/gcc/ssa.c
@@ -826,8 +826,8 @@ apply_delayed_renames (c)
if (new_regno >= (int) ssa_definition->num_elements)
{
int new_limit = new_regno * 5 / 4;
- ssa_definition = VARRAY_GROW (ssa_definition, new_limit);
- ssa_uses = VARRAY_GROW (ssa_uses, new_limit);
+ VARRAY_GROW (ssa_definition, new_limit);
+ VARRAY_GROW (ssa_uses, new_limit);
}
VARRAY_RTX (ssa_definition, new_regno) = r->set_insn;
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 1dfa7f5..8365311 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -3894,11 +3894,10 @@ display_help ()
display_target_options ();
}
-void
+static void
display_target_options ()
{
int undoc,i;
- unsigned long;
if (ARRAY_SIZE (target_switches) > 1
#ifdef TARGET_OPTIONS