From: Hans-Peter Nilsson Date: Tue, 28 Nov 2000 23:48:44 +0000 (+0000) Subject: (sh_elf_cons): Cast *input_line_pointer to unsigned char when X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dda5ecfc74179771cbb7045e191b68b3d075a4af;p=binutils-gdb.git (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. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 3ad341a3d11..3c926b5381c 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -5,6 +5,10 @@ accordingly. Stabilize frag by updating fix part and resetting variant part. : 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 diff --git a/gas/config/tc-sh.c b/gas/config/tc-sh.c index 306d200d0a0..0af76a9955e 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