From: sandeep Date: Sat, 30 Sep 2000 16:56:46 +0000 (+0000) Subject: Fixed up for AVR should not prefer globals X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=e0d2504a7ff5b083048b52074e3d5efd93d6ef05;p=fw%2Fsdcc Fixed up for AVR should not prefer globals in FAR_SPACE (even if direct space) over temps git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@425 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCcse.c b/src/SDCCcse.c index a23e391b..3d1a234d 100644 --- a/src/SDCCcse.c +++ b/src/SDCCcse.c @@ -207,7 +207,7 @@ static bool isGlobalInNearSpace (operand *op) suggested by Jean-Louis VERN, with 8051s we have no advantage of putting variables in near space into registers */ - if (isOperandGlobal(op) && + if (isOperandGlobal(op) && !IN_FARSPACE(SPEC_OCLS(type)) && IN_DIRSPACE(SPEC_OCLS(type))) return TRUE; else