aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-bfin.c
diff options
context:
space:
mode:
authorJie Zhang <jie.zhang@analog.com>2005-10-24 16:31:22 +0000
committerJie Zhang <jie.zhang@analog.com>2005-10-24 16:31:22 +0000
commit9ba4c445137e7c387090441e2837e09479f14457 (patch)
treec7ac22c3e48116f1357a8d55004de349893373b0 /gas/config/tc-bfin.c
parentf470759536919310535044dde07b70f850fe675c (diff)
downloadgdb-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/tc-bfin.c')
-rw-r--r--gas/config/tc-bfin.c6
1 files changed, 2 insertions, 4 deletions
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;