to enable upcast to pCodeOpReg2 (there is no type tag to
differenciate the two and pic16_popGet2p casts into PCOR2)
* src/pic16/main.c (_process_pragma): fixed another malloc bug
(sizeof(sectNames) changed to sizeof(sectName))
Both patches fix segfaults under MinGW.
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3653
4a8a32a2-be11-0410-ad9d-
d568d2c75423
+2005-01-24 Raphael Neider <rneider AT web.de>
+
+ * src/pic16/pcode.h: added second memory operand to pCodeOpReg
+ to enable upcast to pCodeOpReg2 (there is no type tag to
+ differenciate the two and pic16_popGet2p cast into PCOR2)
+ * src/pic16/main.c (_process_pragma): fixed another malloc bug
+ (sizeof(sectNames) changed to sizeof(sectName))
+ Both patches fix segfaults under MinGW.
+
2005-01-23 Raphael Neider <rneider AT web.de>
* src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
}
if(!found) {
- snam = Safe_calloc(1, sizeof(sectNames));
+ snam = Safe_calloc(1, sizeof(sectName));
snam->name = Safe_strdup( sectname );
snam->regsSet = NULL;
struct regs *r;
int instance; // byte # of Multi-byte registers
struct pBlock *pb;
+
+ pCodeOp *pcop2; // second memory operand (NEEDED IN gen.c:pic16_popGet2p (pCodeOpReg casted into pCodeOpReg2)
} pCodeOpReg;
typedef struct pCodeOpReg2