diff options
author | Alan Modra <amodra@gmail.com> | 2007-04-21 13:04:14 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2007-04-21 13:04:14 +0000 |
commit | 541d2ffd365ca39533b78edc9aadd70ad4791163 (patch) | |
tree | 12ef5bd7a57e6a9a13a839dcd0738c6210dc6545 /gas/config/atof-vax.c | |
parent | 2523cd0a8125bf1b1e7442a70a7c4894ae012c1c (diff) | |
download | gdb-541d2ffd365ca39533b78edc9aadd70ad4791163.zip gdb-541d2ffd365ca39533b78edc9aadd70ad4791163.tar.gz gdb-541d2ffd365ca39533b78edc9aadd70ad4791163.tar.bz2 |
* 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 3947fed..fe9f8b9 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++) { |