* src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
authorMaartenBrock <MaartenBrock@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 11 May 2007 18:12:13 +0000 (18:12 +0000)
committerMaartenBrock <MaartenBrock@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 11 May 2007 18:12:13 +0000 (18:12 +0000)
  jumps to self, fixed bug 1717281

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4806 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
src/SDCCpeeph.c

index 1d7f4d0503c78c6ba1413641ba1e5311f90e50b0..2c66eead70990ddbbdcd6df60d9bfd46765dfcd4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
+
+       * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
+         jumps to self, fixed bug 1717281
+
 2007-05-10 Borut Razem <borut.razem AT siol.net>
 
        * support/scripts/gen_known_bugs.pl: cosmetic fix
index 36bedeb22b66123b927624e4545cafb174f46d2b..2a7e3f7ac03a88a174097e2be016611c3bc3c1af 100644 (file)
@@ -353,6 +353,8 @@ FBYNAME (labelIsUncondJump)
       if (*q==',')
         return FALSE; /* conditional jump */
     }
+  if (strcmp(p, q) == 0)
+    return FALSE; /* labels are equal */
   /* now put the destination in %6 */
   bindVar (6, &p, &vars);
   return TRUE;