]> git.gag.com Git - fw/sdcc/commitdiff
Added check for _overlay keyword to force a function to overlay
authorsandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 18 Dec 2001 04:16:20 +0000 (04:16 +0000)
committersandeep <sandeep@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 18 Dec 2001 04:16:20 +0000 (04:16 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1695 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/SDCCmem.c

index afbcdec2b62154360be9139a60a2f8527ff1a043..18f51f8baa2d9aaed4d9c6adc71f5d226ff65f89 100644 (file)
@@ -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++)