From: tecodev Date: Sat, 8 Jan 2005 21:08:33 +0000 (+0000) Subject: * src/pic16/device.c (pic16_dump_usection) changed naming scheme for X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=93c80c9bf6ee0e7699677cf52cbffc6fd8a10502;p=fw%2Fsdcc * src/pic16/device.c (pic16_dump_usection) changed naming scheme for udata sections to fix bug #1097823 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3629 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/ChangeLog b/ChangeLog index 3c809247..1f8fb99b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,11 @@ +2005-01-08 Raphael Neider + + * src/pic16/device.c (pic16_dump_usection) changed naming scheme for + udata sections to fix bug #1097823 + 2005-01-05 Raphael Neider - * src/pic16/gen.c (genGenericShift) added handling of differently + * src/pic16/gen.c (genGenericShift) added handling of differently sized left operand and result 2005-01-04 Raphael Neider diff --git a/src/pic16/device.c b/src/pic16/device.c index 9420f969..ae3abf2b 100644 --- a/src/pic16/device.c +++ b/src/pic16/device.c @@ -564,6 +564,7 @@ int symCompare(const void *a, const void *b) void pic16_dump_usection(FILE *of, set *section, int fix) { static int abs_usection_no=0; + static unsigned int usection_no=0; regs *r, *rprev; unsigned int init_addr, i; regs **rlist; @@ -595,7 +596,8 @@ void pic16_dump_usection(FILE *of, set *section, int fix) } #else for(r = setFirstItem(section); r; r = setNextItem(section)) { - fprintf(of, "\nudata_%s_%s\tudata\n", moduleName, r->name); + //fprintf(of, "\nudata_%s_%s\tudata\n", moduleName, r->name); + fprintf(of, "\nudata_%s_%u\tudata\n", moduleName, usection_no++); fprintf(of, "%s\tres\t%d\n", r->name, r->size); statistics.udsize += r->size; }