git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2577
4a8a32a2-be11-0410-ad9d-
d568d2c75423
+2003-04-29 Scott Dattalo <scott@dattalo.com>
+
+ * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim@jimhawkridge.uk.eu.org>
+ that tame's the PIC's over-aggressive optimizer.
+
2003-04-29 Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
* src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
pc = setFirstItem(reg->reglives.usedpCodes);
- if(reg->type == REG_SFR) {
+ if(reg->type == REG_SFR || reg->type == REG_STK) {
//fprintf(stderr, "not removing SFR reg %s even though used only once\n",reg->name);
continue;
}
reg = fregs->item;
fregs = fregs->next;
- if(reg->type == REG_SFR) {
+ if(reg->type == REG_SFR || reg->type == REG_STK) {
//fprintf(stderr,"skipping SFR: %s\n",reg->name);
continue;
}