From 261ad161b42133ce4df26d0bc626ae50d55aa753 Mon Sep 17 00:00:00 2001 From: sandeep Date: Sun, 5 Mar 2000 23:21:01 +0000 Subject: [PATCH] Some more AVR git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@164 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/SDCCmem.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/SDCCmem.c b/src/SDCCmem.c index 435c3171..d410f014 100644 --- a/src/SDCCmem.c +++ b/src/SDCCmem.c @@ -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 -- 2.47.2