From: tecodev Date: Mon, 22 Jan 2007 01:42:00 +0000 (+0000) Subject: * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=0ce17c369904b0d45410ff0b1b2820c498028ea8;p=fw%2Fsdcc * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as emitted, do not emit them again... git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4594 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/ChangeLog b/ChangeLog index ac8f64a3..46c0dd58 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-01-22 Raphael Neider + + * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as + emitted, do not emit them again... + 2007-01-22 Raphael Neider * src/regression/bank1.c, src/regression/compare6.c, diff --git a/src/pic/glue.c b/src/pic/glue.c index dcd6a971..6148bf71 100644 --- a/src/pic/glue.c +++ b/src/pic/glue.c @@ -404,6 +404,13 @@ pic14emitRegularMap (memmap * map, bool addPublics, bool arFlag) //dbuf_printf (&map->oBuf, "\t.ds\t0x%04x\n", (unsigned int)getSize (sym->type) & 0xffff); } + /* if it has a initial value then do it only if + it is a global variable */ + if (sym->ival) { + /* mark symbol as already defined */ + pic14_stringInSet(sym->name, &emitted, 1); + pic14_stringInSet(sym->rname, &emitted, 1); + } #if 0 /* if it has a initial value then do it only if it is a global variable */