X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=ChangeLog;h=9626325b901787d410c66a7dd6a38cbb95d60cce;hb=c0a17955b1c4fe4010e44bce96f26434a4ad9e73;hp=8bfb2cb70bf9814aa205fdc9e79f2e3da218db9c;hpb=6f514542f20f7fdf8bfaaec10ce22d09f2e16344;p=fw%2Fsdcc diff --git a/ChangeLog b/ChangeLog index 8bfb2cb7..90a05598 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,2016 @@ -2003-02-26 Bernhard Held +2003-11-08 Frieder Ferlemann + + * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing + * doc/sdccman.lyx: changed from 'article' to 'book' + * doc/Makefile: readded test_suite_spec and cdbfileformat + +2003-11-08 Bernhard Held + + * device/include/stdlib.h: include malloc.h to comply with ANSI + * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h + +2003-11-07 Frieder Ferlemann + + * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg) + * doc/clean.mk: also remove *.out files + * doc/sdccman.lyx: some additions, larger top/bottom margins + +2003-11-07 Erik Petrich + + * src/SDCC.y: fixed bug #837365 + * support/regression/tests/bitopcse.c + * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is + a symbol (might be valop instead) + * device/lib/Makefile.in: added errno.c to HC08SOURCES + * device/lib/clean.mk: added hc08 to the cleaning list + +2003-11-04 Borut Razem + + * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes, + made 2003-11-04 + * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c, + as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h; + malloc is declared in standard stdlib.h + +2003-11-06 Erik Petrich + + * device/lib/hc08/Makefile: need to clean .rel not .o files + * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode + +2003-11-06 Erik Petrich + + * src/port.h, + * src/hc08/main.c, + * src/mcs51/main.c, + * src/ds390/main.c, + * src/z80/main.c, + * src/avr/main.c, + * src/pic/main.c, + * src/pic16/main.c, + * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports + * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive + tests (which uses the port's oclsExpense function) + * src/SDCC.y, + * src/SDCCast.c, + * src/SDCCicode.c, + * src/hc08/gen.c, + * src/ds390/gen.c, + * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167) + +2003-11-04 Erik Petrich + + * src/SDCCcse.c (ifxOptimize), + * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to + an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead + deleting the IFX iCode. + * src/hc08/ralloc.c: reduced unneeded slocs + * src/hc08/gen.c: fixed bug in asmopToBoolean + +2003-11-04 Borut Razem + + * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h, + support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c, + as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h + transferred to configure + +2003-11-03 Bernhard Held + + Use headers defined in the C[++] standards: + * sim/ucsim/gui.src/serio.src/fileio.cc + * sim/ucsim/gui.src/serio.src/frontend.cc + * sim/ucsim/gui.src/serio.src/main.cc + * sim/ucsim/gui.src/serio.src/posix_signal.cc + * support/Util/NewAlloc.c + * as/hc08/lklibr.c + * as/mcs51/lklibr.c + * as/z80/aslist.c + * as/z80/assym.c + +2003-11-03 Jesus Calvino-Fraga + + * Added MSVC projects for hc08 assembler and linker: + all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp, + /as/hc08/link_hc08.dsp + +2003-11-03 Martin Helmling + + * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug) + +2003-11-02 Bernhard Held + + * src/SDCCmain.c (linkEdit): "fixed" again bug #833605 + +2003-11-01 Frieder Ferlemann + + * src/mcs51/main.c: xdata initialization is 13 bytes shorter now + +2003-10-31 Borut Razem + + * support/cpp2/cpplib.h, + support/cpp2/cpplib.c, + support/cpp2/cpplex.c, + support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ] + to switch _asm block preprocessing on / off. Default is + #pragma preproc_asm + + +2003-10-31 Borut Razem + + * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences + when outputting comment blocks (when executed with -C option) and + _asm (SDCPP specific) blocks + +2003-10-31 Erik Petrich + + * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning + +2003-10-31 Klaus Flittner + + * src/SDCCcse.c (updateSpillLocation): fixed bug #808027 + +2003-10-31 Bernhard Held + + * src/SDCCmain.c (linkEdit): "fixed" bug #833605 + * src/SDCCast.c (decorateType): fixed bug #832664 + +2003-10-31 Borut Razem + + * support\cpp2\cpplex.c: fixed for SDCPP: + comments(when executed with -C option) and _asm blocks + were included even if they where in skipped #if block. + Applied solution from GCC cpp 3.3.2 + +2003-10-31 Borut Razem + + * src/SDCC.lex: sdcc now understands both formats: + '# ' and + '#line ' + * support/cpp2/cppmain.c: sdcpp now generates the standard + '# ' instead of former + '#line ' + +2003-10-30 Borut Razem + + * support/cpp2/cpphash.h, + * support/cpp2/cpplib.h + * support/cpp2/cpplex.c, + * support/cpp2/cppmain.c, + * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants + +2003-10-30 Erik Petrich + + Fixed a number of problems revealed by bug #827883. + * src/SDCCloop.c (loopInvariants): Spill location of the + result operand should be recomputed if extracted from + a loop. Also, don't extract assignments of an iTemp + from a literal. + * src/SDCCast.c (isConformingBody): loop reversal should + not occur if the control variable is involved with a + relational operator. + +2003-10-28 Bernhard Held + + * .version: bumped to 2.3.6 to reflect the big improvements + made by Erik and Klaus. Thanks! + +2003-10-28 Klaus Flittner + + Replaced the livrange code. + * src/SDCClrange.c: added new LR code + * src/SDCCloop.c, + * src/SDCCBBlock.h: removed remainig parts from old LR code + * src/ds390/ralloc.c, + * src/ds390/gen.c: minor fixes to make it work with new code + +2003-10-28 Erik Petrich + + * as/hc08/asm.h, + * as/hc08/lkrloc.c, + * src/hc08/gen.c, + * src/hc08/ralloc.c: Fix various warnings related to the hc08 + * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717 + (tweaked fix for bug #818696) + +2003-10-23 Erik Petrich + + * src/z80/ralloc.c (joinPushes): Fixed bug #828742 + +2003-10-23 Erik Petrich + + * src/SDCCmain.c, + * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work) + * src/mcs51/gen.c (gencjneshort), + * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand + more efficient (per Scott Bronson's suggestion) + +2003-10-22 Erik Petrich + + Extended the semantics of the critical keyword to include + individual statements. See RFE #827755 and #799831 + * src/SDCC.y + * src/SDCCicode.c + * src/SDCCopt.c + * src/SDCCast.c + * support/Util/SDCCerr.c + * support/Util/SDCCerr.h + * src/mcs51/gen.c + * src/ds390/gen.c + * src/hc08/gen.c + +2003-10-19 Borut Razem + + * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31 + +2003-10-19 Erik Petrich + + * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode): + Fixed bug #818696 + * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement + and predecrement operand is displayed + +2003-10-13 Bernhard Held + + * src/SDCCval.c (valMinus): fixed bug #826041 + +2003-10-15 Erik Petrich + + Some hc08 related updates that I missed earlier + * sim/ucsim/stypes.h + * support/regression/ports/hc08/spec.mk + +2003-10-15 Erik Petrich + + New target "hc08" for the Motorola 68hc08 family of micros + + * configure + * configure.in + * Makefile + * src/hc08/* + * src/SDCCmain.c + * src/port.h + * sim/ucsim/hc08.src/* + * sim/ucsim/configure.in + * src/ucsim/configure + * sim/ucsim/packages_in.mk + * as/hc08/* + * as/Makefile + * device/include/mc68hc908qy.h + * device/lib/hc08/* + * device/lib/Makefile.in + * support/regression/ports/hc08/* + * support/regression/Makefile + +2003-10-14 Erik Petrich + + * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c + regression test + * src/ds390/gen.c (genCast): fixed bug #821957 + +2003-10-13 Bernhard Held + + * device/lib/logf.c: "fixed" overlay bug + * support/regression/ports/host/spec.mk: added m library + * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs + * support/regression/tests/float_trans: added (for Eric) + +2003-10-12 Bernhard Held + + * src/mcs51/gen.c (genCpl): fixed bug + http://sf.net/mailarchive/message.php?msg_id=6263915 + +2003-10-10 Bernhard Held + + * src/SDCCast.c (decorateType): added extended constant folding + * src/SDCCsymt.c (computeType): cleanup + * src/SDCCval.c (valShift): minor optimization + * support/regression/tests/ast_constant_folding.c: added + +2003-10-09 Erik Petrich + + * src/SDCCmain.c: removed some unintended changes + +2003-10-09 Erik Petrich + + * src/SDCCmain.c (setParseWithComma): fixed bug #816685 + * src/z80/gen.c: fixed part of bug #817589 + * src/SDCCsymt.c (checkFunction): fixed bug #817895 + +2003-10-08 Bernhard Held + + Replaced cast (void **) with (void *) to avoid gcc 3 warning: + * src/SDCCcflow.c + * src/SDCCcse.c + * src/SDCCdflow.c + * src/SDCClabel.c + * src/SDCClrange.c + * src/SDCCmem.c + * src/SDCCopt.c + * src/SDCCpeeph.c + * src/SDCCset.c + * src/avr/ralloc.c + * src/ds390/ralloc.c + * src/izt/ralloc.c + * src/mcs51/ralloc.c + * src/pic/ralloc.c + * src/pic16/ralloc.c + * src/xa51/ralloc.c + * src/z80/ralloc.c + * src/z80/gen.c: removed unused label "release:" + +2003-10-06 Borut Razem + + * src/SDCC.lex: removed definition of unused variables + save_optimize and save_options + +2003-10-06 Bernhard Held + + * clean.mk: removed '=' in "-maxdepth=1" + * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS + * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS + +2003-10-06 Borut Razem + + * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions; + my_unput() replaced by unput() + +2003-10-05 Bernhard Held + + * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of + setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing + type-punned pointer will break strict-aliasing rules" + Old LR behaviour is again default; Klaus' LR can be choosen by + defining the environment variable LRKLAUS + * src/SDCCBBlock.h + * src/SDCCloop.c + * src/SDCClrange.c + * src/ds390/ralloc.c (spillThis): applied Klaus' patch + * clean.mk: fixed removal of files in bin/CVS/ + * device/lib/clean.mk: fixed removal of directories small and large + * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC + * src/SDCCicode.c, + * src/SDCCval.c: removed superflous test for pedantic + +2003-10-05 Borut Razem + + * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h: + Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning + message "unmatched #pragma SAVE and #pragma RESTORE" + +2003-10-04 Frieder Ferlemann + + * doc/sdccman.lyx: various additions and updates (interrupts, inline + assembly, critical functions, atomic, nojtbound) + +2003-10-04 Bernhard Held + + Applied liferange patch from Klaus Flittner + * src/SDCCBBlock.h + * src/SDCCloop.c + * src/SDCCloop.h + * src/SDCClrange.c + +2003-10-03 Erik Petrich + + * src/z80/gen.h, + * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead), + * src/mcs51/gen.h + * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead), + * src/ds390/gen.h + * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead), + * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539 + * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705 + +2003-10-02 Erik Petrich + + * src/z80/gen.c (genRet): fixed bug #524753 + * src/z80/gen.c (genCast): fixed internal error on cast from + pointer to long + * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's + fix for bug #477835 to the z80 + * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support + for tracking iCodes in the peephole optimizer for z80 + +2003-10-01 Erik Petrich + + * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed + the other part of bug #814548 + * src/SDCCpeeph.c (labelInRange): fixed bug #814558 + +2003-09-30 Bernhard Held + + * src/SDCCcse.c: fixed part of bug #814548 + +2003-09-28 Borut Razem + + * src/asm.c: rewrite of printILine() to use temporary file instead + a pipe + * src/xa51/main.c: commented out declaration of int rewinds + +2003-09-27 Erik Petrich + + * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206 + +2003-09-26 Erik Petrich + + * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746 + * src/asm.c (printILine): Fixed bug #811015 + +2003-09-22 Jesus Calvino-Fraga + + *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and + freeing. + +2003-09-21 Erik Petrich + + * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955 + * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair + to correctly handle general case of AOP_PAIRPTR + * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling + +2003-09-21 Erik Petrich + + * src/mcs51/ralloc.c (fillGaps), + * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another + register positioning bug) + +2003-09-21 Bernhard Held + + * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31) + +2003-09-19 Erik Petrich + + * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet, + genCodePointerGet, genGenPointerGet, genFarPointerSet, + genGenPointerSet): handle AOP_DPTR correctly when loading dptr + (ralloc doesn't intentionally do this now, but perhaps later) + * src/mcs51/ralloc.c (serialRegAssign, fillGaps), + * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some + register positioning bugs (Fixed bug #762602 and #795325) + * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly + (Fixed bug #808779) + * src/z80/gen.c: increased _vemit2's buffer[] to handle long + lines that --i-code-in-asm generates + +2003-09-18 Jesus Calvino-Fraga + + *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when + trying to fclose a FILE* that was already closed. + +2003-09-18 Erik Petrich + + * src/SDCCsymt.c (structElemType): fixed bug #808291 (members + of const struct should be treated as if const themselves) + +2003-09-18 Bernhard Held + + * src/SDCCval.c (valPlus, valMinus): fixed bug #808337 + +2003-07-06 Jesus Calvino-Fraga + + * support/librarian/sdcclib.c: Generate correct offsets for libraries with + Unix (/n) and DOS (/r/n) line terminations. + +2003-09-17 Erik Petrich + + * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed + bug #613775 + +2003-09-16 Erik Petrich + + * src/mcs51/gen.c (genFunction, genEndFunction), + * src/ds390/gen.c (genFunction, genEndFunction): Moved save + and restore of EA so that stack offsets to parameters are + correct when using both critical and reentrant/stack-auto. + * src/z80/gen.c (aopOp): removed erroneous assertion about sloc + size (can be triggered in error if sloc is shared between + different sized objects) + * device/include/float.h: fixed macros to explicitly use + unsigned long where needed + +2003-09-15 Bernhard Held + + Feature req. 799831: added code to allow nesting of critical functions + * src/mcs51/gen.c (genFunction, genEndFunction) + * src/ds390/gen.c (genFunction, genEndFunction) + +2003-09-14 Erik Petrich + + * src/SDCCsymt.c (sclsFromPtr), + * src/SDCCsymt.h, + * src/SDCCast.c (decorateType): fixed bug #462971. Also, better + support for standard C idiom of memory mapped variables; for + example, *((xdata int*)0x1234) = 1 is now internally equivalent + to xdata int at 0x1234 tempvar = 1. + * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch + provided by Akiya ISHIDA + +2003-09-13 Bernhard Held + + * src/SDCCval.c (cheapestVal): reenabled to reduce int to char + * src/SDCCval.c (constVal): added reduction from int to char + * src/SDCCval.c (valMult, valDiv): fixed sign handling + * src/SDCCval.c (valShift): fixed after change of cheapestVal() + * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have + to ignore the sign + * support/regression/tests/shifts.c: fixed + +2003-09-13 Erik Petrich + + * src/z80/gen.c (genXor): Fixed bug #805445 + +2003-09-12 Erik Petrich + + Fixed bug #621531 (const & volatile confusion in the type chain). + DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively + refer to the const or volatile state of the pointer itself. + + * src/SDCCast.c + * src/SDCCglue.c + * src/SDCCicode.c + * src/SDCCsymt.c + * src/SDCCval.c + * src/SDCC.y + * src/SDCCsymt.h + * src/pic/gen.c + * src/pic/ralloc.c + * src/pic16/gen.c + * src/pic16/ralloc.c + * support/regression/tests/const.c + +2003-09-10 Jesus Calvino-Fraga + + When checking for duplicated modules, use absolute paths + instead of relative paths. Files changed: + + * as/mcs51/lklib.c + * link/z80/lklib.c + +2003-09-09 Erik Petrich + + * src/SDCCicode.c (geniCodeLogic): fixed bug #797572 + +2003-09-07 Erik Petrich + + * device/include/string.h: added size_t typedef, changed + prototypes to use size_t, eliminated separate reentrant and + non-reentrant declarations, added _memmove declaration + * device/lib/_memcpy.c: changed to use size_t instead of int, + changed /4 to >>2 to avoid division library call + * device/lib/_memcmp.c, + * device/lib/_memset.c, + * device/lib/_strncat.c, + * device/lib/_strncpy.c, + * device/lib/_strncmp.c: changed to use size_t instead of int + * device/lib/_memmove.c: new file (fixed bug #772294) + * device/lib/Makefile.in: added _memmove.c + * device/lib/z80/asm_strings.s: fixed bug #772290 + * support/regression/tests/bitfields.c: attempt to fix host assertion + failure on amd64-unknown-linux2.2 + +2003-09-06 Erik Petrich + + * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998 + * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700 + * as/z80/asmain.c (main): fixed bug #801766 + +2003-09-06 Bernhard Held + + * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different + compilers + +2003-09-05 Erik Petrich + + * src/SDCCast.c (isConformingBody): fixed loop reversal bug + reported in bug #800609 + +2003-09-04 Vangelis Rokas + + * Top header beautifications in src/pic16 directory: + device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c, + pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c, + pcoderegs.h, ralloc.c, ralloc.h + * main.c: added top header and GPL license notice + * pcode.c: fixed the if-conditional warning + +2003-09-04 Bernhard Held + + * device/lib/_mullong.c: replaced int by short for gcc + +2003-08-31 Erik Petrich + + * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX + and JUMPTABLE iCodes properly now (worked by accident before) + * src/mcs51/gen.c (leftRightUseAcc), + * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE + iCode properly now. Use getSize instead of nRegs since a & b + aren't part of the nRegs tally. + +2003-08-31 Vangelis Rokas + + * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT() + * src/pic16/pcode.c: fix to disable inserting BANKSEL directive + before instructions that use the _STATUS register + +2003-08-31 Bernhard Held + + * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK) + * src/mcs51/gen.c (genNearPointerSet): added missing opcode for + fetching of the pointer + * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG, + copied from genNearPointerSet() + * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK + * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls. + If they pop r0/r1 they must be called in the opposite order than aopOp(). + * device/lib/_mullong.c: fixed for "--model-large --int-long-reent" + (resp. --stack-auto), prepared for --xstack + +2003-08-28 Frieder Ferlemann + + * doc/sdccman.lyx: reverted tables to those in cvs 1.64 + +2003-08-28 Bernhard Held + + * device/lib/_startup.c: quick & dirty fix for ds390/ds400; + these ports have their own __sdcc_external_start() + +2003-08-26 Bernhard Held + + pic patch provided by Slade Rich + * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol + type for bits was changed. It resulted in bit variables becoming + global, which is not permitted in PIC 14 assembly output. + +2003-08-23 Frieder Ferlemann + + * doc/sdccman.lyx: various additions and updates. Rearranged sections + +2003-08-22 Jesus Calvino-Fraga + + Z80 and MCS51 linkers complaint if a public symbol is defined + in more than one library module: + + * as/mcs51/lklib.c + * link/z80/lklib.c + * as/mcs51/Makefile.in + +2003-08-22 Erik Petrich + + A few small changes that speed up the peephole optimizer. + + * src/SDCCpeeph.c + +2003-08-22 Erik Petrich + + Try to make the peephole optimizer smarter by maintaining + an association between the assembly source code and the + iCodes that originated them. Put this information to use + with a new peephole rule condition "notVolatile" so that + the rules can be aggressive yet still safe. + + * src/SDCCpeeph.c + * src/SDCCpeeph.h + * src/mcs51/gen.c + * src/mcs51/peeph.def + +2003-08-20 Erik Petrich + + Fixed bug #741761 + + * src/mcs51/gen.c (aopForSym, leftRightUseAcc), + * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B + if the left or right operand symbols have the accuse flag set. + +2003-08-20 Erik Petrich + + Changed the type of the result of the ! (NOT) operator to char; + previously it returned the same type as the source. This allows + us to eliminate all the genFloatNot functions (all of its target + implementations were very buggy) since !float can use the same + code as !long now. + + * src/SDCCicode.c (ast2iCode): ! returns char + * src/mcs51/gen.c (genNot, genNotFloat), + * src/ds390/gen.c (genNot, genNotFloat), + * src/z80/gen.c (genNot, genNotFloat), + * src/pic/gen.c (genNot, genNotFloat), + * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat + +2003-08-19 Bernhard Held + + pic patch provided by Slade Rich + 1. Interrupt would not compile properly. Ensure PCLATH register is saved + during interrupts. Ensure WSAVE is located at a shared bank address. + 2. Fixed page selection in some places + 3. Fixed BTFSS/C to where necessary use registers directly and not simply + the registers name strings. + 4. Fixed "signed / unsigned compare" compiler warnings. + 5. The PIC port manages its own allocation of the general purpose + registers, but makes no attempt to reuse them. As a result when + compiling it soon runs out of general purpose registers. Some + additional code was added to the files pcode.c and device.c to walk + through the function call tree and rename the registers so that they + get reused. + + * src/pic/device.c + * src/pic/gen.c + * src/pic/glue.c + * src/pic/pcode.c + * src/pic/pcode.h + * src/pic/ralloc.c + * src/pic/ralloc.h + * src/pic/genarith.c: Fixed problems with PIC 14 port in functions + genPlus() & genMinus() when the result is the same as left or right + +2003-08-18 Erik Petrich + + * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454 + +2003-08-18 Erik Petrich + + Made bitfield a distinct type from bit so that bitfields + convert as per ANSI C and bits retain their traditional + boolean style behaviour. Implemented bitfield support in + the z80 port. + + * src/SDCCsymt.h, + * src/SDCCsymt.c, + * src/SDCCast.c, + * src/cdbFile.c, + * src/mcs51/gen.c, + * src/ds390/gen.c: bit v bitfield split + * src/z80/gen.c: New support for bitfields + * support/regression/tests/bitfields.c: reenabled z80, + added more tests + +2003-08-17 Frieder Ferlemann + + Rules 246.x, 247.x relate to bitfields, the others speed up + access to xdata mapped I/O devices. + + * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x + +2003-08-16 Erik Petrich + + Cleaned up genPackBits and genUnpackBits and added two helper + functions, emitPtrByteGet & emitPtrByteSet. Added optimizations + for literal assignments in genPackBits (thanks to Frieder for + reminding me). + + * src/mcs51/gen.c + * src/ds390/gen.c + +2003-08-16 Erik Petrich + + Fixed bug #748310 (pointer to function type mishandled when the + function name is omitted). Also fixed a SIGSEGV when a function + attribute (reentrant, etc) is used on a non-function or on a + function but misplaced before the parameter list. + + * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed + bug #748310 + * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV + * support/Util/SDCCerr.h, + * support/Util/SDCCerr.c: Added func attr misuse error msg + +2003-08-13 Bernhard Held + + Fixed bug #787649 by anonymous + * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr + * src/ds390/gen.c (aopForSym): fixed func ptr in sloc + +2003-08-14 Erik Petrich + + Fixed numerous bitfield problems. + + * src/SDCC.y: More bitfield related error checking + * src/SDCCsymt.h, + * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc + * support/Util/SDCCerr.h, + * support/Util/SDCCerr.c: Added & edited some bitfield err msgs + * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs + * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs + * support/regression/tests/bitfields.c: tests added + +2003-08-13 Erik Petrich + + Made the constant following the "interrupt" keyword optional. If + omitted, the function will not automatically be given an entry + in the interrupt vector table (similar to #pragma NOIV, but + less syntacticly kludgy). The interrupt number is also now + range checked. Also fixed a bug in the high order bit example + in the manual. + + * src/SDCC.y + * src/SDCCmem.c + * src/SDCCglue.c + * src/SDCCsymt.h + * support/Util/SDCCerr.c + * support/Util/SDCCerr.h + * doc/sdccman.lyx + +2003-08-13 Bernhard Held + + * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type + * src/SDCCicode.c (operandOperation): rewritten some ops + (*, ==, unary_minus) to fix possible overflows and to accord with ANSI + * src/SDCCsymt.c (computeType): literals are handled the same way as any + other type + * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can + be re-activated by defining REDUCE_LITERALS) + * src/SDCCval.c (constVal): fixed; hex and octal constants can be + unsigned, but are signed by default + * src/SDCCval.c (constVal): rearranged + * src/SDCCval.c (valMod): preliminary fix + * src/SDCCval.c (valCastLiteral): use TYPE_* types + * support/regression/literalop.c: added, work in progress + +2003-08-12 Erik Petrich + + Generate warnings for useless declarations like "char data;" + that don't do what new users expect. + + * src/SDCC.y + * support/Util/SDCCerr.h + * support/Util/SDCCerr.c + +2003-08-09 Bernhard Held + + * src/SDCCval.c (valMult): fix overflow detection of negative int + +2003-08-07 Erik Petrich + + * src/z80/ralloc.c (joinPushes): made compatible with new signedness + + Changes to support big endian targets: + + * src/ports.h + * src/SDCCglue.c + * src/avr/main.c + * src/ds390/main.c + * src/izt/i186.c + * src/mcs51/main.c + * src/pic/main.c + * src/pic16/main.c + * src/xa51/main.c + * src/z80/main.c + +2003-08-06 Bernhard Held + + * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal() + * device/lib/time.c: fixed warning "integer overflow in expression" + +2003-08-05 Bernhard Held + + * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types + * src/SDCCval.c (constVal): changed default to signed; hex and octal + constants are unsigned; added recognition of "u" flag for unsigned + * src/SDCCval.c (valMult): fixed signdness, added warning for overflow + * src/SDCCval.c (valDiv, valMod): fixed signdness + * src/SDCCicode.c (operandOperation): fixed critical typo; fixed + signedness of modulo, left and right shift + * support/Util/SDCCerr.c: added warning "integer overflow in expression" + * support/Util/SDCCerr.h: added warning W_INT_OVL + * src/SDCCast.c (decorateType): fixed gcc3.3 warning + * src/SDCCast.c (ast_print): improved output of constants + +2003-08-04 Jesus Calvino-Fraga + + Fixed some warnings when building with MSVC: + + * as\mcs51\asdata.c + * as\z80\asdata.c + * as\mcs51\asm.h + * as\z80\asm.h + * link\z80\aslink.h + * link\z80\lkdata.c + * link\z80\lkeval.c + * link\z80\lkgb.c + * link\z80\lkihx.c + * link\z80\lks19.c + * link\z80\lksym.c + * support\cpp2\cpplib.c + * src\ds390\gen.c + * src\mcs51\gen.c + +2003-08-03 Bernhard Held + + * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth + +2003-08-01 Jesus Calvino-Fraga + + * support\librarian\clean.mk: Do not remove Makefile. + * support\librarian\Makefile: added. + +2003-08-01 Jesus Calvino-Fraga + + Added librarian to MSVC build: + * all.dsp + * sdcc.dsw + * support\librarian\librarian.dsp + + 'configure' not needed for librarian, removed: + * support\librarian\configure + * support\librarian\configure.in + * support\librarian\config_in.h + * support\librarian\Makefile.in + + Hopefully these ones built the librarian and the rest of sdcc properly: + * Makefile + * Makefile.common.in + + Messed up 'configure', so revert to previous version: + * configure + * configure.in + +2003-07-31 Bernhard Held + + * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits + there, while the mantissa of a double is "only" 53 bits wide. + +2003-07-31 Jesus Calvino-Fraga + + Adding sdcclib to the build. MSVC project coming soon. + Files added/changed: + + * support\librarian\clean.mk + * support\librarian\configure + * support\librarian\configure.in + * support\librarian\config_in.h + * support\librarian\Makefile.bcc + * support\librarian\Makefile.in + * support\librarian\sdcclib.c + * Makefile.bcc + * Makefile + * Makefile.common.in + * configure + * configure.in + +2003-07-29 Jesus Calvino-Fraga + + Linker now complaints if linked modules have conflicting options, for + example, one compiled using --model-large and another one compiled with + --model-small. The following files were modified: + + * as\mcs51\asdata.c + * as\mcs51\aslink.h + * as\mcs51\asm.h + * as\mcs51\asmain.c + * as\mcs51\asout.c + * as\mcs51\i51pst.c + * as\mcs51\lkdata.c + * as\mcs51\lklibr.c + * as\mcs51\lkmain.c + * as\z80\asdata.c + * as\z80\asm.h + * as\z80\asmain.c + * as\z80\asout.c + * as\z80\z80pst.c + * link\z80\aslink.h + * link\z80\lkdata.c + * link\z80\lklibr.c + * link\z80\lkmain.c + * src\SDCCglue.c + +2003-07-28 Jesus Calvino-Fraga + + *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h, + as/mcs51/lklibr.c: Generate a warning when a library is not found. + +2003-07-28 Bernhard Held + + * src/z80/mappings.i: fix _mul[us][int,long] entries + +2003-07-26 Jesus Calvino-Fraga + + *src/SDCCmain.c: do not search for crt0.o when using --nostdlib + +2003-07-24 Bernhard Held + + * src/SDCCicode.c (operandOperation): really fixed problem with bitops + * support/regression/tests/bitopcse.c: added + fixed warning: + * src/avr/gen.c: + * src/pic/gen.c: + * src/pic16/gen.c: + * src/z80/gen.c: + * src/xa51/gen.c: + +2003-07-24 Jesus Calvino-Fraga + + added support for new library format to z80, gbz80 linkers: + *link/z80/aslink.h + *link/z80/lklex.c + *link/z80/lklib.c + *link/z80/lklist.c + +2003-07-24 Bernhard Held + + * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff; + after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN) + +2003-07-23 Bernhard Held + + added DUMMY_READ_VOLATILE: + * src/SDCC.y: + * src/avr/gen.c: + * src/xa51/gen.c: + * src/z80/gen.c: + * src/pic/gen.c: + * src/pic16/gen.c: + * src/mcs51/gen.c: + * src/ds390/gen.c: + * src/SDCCcse.c (algebraicOpts): many improvements + * src/SDCCcse.h: removed algebraicOpts() + * src/SDCCicode.c (picDummyRead): added + +2003-07-23 Jesus Calvino-Fraga + + * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to + "Insufficient space in data memory". + +2003-07-20 Erik Petrich + + * src/mcs51/gen.c: fixed bug #771358 + * src/z80/gen.c: fixed bug #759087 + +2003-07-20 Bernhard Held + + * src/pic16/glue.c: minor cleanup by Vangelis + +2003-07-19 Frieder Ferlemann + + * device/include/regc515c.h: fixed #758477 + * device/lib/_gptrget.c: saving some cycles in generic pointer get + * device/lib/_gptrput.c: saved a few bytes + * my tab spacing is 8, yours too?) + * device/lib/_ser.c: process RX bytes earlier than TX bytes + * device/lib/serial.c: process RX bytes earlier than TX bytes + * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement + +2003-07-18 Erik Petrich + + * src/z80/gen.c: fixed some right shift bugs (#772726 among them) + +2003-07-17 Jesus Calvino-Fraga + + * link/z80/lklibr.c: fixed bug when there is a '.' in a library path. + +2003-07-17 Bernhard Held + + * device/lib/Makefile.in: bad fix, reverted to 1.43 + +2003-07-16 Bernhard Held + + * device/lib/Makefile.in: added missing z80 object files + +2003-07-14 Bernhard Held + + * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals + pic16 progress by Vangelis: + * src/SDCCglobl.h: + * src/SDCCmain.c: + * src/pic/Makefile: + * src/pic: + * pic/Makefile: + * pic16/device.c: + * pic16/device.h: + * pic16/gen.c: + * pic16/gen.h: + * pic16/genarith.c: + * pic16/glue.c: + * pic16/main.c: + * pic16/pcode.c: + * pic16/pcode.h: + * pic16/pcodepeep.c: + * pic16/peeph.def: + +2003-07-13 Jesus Calvino-Fraga + + * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0 + +2003-07-12 Jesus Calvino-Fraga + + * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp: + added gbz80 build to MSVC project. + * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp, + link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files + from 8051 stuff and setup so it links using a .lnk file. + +2003-07-06 Jesus Calvino-Fraga + + * support/librarian/sdcclib.c: sdcc librarian. + * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created + with sdcclib. + +2003-07-03 Jesus Calvino-Fraga + + * as/mcs51/lkmain.c: properly handle extensions in function afile. + +2003-07-02 Borut Razem + + * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c, + src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c, + src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, + src/xa51/main.c, src/z80/main.c: + virtualization of glue() function: each port has it's own glue function, + which is accessed by do_glue function pointer in PORT.general structure + +2003-07-01 Kevin Vigor + + * DS800C400 fun, improved ROM interface and tinibios. + +2003-06-27 Kevin Vigor + + * More support for DS80C400. Now includes beginning of interface to ROM. + +2003-06-25 Bernhard Held + + * src/mcs51/gen.c (gencjneshort): fixed bug #760345 + +2003-06-20 Jesus Calvino-Fraga + + * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct. + +2003-06-19 Borut Razem + + * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line + +2003-06-19 Borut Razem + + * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c: + fixed Z80 port - crt0.o: cannot open. + +2003-06-19 Bernhard Held + + * support/Util/MySystem.c (merge_command): revert bad fix + +2003-06-18 Borut Razem + + * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003 + +2003-06-18 Jesus Calvino-Fraga + + * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: + option --use-stdout sends errors to stdout instead of stderr. + +2003-06-18 Bernhard Held + + * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg + +2003-06-15 Borut Razem + + * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32 + * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling + * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c: + fixed width array of pointers replaced with sets; + multiple include and lib paths ared transferred to preprocessor and linker + * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets() + * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead + fixed width array of pointers + * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet(); + removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(), + fixupPath(), getPathDifference() + * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function inExcludeList() by using sets instead + fixed width array of pointers + +2003-06-11 Bernhard Held + + * src/pic16/ralloc.c: fix warnings + * src/pic16/pcode.c: fix warning + +2003-06-10 Scott Dattalo + + Scott D. for Vangelis Rokas (vrokas@otenet.gr). I (scott) don't + know all the details, but essentially this set of changes enable + the pic16 port to generate movff instructions and generate assembler + directives, + * src/SDCCmain.c: + * src/pic16/gen.c: + * src/pic16/glue.c: + * src/pic16/pcode.c: + * src/pic16/device.c: + * src/pic16/main.c: + * src/pic16/pcode.h: + * src/pic16/pcoderegs.c: + * src/pic16/ralloc.c: + * src/pic16/ralloc.h: + +2003-06-08 Jesus Calvino-Fraga + + * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: + added option --vc, so sdcc errors and warnings are compatible with + Microsoft Visual Studio. + +2003-06-07 Jesus Calvino-Fraga + + * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h, + device/lib/libfloat.lib: added atof function. + +2003-06-04 Bernhard Held + + * doc/sdccman.lyx: updated to Lyx 1.3 + * doc/cdbfileformat.lyx: updated to Lyx 1.3 + * doc/test_suite_spec.lyx: updated to Lyx 1.3 + * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus + +2003-06-03 Bernhard Held + + * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" + +2003-06-02 Frieder Ferlemann + + * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble, + additions to the "related tools/documentation" section + +2003-06-02 Bernhard Held + + * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable + +2003-05-29 Bernhard Held + + * src/pic/device.c: added 16F819, patch by "David I. Lehn" + * src/SDCCcse.c (algebraicOpts): fixed "c * 1" + +2003-05-28 Bernhard Held + + * doc/sdccman.lyx: fix double dash and other minor things + * doc/Makefile: fix double dash + +2003-05-28 Karl Bongers(patches from Martin Helmling) + * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds + condition and ignore commands. + +2003-05-28 Frieder Ferlemann + + * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual + is in parts still quite out of date, I did changes as far as I felt makes sense + for a non-native english speaker. + Please feel free to add to the manual or to correct my changes. + * doc/Makefile: undid touching the date of intermediate tex files. + +2003-05-26 Frieder Ferlemann + + * doc/sdccman.lyx: Manual has an index now + +2003-05-25 Bernhard Held + + Finalize muluint/mulsint and mululong/mulslong merging: + * device/lib/_mulint.c + * device/lib/_mullong.c + * device/lib/gbz80/mul.s + * device/lib/gbz80/stubs.s + * device/lib/z80/mul.s + * device/lib/z80/stubs.s + * src/SDCCsymt.c (initCSupport) + +2003-05-25 Jesus Calvino-Fraga + + * as/mcs51/lkaomf51.c: Address space 'z' was missing. + * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp, + src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp, + src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used + instead of /Zm500. + +2003-05-25 Frieder Ferlemann + + * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass + the regression tests I'm not brave enough to enable 245.b, 245.c + * doc/sdccman.lyx: added latex preamble for hyperref package. + Using pdflatex this will give you a hyperlinked pdf file with + bookmarks. (prepend '%' before /usepackage if this breaks something) + +2003-05-24 Jesus Calvino-Fraga + + * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649) + +2003-05-22 Bernhard Held + + * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning + +2003-05-21 + + * src/SDCCglue.c (printIval): fixed bug #739934 + +2003-05-19 Bernhard Held + + Applied patch from bug 737905 (renamed yylineo to mylineno): + * src/altlex.c + * src/SDCCast.c + * src/SDCglobl.h + * src/SDCC.lex + * src/SDCCsymt.c + * src/SDCCval.c + * src/pic16/pcode.c: Cleaned warnings + * src/pic16/pcodeflow.c: Cleaned warnings + * src/pic16/pcoderegs.c: Cleaned warnings + +2003-05-19 Scott Dattalo + + * src/pic16/pcode.c: Cleaned warnings + * src/pic16/pcodepeep.c: Cleaned warnings + * src/pic16/ralloc.c: Cleaned warnings + +2003-05-19 Bernhard Held + + * doc/sdccman.lyx: fixed bug 739745 + * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha + +2003-05-18 Bernhard Held + + * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-) + it can be defined with CFLAGS when running configure + * src/SDCCmain.c: fixed compiling + linking with object files + +2003-05-18 Vangelis Rokas (vrokas@otenet.gr) + + * configure.in: configure for pic16 port, + added --disable-pic16-port + * sdccconf_in.h: added macro OPT_DISABLE_PIC16 + * src/SDCCmain.c: linkOptions is changed to set *, + added if/endif conditional macros to remove options help + messages from optionsTable when a port is not configured, added + support for the PIc16 port in the ports table, when executing + the compiler with no port specified on command line, a default + port is selected with the new macro DEFAULT_PORT which is + defined in port.h, in setDefaultOptions() linkOptions is removed + from initialization assignment, since now it is a set, + parseCmdLine uses setParseWithComma for linkOptions, in + linkEdit() linkOptions are accessed with new function indexSet() + which returns the i'th item of a set variable. See SDCCset.c, in + linkEdit() when calling buildCmdLine(), added linkOptions as + last argument. Now users can pass arguments to gplink via the + -Wl option, main() uses pic16glue() to glue up pic16 programs + * src/SDCCpeeph.c: various changes to support pic16 + * src/SDCCset.c: added function void *indexSet(set *, int) to + return the i'th item of the set + * src/SDCCset.h: added function prototype for indexSet() + * src/SDCCsymt.c: in checkSClass(), added support for PIC16 + * src/clean.mk: added pic16 in CLEANALLPORTS variable + * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro, + added macro DEFAULT_PORT + * src/pic/main.c: corrected arguments of gplnk in _linkCmd + * src/pic16/gen.c: bug fix in genCpl(), now the correct code is + generated + * src/pic16/glue.c: commented out some error producing lines + * src/pic16/main.c: __config directives are commented out to stop + gpasm complaining and test the linkage with gplink, _linkCmd and + _asmCmd changed to be more gplink and gpasm friendly + * src/pic16/peeph.def: peep rule 3 is commented out, since it + produced an error when parsed, peep rule 12 is added to utilize + movff, but it is commented out since the pCode does not support + yet a command with 2 address arguments + +2003-05-18 + + * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT + * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT +2003-05-17 Karl Bongers(apply patches from Martin Helmling) + + * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. + Added feature to script commands from file. + +2003-05-14 Bernhard Held + + * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall + * src/SDCCutil.c: include ctype.h for win32 + +2003-05-13 Bernhard Held + + * src/pic16/*: removed CR from many files, reported by Vangelis Rokas + +2003-05-12 Karl Bongers(apply development patches from Martin Helmling) + + * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files. + Fixed so you can set breakpoints prior to run, run does not stop + on entry now. Add tbreak. Other enhancements and fixes for use + with ddd. + +2003-05-12 Borut Razem + + * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix + +2003-05-11 Borut Razem + + * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine + the path of bin directory, so that PATH is the only env. variable, which has to be set + in case of standard installation. + * src/ds390/ds390.dsp: increased value of /Zm option to 1000 + * src/pic/main.c: add quotes to file name parameters for gplink and gpasm + * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option + +2003-05-04 Bernhard Held + + * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80 + * support/regression/Makefile: inter-port-clean is no longer nesessary, the + temp files are in the port dir; clean the gen/test directory when + generating new test.c + * support/regression/ports/host/spec.mk: defined OBJEXT for target clean + * support/regression/tests/vaargs.c: fixed gcc 3.3 warning + * support/regression/tests/zeropad.c: added + +2003-05-09 + + * src/SDCCglue.c: fixed bug #597940 + +2003-05-05 Karl Bongers(apply patches from Martin Helmling) + + * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files. + cache sfr, optimize next,step, fix off by one sourceline, + support ddd list function. + * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use. + +2003-05-04 Bernhard Held + + * support/regression/HTMLgen.py: added compare_s2f() + * support/regression/Makefile: redo 1.27 + * support/regression/generate-cases.py: redo 1.5 + +2003-04-30 Bernhard Held + + * support/regression/tests/float.c: workaround 33 bit hex constant + * support/regression/tests/simplefloat.c: fix division for host + +2003-04-29 Scott Dattalo + + * src/pic/pcoderegs.c Applied patch from Jim Hawkridge + that tame's the PIC's over-aggressive optimizer. + +2003-04-29 Jesus Calvino-Fraga + + * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker + support for MSVC. + +2003-04-29 Kevin Vigor + + Initial support for DS80C400. "Hello world" runs on TINIm400 + (with polled I/O). + +2003-04-28 Karl Bongers(apply patches for Martin Helmling) + + * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files. + * Some notes on ddd usage added in debugger/README + Martin Helmling adding more features and fixes for ddd GUI debugger. + Code added for nexti, stepi, up, down, and other adjustments. + +2003-04-28 Scott Dattalo + + * src/pic/pCodepeep.c non-wildcard asmops are now handled + * src/pic/peeph.def Added two rules to optimize carry manipulation + * src/pic/* removed debug printfs + +2003-04-28 Bernhard Held + + * debugger/mcs51/cmd.c: added header newalloc.h + +2003-04-26 Bernhard Held + + * as/Makefile: new EXEEXT + * as/z80/Makefile: remove trailing slash of BUILDIR + * as/z80/clean.mk: new EXEEXT + * Makefile.common.in: add to CFLAGS (and others), don't replace it + * support/cpp2/Makefile.in: new EXEEXT + * src/pic/glue.c (pic14emitRegularMap): fixed warning + +2003-04-24 Bernhard Held + + Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe; + EXEEXT was introduced to fix all related problems with targets + "clean", "install" and "uninstall"; a couple of further flaws + especially with "clean" have been fixed too + * as/mcs51/Makefile.in + * as/mcs51/clean.mk + * as/z80/Makefile + * Makefile + * clean.mk + * debugger/mcs51/Makefile.in + * debugger/mcs51/clean.mk + * link/z80/Makefile + * link/z80/Makefile.in + * link/z80/clean.mk + * link/Makefile + * packihx/Makefile.in + * packihx/clean.mk + * sim/ucsim/Makefile + * sim/ucsim/clean.mk + * sim/ucsim/avr.src/Makefile.in + * sim/ucsim/avr.src/clean.mk + * sim/ucsim/s51.src/Makefile.in + * sim/ucsim/s51.src/clean.mk + * sim/ucsim/xa.src/Makefile.in + * sim/ucsim/xa.src/clean.mk + * sim/ucsim/z80.src/Makefile.in + * sim/ucsim/z80.src/clean.mk + * sim/ucsim/main_in.mk + * sim/ucsim/packages_in.mk + * sim/ucsim/gui.src/Makefile.in + * sim/ucsim/gui.src/serio.src/Makefile.in + * sim/ucsim/gui.src/serio.src/clean.mk + * src/Makefile.in + * src/clean.mk + * support/cpp2/Makefile.in + * support/cpp2/clean.mk + * support/makebin/Makefile + * support/makebin/clean.mk + * support/scripts/sdcc_mingw32: --program-suffix no longer needed + * doc/sdccman.lyx: --program-suffix no longer needed + +2003-04-23 Karl Bongers(apply patches for Martin Helmling) + + * debugger/mcs51/sdcdb.c,simi.c,cmd.c,.. + Martin Helmling added support for ddd GUI debugger. + Code added to display assembly, set variables, and other commands + to interface to ddd. + +2003-04-23 Bernhard Held + + * as/Makefile: fix target clean + * as/clean.mk: fix target clean + * as/z80/clean.mk: fix target clean + +2003-04-22 Bernhard Held + + * Makefile.common.in: added @EXEEXT@ + * configure.in: removed all mingw32 stuff + * configure: rebuilt from configure.in + * doc/sdccman.lyx: updated section "installation" + * support/scripts/sdcc_mingw32: adapted to configure + * support/scripts/sdcc_cygwin_mingw32: added + +2003-04-22 Scott Dattalo + + * src/pic Added object file support for the PIC port + * src/pic Applied patch from Craig Franklin (this started the object file support) + * src/regression Updated the PIC regression tests for object files + +2003-04-20 Borut Razem + + * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning: + lklex.c: In function `getfid': + lklex.c:203: warning: array subscript has type `char' + * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled + with MSVC with global optimization enabled (probably an cl compiler bug ;-) + * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from + stack handling macros + +2003-04-19 Borut Razem + + * "handling space characters in file path" task: + * src/SDCCmacro.c: fixed bug in handlig quote at the end of line + * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid + * support/Util/MySystem.h: make it self-sufficient + * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c, + src/z80/main.c, sdcc/as/mcs51/lklex.c: + handling space characters in file path + * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro + (it will be used by assemblers, which have their own includes, e.g. gpasm) + * support/Util/MySystem.c: handling space characters in executable's path + +2003-04-19 Bernhard Held + + * as/z80/Makefile: fix permanent rebuild of z80 + * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all" + * support/regression/tests/bitfields.c: added Johan's bitfields.c + +2003-04-18 Kevin Vigor + + * src/SDCCopt.c: add special case optimization to replace modulo by + a power of two with a bitwise AND. + +2003-04-18 + + * src/mcs51/gen.c (getFreePtr): fixed bug #635354 + +2003-04-17 + + * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls + * src/mcs51/ralloc.c (packRegisters): fixed bug #720667 + +2003-04-13 Borut Razem + + * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting + * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings; + fixed mingw problem in adl_NORMALIZE_PATH + +2003-04-12 Borut Razem + + * fixed "#pragma SAVE/RESTORE can not be nested": + * src/SDCC.lex: reworked pragma handling functions + * sdcc/src/SDCCglobl.h: reworked stack handling macros + * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error + +2003-04-12 Bernhard Held + + * src/SDCCutil.c (pathEquivalent): defined but not used + * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR + * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir + * configure: rebuilt from configure.in + * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR + * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR + * device/include/Makefile.in: replace sdcc_datadir + * device/lib/Makefile.in: replace sdcc_datadir + * Makefile.common.in: add LDFLAGS from configure + * packihx/Makefile.in: use LDFLAGS + * src/Makefile.in: use LDFLAGS + * support/cpp2/Makefile.in: add LDFLAGS from configure + * support/makebin/Makefile: use LDFLAGS + * .version: bumped version number to 2.3.5 + +2003-04-12 Borut Razem + + * completed "different paths" task: + * src/SDCCmacro.c: fixed bug in handling quotes + * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath() + * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath() + +2003-04-12 Bernhard Held + + * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha + +2003-04-11 kevin Vigor + + * ds390/gen.c ds390/peeph.def: fix bug 706781 + +2003-04-11 Borut Razem + + * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable + +2003-04-10 Scott Dattalo + + * src/pic/* Applied the pointer-to-function patch from Steve Tell. + * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was + set - this bit used to not be set...). + * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated + bad code in PIC Port + * src/regression/and2.c added to test bug 609268 + * src/regression/Makefile added and2.c to regression test + + +2003-04-08 + + * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm + * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs + * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm + +2003-04-07 Bernhard Held + + * configure.in: fully support prefix, exec_prefix, datadir, docdir; + fix bug #487815 + * support/cpp2/Makefile.in: fix bug #487815 + * configure: rebuilt from configure.in + * Makefile.common.in: docdir changed, new path suffixes + * sdccconf_in.h: new RETSIGTYPE, and other PATHs + * sdcc_vc_in.h: reflect changes from sdccconf.h + * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h + * src/SDCCutil.h: remove BINDIR hack + * doc/sdccman.lyx: update new path hierarchy + +2003-04-06 Paul Stoffregen + + * src/SDCCpeeph.c: added okToRemoveSLOC test + +2003-04-06 Paul Stoffregen + + * device/lib/printf_fast.c: added leading zero format ("%06d", etc) + +2003-04-06 Paul Stoffregen + + * src/SDCCpeeph.c: added labelIsReturnOnly test + * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret + +2003-04-05 + + * src/SDCCcse.c (cseAllBlocks): fixed bug #460088 + * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088 + * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088 + * src/SDCCast.c: fixed a warning + * src/SDCCast.h: fixed a warning + * src/SDCCicode.c (operandFromAst): fixed a warning + +2003-04-04 + + * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584 + * src/SDCCast.c (decorateType): fixed bug #715076 + * src/SDCC.y: fixed bug #702907 + +2003-04-03 + + * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC + * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC + * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC + * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC + * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC + +2003-04-03 Bernhard Held + + * _decdptr.c: fix return values + * _gptrget.c: fix return values + * _gptrgetc.c: fix return values + * _gptrput.c: fix return values + * _mulint.c: fix return values + * as/z80/Makefile: fix 'make -j' problem + +2003-04-02 Bernhard Held + + * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir + * configure.in: big cleanup, updated to autoconf 2.5x + * configure: rebuilt from configure.in + * sdccconf_in.h: new RETSIGTYPE, and other PATHs + * sdcc_vc_in.h: reflect changes from sdccconf.h + * doc/Makefile: fixed a flaw in "make install" + +2003-04-02 + + * src/ds390/gen.c (genCmp): no comments + * src/mcs51/gen.c (genCmp): no comments + * src/SDCCopt.c (eBBlockFromiCode): detect missing return values + * src/SDCCast.c (ast_print): fixed the function type in --dumptree + +2003-04-01 Bernhard Held + + * support/regression/generate-cases.py: place generated file in given sub directory + * support/regression/ports/host/spec.mk: prevent removal of testfwk.o + * support/regression/Makefile: improvements for 'make -j'; + side effect: it's simpler and faster now + +2003-03-31 Borut Razem + + * src/z80/main.c: link-{port} and as-{port} defined without path + * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project + +2003-03-31 Bernhard Held + + * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works + +2003-03-30 Borut Razem + + * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(), + changed type of list parameter to set + * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble() + * src/port.h: changed type of do_assemble() parameter to set + * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(), + sdcpp defined without path, removed variable VersionString, introduced set binPathSet, + definition of "cppoutfilename" macro with NULL value in preProcess() + * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma() + * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores() + * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[] + replaced with set *binPathSet + * shash_add() deallocates the item, if allready exsists, before adding the new one + * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros() + +2003-03-30 Scott Dattalo + + * src/pic/gen.c: Commit patch from Steve Tell that fixes + a nested for loop bug in the PIC port + * src/regression/nestfor.c: new regression test file Steve wrote to test nested + for loops + +2003-03-29 Bernhard Held + + * support/Util/dbuf.h: remove C++ stuff to make it portable + +2003-03-28 Borut Razem + + * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C + literal strings in stringLiteral() + * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling + * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c + to the project + +2003-03-27 Paul Stoffregen + + * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51 + +2003-03-26 + + * src/mcs51/gen.c (saveRegisters): catched symbol abuse + * src/ds390/gen.c (saveRegisters): catched symbol abuse + * src/SDCCast.c (decorateType): fixed " -v < 3" + +2003-03-23 Bernhard Held + + * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx + Added Lenny Story's debug infrastructure changes: + * src/Makefile.in: added new files cdbFile.c and SDCCdebug.c + * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c + * src/cdbFile.c: added + * src/SDCCdebug.c: added + * src/SDCCdebug.h: added + * src/SDCCast.c (createFunction) + * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue) + * src/SDCCmain.c (parseCmdLine, main) + * src/SDCCmem.c (redoStackOffsets) + * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock) + * src/SDCCsymt.h + * src/common.h + * src/avr/gen.c (genAVRCode) + * src/ds390/gen.c (gen390Code) + * src/mcs51/gen.c (gen51Code) + * src/pic/gen.c (genpic14Code) + * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue) + * src/xa51/gen.c (genXA51Code) + * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}" + +2003-03-22 Frieder Ferlemann + + * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797 + * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x + +2003-03-22 + + * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231 + +2003-03-21 Bernhard Held + + * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54 + * doc/cdbfileformat.lyx: added, written by Lenny Story + * doc/Makefile: added cdbfileformat.lyx + * doc/clean.mk: added cdbfileformat.lyx + +2003-03-20 Bernhard Held + + * src/mcs51/peeph.def: fix bug #705773 + +2003-03-20 + + An sfr/sbit can have an "at #" AND an initializer + * src/SDCCsymt.c (checkSClass): + * src/SDCCmem.c (allocGlobal): + * src/SDCCmem.c (allocLocal): + * src/SDCCast.c (createBlock): + +2003-03-17 Bernhard Held + + * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek + +2003-03-16 + + Undid the hackup of const and volatile, the problem is much bigger + * src/SDCC.y:1.65 + * src/SDCCast.c:1.171 + * src/SDCCglue.c:1.138 + * src/SDCCicode.c:1.146 + * src/SDCCsymt.c:1.150 + * src/SDCCval.c:1.65 + +2003-03-15 Bernhard Held + + * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541 + * src/ds390/gen.c (genAddrOf): fixed bug #704087 + +2003-03-13 + + 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 + + * 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 + * 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 + + * as/mcs51/lkmain.c: Added ASlink-Warning to messages + * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example + +2003-03-11 Kevin Vigor + + * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are + actually called (operandsNotEqual() was called for all + operandsNotEqualX tests). + +2003-03-11 Kevin Vigor + + * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types + with shorter literals. Fixes bug 700121. + +2003-03-11 + + * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer + +2003-03-11 Bernhard Held + + * src/SDCCloop.c (mergeRegions): an evil beast is dead + * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName + +2003-03-10 Borut Razem + + * 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 + + * 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 + + * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers + +2003-03-09 Borut Razem + + * 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 + + * 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 + + * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01 + +2003-03-08 Bernhard Held + + * 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 + + * 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 + + 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 + + * 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 * src/mcs51/gen.c (genMinus): fixed bug 696436