Applied patch #2762516
[fw/sdcc] / src / pic16 / ralloc.h
index c1d5bc7340c62ae19c421606965ce79ad3267b35..41e2269e72d2b47830d3ab7d0077c598f2aad248 100644 (file)
@@ -31,9 +31,6 @@
 
 #include "pcoderegs.h"
 
-extern unsigned int stackPos;
-extern unsigned int stackLen;
-
 enum
   {
     R2_IDX = 0, R3_IDX, R4_IDX,
@@ -118,12 +115,14 @@ regs *pic16_regWithName(char *name);
 void  pic16_freeAllRegs ();
 void  pic16_deallocateAllRegs ();
 regs *pic16_findFreeReg(short type);
+regs *pic16_findFreeRegNext(short type, regs *creg);
 regs *pic16_allocWithIdx (int idx);
 
 regs *pic16_allocDirReg (operand *op );
 regs *pic16_allocRegByName (char *name, int size, operand *op);
+extern char *pic16_decodeOp(unsigned int op);
 
-regs* newReg(short type, short pc_type, int rIdx, char *name, int size, int alias, operand *refop);
+regs* newReg(int type, short pc_type, int rIdx, char *name, unsigned size, int alias, operand *refop);
 
 /* Define register address that are constant across PIC16 family */
 #define IDX_TMR0    0xfd6