#983491 - "Merge duplicate strings function is ineffective"
* support/regression/tests/bug-983491.c: regtest disabled
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4966
4a8a32a2-be11-0410-ad9d-
d568d2c75423
+2007-11-17 Borut Razem <borut.razem AT siol.net>
+
+ * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
+ #983491 - "Merge duplicate strings function is ineffective"
+ * support/regression/tests/bug-983491.c: regtest disabled
+
2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
* device/include/stdarg.h: added and removed some casts
dbuf_tprintf (oBuf, "\t!org\n", SPEC_ADDR (sym->etype));
}
dbuf_printf (oBuf, "%s:\n", sym->rname);
+ ++noAlloc;
resolveIvalSym (sym->ival, sym->type);
printIval (sym, sym->type, sym->ival, oBuf);
+ --noAlloc;
/* if sym is a simple string and sym->ival is a string,
WE don't need it anymore */
if (IS_ARRAY(sym->type) && IS_CHAR(sym->type->next) &&
/* symbol doesn't have absolute address but has initial value */
dbuf_printf (&code->oBuf, "%s:\n", sym->rname);
+ ++noAlloc;
resolveIvalSym (sym->ival, sym->type);
pb = pic16_newpCodeChain(NULL, 'P',pic16_newpCodeCharP("; Starting pCode block for Ival"));
//fprintf(stderr, "%s:%d [2] generating init for label: %s\n", __FILE__, __LINE__, sym->rname);
pic16_printIval(sym, sym->type, sym->ival, 'p', (void *)pb);
pic16_flushDB('p', (void *)pb);
+ --noAlloc;
} else {
/* symbol doesn't have absolute address and no initial value */
#include <testfwk.h>
+/*
+ * test disabled since the fix was reverted
+ */
+
+/*
code struct {
char* b;
} c[2] = {
{"abc"},
{"abc"}
};
+*/
+void
testMergeStr(void)
{
- ASSERT(c[0].b == c[1].b);
+/* ASSERT(c[0].b == c[1].b); */
}