From: maartenbrock Date: Fri, 27 Aug 2004 15:46:51 +0000 (+0000) Subject: * src/SDCCsymt.c: undid changes that were not meant to be committed X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=87621bda0e5860efe5ec19b73ff75db91d2546c5;p=fw%2Fsdcc * src/SDCCsymt.c: undid changes that were not meant to be committed git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3453 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/ChangeLog b/ChangeLog index 9f5522d1..00cf8c4a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2004-08-27 Maarten Brock + + * src/SDCCsymt.c: undid changes that were not meant to be committed + +2004-08-27 Maarten Brock + + * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant + 2004-08-27 Maarten Brock * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were diff --git a/src/SDCCsymt.c b/src/SDCCsymt.c index cea93155..fe717e90 100644 --- a/src/SDCCsymt.c +++ b/src/SDCCsymt.c @@ -1545,23 +1545,6 @@ checkDecl (symbol * sym, int isProto) return 0; } -/*-------------------------------------------------------------------*/ -/* copyStruct - makes a copy of the struct chain & rets ptr 2 struct */ -/*-------------------------------------------------------------------*/ -structdef * -copyStruct (structdef * src) -{ - structdef *dst = (void *) NULL; - - if (src) - { - dst = newStruct(src->tag); - memcpy(dst, src, sizeof(structdef)); /* copy it */ - dst->fields = copySymbolChain(src->fields); - } - return dst; -} - /*------------------------------------------------------------------*/ /* copyLinkChain - makes a copy of the link chain & rets ptr 2 head */ /*------------------------------------------------------------------*/ @@ -1575,17 +1558,6 @@ copyLinkChain (sym_link * p) while (curr) { memcpy (loop, curr, sizeof (sym_link)); /* copy it */ - if ((curr == p) && IS_STRUCT(curr) && SPEC_STRUCT(curr)->type == STRUCT) - { - /* if this is a struct specifier which ends */ - /* with an array of unspecified length then */ - /* copy the struct and it's fields */ - struct symbol *field = SPEC_STRUCT(curr)->fields; - while (field && field->next) - field = field->next; /* find last one */ - if (field && IS_ARRAY(field->type) && !DCL_ELEM(field->type)) - SPEC_STRUCT(loop) = copyStruct(SPEC_STRUCT(curr)); - } loop->next = (curr->next ? newLink (curr->next->class) : (void *) NULL); loop = loop->next; curr = curr->next; @@ -1594,6 +1566,7 @@ copyLinkChain (sym_link * p) return head; } + /*------------------------------------------------------------------*/ /* cleanUpBlock - cleansup the symbol table specified for all the */ /* symbols in the given block */