summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6907dd2)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@375
4a8a32a2-be11-0410-ad9d-
d568d2c75423
note here that we put it into the overlay segment
first, we will remove it from the overlay segment
after the overlay determination has been done */
note here that we put it into the overlay segment
first, we will remove it from the overlay segment
after the overlay determination has been done */
- SPEC_OCLS(lval->etype) = SPEC_OCLS(lval->sym->etype) =
- ( options.model == MODEL_SMALL ? port->mem.default_local_map :
- (options.noOverlay ? port->mem.default_local_map
- :overlay ));
-
+ if (options.model == MODEL_SMALL) {
+ SPEC_OCLS(lval->etype) = SPEC_OCLS(lval->sym->etype) =
+ ( options.model == MODEL_SMALL ? port->mem.default_local_map :
+ (options.noOverlay ? port->mem.default_local_map
+ :overlay ));
+ } else {
+ SPEC_SCLS(lval->etype) = S_XDATA;
+ SPEC_OCLS(lval->etype) = SPEC_OCLS(lval->sym->etype) = xdata;
+ }
allocIntoSeg(lval->sym);
}
}
allocIntoSeg(lval->sym);
}
}