(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.
This commit is contained in:
Hans-Peter Nilsson 2000-11-28 23:48:44 +00:00
parent caaaf822e9
commit dda5ecfc74
2 changed files with 7 additions and 3 deletions

View file

@ -5,6 +5,10 @@
accordingly. Stabilize frag by updating fix part and resetting
variant part.
<undefined symbol, unconditional jump>: Ditto.
(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.
2000-11-28 Kazu Hirata <kazu@hxi.com>

View file

@ -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