Commit 8f54374e by Kaveh R. Ghazi Committed by Kaveh Ghazi

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
parent a9770f9a
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> 2000-10-20 Tom Tromey <tromey@cygnus.com>
* cppspec.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT. * cppspec.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT.
......
...@@ -1902,7 +1902,7 @@ extern enum reg_class mips_regno_to_class[]; ...@@ -1902,7 +1902,7 @@ extern enum reg_class mips_regno_to_class[];
extern enum reg_class mips_char_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 /* 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 string can be used to stand for particular ranges of immediate
......
...@@ -2836,7 +2836,6 @@ load_pic_register () ...@@ -2836,7 +2836,6 @@ load_pic_register ()
{ {
/* Labels to get the PC in the prologue of this function. */ /* Labels to get the PC in the prologue of this function. */
int orig_flag_pic = flag_pic; int orig_flag_pic = flag_pic;
rtx insn;
if (! flag_pic) if (! flag_pic)
abort (); abort ();
......
...@@ -69,7 +69,7 @@ __negdi2 (DWtype u) ...@@ -69,7 +69,7 @@ __negdi2 (DWtype u)
SItype SItype
__addvsi3 (SItype a, SItype b) __addvsi3 (SItype a, SItype b)
{ {
SItype w, w1; SItype w;
w = a + b; w = a + b;
......
...@@ -256,6 +256,17 @@ extern UWtype __udiv_w_sdiv (UWtype *, UWtype, UWtype, UWtype); ...@@ -256,6 +256,17 @@ extern UWtype __udiv_w_sdiv (UWtype *, UWtype, UWtype, UWtype);
extern word_type __cmpdi2 (DWtype, DWtype); extern word_type __cmpdi2 (DWtype, DWtype);
extern word_type __ucmpdi2 (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 #if BITS_PER_UNIT == 8
extern DWtype __fixdfdi (DFtype); extern DWtype __fixdfdi (DFtype);
extern DWtype __fixsfdi (SFtype); extern DWtype __fixsfdi (SFtype);
......
...@@ -826,8 +826,8 @@ apply_delayed_renames (c) ...@@ -826,8 +826,8 @@ apply_delayed_renames (c)
if (new_regno >= (int) ssa_definition->num_elements) if (new_regno >= (int) ssa_definition->num_elements)
{ {
int new_limit = new_regno * 5 / 4; int new_limit = new_regno * 5 / 4;
ssa_definition = VARRAY_GROW (ssa_definition, new_limit); VARRAY_GROW (ssa_definition, new_limit);
ssa_uses = VARRAY_GROW (ssa_uses, new_limit); VARRAY_GROW (ssa_uses, new_limit);
} }
VARRAY_RTX (ssa_definition, new_regno) = r->set_insn; VARRAY_RTX (ssa_definition, new_regno) = r->set_insn;
......
...@@ -3894,11 +3894,10 @@ display_help () ...@@ -3894,11 +3894,10 @@ display_help ()
display_target_options (); display_target_options ();
} }
void static void
display_target_options () display_target_options ()
{ {
int undoc,i; int undoc,i;
unsigned long;
if (ARRAY_SIZE (target_switches) > 1 if (ARRAY_SIZE (target_switches) > 1
#ifdef TARGET_OPTIONS #ifdef TARGET_OPTIONS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment