From cd4659a7dfa0f7cafc09f8621fa67a537172348b Mon Sep 17 00:00:00 2001 From: sdattalo Date: Mon, 19 May 2003 13:24:28 +0000 Subject: [PATCH] Cleaned warnings. git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2632 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 6 ++++++ src/pic16/main.c | 4 ++-- src/pic16/pcode.c | 27 +++++++++++++++------------ src/pic16/pcodepeep.c | 8 ++++---- src/pic16/ralloc.c | 6 ++++-- 5 files changed, 31 insertions(+), 20 deletions(-) diff --git a/ChangeLog b/ChangeLog index a98bafe3..ef2a8fa3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-05-19 Scott Dattalo + + * src/pic16/pcode.c: Cleaned warnings + * src/pic16/pcodepeep.c: Cleaned warnings + * src/pic16/ralloc.c: Cleaned warnings + 2003-05-19 Bernhard Held * doc/sdccman.lyx: fixed bug 739745 diff --git a/src/pic16/main.c b/src/pic16/main.c index 57cf4e3f..2fc39fc2 100644 --- a/src/pic16/main.c +++ b/src/pic16/main.c @@ -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"); diff --git a/src/pic16/pcode.c b/src/pic16/pcode.c index 0fcafb3f..6df0173b 100644 --- a/src/pic16/pcode.c +++ b/src/pic16/pcode.c @@ -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) diff --git a/src/pic16/pcodepeep.c b/src/pic16/pcodepeep.c index df81ff9e..b62d9c63 100644 --- a/src/pic16/pcodepeep.c +++ b/src/pic16/pcodepeep.c @@ -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) ); diff --git a/src/pic16/ralloc.c b/src/pic16/ralloc.c index 60c2a884..78ca883f 100644 --- a/src/pic16/ralloc.c +++ b/src/pic16/ralloc.c @@ -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); -- 2.30.2