From: johanknol Date: Mon, 19 Mar 2001 11:11:58 +0000 (+0000) Subject: A better fix for the mult. defs. of initialised code structures X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=8aabe73f1113480b75f1b4ea85927dc3fc951313;p=fw%2Fsdcc A better fix for the mult. defs. of initialised code structures git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@692 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCglue.c b/src/SDCCglue.c index 26715431..2b1a1f1d 100644 --- a/src/SDCCglue.c +++ b/src/SDCCglue.c @@ -814,9 +814,9 @@ printIvalCharPtr (symbol * sym, sym_link * type, value * val, FILE * oFile) } } - - if (val->sym && val->sym->isstrlit) + if (val->sym && val->sym->isstrlit && !isinSet(statsg->syms, val->sym)) { addSet (&statsg->syms, val->sym); + } return 1; } @@ -994,7 +994,7 @@ emitStaticSeg (memmap * map, FILE * out) fprintf (out, " == .\n"); /* if it has an initial value */ - if (!TARGET_IS_MCS51 && !TARGET_IS_DS390 && sym->ival) + if (sym->ival) { fprintf (out, "%s:\n", sym->rname); noAlloc++;