git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@164
4a8a32a2-be11-0410-ad9d-
d568d2c75423
allocIntoSeg (sym) ;
return ;
}
+
+ if ( SPEC_SCLS(sym->etype) == S_EEPROM ) {
+ SPEC_OCLS(sym->etype) = eeprom ;
+ allocIntoSeg (sym) ;
+ return ;
+ }
return ;
}
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