From e0d2504a7ff5b083048b52074e3d5efd93d6ef05 Mon Sep 17 00:00:00 2001 From: sandeep Date: Sat, 30 Sep 2000 16:56:46 +0000 Subject: [PATCH] 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 --- src/SDCCcse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2