This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Warning in elf32-sh.c


This patch eliminates a warning in elf32-sh.c.  I'm not sure if it's the
right fix or not -- this code always suffered from a potential infinite
loop.

Ben


@@ -789,7 +1100,7 @@
     {
       bfd_vma start0 = start - 4;

-      while (start0 >= 0 && IS_PPI (contents + start0))
+      while (IS_PPI (contents + start0))
        start0 -= 2;
       start0 = start - 2 - ((start - start0) & 2);
       start = start0 - cum_diff - 2;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]