diff options
author | Alan Modra <amodra@bigpond.net.au> | 2007-04-21 13:04:14 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2007-04-21 13:04:14 +0000 |
commit | 384113bff572e44b92b168059b8287817cc5f84d (patch) | |
tree | a06b536bc7d3355a1f04192e8ffeb200b7ade1eb /gas/config/atof-vax.c | |
parent | 757e3d474ad3b7603a37fad4a1c6bcd1f7471a94 (diff) | |
download | binutils-redhat-384113bff572e44b92b168059b8287817cc5f84d.tar.gz |
* config/atof-vax.c (atof_vax_sizeof): Change return type to unsigned.
(md_atof): Make number_of_chars unsigned. Revert last change.
* config/tc-or32.c (md_apply_fix): Delete bogus assertions.
* config/tc-sh.c (sh_optimize_expr): Only define for OBJ_ELF.
* config/tc-sh.h (md_optimize_expr): Likewise.
* config/tc-sh64.c (shmedia_md_pcrel_from_section): Delete bogus
assertion.
* config/tc-xtensa.c (convert_frag_immed_finish_loop): Likewise.
Diffstat (limited to 'gas/config/atof-vax.c')
-rw-r--r-- | gas/config/atof-vax.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gas/config/atof-vax.c b/gas/config/atof-vax.c index 3947fedd54..fe9f8b9b10 100644 --- a/gas/config/atof-vax.c +++ b/gas/config/atof-vax.c @@ -1,5 +1,5 @@ /* atof_vax.c - turn a Flonum into a VAX floating point number - Copyright 1987, 1992, 1993, 1995, 1997, 1999, 2000, 2005 + Copyright 1987, 1992, 1993, 1995, 1997, 1999, 2000, 2005, 2007 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -35,7 +35,7 @@ int flonum_gen2vax (int, FLONUM_TYPE *, LITTLENUM_TYPE *); /* Number of chars in flonum type 'letter'. */ -static int +static unsigned int atof_vax_sizeof (int letter) { int return_value; @@ -395,7 +395,7 @@ md_atof (int what_statement_type, { LITTLENUM_TYPE words[MAXIMUM_NUMBER_OF_LITTLENUMS]; char kind_of_float; - int number_of_chars; + unsigned int number_of_chars; LITTLENUM_TYPE *littlenumP; switch (what_statement_type) @@ -435,7 +435,7 @@ md_atof (int what_statement_type, a little-endian machine, be very careful about converting words to chars. */ number_of_chars = atof_vax_sizeof (kind_of_float); - know (number_of_chars <= (int)(MAXIMUM_NUMBER_OF_LITTLENUMS * sizeof (LITTLENUM_TYPE))); + know (number_of_chars <= MAXIMUM_NUMBER_OF_LITTLENUMS * sizeof (LITTLENUM_TYPE)); limit = words + (number_of_chars / sizeof (LITTLENUM_TYPE)); for (littlenumP = words; littlenumP < limit; littlenumP++) { |