* src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
[fw/sdcc] / src / SDCCpeeph.c
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;