Commit a0a190d4 by Kaveh R. Ghazi Committed by Kaveh Ghazi

Warning fixes:

        * fp-bit.c (SFtype): Don't implicitly use int in declaration.
        (DFtype): Likewise.
        (_fpdiv_parts): Remove unused parameter `tmp', all callers changed.
        (divide): Remove unused variable `tmp'.
        (si_to_float): Cast numeric constant to (SItype) before comparing
        it against one.

From-SVN: r22967
parent 1a34b7b3
Fri Oct 9 22:08:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* fp-bit.c (SFtype): Don't implicitly use int in declaration.
(DFtype): Likewise.
(_fpdiv_parts): Remove unused parameter `tmp', all callers changed.
(divide): Remove unused variable `tmp'.
(si_to_float): Cast numeric constant to (SItype) before comparing
it against one.
Fri Oct 9 16:03:19 1998 Graham <grahams@rcp.co.uk> Fri Oct 9 16:03:19 1998 Graham <grahams@rcp.co.uk>
* flow.c (print_rtl_with_bb): Changed type of in_bb_p to match use. * flow.c (print_rtl_with_bb): Changed type of in_bb_p to match use.
......
...@@ -156,8 +156,8 @@ __floatsixf (){ abort(); } ...@@ -156,8 +156,8 @@ __floatsixf (){ abort(); }
#else /* !EXTENDED_FLOAT_STUBS, rest of file */ #else /* !EXTENDED_FLOAT_STUBS, rest of file */
typedef SFtype __attribute__ ((mode (SF))); typedef float SFtype __attribute__ ((mode (SF)));
typedef DFtype __attribute__ ((mode (DF))); typedef float DFtype __attribute__ ((mode (DF)));
typedef int HItype __attribute__ ((mode (HI))); typedef int HItype __attribute__ ((mode (HI)));
typedef int SItype __attribute__ ((mode (SI))); typedef int SItype __attribute__ ((mode (SI)));
...@@ -999,8 +999,7 @@ multiply (FLO_type arg_a, FLO_type arg_b) ...@@ -999,8 +999,7 @@ multiply (FLO_type arg_a, FLO_type arg_b)
#if defined(L_div_sf) || defined(L_div_df) #if defined(L_div_sf) || defined(L_div_df)
static INLINE fp_number_type * static INLINE fp_number_type *
_fpdiv_parts (fp_number_type * a, _fpdiv_parts (fp_number_type * a,
fp_number_type * b, fp_number_type * b)
fp_number_type * tmp)
{ {
fractype bit; fractype bit;
fractype numerator; fractype numerator;
...@@ -1092,13 +1091,12 @@ divide (FLO_type arg_a, FLO_type arg_b) ...@@ -1092,13 +1091,12 @@ divide (FLO_type arg_a, FLO_type arg_b)
{ {
fp_number_type a; fp_number_type a;
fp_number_type b; fp_number_type b;
fp_number_type tmp;
fp_number_type *res; fp_number_type *res;
unpack_d ((FLO_union_type *) & arg_a, &a); unpack_d ((FLO_union_type *) & arg_a, &a);
unpack_d ((FLO_union_type *) & arg_b, &b); unpack_d ((FLO_union_type *) & arg_b, &b);
res = _fpdiv_parts (&a, &b, &tmp); res = _fpdiv_parts (&a, &b);
return pack_d (res); return pack_d (res);
} }
...@@ -1331,7 +1329,7 @@ si_to_float (SItype arg_a) ...@@ -1331,7 +1329,7 @@ si_to_float (SItype arg_a)
{ {
/* Special case for minint, since there is no +ve integer /* Special case for minint, since there is no +ve integer
representation for it */ representation for it */
if (arg_a == 0x80000000) if (arg_a == (SItype) 0x80000000)
{ {
return -2147483648.0; return -2147483648.0;
} }
......
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