From 0b7ac8bcc02ff342e11d0a73c065e82fe8cc88d3 Mon Sep 17 00:00:00 2001 From: sdcc-builder Date: Fri, 20 Feb 2004 12:32:27 +0000 Subject: [PATCH] * src/pic16/ralloc.c (packRegsForAccUse): disabled functions with #if to eliminate build warnings. * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3212 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 6 ++++++ src/pic16/gen.c | 8 +++++--- src/pic16/ralloc.c | 3 +++ 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9e197ce3..e2266754 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-02-20 Bernhard Held + + * src/pic16/ralloc.c (packRegsForAccUse): disabled functions with #if + to eliminate build warnings. + * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4 + 2004-02-20 Vangelis Rokas Hans-Juergen Dorn diff --git a/src/pic16/gen.c b/src/pic16/gen.c index 7bf945e7..e52b0ed5 100644 --- a/src/pic16/gen.c +++ b/src/pic16/gen.c @@ -1521,10 +1521,11 @@ pCodeOp *pic16_popGet (asmop *aop, int offset) //, bool bit16, bool dname) return pic16_popGetImmd(aop->aopu.aop_immd,offset,0); case AOP_ACC: - fprintf(stderr, "%s:%d returning register AOP_ACC %s\n", __FILE__, __LINE__, aop->aopu.aop_str[offset]); - + { int rIdx = IDX_WREG; //aop->aopu.aop_reg[offset]->rIdx; + fprintf(stderr, "%s:%d returning register AOP_ACC %s\n", __FILE__, __LINE__, aop->aopu.aop_str[offset]); + DEBUGpic16_emitcode(";","%d\tAOP_ACC", __LINE__); pcop = Safe_calloc(1,sizeof(pCodeOpReg) ); @@ -1540,10 +1541,11 @@ pCodeOp *pic16_popGet (asmop *aop, int offset) //, bool bit16, bool dname) return pcop; - return pic16_popRegFromString(aop->aopu.aop_str[offset], aop->size, offset); +// return pic16_popRegFromString(aop->aopu.aop_str[offset], aop->size, offset); // return pic16_newpCodeOpRegFromStr(aop->aopu.aop_str[offset]); // assert( 0 ); + } case AOP_DIR: DEBUGpic16_emitcode(";","%d\tAOP_DIR", __LINE__); diff --git a/src/pic16/ralloc.c b/src/pic16/ralloc.c index 0a7a9413..078774ac 100644 --- a/src/pic16/ralloc.c +++ b/src/pic16/ralloc.c @@ -3307,6 +3307,8 @@ isBitwiseOptimizable (iCode * ic) /*-----------------------------------------------------------------*/ /* packRegsForAccUse - pack registers for acc use */ /*-----------------------------------------------------------------*/ +#if 0 + static void packRegsForAccUse (iCode * ic) { @@ -3460,6 +3462,7 @@ accuse: } +#endif /*-----------------------------------------------------------------*/ /* packForPush - hueristics to reduce iCode for pushing */ -- 2.30.2