From 72e493829a61304f219af0a2a296e28a8c7d5331 Mon Sep 17 00:00:00 2001 From: bernhardheld Date: Tue, 3 Jun 2003 08:10:48 +0000 Subject: [PATCH] src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2665 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 4 ++++ src/SDCCpeeph.c | 25 +++++++++++++++++++------ 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index e019d026..a1d3df71 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2003-06-03 Bernhard Held + + * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" + 2003-06-02 Frieder Ferlemann * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble, diff --git a/src/SDCCpeeph.c b/src/SDCCpeeph.c index 9e7d672e..0a263f41 100644 --- a/src/SDCCpeeph.c +++ b/src/SDCCpeeph.c @@ -52,8 +52,12 @@ static bool matchLine (char *, char *, hTab **); #define FBYNAME(x) int x (hTab *vars, lineNode *currPl, lineNode *endPl, \ lineNode *head, const char *cmdLine) -#if !OPT_DISABLE_PIC || !OPT_DISABLE_PIC16 -void peepRules2pCode(peepRule *); +#if !OPT_DISABLE_PIC +void peepRules2pCode(peepRule *); +#endif + +#if !OPT_DISABLE_PIC16 +void pic16_peepRules2pCode(peepRule *); #endif /*-----------------------------------------------------------------*/ @@ -1574,13 +1578,22 @@ initPeepHole () } -#if !OPT_DISABLE_PIC || !OPT_DISABLE_PIC16 +#if !OPT_DISABLE_PIC /* Convert the peep rules into pcode. NOTE: this is only support in the PIC port (at the moment) */ - if (TARGET_IS_PIC || TARGET_IS_PIC16) { - peepRules2pCode(rootRules); - } + if (TARGET_IS_PIC) + peepRules2pCode(rootRules); +#endif + +#if !OPT_DISABLE_PIC16 + /* Convert the peep rules into pcode. + NOTE: this is only support in the PIC port (at the moment) + and the PIC16 port (VR 030601) + */ + if (TARGET_IS_PIC16) + pic16_peepRules2pCode(rootRules); + #endif } -- 2.30.2