From c7ba656fd5992b1efd1a724255f23381ace27174 Mon Sep 17 00:00:00 2001 From: johanknol Date: Mon, 14 May 2001 10:35:42 +0000 Subject: [PATCH] Small peephole fix git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@818 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/SDCCpeeph.c | 5 +++-- src/mcs51/peeph.def | 10 ---------- 2 files changed, 3 insertions(+), 12 deletions(-) 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 -} -- 2.30.2