Hacked const and volatile modifiers a bit.
[fw/sdcc] / ChangeLog
index 643c4fb6906e633fe5b53b3aa9228295f5e5d80f..6f2060ab9e4d11f53ab664e2608379fb02a2500b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,431 @@
+2003-03-13    <johan@balder>
+
+       Hackup const and volatile modifiers in type chains a bit:
+       * src/SDCC.y:1.63
+       * src/SDCCast.c:1.169
+       * src/SDCCglue.c:1.136
+       * src/SDCCicode.c:1.143
+       * src/SDCCsymt.c1.146
+       * src/SDCCsymt.h1.59
+       * src/SDCCval.c:1.63
+
+2003-03-12    <johan@balder>
+
+       * src/SDCCBBlock.h: more LRH debugging junk
+       * src/SDCCcflow.h: more LRH debugging junk
+       * src/SDCCloop.c: more LRH debugging junk
+       * src/SDCC.y (struct_declaration): fixed bug #697590
+       * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
+       * src/ds390/gen.c (aopForRemat): fixed bug #700031
+       * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
+
+2003-03-11 Kevin Vigor <kevin@vigor.nu>
+       * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
+       test function names must now match exactly).
+       * src/SDCCcse.c: added special case in findCheaperOp to allow
+       extending a short integer. Makes less awful code for bug 700121 test case.
+
+2003-03-11  Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
+
+       * as/mcs51/lkmain.c: Added ASlink-Warning to messages 
+       * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
+
+2003-03-11 Kevin Vigor <kevin@vigor.nu>
+
+       * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
+       actually called (operandsNotEqual() was called for all 
+       operandsNotEqualX tests).
+
+2003-03-11 Kevin Vigor <kevin@vigor.nu>
+
+       * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
+       with shorter literals. Fixes bug 700121.
+
+2003-03-11    <johan@balder>
+
+       * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
+
+2003-03-11  Bernhard Held <bernhard@bernhardheld.de>
+
+        * src/SDCCloop.c (mergeRegions): an evil beast is dead
+       * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
+
+2003-03-10  Borut Razem <borut.razem@siol.net>
+
+       * src/SDCCmain.c: pipe preprocessor's output
+       * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
+       * sdcc_vc_in.h: define pclose as _pclose for WIN32
+       * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
+       which closes all pipes in pipeSet set
+       * src/SDCCset.c: free deleted item in function deleteSetItem()
+       * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
+       moved from z80 to src subproject
+       * .version: increased version number to 2.3.4
+
+2003-03-10  Bernhard Held <bernhard@bernhardheld.de>
+
+       * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
+       * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
+       * support/regression/ports/xa51/spec.mk: fix typo
+
+2003-03-09  Bernhard Held <bernhard@bernhardheld.de>
+
+       * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
+
+2003-03-09  Borut Razem <borut.razem@siol.net>
+
+       * src/SDCCmain.c: pipe preprocessor's output
+       * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
+       * sdcc_vc_in.h: define pclose as _pclose for WIN32
+       * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
+       which closes all pipes in pipeSet set
+       * src/SDCCset.c: free deleted item in function deleteSetItem()
+       * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
+       moved from z80 to src subproject
+
+2003-03-09  Borut Razem <borut.razem@siol.net>
+
+       * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
+       * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
+       * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
+       * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
+       * src/SDCCglobl.h: unification of WIN32 native definitions
+
+2003-03-09  Frieder Ferlemann <Frieder.Ferlemann@web.de>
+
+       * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
+
+2003-03-08  Bernhard Held <bernhard@bernhardheld.de>
+
+       * src/configure.in:   check for endianess (even while cross-compiling)
+       * src/configure:      check for endianess (even while cross-compiling)
+       * src/configure_in.h: check for endianess (even while cross-compiling)
+       * src/avr/gen.c:        remove old endianess stuff
+       * src/mcs51/gen.c:      remove old endianess stuff
+       * src/ds390/gen.c:      remove old endianess stuff
+       * src/pic/gen.c:        remove old endianess stuff
+       * src/pic/genarith.c:   remove old endianess stuff
+       * src/pic/glue.c:       fix endianess check
+       * src/pic16/gen.c:      remove old endianess stuff
+       * src/pic16/genarith.c: remove old endianess stuff
+       * src/pic16/glue.c:     fix endianess check
+       * src/xa51/gen.c:       remove old endianess stuff
+       * src/z80/gen.c:        fix endianess check
+       * src/SDCCglue.c:       fix endianess check
+       * src/ds390/peeph.def: fix bug 700036
+
+2003-03-08  Bernhard Held <bernhard@bernhardheld.de>
+
+       * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
+       * src/configure: find appropriate data-types on host for SDCC's int and long
+       * src/configure.in: find appropriate data-types on host for SDCC's int and long
+       * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
+       * src/xa51/gen.c: use %d, not %ld for 4 byte variables
+
+2003-03-07    <johan@balder>
+
+       Just a big NOOP:
+               some minor cleanups before the big shot
+               OP_DEFS and OP_USES now use Kevin's protection
+               new option --nolabelopt
+
+       * src/SDCCBBlock.c:
+       * src/SDCCast.c,:
+       * src/SDCCcflow.c:
+       * src/SDCCcse.c:
+       * src/SDCCicode.c:
+       * src/SDCCicode.h:
+       * src/SDCClabel.c:
+       * src/SDCCloop.c:
+       * src/SDCCmain.c:
+       * src/ds390/ralloc.c:
+       * src/mcs51/ralloc.c:
+       * src/pic/ralloc.c:
+       * src/xa51/ralloc.c:
+       * src/z80/ralloc.c:
+
+2003-03-06  Bernhard Held <bernhard@bernhardheld.de>
+
+       * src/pic/pcode.c (get_op): fix 64 bit warnings
+       * src/pic/pcode.c (pCode2str): fix 64 bit warnings
+       * src/SDCChasht.c (newHashTable): fix 64 bit warnings
+       * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
+       * support/regression/tests/malloc.c: fix 64 bit warnings
+
+2003-03-04  Bernhard Held <bernhard@bernhardheld.de>
+
+       * src/mcs51/gen.c (genMinus): fixed bug 696436
+
+2003-03-02  Borut Razem <borut.razem@siol.net>
+
+       * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
+
+2003-02-26  Bernhard Held <bernhard@bernhardheld.de>
+
+       * configure.in: test for mkstemp
+       * sdccconf_in.h: add HAVE_MKSTEMP
+
+2003-02-24  Bernhard Held <bernhard@bernhardheld.de>
+
+       * device/include/ctype.h: removed warning while using --stack-auto
+       * device/include/malloc.h: removed warning while using --stack-auto
+       * device/include/string.h: removed warning while using --stack-auto
+
+2003-02-23  Borut Razem <borut.razem@siol.net>
+
+       * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
+       because NDEBUG is defined (see man assert)
+       * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
+
+2003-02-23  Frieder Ferlemann <Frieder.Ferlemann@web.de>
+
+       * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
+       * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
+
+2003-02-18  Frieder Ferlemann <Frieder.Ferlemann@web.de>
+
+        * src/SDCCpeeph.c: added peephole conditions testing for same arguments
+        * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
+
+2003-02-18    <johan@balder>
+
+       * as/mcs51/asmain.c (asmbl): module can start with a digit
+       * as/z80/asmain.c (asmbl): module can start with a digit
+
+2003-02-16  Bernhard Held <bernhard@bernhardheld.de>
+
+       * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
+       * src/asm.c: fix pipe() for Mingw32
+
+2003-02-15  Bernhard Held <bernhard@bernhardheld.de>
+
+       * src/SDCCglue.h: make tmpfileNameSet available for preOutName
+       * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
+       make -V work again; --c1mode reads now from stdin
+       * doc/sdccman.lyx: added --c1mode
+       * support/Util/SDCCerr.c: new messages for c1 mode
+       * support/Util/SDCCerr.h: new messages for c1 mode
+       * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
+
+2003-02-15    <johan@balder>
+
+       * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
+
+2003-02-14  Bernhard Held <bernhard@bernhardheld.de>
+
+       * doc/sdccman.lyx: Environment variables, -o and other minor things
+
+2003-02-14    <johan@balder>
+
+       * src/xa51/main.c: before anyone really tries to use it :)
+
+       * Install doc's in share/sdcc/doc
+       * removed some obsolete files
+       * Do a proper make distclean and uninstall
+       M Makefile.common.in
+       R sdccbuild.sh
+       M as/Makefile
+       M device/include/Makefile.in
+       M device/lib/Makefile.in
+       M doc/sdccman.lyx
+       M link/Makefile
+       M sim/ucsim/doc/Makefile.in
+       M src/clean.mk
+       R src/avr/peeph.rul
+       R src/xa51/peeph.rul
+       M support/cpp2/Makefile.in
+       M support/makebin/Makefile
+
+
+2003-02-13  Bernhard Held <bernhard@bernhardheld.de>
+
+       * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
+
+2003-02-10  Borut Razem <borut.razem@siol.net>
+
+       * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
+       support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
+       * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
+       device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
+       support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
+       src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
+       src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
+       src/z80/Makefile.bcc: Borland Makefile cleanup
+       * as/z80/Makefile.bcc: Added Borland Makefile
+       * support/cpp2/borland.h: Removed
+
+2003-02-10  Bernhard Held <bernhard@bernhardheld.de>
+
+       * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js@convergence.de>
+       * src/SDCC.lex: new pragma NOIV
+       * src/SDCCglobl.h: new pragma NOIV
+       * src/SDCCmem.c: new pragma NOIV
+
+2003-02-09  Bernhard Held <bernhard@bernhardheld.de>
+
+       * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
+
+2003-02-09  Bernhard Held <bernhard@bernhardheld.de>
+
+       * src/SDCCmain.c: signal handling is switched off by --debug
+       * doc/Makefile: small fix for install; use clean.mk again
+       * doc/clean.mk: clean *.pdf and *.html too
+
+2003-02-08  Bernhard Held <bernhard@bernhardheld.de>
+
+       * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
+       * device/lib/printfl.c: fix a ds390 bug by making it portable
+       * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
+       * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
+       * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
+       * debugger/mcs51/cmd.c: converted multi-line string literals
+       * sim/ucsim/globals.cc: converted multi-line string literals
+       * src/SDCCmain.c: introduced signal handler to remove temp files
+       * doc/Makefile: small tweaks, implement clean
+       * doc: removed generated files
+
+2003-02-05  Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
+
+       * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
+       patch from Jan Rejlek <jr@apex-lib.cz> to fix Bug 677692: "Extended
+       Address Record is not correctly generated for DS390."
+
+2003-02-02  Borut Razem <borut.razem@siol.net>
+
+       * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
+       * as/mcs51/asm.h: fixed compilation with Borland C
+       * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
+       * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
+       * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
+       * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
+       src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
+       src/z80/Makefile.bcc: delete $(LIB) only if exist
+       * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
+
+2003-02-02  Bernhard Held <bernhard@bernhardheld.de>
+
+       * device/include/malloc.h: introduced NULL
+       * device/include/string.h: introduced NULL
+       * device/include/stdlib.h: introduced NULL
+       * device/lib/_memcpy.c: removed NULL
+       * device/lib/_strcat.c: removed NULL
+       * device/lib/_strchr.c: removed NULL
+       * device/lib/_strcmp.c: removed NULL
+       * device/lib/_strcpy.c: removed NULL
+       * device/lib/_strcspn.c: removed NULL
+       * device/lib/_strlen.c: removed NULL
+       * device/lib/_strncat.c: removed NULL
+       * device/lib/_strncmp.c: removed NULL
+       * device/lib/_strncpy.c: removed NULL
+       * device/lib/_strpbrk.c: removed NULL
+       * device/lib/_strrchr.c: removed NULL
+       * device/lib/_strspn.c: removed NULL
+       * device/lib/_strstr.c: removed NULL
+       * device/lib/_strtok.c: removed NULL
+       * device/lib/malloc.c: removed NULL, include own header
+
+2003-02-02    <johan@balder>
+
+       * src/mcs51/ralloc.c (packForPush): fixed bug #631653, maybe other ports need this too? At least now some new alerts in SDCCBBlock.c and SDCCicode.c gives an early warning
+       * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
+       * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
+       * src/z80/gen.c (genZ80Code): added c-lines in asm comments
+       * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
+       * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
+
+2003-02-01  Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
+
+       * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
+       area 'DATA'"
+
+2003-02-01    <johan@balder>
+
+       * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
+
+2003-01-31    <johan@CP255758-A>
+
+       * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
+
+2003-01-30    <johan@balder>
+
+       * src/SDCCBBlock.c: automatic bug detection
+       * src/SDCCicode.c: automatic bug detection
+
+2003-01-29  Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
+
+       * src/SDCCglobl.h:   now --xram-size 0 works
+       * src/SDCCmain.c:    now --xram-size 0 works
+
+2003-01-29    <johan@balder>
+
+       * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
+
+2003-01-29  Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
+
+       * as/mcs51/aslink.h: Added options --xram-size and --code-size 
+       * as/mcs51/lkdata.c: Added options --xram-size and --code-size 
+       * as/mcs51/lkmain.c: Added options --xram-size and --code-size 
+       * as/mcs51/lkmem.c:  Added options --xram-size and --code-size 
+       * src/SDCCglobl.h:   Added options --xram-size and --code-size 
+       * src/SDCCmain.c:    Added options --xram-size and --code-size 
+
+2003-01-28  Bernhard Held <bernhard@bernhardheld.de>
+
+       * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
+       * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
+
+2003-01-27    <johan@balder>
+
+       * src/SDCC.y: fixed bug #613764
+
+2003-01-26    <johan@balder>
+
+       * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
+       * src/SDCCsymt.h: fixed bug #673374
+       * src/SDCCglue.c: fixed bug #661910
+       * src/SDCCast.c: fixed bug #458099 and 673374
+
+2003-01-26  Bernhard Held <bernhard@bernhardheld.de>
+
+       * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
+       * as/mcs51/strcmpi.h: added
+       * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
+       * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
+       * as/mcs51/asmain.c: strcmpi -> as_strcmpi
+       * as/mcs51/assym.c: strcmpi -> as_strcmpi
+       * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
+       * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
+       * as/mcs51/lksym.c: strcmpi -> as_strcmpi
+       * as/mcs51/Makefile.aslink: new module strcmpi
+       * as/mcs51/Makefile.asx8051: new module strcmpi
+       * as/mcs51/Makefil.bcc: new module strcmpi
+       * as/mcs51/Makefile.in: new module strcmpi
+       * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
+
+2003-01-26    <johan@balder>
+
+       * src/SDCCglue.c: reverted back to 1.124
+       * src/SDCCast.c: reverted back to 1.156
+       * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
+
+2003-01-25    <johan@balder>
+
+       * src/SDCCglue.c: A better fix for bug #661910
+       * src/SDCCast.c: A better fix for bug #661910
+       * src/SDCCglue.c (emitRegularMap): That was a little too efficient
+
+2003-01-24  Bernhard Held <bernhard@bernhardheld.de>
+
+       * src/Makefile.in: remove spawn.o
+       * src/SDCCmain.c: remove spawn.h
+       * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
+       * src/spawn.c: removed
+       * src/spawn.h: removed
+       * support/regression/ports/ds390/spec.mk: link with -r
+
 2003-01-24    <johan@CP255758-A>
 
+       * src/ds390/gen.c (aopOp): fixed bug #667458
        * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
        * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
        (createIvalCharPtr): an ival doesn't always have a storage class anymore