diff options
author | Jie Zhang <jie.zhang@analog.com> | 2005-10-24 16:31:22 +0000 |
---|---|---|
committer | Jie Zhang <jie.zhang@analog.com> | 2005-10-24 16:31:22 +0000 |
commit | 9ba4c445137e7c387090441e2837e09479f14457 (patch) | |
tree | c7ac22c3e48116f1357a8d55004de349893373b0 /gas/config | |
parent | f470759536919310535044dde07b70f850fe675c (diff) | |
download | gdb-9ba4c445137e7c387090441e2837e09479f14457.zip gdb-9ba4c445137e7c387090441e2837e09479f14457.tar.gz gdb-9ba4c445137e7c387090441e2837e09479f14457.tar.bz2 |
bfd/
* elf32-bfin.c (bfd_bfin_elf32_create_embedded_relocs): Fix signedness
warning.
gas/
* Makefile.am (bfin-parse.h): Renamed from bfin-parse.tab.h.
(EXTRA_DIST): Add bfin-parse.h and bfin-lex.c.
* Makefile.in: Regenerate.
* config/bfin-lex.l: Include bfin-parse.h instead of bfin-parse.tab.h.
* config/tc-bfin.c (md_chars_to_number): Change the type of first
argument from unsigned char * to char * to remove signedness warnings.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/bfin-lex.l | 2 | ||||
-rw-r--r-- | gas/config/tc-bfin.c | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/gas/config/bfin-lex.l b/gas/config/bfin-lex.l index df65035..c3af842 100644 --- a/gas/config/bfin-lex.l +++ b/gas/config/bfin-lex.l @@ -23,7 +23,7 @@ #include <stdlib.h> #include <string.h> #include "bfin-defs.h" -#include "bfin-parse.tab.h" +#include "bfin-parse.h" #include "as.h" static long parse_int (char **end); diff --git a/gas/config/tc-bfin.c b/gas/config/tc-bfin.c index f013df4..a1b3971 100644 --- a/gas/config/tc-bfin.c +++ b/gas/config/tc-bfin.c @@ -36,7 +36,7 @@ extern YY_BUFFER_STATE yy_scan_string (const char *yy_str); extern void yy_delete_buffer (YY_BUFFER_STATE b); static parse_state parse (char *line); static void bfin_s_bss PARAMS ((int)); -static int md_chars_to_number PARAMS ((unsigned char *, int)); +static int md_chars_to_number PARAMS ((char *, int)); /* Global variables. */ struct bfin_insn *insn; @@ -453,9 +453,7 @@ md_estimate_size_before_relax (fragS * fragP ATTRIBUTE_UNUSED, /* Convert from target byte order to host byte order. */ static int -md_chars_to_number (val, n) - unsigned char *val; /* Value in target byte order. */ - int n; /* Number of bytes in the input. */ +md_chars_to_number (char *val, int n) { int retval; |