* src/SDCCpeeph.c (peepHole): Fixed all leaks. Added trace support for freeing...
authormichaelh <michaelh@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 6 Oct 2001 23:44:03 +0000 (23:44 +0000)
committermichaelh <michaelh@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 6 Oct 2001 23:44:03 +0000 (23:44 +0000)
commit5df1b9a579235d42fcec8a8884808334ed99a246
treef4518fdbb71cd7a703031e2d8bfecfcbe185f8cf
parent11e3839c21831fa11d5508b05a57320e02f12330
* src/SDCCpeeph.c (peepHole): Fixed all leaks.  Added trace support for freeing lines.  Optimised restart logic to re-run instead of restart.  Now compiles dscan.c on ~60MB instead of ~200MB.

* support/Util/NewAlloc.c: Added ability to use libgc instead of malloc.  Added Safe_free and Safe_strdup.  Added trace support where you can log allocations and free all at once.

* src/z80/gen.c (genZ80Code): Added de-allocation via trace support.

* src/pic/gen.c: Removed Safe_strdup.

* configure.in: Added option to enable libgc support.

* src/SDCCbitv.c (bitVectnBitsOn): Optimised.
(bitVectUnion): Optimised.
(bitVectIntersect): Optimised.
(bitVectBitsInCommon): Optimised.
(bitVectCplAnd): Optimised.

* support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1362 4a8a32a2-be11-0410-ad9d-d568d2c75423
35 files changed:
ChangeLog
Makefile.common.in
as/z80/Makefile
configure
configure.in
debugger/mcs51/Makefile.in
link/z80/Makefile
sdccconf_in.h
sim/ucsim/configure.in
sim/ucsim/s51.src/Makefile.in
src/SDCC.lex
src/SDCC.y
src/SDCCBBlock.c
src/SDCCast.c
src/SDCCbitv.c
src/SDCCcse.c
src/SDCChasht.c
src/SDCCicode.c
src/SDCCloop.c
src/SDCCmain.c
src/SDCCmem.c
src/SDCCpeeph.c
src/SDCCset.c
src/SDCCsymt.c
src/SDCCutil.c
src/SDCCval.c
src/common.h
src/pic/gen.c
src/pic/pcode.c
src/pic/pcodepeep.c
src/z80/gen.c
support/Util/MySystem.c
support/Util/NewAlloc.c
support/Util/newalloc.h
support/cpp/Makefile.in