From: johanknol Date: Mon, 14 May 2001 10:35:42 +0000 (+0000) Subject: Small peephole fix X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=c7ba656fd5992b1efd1a724255f23381ace27174;p=fw%2Fsdcc Small peephole fix git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@818 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCpeeph.c b/src/SDCCpeeph.c index fb207ff2..37b8634b 100644 --- a/src/SDCCpeeph.c +++ b/src/SDCCpeeph.c @@ -531,12 +531,13 @@ bindVar (int key, char **s, hTab ** vtab) /* first get the value of the variable */ vvx = *s; - /* the value is ended by a ',' or space or newline or null */ + /* the value is ended by a ',' or space or newline or null or ) */ while (*vvx && *vvx != ',' && !isspace (*vvx) && *vvx != '\n' && - *vvx != ':') + *vvx != ':' && + *vvx != ')') { char ubb = 0; /* if we find a '(' then we need to balance it */ diff --git a/src/mcs51/peeph.def b/src/mcs51/peeph.def index 704380ca..fd7f2cf5 100644 --- a/src/mcs51/peeph.def +++ b/src/mcs51/peeph.def @@ -1762,13 +1762,3 @@ replace { } by { ; removed dec/inc pair } - -replace { - mov dps, #0x00 - mov dp%1,a - mov dps, #0x01 -} by { - ; Peephole 222 removed DPS abuse. - mov dp%1,a - mov dps, #0x01 -}