From: vrokas Date: Sat, 6 Mar 2004 12:39:10 +0000 (+0000) Subject: ] X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=89c6358b2a84d7fe3cedef11c3c0640ab4b8039b;p=fw%2Fsdcc ] * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old version of pic16_genPackRegisters which does not check if ic is a CAST operator, * src/pic16/gen.c (ifxForOp): disabled new and untested code in function cause string1.c regression test fails git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3251 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/ChangeLog b/ChangeLog index d467f934..9ff314de 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2004-03-06 Vangelis Rokas + + * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old + version of pic16_genPackRegisters which does not check if ic is a + CAST operator, + * src/pic16/gen.c (ifxForOp): disabled new and untested code in + function cause string1.c regression test fails + 2004-03-06 Bernhard Held * sim/ucsim/configure.in, diff --git a/src/pic16/gen.c b/src/pic16/gen.c index f21ff67c..0919aa3c 100644 --- a/src/pic16/gen.c +++ b/src/pic16/gen.c @@ -5892,6 +5892,7 @@ static iCode *ifxForOp ( operand *op, iCode *ic ) } +#if 0 /* the code below is completely untested * it just allows ulong2fs.c compile -- VR */ @@ -5919,7 +5920,7 @@ static iCode *ifxForOp ( operand *op, iCode *ic ) __FILE__, __FUNCTION__, __LINE__); // return ic->next->next; /* this just might work */ /* FIXME FIXME */ - +#endif return NULL; } /*-----------------------------------------------------------------*/ diff --git a/src/pic16/ralloc.c b/src/pic16/ralloc.c index e8ff7b6a..6b8550fb 100644 --- a/src/pic16/ralloc.c +++ b/src/pic16/ralloc.c @@ -3692,8 +3692,8 @@ pic16_packRegisters (eBBlock * ebp) // debugLog("%d\n", __LINE__); /* find assignment of the form TrueSym := iTempNN:1 */ /* see BUGLOG0001 for workaround with the CAST - VR */ - if ( (ic->op == '=' || ic->op == CAST) && !POINTER_SET (ic) ) // patch 11 -// if ( (ic->op == '=') && !POINTER_SET (ic) ) // patch 11 +// if ( (ic->op == '=' || ic->op == CAST) && !POINTER_SET (ic) ) // patch 11 + if ( (ic->op == '=') && !POINTER_SET (ic) ) // patch 11 change += packRegsForAssign (ic, ebp); /* debug stuff */ if (ic->op == '=')