* src/pic16/glue.c,
authorvrokas <vrokas@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 28 May 2004 14:04:42 +0000 (14:04 +0000)
committervrokas <vrokas@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 28 May 2004 14:04:42 +0000 (14:04 +0000)
* 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

ChangeLog
src/pic16/glue.c
src/pic16/ralloc.c
src/pic16/ralloc.h

index 60bb9d11e7ad4b56335c02fa08dadc99e02446ee..2ef4b8281972126244eb76beaa22685fd5e8dcde 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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
index c797808f52da55639055d24b2ded92f07914b5ff..a685c9ab1630c5195a7b0532c708e4a67f9edc6b 100644 (file)
@@ -623,7 +623,7 @@ pic16emitStaticSeg (memmap * map)
 
                /* 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;
        }
@@ -634,7 +634,7 @@ pic16emitStaticSeg (memmap * map)
 
                /* 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);
        }
 
index dca8addf6d799e9c9ab1011687845e6a42f16884..52932b0ce7887d263c12b9b1e41af1d29c0f2263 100644 (file)
@@ -557,7 +557,7 @@ pic16_dirregWithName (char *name)
   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;
@@ -660,7 +660,7 @@ pic16_allocDirReg (operand *op )
                  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 */
@@ -2788,7 +2788,7 @@ packRegsForAssign (iCode * ic, eBBlock * ebp)
 
   /* 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", 
index 989347bd5c265c7c0ce6fd7df5b069d2d9afea3c..aecec160441e8903e852acca9c9e59f23e3da933 100644 (file)
@@ -121,7 +121,7 @@ regs *pic16_allocRegByName (char *name, int size );
 
 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