Cleaned warnings.
authorsdattalo <sdattalo@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 19 May 2003 13:24:28 +0000 (13:24 +0000)
committersdattalo <sdattalo@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 19 May 2003 13:24:28 +0000 (13:24 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2632 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
src/pic16/main.c
src/pic16/pcode.c
src/pic16/pcodepeep.c
src/pic16/ralloc.c

index a98bafe3718144f4131d36693b57ee8b4c3487ea..ef2a8fa360597e0f26cea57bfe8a69cdcac07ec2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-05-19  Scott Dattalo  <scott@dattalo.com>
+
+       * src/pic16/pcode.c: Cleaned warnings
+       * src/pic16/pcodepeep.c: Cleaned warnings
+       * src/pic16/ralloc.c: Cleaned warnings
+
 2003-05-19  Bernhard Held <bernhard@bernhardheld.de>
 
        * doc/sdccman.lyx: fixed bug 739745
index 57cf4e3fedd6dc4cacdd1e354bb75aa623773cca..2fc39fc2fec697f4fd4c31ced354732943965868 100644 (file)
@@ -291,8 +291,8 @@ _pic16_genIVT (FILE * of, symbol ** interrupts, int maxInterrupts)
 static bool
 _hasNativeMulFor (iCode *ic, sym_link *left, sym_link *right)
 {
-  sym_link *test = NULL;
-  value *val;
+  //  sym_link *test = NULL;
+  //  value *val;
 
   fprintf(stderr,"checking for native mult\n");
 
index 0fcafb3fc533f3f47871615fc18d7556fd01cb51..6df0173b23e37af05af52c8b41e8e7d94517ed2c 100644 (file)
@@ -81,7 +81,7 @@ static int peepOptimizing = 1;        /* run the peephole optimizer if nonzero *
 static int functionInlining = 1;      /* inline functions if nonzero */
 int pic16_debug_verbose = 1;                /* Set true to inundate .asm file */
 
-static int GpCodeSequenceNumber = 1;
+//static int GpCodeSequenceNumber = 1;
 static int GpcFlowSeq = 1;
 
 extern void pic16_RemoveUnusedRegisters(void);
@@ -3334,6 +3334,7 @@ void pic16_pCodeConstString(char *name, char *value)
 
 /*-----------------------------------------------------------------*/
 /*-----------------------------------------------------------------*/
+#if 0
 static void pCodeReadCodeTable(void)
 {
   pBlock *pb;
@@ -3356,7 +3357,7 @@ static void pCodeReadCodeTable(void)
 
 
 }
-
+#endif
 /*-----------------------------------------------------------------*/
 /* pic16_addpCode2pBlock - place the pCode into the pBlock linked list   */
 /*-----------------------------------------------------------------*/
@@ -3532,7 +3533,7 @@ static void genericDestruct(pCode *pc)
 
 }
 
-
+#if 0
 /*-----------------------------------------------------------------*/
 /*-----------------------------------------------------------------*/
 static void pBlockRegs(FILE *of, pBlock *pb)
@@ -3545,7 +3546,7 @@ static void pBlockRegs(FILE *of, pBlock *pb)
     r = setNextItem(pb->tregisters);
   }
 }
-
+#endif
 
 /*-----------------------------------------------------------------*/
 /*-----------------------------------------------------------------*/
@@ -4151,7 +4152,7 @@ static pCode * findLabelinpBlock(pBlock *pb,pCodeOpLabel *pcop_label)
     
   return NULL;
 }
-
+#if 0
 /*-----------------------------------------------------------------*/
 /* findLabel - Search the pCode for a particular label             */
 /*-----------------------------------------------------------------*/
@@ -4171,7 +4172,7 @@ static pCode * findLabel(pCodeOpLabel *pcop_label)
   fprintf(stderr,"Couldn't find label %s", pcop_label->pcop.name);
   return NULL;
 }
-
+#endif
 /*-----------------------------------------------------------------*/
 /* pic16_findNextpCode - given a pCode, find the next of type 'pct'      */
 /*                 in the linked list                              */
@@ -4236,7 +4237,7 @@ pCode * pic16_findPrevInstruction(pCode *pci)
 {
   return findPrevpCode(pci, PC_OPCODE);
 }
-
+#if 0
 /*-----------------------------------------------------------------*/
 /* findFunctionEnd - given a pCode find the end of the function    */
 /*                   that contains it                              */
