]> git.gag.com Git - fw/sdcc/commitdiff
Some more AVR
authorsandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 5 Mar 2000 23:21:01 +0000 (23:21 +0000)
committersandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 5 Mar 2000 23:21:01 +0000 (23:21 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@164 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/SDCCmem.c

index 435c317181f057cb17d75a1a39ac5491002fa029..d410f0140fc9423d168fe22ec2c4112968cc62d0 100644 (file)
@@ -370,6 +370,12 @@ void allocGlobal ( symbol *sym )
        allocIntoSeg (sym)  ;
        return ;
     }
+
+    if ( SPEC_SCLS(sym->etype) == S_EEPROM  )    {
+       SPEC_OCLS(sym->etype) = eeprom ;
+       allocIntoSeg (sym)  ;
+       return ;
+    }
     
     return ;
 }
@@ -604,11 +610,17 @@ void allocLocal ( symbol *sym  )
        return  ;
     }
 
-    if ( SPEC_SCLS(sym->etype) == S_DATA  )    {
+    if ( SPEC_SCLS(sym->etype) == S_DATA  ) {
        SPEC_OCLS(sym->etype) = (options.noOverlay ? data : overlay );
        allocIntoSeg(sym)  ;
        return ;
     }
+
+    if ( SPEC_SCLS(sym->etype) == S_EEPROM  ) {
+       SPEC_OCLS(sym->etype) = eeprom;
+       allocIntoSeg(sym)  ;
+       return ;
+    }
     
     /* again note that we have put it into the overlay segment
        will remove and put into the 'data' segment if required after