Cleaned up warnings
authormichaelh <michaelh@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Wed, 28 Nov 2001 01:46:36 +0000 (01:46 +0000)
committermichaelh <michaelh@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Wed, 28 Nov 2001 01:46:36 +0000 (01:46 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1649 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/SDCCicode.c
src/ds390/ralloc.c
src/mcs51/main.c
src/z80/gen.c

index e3781a7f9df75872fff469bd9875a1bb01d792c0..57ee76fcebb16b8489ac664b49cb627ee45353d0 100644 (file)
@@ -129,7 +129,6 @@ iCodeTable codeTable[] =
 void checkConstantRange(sym_link *ltype, value *val, char *msg, 
                        int pedantic) {
   double max;
-  char message[132]="";
   int warnings=0;
   int negative=0;
   long v;
index 27b8c1e4b5940dc8a429a7911c91585e5a77797f..cf85879e36b8edf5da4655b1ddacf117ac5db345 100644 (file)
@@ -36,6 +36,8 @@
 /* since the pack the registers depending strictly on the MCU      */
 /*-----------------------------------------------------------------*/
 
+#define D(x)
+
 /* Global data */
 static struct
   {
@@ -1307,7 +1309,7 @@ static void fillGaps()
        if (sym->uptr && !sym->ruonly && getSize(sym->type) < 4) {
            if (packRegsDPTRuse(operandFromSymbol(sym))) {
 
-               printf("FILL GAPS: found more DPTR use for %s in func %s\n",sym->name, currFunc ? currFunc->name : "UNKNOWN");
+                D (printf ("FILL GAPS: found more DPTR use for %s in func %s\n",sym->name, currFunc ? currFunc->name : "UNKNOWN"));
                /* if this was ssigned to registers then */
                if (bitVectBitValue(_G.totRegAssigned,sym->key)) {
 
@@ -1392,10 +1394,10 @@ static void fillGaps()
                sym->regs[i] = NULL;
            }
            freeAllRegs();
-           printf("Fill Gap gave up due to positioning for %s in function %s\n",sym->name, currFunc ? currFunc->name : "UNKNOWN");
+           D (printf ("Fill Gap gave up due to positioning for %s in function %s\n",sym->name, currFunc ? currFunc->name : "UNKNOWN"));
            continue ;      
        }
-       printf("FILLED GAP for %s in function %s\n",sym->name, currFunc ? currFunc->name : "UNKNOWN");
+       D (printf ("FILLED GAP for %s in function %s\n",sym->name, currFunc ? currFunc->name : "UNKNOWN"));
        _G.totRegAssigned = bitVectSetBit(_G.totRegAssigned,sym->key);
        sym->isspilt = sym->spillA = 0 ;
        sym->usl.spillLoc->allocreq--;
index c21bbd4439cd7e46f2010ac7f9c822fd27e1abb8..bbe4921c6319352360ddfebce789653669531596 100644 (file)
@@ -124,11 +124,7 @@ _mcs51_genIVT (FILE * of, symbol ** interrupts, int maxInterrupts)
 static bool cseCostEstimation (iCode *ic, iCode *pdic)
 {
     operand *result = IC_RESULT(ic);
-    operand *right  = IC_RIGHT(ic);
-    operand *left   = IC_LEFT(ic);
     sym_link *result_type = operandType(result);
-    sym_link *right_type  = (right ? operandType(right) : 0);
-    sym_link *left_type   = (left  ? operandType(left)  : 0);
 
     /* if it is a pointer then return ok for now */
     if (IC_RESULT(ic) && IS_PTR(result_type)) return 1;
index 0f9a24c49f9897e8376e45f14489d742f088dfac..76345de7343a5bceb258c931099238aa31b68887 100644 (file)
@@ -411,7 +411,7 @@ _emitMove(const char *to, const char *from)
     }
 }
 
-static void
+void
 aopDump(const char *plabel, asmop *aop)
 {
   emitDebug("; Dump of %s: type %s size %u", plabel, aopNames[aop->type], aop->size);
@@ -924,7 +924,7 @@ aopOp (operand * op, iCode * ic, bool result, bool requires_a)
          /* force a new aop if sizes differ */
          sym->usl.spillLoc->aop = NULL;
       }
-      op->aop = aop =
+      sym->aop = op->aop = aop =
        aopForSym (ic, sym->usl.spillLoc, result, requires_a);
       wassertl (aop->size >= getSize (sym->type), "Operand doesn't fit in the spill location");
       aop->size = getSize (sym->type);
@@ -6940,9 +6940,7 @@ static void
 genBuiltInMemcpy (iCode *ic, int nParams, operand **pparams)
 {
   operand *from, *to, *count;
-  symbol *label;
   bool deInUse;
-  iCode *pcall;
 
   wassertl (nParams == 3, "Built-in memcpy must have two parameters");
   to = pparams[2];