@@ -4254,7 +4255,7 @@ static pCode * findFunctionEnd(pCode *pc)
   fprintf(stderr,"Couldn't find function end\n");
   return NULL;
 }
-
+#endif
 #if 0
 /*-----------------------------------------------------------------*/
 /* AnalyzeLabel - if the pCode is a label, then merge it with the  */
@@ -4557,7 +4558,7 @@ static void unBuildFlow(pBlock *pb)
 
 
 }
-
+#if 0
 /*-----------------------------------------------------------------*/
 /*-----------------------------------------------------------------*/
 static void dumpCond(int cond)
@@ -4588,7 +4589,9 @@ static void dumpCond(int cond)
       fprintf(stderr, "  %s\n",pcc_str[i]);
 
 }
+#endif
 
+#if 0
 /*-----------------------------------------------------------------*/
 /*-----------------------------------------------------------------*/
 static void FlowStats(pCodeFlow *pcflow)
@@ -4615,7 +4618,7 @@ static void FlowStats(pCodeFlow *pcflow)
   dumpCond(pcflow->outCond);
 
 }
-
+#endif
 /*-----------------------------------------------------------------*
  * int isBankInstruction(pCode *pc) - examine the pCode *pc to determine
  *    if it affects the banking bits. 
@@ -5197,7 +5200,7 @@ static void FixBankFlow(pBlock *pb)
            PCFL(pcflow_max_From)->FromConflicts);
 */
 }
-
+#if 0
 /*-----------------------------------------------------------------*/
 /*-----------------------------------------------------------------*/
 static void DumpFlow(pBlock *pb)
@@ -5252,7 +5255,7 @@ static void DumpFlow(pBlock *pb)
   }
 
 }
-
+#endif
 /*-----------------------------------------------------------------*/
 /*-----------------------------------------------------------------*/
 static int OptimizepBlock(pBlock *pb)
index df81ff9ee4680429253bf0e6323793ed3c1d5e70..b62d9c6375efdd5e03b7b31e4f3d23820fa82f3b 100644 (file)
@@ -151,7 +151,7 @@ typedef struct parsedPattern {
 
 #define MAX_PARSEDPATARR 50
 parsedPattern parsedPatArr[MAX_PARSEDPATARR];
-static unsigned int parsedPatIdx=0;
+//static unsigned int parsedPatIdx=0;
 
 
 typedef enum {
@@ -1400,7 +1400,7 @@ void  pic16_peepRules2pCode(peepRule *rules)
   }
 
 }
-
+#if 0
 static void printpCodeString(FILE *of, pCode *pc, int max)
 {
   int i=0;
@@ -1410,7 +1410,7 @@ static void printpCodeString(FILE *of, pCode *pc, int max)
     pc = pc->next;
   }
 }
-
+#endif
 /*-----------------------------------------------------------------*/
 /* _DLL * DLL_append                                               */
 /*                                                                 */ 
@@ -1963,7 +1963,7 @@ pCodeOp *pic16_pCodeOpCopy(pCodeOp *pcop)
   case PO_INTCON:
   case PO_PCL:
   case PO_PCLATH:
-
+  case PO_REL_ADDR:
     //DFPRINTF((stderr,"pCodeOpCopy register type %d\n", pcop->type));
     pcopnew = Safe_calloc(1,sizeof(pCodeOp) );
 
index 60c2a88432996fbba1c2913fc4381006848b5a37..78ca883f2aa8e30f9b75870e356d1343f5c46817 100644 (file)
@@ -75,7 +75,7 @@ set *pic16_dynDirectBitRegs=NULL;
 set *pic16_dynInternalRegs=NULL;
 
 static hTab  *dynDirectRegNames= NULL;
-static hTab  *regHash = NULL;    /* a hash table containing ALL registers */
+//static hTab  *regHash = NULL;    /* a hash table containing ALL registers */
 
 static int dynrIdx=0x20;
 static int rDirectIdx=0;
@@ -931,7 +931,7 @@ nfreeRegsType (int type)
 
   return nFreeRegs (type);
 }
-
+#if 0
 static void writeSetUsedRegs(FILE *of, set *dRegs)
 {
 
@@ -945,6 +945,8 @@ static void writeSetUsedRegs(FILE *of, set *dRegs)
   }
 
 }
+#endif
+
 extern void pic16_assignFixedRegisters(set *regset);
 extern void pic16_assignRelocatableRegisters(set *regset,int used);
 extern void pic16_dump_map(void);