aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2000-11-28 23:48:44 +0000
committerHans-Peter Nilsson <hp@axis.com>2000-11-28 23:48:44 +0000
commitdda5ecfc74179771cbb7045e191b68b3d075a4af (patch)
tree0e23a1df7da2139e10b8b8a20f6c0888c3b7dc32 /gas/config
parentcaaaf822e90d39b8d3ac7efb3ae36b2ee56ccc67 (diff)
downloadgdb-dda5ecfc74179771cbb7045e191b68b3d075a4af.zip
gdb-dda5ecfc74179771cbb7045e191b68b3d075a4af.tar.gz
gdb-dda5ecfc74179771cbb7045e191b68b3d075a4af.tar.bz2
(sh_elf_cons): Cast *input_line_pointer to unsigned char when
indexing is_end_of_line[]. (md_assemble): Initialize size to 0. (md_section_align): Mark parameter seg as unused.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-sh.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gas/config/tc-sh.c b/gas/config/tc-sh.c
index 306d200..0af76a9 100644
--- a/gas/config/tc-sh.c
+++ b/gas/config/tc-sh.c
@@ -388,7 +388,7 @@ sh_elf_cons (nbytes)
input_line_pointer--; /* Put terminator back into stream. */
if (*input_line_pointer == '#' || *input_line_pointer == '!')
{
- while (! is_end_of_line[*input_line_pointer++]);
+ while (! is_end_of_line[(unsigned char) *input_line_pointer++]);
}
else
demand_empty_rest_of_line ();
@@ -1861,7 +1861,7 @@ md_assemble (str)
unsigned char *op_end;
sh_operand_info operand[3];
sh_opcode_info *opcode;
- unsigned int size;
+ unsigned int size = 0;
opcode = find_cooked_opcode (&str);
op_end = str;
@@ -2505,7 +2505,7 @@ md_convert_frag (headers, seg, fragP)
valueT
md_section_align (seg, size)
- segT seg;
+ segT seg ATTRIBUTE_UNUSED;
valueT size;
{
#ifdef BFD_ASSEMBLER