gas: Fix left shift of negative value.
[deliverable/binutils-gdb.git] / gas / config / tc-bfin.c
index 3736d79ba342f30279216e8a614b1849f8b94282..77b6013cf8c509bba6964ac8e0c277caf984683a 100644 (file)
@@ -796,7 +796,7 @@ md_section_align (segment, size)
      valueT size;
 {
   int boundary = bfd_get_section_alignment (stdoutput, segment);
-  return ((size + (1 << boundary) - 1) & (-1 << boundary));
+  return ((size + (1 << boundary) - 1) & -(1 << boundary));
 }
 
 
@@ -1970,9 +1970,9 @@ bfin_eol_in_insn (char *line)
 }
 
 bfd_boolean
-bfin_start_label (char *s, char *ptr)
+bfin_start_label (char *s)
 {
-  while (s != ptr)
+  while (*s != 0)
     {
       if (*s == '(' || *s == '[')
        return FALSE;
This page took 0.025067 seconds and 4 git commands to generate.