(sh_elf_cons): Cast *input_line_pointer to unsigned char when
authorHans-Peter Nilsson <hp@axis.com>
Tue, 28 Nov 2000 23:48:44 +0000 (23:48 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Tue, 28 Nov 2000 23:48:44 +0000 (23:48 +0000)
indexing is_end_of_line[].
(md_assemble): Initialize size to 0.
(md_section_align): Mark parameter seg as unused.

gas/ChangeLog
gas/config/tc-sh.c

index 3ad341a..3c926b5 100644 (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>
 
index 306d200..0af76a9 100644 (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