From 297fb36c24b35aa016503fffb764e8a3f85790de Mon Sep 17 00:00:00 2001 From: tecodev Date: Tue, 2 Aug 2005 17:17:04 +0000 Subject: [PATCH] * src/pic16/gen.c (genPackBits): removed deprecated warning * (genGenPointerSet): fixed bitfield detection git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3821 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 5 +++++ src/pic16/gen.c | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index e216f290..0f26cc26 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-08-02 Raphael Neider + + * src/pic16/gen.c (genPackBits): removed deprecated warning + * (genGenPointerSet): fixed bitfield detection + 2005-08-02 Jesus Calvino-Fraga * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h. diff --git a/src/pic16/gen.c b/src/pic16/gen.c index f4f84c80..e950d536 100644 --- a/src/pic16/gen.c +++ b/src/pic16/gen.c @@ -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); -- 2.30.2