From: johanknol Date: Tue, 10 Apr 2001 11:31:54 +0000 (+0000) Subject: Don't skip iTemp's if there is a function call in between X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=4003d2e5cf40e2060187b66cef7b0348be59a2f0;p=fw%2Fsdcc Don't skip iTemp's if there is a function call in between git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@735 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/ds390/ralloc.c b/src/ds390/ralloc.c index 735e4607..d9b7eab3 100644 --- a/src/ds390/ralloc.c +++ b/src/ds390/ralloc.c @@ -1614,7 +1614,7 @@ packRegsForAssign (iCode * ic, eBBlock * ebp) we cannot */ for (dic = ic->prev; dic; dic = dic->prev) { - +#if 0 // jwk 20010410, the JanVanBelle case /* if there is a function call and this is a parameter & not my parameter then don't pack it */ if ((dic->op == CALL || dic->op == PCALL) && @@ -1624,6 +1624,14 @@ packRegsForAssign (iCode * ic, eBBlock * ebp) dic = NULL; break; } +#else + /* if there is a function call then don't pack it */ + if ((dic->op == CALL || dic->op == PCALL)) + { + dic = NULL; + break; + } +#endif if (SKIP_IC2 (dic)) continue; diff --git a/src/mcs51/ralloc.c b/src/mcs51/ralloc.c index 3eeeac06..5782ad34 100644 --- a/src/mcs51/ralloc.c +++ b/src/mcs51/ralloc.c @@ -1623,7 +1623,7 @@ packRegsForAssign (iCode * ic, eBBlock * ebp) we cannot */ for (dic = ic->prev; dic; dic = dic->prev) { - +#if 0 // jwk 20010410 /* if there is a function call and this is a parameter & not my parameter then don't pack it */ if ((dic->op == CALL || dic->op == PCALL) && @@ -1633,6 +1633,14 @@ packRegsForAssign (iCode * ic, eBBlock * ebp) dic = NULL; break; } +#else + /* if there is a function call then don't pack it */ + if ((dic->op == CALL || dic->op == PCALL)) + { + dic = NULL; + break; + } +#endif if (SKIP_IC2 (dic)) continue;