* src/pic16/device.c (pic16_dump_usection) changed naming scheme for
authortecodev <tecodev@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 8 Jan 2005 21:08:33 +0000 (21:08 +0000)
committertecodev <tecodev@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 8 Jan 2005 21:08:33 +0000 (21:08 +0000)
  udata sections to fix bug #1097823

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

ChangeLog
src/pic16/device.c

index 3c809247a27b8445815c4e17f3d60439b889d18d..1f8fb99b90160ddbdebc413bf54a9084760467e8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
+2005-01-08 Raphael Neider <rneider AT web.de>
+
+       * src/pic16/device.c (pic16_dump_usection) changed naming scheme for
+         udata sections to fix bug #1097823
+
 2005-01-05 Raphael Neider <rneider AT web.de>
 
-        * 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 <rneider AT web.de>
index 9420f969fc3feb439416df66f214cc1062c7e57e..ae3abf2b23e57d9651acf40332e20b76a9e1ff27 100644 (file)
@@ -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;
                }