From: sandeep Date: Tue, 18 Dec 2001 04:16:20 +0000 (+0000) Subject: Added check for _overlay keyword to force a function to overlay X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=f7bf06f43f1d71091f9108947bd4b7b1462102be;p=fw%2Fsdcc Added check for _overlay keyword to force a function to overlay git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1695 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCmem.c b/src/SDCCmem.c index afbcdec2..18f51f8b 100644 --- a/src/SDCCmem.c +++ b/src/SDCCmem.c @@ -1019,6 +1019,9 @@ canOverlayLocals (eBBlock ** ebbs, int count) return FALSE; + /* if this is a forces overlay */ + if (IFFUNC_ISOVERLAY(currFunc->type)) return TRUE; + /* otherwise do thru the blocks and see if there any function calls if found then return false */ for (i = 0; i < count; i++)