* src/pic16/ralloc.h,
* src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
to fix conflict with pic port
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3331
4a8a32a2-be11-0410-ad9d-
d568d2c75423
+2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
+
+ * src/pic16/glue.c,
+ * src/pic16/ralloc.h,
+ * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
+ to fix conflict with pic port
+
2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
* src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
/* do not emit if it is a config word declaration */
if(!SPEC_ABSA(sym->etype)
- || (SPEC_ABSA(sym->etype) && !IS_CONFIG_ADDRESS(SPEC_ADDR(sym->etype))))
+ || (SPEC_ABSA(sym->etype) && !PIC16_IS_CONFIG_ADDRESS(SPEC_ADDR(sym->etype))))
checkAddSym(&externs, sym);
continue;
}
/* do not emit if it is a config word declaration */
if(!SPEC_ABSA(sym->etype)
- || (SPEC_ABSA(sym->etype) && !IS_CONFIG_ADDRESS(SPEC_ADDR(sym->etype))))
+ || (SPEC_ABSA(sym->etype) && !PIC16_IS_CONFIG_ADDRESS(SPEC_ADDR(sym->etype))))
checkAddSym(&publics, sym);
}
return NULL; // name wasn't found in the hash table
}
-int IS_CONFIG_ADDRESS(int address)
+int PIC16_IS_CONFIG_ADDRESS(int address)
{
return address >= 0x300000 && address <= 0x300000d;
return NULL;
}
- if(!IS_CONFIG_ADDRESS(address)) {
+ if(!PIC16_IS_CONFIG_ADDRESS(address)) {
// fprintf(stderr,"%s:allocating new reg %s\n",__FUNCTION__, name);
/* this is an error, why added? -- VR */
/* if this is at an absolute address, then get the address. */
if (SPEC_ABSA ( OP_SYM_ETYPE(IC_RESULT(ic))) ) {
- if(IS_CONFIG_ADDRESS( SPEC_ADDR ( OP_SYM_ETYPE(IC_RESULT(ic))))) {
+ if(PIC16_IS_CONFIG_ADDRESS( SPEC_ADDR ( OP_SYM_ETYPE(IC_RESULT(ic))))) {
debugLog (" %d - found config word declaration\n", __LINE__);
if(IS_VALOP(IC_RIGHT(ic))) {
debugLog (" setting config word to %x\n",
regs* newReg(short type, short pc_type, int rIdx, char *name, int size, int alias, operand *refop);
-int IS_CONFIG_ADDRESS(int address);
+int PIC16_IS_CONFIG_ADDRESS(int address);
/* Define register address that are constant across PIC16 family */
#define IDX_TMR0 0xfd6