This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Warning in elf32-sh.c
- To: <binutils at sources dot redhat dot com>
- Subject: Warning in elf32-sh.c
- From: Ben Elliston <bje at redhat dot com>
- Date: Tue, 21 Nov 2000 16:56:48 +1100 (EST)
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;