* src/pic16/gen.c (genPackBits): removed deprecated warning
authortecodev <tecodev@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 2 Aug 2005 17:17:04 +0000 (17:17 +0000)
committertecodev <tecodev@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 2 Aug 2005 17:17:04 +0000 (17:17 +0000)
* (genGenPointerSet): fixed bitfield detection

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

ChangeLog
src/pic16/gen.c

index e216f290ee9fb6251b258efffc2a1c7a6b736a17..0f26cc261ecbcbdfd102024602d51cfe9d8bbf60 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-08-02 Raphael Neider <rneider AT web.de>
+
+       * src/pic16/gen.c (genPackBits): removed deprecated warning
+       * (genGenPointerSet): fixed bitfield detection
+
 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
 
        * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
index f4f84c80183f105d616f1144f95e0b4b03785a73..e950d536b3541604bd37c3e303d8572f08cb5da4 100644 (file)
@@ -11505,7 +11505,7 @@ static void genPackBits (sym_link    *etype , operand *result,
                                  pic16_emitpcode(POC_MOVFW, pic16_popCopyReg(&pic16_pc_indf0));
                                }
                                
-                               // warnings will be emitted below
+                               // warnings will be emitted below (if desired)
                                //pic16_emitpcomment ("; =?= genPackBits, GPOINTER...");
                                 //werror(W_POSSBUG2, __FILE__, __LINE__);
                                break;
@@ -11550,7 +11550,7 @@ static void genPackBits (sym_link    *etype , operand *result,
                                
                                // this should work in all cases (as soon as gptrget/gptrput work on EEPROM and PROGRAM MEMORY)
                                //pic16_emitpcomment ("; =?= genPackBits, GPOINTER access");
-                                werror(W_POSSBUG2, __FILE__, __LINE__);
+                                //werror(W_POSSBUG2, __FILE__, __LINE__);
                                break;
 
                        default:
@@ -12104,7 +12104,7 @@ static void genGenPointerSet (operand *right,
                               operand *result, iCode *ic)
 {
   int size;
-  sym_link *retype = getSpec(operandType(right));
+  sym_link *retype = getSpec(operandType(result));
 
     DEBUGpic16_emitcode ("; ***","%s  %d",__FUNCTION__,__LINE__);
 
@@ -12172,6 +12172,7 @@ static void genPointerSet (iCode *ic)
     move it to the correct pointer register */
     type = operandType(result);
     etype = getSpec(type);
+    
     /* if left is of type of pointer then it is simple */
     if (IS_PTR(type) && !IS_FUNC(type->next)) {
         p_type = DCL_TYPE(type);