From: MaartenBrock Date: Fri, 11 May 2007 18:12:13 +0000 (+0000) Subject: * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=a40c195649febb6f43293becb1b9049260ec273b;p=fw%2Fsdcc * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for jumps to self, fixed bug 1717281 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4806 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/ChangeLog b/ChangeLog index 1d7f4d05..2c66eead 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-05-08 Maarten Brock + + * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for + jumps to self, fixed bug 1717281 + 2007-05-10 Borut Razem * support/scripts/gen_known_bugs.pl: cosmetic fix diff --git a/src/SDCCpeeph.c b/src/SDCCpeeph.c index 36bedeb2..2a7e3f7a 100644 --- a/src/SDCCpeeph.c +++ b/src/SDCCpeeph.c @@ -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;