src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas...
authorbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 3 Jun 2003 08:10:48 +0000 (08:10 +0000)
committerbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 3 Jun 2003 08:10:48 +0000 (08:10 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2665 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
src/SDCCpeeph.c

index e019d0265c29381dd8911d98c2bc0876971ccb91..a1d3df71d4b9922e0945f399a7036ed43bdb8513 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-06-03  Bernhard Held <bernhard@bernhardheld.de>
+
+       * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas@otenet.gr>
+
 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann@web.de>
 
        * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
index 9e7d672e09f1cb376d034e18c0f5bc2002ab671d..0a263f41d6d4732e3f4320824e86e6de70bfc54d 100644 (file)
@@ -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
 
 }