diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-10-09 19:17:54 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-10-09 19:17:54 +0000 |
commit | 025a905f7f2f710d89fcf2b4819162a70ce2257f (patch) | |
tree | 2040fdafb95eef3b27ded56af72dba13e0c4a6ed /gcc/config/fp-bit.c | |
parent | 4b23915e6d34af54a9256dd899d9132f5170f23e (diff) | |
download | gcc-025a905f7f2f710d89fcf2b4819162a70ce2257f.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22967 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/fp-bit.c')
-rw-r--r-- | gcc/config/fp-bit.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/gcc/config/fp-bit.c b/gcc/config/fp-bit.c index 2acc3852dd7..6b8bd703f7e 100644 --- a/gcc/config/fp-bit.c +++ b/gcc/config/fp-bit.c @@ -156,8 +156,8 @@ __floatsixf (){ abort(); } #else /* !EXTENDED_FLOAT_STUBS, rest of file */ -typedef SFtype __attribute__ ((mode (SF))); -typedef DFtype __attribute__ ((mode (DF))); +typedef float SFtype __attribute__ ((mode (SF))); +typedef float DFtype __attribute__ ((mode (DF))); typedef int HItype __attribute__ ((mode (HI))); typedef int SItype __attribute__ ((mode (SI))); @@ -999,8 +999,7 @@ multiply (FLO_type arg_a, FLO_type arg_b) #if defined(L_div_sf) || defined(L_div_df) static INLINE fp_number_type * _fpdiv_parts (fp_number_type * a, - fp_number_type * b, - fp_number_type * tmp) + fp_number_type * b) { fractype bit; fractype numerator; @@ -1092,13 +1091,12 @@ divide (FLO_type arg_a, FLO_type arg_b) { fp_number_type a; fp_number_type b; - fp_number_type tmp; fp_number_type *res; unpack_d ((FLO_union_type *) & arg_a, &a); unpack_d ((FLO_union_type *) & arg_b, &b); - res = _fpdiv_parts (&a, &b, &tmp); + res = _fpdiv_parts (&a, &b); return pack_d (res); } @@ -1331,7 +1329,7 @@ si_to_float (SItype arg_a) { /* Special case for minint, since there is no +ve integer representation for it */ - if (arg_a == 0x80000000) + if (arg_a == (SItype) 0x80000000) { return -2147483648.0; } |