* device/lib/hc08/Makefile: need to clean .rel not .o files
authorepetrich <epetrich@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 6 Nov 2003 14:52:13 +0000 (14:52 +0000)
committerepetrich <epetrich@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 6 Nov 2003 14:52:13 +0000 (14:52 +0000)
* src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2994 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
device/lib/hc08/Makefile
src/hc08/gen.c

index ea172b90ca65e0d021110207396a04c0dce16ab2..94047225278bc91f121ba59bfa8bb0e641cebd31 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-11-06 Erik Petrich <epetrich@ivorytower.norman.ok.us>
+
+       * device/lib/hc08/Makefile: need to clean .rel not .o files
+       * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode        
+
 2003-11-06 Erik Petrich <epetrich@ivorytower.norman.ok.us>
 
        * src/port.h,
 2003-11-06 Erik Petrich <epetrich@ivorytower.norman.ok.us>
 
        * src/port.h,
index fc53ea7cb8e45b0e31233685207b8516c3d8b27c..c690a372d7e93584d7f1caf42cd38b0507eddfa5 100644 (file)
@@ -29,4 +29,4 @@ $(LIB): $(OBJ) Makefile _dummy
 _dummy:
 
 clean:
 _dummy:
 
 clean:
-       rm -f *.o *.sym *.lst *~ $(CLEANSPEC) *.dump* *.asm *.lib
+       rm -f *.rel *.sym *.lst *~ $(CLEANSPEC) *.dump* *.asm *.lib
index 1a71fd2e4e99551f334da00258a41017c20321a4..12a0982cf362782cbc708af03a466d44c7f08f21 100644 (file)
@@ -7220,6 +7220,10 @@ genDjnz (iCode * ic, iCode * ifx)
   if (operandLitValue (IC_RIGHT (ic)) != 1)
     return 0;
 
   if (operandLitValue (IC_RIGHT (ic)) != 1)
     return 0;
 
+  /* dbnz doesn't support extended mode */
+  if (isOperandInFarSpace (IC_RESULT (ic)))
+    return 0;
+
   /* if the size of this greater than one then no
      saving */
 //  if (getSize (operandType (IC_RESULT (ic))) > 1)
   /* if the size of this greater than one then no
      saving */
 //  if (getSize (operandType (IC_RESULT (ic))) > 1)