From: epetrich Date: Mon, 28 Mar 2005 00:47:38 +0000 (+0000) Subject: * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=bf85b9d198d58c03756a9ee6f6083e9156d92dc6;p=fw%2Fsdcc * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3709 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/ChangeLog b/ChangeLog index 5f18c5f8..d65987b3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-03-28 Erik Petrich + + * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212 + 2005-03-26 Raphael Neider * src/pic16/gen.c (genSkipc): fixed semantics (execute branch diff --git a/src/SDCCBBlock.c b/src/SDCCBBlock.c index 1156434e..b84511a5 100644 --- a/src/SDCCBBlock.c +++ b/src/SDCCBBlock.c @@ -518,13 +518,13 @@ iCodeBreakDown (iCode * ic) iCode *loop = ic; ebbIndex *ebbi; - ebbi = Safe_alloc (sizeof (ebbIndex *)); + ebbi = Safe_alloc (sizeof (ebbIndex)); ebbi->count = 0; ebbi->dfOrder = NULL; /* no depth first order information yet */ /* allocate for the first entry */ - ebbs = Safe_alloc (sizeof (eBBlock **)); + ebbs = Safe_alloc (sizeof (eBBlock *)); ebbi->bbOrder = ebbs; while (loop) @@ -544,7 +544,7 @@ iCodeBreakDown (iCode * ic) /* allocate for the next one. Remember to clear the new */ /* pointer at the end, that was created by realloc. */ - ebbs = Safe_realloc (ebbs, (ebbi->count + 1) * sizeof (eBBlock **)); + ebbs = Safe_realloc (ebbs, (ebbi->count + 1) * sizeof (eBBlock *)); ebbi->bbOrder = ebbs; ebbs[ebbi->count] = 0; @@ -589,7 +589,7 @@ iCodeBreakDown (iCode * ic) /* if we have stopped at the block , allocate for an extra one */ - ebbs = Safe_realloc (ebbs, (ebbi->count + 1) * sizeof (eBBlock **)); + ebbs = Safe_realloc (ebbs, (ebbi->count + 1) * sizeof (eBBlock *)); ebbi->bbOrder = ebbs; ebbs[ebbi->count] = 0;