2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>

	* device/include/Makefile.in (install): fixed by replacing spaces
	by tabs
	* doc/README.txt,
	* doc/INSTALL.txt: updated for release
	* doc/sdccman.lyx: added warning for --xstack being buggy

2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>

	* src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
	to eliminate build warnings.
	* src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4 

2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
	   Hans-Juergen Dorn <hans.dorn AT apl-landau.de>

	* doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
	removed -penable-stack, added comment for stack pragma, added
	warning for not initializing the stack/frame registers, removed
	comment at interrupts section

	Stack is made permanent, there is no ability to disable stack usage.
	* src/pic16/device.h,
	* src/pic16/device.c: removed all references to USE_STACK macro,
	* src/pic16/device.c (pic16_dump_section): when no elements in
	rlist, free rlist before return,
	* (pic16_dump_int_registers): NEW, internal registers are a new set
	of general purpose registers reused by each function,
	* (checkAddReg): returns 1 if registers is added to set,
	* (pic16_groupRegistersInSection): when a registers is of type
	PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
	* src/pic16/device.h: memRange and Assigned Memory are deleted,
	SRCASECMP macro is moved here from device.c
	* src/pic16/genarith.c (pic16_pCodeOpType): added cases for
	PO_PCLATU, PO_PRODL, PO_PRODH,
	* (pic16_pCodeOpType, genMinus, 
	changed compares to "a" register, with AOP_ACC,
	* (pic16_genPlus): fixed some bugs and indented properly,
	* (pic16_addSign): changed size to size+offset in the MOVWF
	instruction,
	* (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
	multiply 8-bit operand by literal, result is 8-bit,
	* (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
	multiply 2 8-bit operand, result is 8-bit,
	* (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
	genUMult8X*_16,
	* src/pic16/gen.c: changed accUse to contain WREG only,
	* (pic16_emitcomment): renamed to pic16_emitpcomment,
	* (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
	true, do not use immediate addressing any more unless sym is a
	pointer in codespace,
	* (aopForRemat): do not use immediate addressing when symbol not in
	codespace and when symbol's address is requested,
	* (aopOp): for-loop in if(sym->accUse) is modified for the new
	accUse size (= 1),
	* (aopGet): added case for AOP_ACC and don't return "accumulator
	bug" but WREG instead,
	* (popGetTempReg): pushes contents of temporary register in stack,
	* (popReleaseTempReg): pops contents of temporary register from
	stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
	* (pic16_popGet): separated case AOP_ACC to return register WREG
	from processor registers, AOP_PCODE not checks if pcop is PO_DIR
	or PO_IMMEDIATE and initializes their instance/offset appropriately,
	* The whole issue with aopForSym,aopForRemat,popGet) is to minimize
	the use of immediate pointers to certain cases only.

	* (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
	* (pic16_loadFromReturn, pic16_storeForReturn: NEW,
	* (assignResultValue, genCall, genRet): modified to use the new
	function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
	genPcall is still broken,
	* (genFunction): added code to create 'A' type pBlocks when
	interrupt functions are generated, code not extensively tested yet,
	ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
	* (genEndFunction): modified so ISRs pop stored registers from stack,
	* (genMultOneByte): cleanup,
	* (AccRsh): added flag andmask, to and result with appropriate mask,
	* (genUnpackBits,genPackBits): fixed and can handle bit fields,
	* (genDataPointerGet): fixed and reenabled its use,
	* (genNearDataPointerGet): bugs fixed,
	* (genDataPointerSet): bugs fixed,
	* src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
	pic16_DumpSymbol, pic16_DumpOp,
	* src/pic16/genutils.h: function prototypes for the above functions,
	* src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
	pointers,
	* (pic16emitRegularMap): many many many improvements, but needs a
	major cleanup,
	* src/pic16/main.c: enable_stack in pic16_options is removed,
	* (_pic16_parseOptions): removed command line options -penable-stack,
	* (_process_pragma): emit stack symbol only when stack pragma is
	processed,
	* src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
	redirected to FSR0L/FSR0H pair,
	* (pic16_get_op, pic16_get_op2): modifications and improvements,
	* (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
	cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
	for immediates,
	* (insertBankSwitch): modified to handle cases like: (alfa + 1)
	* (dumpPicOptype): NEW,
	* src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
	* src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
	with movff instruction,
	* src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
	added pic16_int_regs, some packRegsFor* functions are commented out,
	because produce errors,
	* src/pic16/NOTES: minor modifications

2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>

	* as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
	as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
	--pack-iram.
	* doc/sdccman.lyx: described options --stack-size and --pack-iram.
	* as/mcs51/lkaomf51.c: fixed bug #895763

2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>

	* device/include/c8051f320.h: added. Contributed by Maarten Brock.

2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* doc/sdccman.lyx: added details about the HC08 storage classes and
	interrupts, fixed the register usage info for z80 & gbz80

2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>

	* doc/sdccman.lyx: added more pic16 port documentation
	* device/include/pic16/: added header pic18fregs.h

2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>

	* doc/sdccman.lyx: added Vangelis' contribution

2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/SDCClrange.c (rlivePoint): live range of SEND operand should
	extend to the next CALL or PCALL, not just to the next CALL.

2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>

	* src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly

2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
	bug #895752 and a better fix for bug #716790

2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/SDCCsymt.c (processFuncArgs): fixed bug #896796

2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>

	* doc/sdccman.lyx: minor changes, minor changed

2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>

	* src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
	which can't handle SDCC_NEWONEBYTEOPS,
	(geniCodeMultiply): removed conversion from mult to shift for pic14
	and pic16

2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/hc08/gen.h,
	* src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
	rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
	thus fixing bug #895406

2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>

	* device/lib/_modsint.c,
	* device/lib/_modslong.c: sign follows divisor only
	* src/hc08/gen.c (genMultOneByte): if result size is 1,
	signs or signedness can be ignored
	* src/SDCCast.c (addCast): cosmetic - added lineno to CAST
	* src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
	added optimization for IFX,
	(decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
	arguments;
	reenabled optimization for IFX, which was removed on 2004-01-11
	* src/SDCCast.h: added return type IFX
	* src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
	arguments with 8 or 16 bit results; pic14 and pic16 ports use old
	promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
	SDCC_OLDONEBYTEOPS selects the old behaviour
	* src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
	changed again and commented promotion rule
	* src/SDCCval.c (valDiv): promotion no longer necessary
	* src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
	* src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
	rewritten
	* support/regression/tests/onebyte.c: added

2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>

	* gen.c (genInline): reverted to old code for assemnling inline
	code because of bug reported James Chadd

2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>

	* ralloc.h: missing declarations from previous patch,
	seems that patch for ralloc.h was never applied, fixed
	
2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
	   patch committed by Vangelis Rokas <vrokas AT otenet.gr>

	* pcode.c,
	* pcode.h,
	* ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
	indirect addressing. Marked FSR0 as deprecated
	* gen.c (pointerCode): commented out, not needed now
	(pic16_popGet2p): new MOVFF helper function
	(genGenPointerGet),
	(genGenPointerSet): reimplemented with MOVFF and POSTINC0
	(shiftRLong): removed duplicate debugging info

2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/ds390/gen.c (genNearPointerGet),
	* src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
	optimization with bits, but not bitfields.
	* src/ds390/ralloc.c (packRegisters),
	* src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832

2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>

	* src/SDCCcse.c (algebraicOpts): copy operands before modification

2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/SDCCsymt.h,
	* src/SDCCicode.c (operandFromSymbol),
	* src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
	* src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
	* src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
	* src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
	* src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
	* src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
	bug #892038
	* src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
	* src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
	printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
	* src/SDCCsymt.c (newSymbol),
	* src/SDCC.y (struct_or_union_specifier, enum_specifier, 
	enumerator_list),
	* src/SDCCval.h,
	* src/SDCCval.c (newiList): fixed bug #885705

2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>

	* doc/sdccman.lyx: added section 3.1.4: sdcclib.
	* as/mcs51/lkmem.c: report the size of the stack in .mem file.

2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>

	* device/include/c8051f120.h,
	* device/include/c8051f300.h,
	* device/include/c8051f310.h: added/updated header files for Silicon
	Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
	* doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
	in new section Submitting patches

2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
	genFarPointerGet, genCodePointerGet, genGenPointerGet,
	genNearPointerSet, genPagedPointerSet, genFarPointerSet,
	genGenPointerSet),
	* src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
	genFarPointerGet, genCodePointerGet, genGenPointerGet,
	genNearPointerSet, genPagedPointerSet, genFarPointerSet,
	genGenPointerSet),
	* src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
	genFarPointerGet, genCodePointerGet, genGenPointerGet,
	genNearPointerSet, genPagedPointerSet, genFarPointerSet,
	genGenPointerSet),
	* src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
	genFarPointerGet, genCodePointerGet, genGenPointerGet,
	genNearPointerSet, genPagedPointerSet, genFarPointerSet,
	genGenPointerSet): fixed bug #892400
	* src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
	to eliminate build warnings.
	* src/SDCCast.c (processParms),
	* src/SDCC.y (function_declarator2, declarator2_function_attributes):
	fixed bug 751859
	* support/valdiag/valdiag.py: added GCC to the list of defines active
	when compiling with gcc

2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* support/Util/SDCCerr.h,
	* support/Util/SDCCerr.c,
	* src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
	with an incomplete type (fixed bug #883734)
	* src/SDCCicode.c (geniCodeCast): fixed bug #890510

2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations

2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/SDCCast.c (decorateType),
	* src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
	function pointer implementation
	* support/regression/tests/funptrs.c: added tests to verify both forms
	of function pointers work correctly. Added tests to verify parameters
	are passed in the correct order.

2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>

	* device.c (regCompare): registers are sorted by ascending
	address and increasing size,
	* main.c (_pic16_finaliseOptions): removed the declaration
	of compiler macro MCU. Now a macro of the format pic18fxxxx
	will be defined from the command line

2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
	    patch committed by Vangelis Rokas <vrokas AT otenet.gr>

	* pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
	PCOP_RLCF was overwritten!
	* gen.c (genSkip): commented out calls to pic16_emitcode,
	* (genCmpEQ): fixed "long" compares, only high word did get compared,
	* (genlshTwo),
	* (genRRC): added debugging info,
	* (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
	overwritten while shifting,
	* (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
	overwritten while shifting,
	* (AccLsh),
	* (AccRsh),
	* (shiftLLeftOrResult),
	* (shiftRLeftOrResult),
	* (shiftRLong),
	* (shiftLLong): Implemented with pic16_emitpcode
	* (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
	* (genLeftShift): Fixed bug, operand for shift by variable always
	was "and"ed with 0x0f,
	* (genLeftShiftLiteral),
	* (genrshTwo),
	* (genRightShiftLiteral): added debugging info,
	* (genrshFour): added comment,
	* (genRightShift): determined signedness from operand "left"
	instead of "result"

2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/SDCCicode.c (geniCodeParms),
	* src/SDCCast.c (decorateType, processParms): support for ANSI-style
	function pointers, fixed function pointer bugs #861242 and #861896

2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>

	* device/include/c8051f000.h,
	* device/include/c8051f120.h,
	* device/include/c8051f300.h: added header files for Silicon
	Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.

2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>

	* src/SDCCast.c (processParams): added new type flow and restructured
	(gatherAutoInit): added new type flow
	(addCast): cosmetic changes
	(getLeftResultType): added new type flow for array indices, patch
	provided by Stas, see FR #877103
	(decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
	array index patch by Stas
	* src/SDCCast.h: added prototype getResultTypeFromType()
	* src/SDCCval.h,
	* src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
	* src/pic/glue.c (pic14emitStaticSeg),
	* src/pic16/glue.c (pic16emitStaticSeg),
	* src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
	for initialization of symbols
	* src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
	* support/Util/SDCCerr.h:
	* support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
	* .version: bumped version number to 2.3.8
	* device/include/Makefile.in (install),
	* doc/Makefile (install): changed to 'rm `find ...`' construct to
	avoid warnings

2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>

	* support/regression/tests/libmullong.c: fixed for 64 bit hosts
	Slade Rich fixed an optimization bug
	* src/pic/pcodepeep.c,
	* src/pic/pcoderegs.c
	* doc/Makefile (install): added test for directory

2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/mcs51/ralloc.c (getRegPtr, getRegGpr),
	* src/ds390/ralloc.c (getRegPtr, getRegGpr),
	* src/pic/ralloc.c (getRegPtr, getRegGpr),
	* src/pic16/ralloc.c (getRegPtr, getRegGpr),
	* src/z80/ralloc.c (getRegGpr): fixed bug #883361
	* as/mcs51/asexpr.c (term),
	* as/hc08/asexpr.c (term): fixed bug #887146

2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/z80/gen.c (genMult): handle single byte result product
	* src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
	DUMMY_READ_VOLATILE (fixed bug #886367)

2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>

	* support/regression/tests/libmullong.c: fixed logic, on little endian
	hosts we ended without a mullong_wrapper()

2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* ChangeLog: changed "@" to " AT " in hopes of reducing spam and
	virus/worm forged address usage.

2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>

	Fixed promotion, it should be done on AST level:
	* src/SDCCast.c (addCast): added promotion to int
	(decorateType): updated call to upCast()
	* src/SDCCicode.c (geniCodeLeftShift): removed call to
	usualUnaryConversions()

2004-01-26  Michael Hope  <michaelh AT juju.net.nz>

	* support/regression/tests/literalop.c (mulWrapper): Added a
	wrapper to remove integer overflow warnings.

	* support/regression/tests/float_trans.c: Made work on host.

	* support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
	location of sz80.

	* support/regression/generate-cases.py (main): Changed from inline
	to a main method.

	* doc/Makefile (install): Changed to depth first to get rid of
	missing directory install warning.

	* as/Makefile (install-doc): Made work on Mac.

2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>

	* src/SDCCast.c: added an additional type flow in decorateType() of
	opposite direction, see feature request #860006; it's enabled at runtime
	by setting the environment variable SDCC_NEWTYPEFLOW
	* src/SDCCast.h: changed prototype of decorateType()
	* src/SDCCglue.c (emitRegularMap): updated call of decorateType()
	* src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
	'char' to 'int' can be omitted, if both operands are 'unsigned char';
	see feature request #877103
	* src/SDCCval.c: updated call of decorateType()
	(valBitwise): fixed bug #882876
	(valMinus): added promotion
	(valLogicAndOr): result is unsigned
	(cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
	* src/SDCCsymt.c (computeType),
	* src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
	must not cause an unsigned operation
	* src/pic/glue (pic14emitRegularMap),
	* src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()

2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>

	* src/pic/pcode.c (PCodeID): commented out left over debug code

2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>

	* support/valdiag/tests/overflow.c: added shift tests
	* src/pic/device.c,
	* src/pic/gen.c,
	* src/pic/gen.h,
	* src/pic/glue.c,
	* src/pic/main.c,
	* src/pic/pcode.c,
	* src/pic/pcode.h,
	* src/pic/pcodepeep.c,
	* src/pic/pcoderegs.c,
	* src/pic/ralloc.c,
	* src/pic/ralloc.h: applied patch from Slade Rich;
	added support for multiple code pages and multiple RAM banks on the
	PIC 14 port. The ASM files now no longer simply assume all the
	code / RAM are in the same page / bank. This means the linker can
	safely allocate code/RAM of separate ASM files to different pages/banks.
	* doc/sdccman.lyx: added Slade's tips
	* src/mcs51/peeph.def: fixed bug #880768

2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/hc08/ralloc.c (rematStr): fixed bug #879282
	* src/SDCCast.c (decorateType): fixed bug #880197

2004-01-20  Michael Hope  <michaelh AT juju.net.nz>

	* sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
	getopt.h.

	* debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
	strtof is not part of C89 and isn't included with Mac OS X.

2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
	shiftL2Left2Result): fixed bug #879326
	(genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
	(genMultOneByte): fixed bug in signed vs unsigned multiplication
	* sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
	address fetch for clr instruction
	* device/lib/hc08/_mulint.c: created optimized assembly version
	* src/SDCCdflow.c (computeDataFlow): fixed bug #878209

2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>

	* src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
	proposed in FR #877103

2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>

	* src/SDCCval.c (cheapestVal): added missing checks
	* src/SDCCicode.c (usualBinaryConversions): fixed condition
	* src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103

2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>

	* src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
	equal operands

2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>

	* src/SDCCmain.c (linkEdit): variable $3 of the linker command is
	loaded with the linker search paths (-L arguments) and the libraries
	to be linked with the current source (-l arguments). Changes
	currently will affect only the pic16 port.
	* src/pic16/main.c (_pic16_finaliseOptions): add to the linker
	include path the port specific paths and port specific libraries,
	* gplink command now contains the $3 argument,
	* src/pic16/device.h,
	* src/pic16/device.c,: structure PIC_device is made public and
	renamed to PIC16_device, the same for variable Pics which is renamed
	to Pics16. Updated all references to them.
	* src/pic16/glue.c (pic16glue): corrected bug with code
	initialization which bypassed the variable initializations block.

	* device/lib/pic16/Makefile.rules: removed --penable-stack from
	COMPILE_FLAGS and added the --nostdinc option

2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* device/include/mc68hc908jb8.h: Register defs for another member
	of the hc08 family. Contributed by Bjorn Bringert - thanks!

2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>

	Documenting changes from previous commits.
	* configure.in (version 1.56),
	* configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
	when generating output files to configure the pic16 library,
	but now I've commented it out, since gputils aren't installed in the
	SF compile farm, so library won't compile

	* device/lib/Makefile.in (version 1.56): initially I've added in
	target 'all' the prerequestive 'model-pic16' so it compiled the
	pic16 library, but now I've commented it out for the same reasons
	above,
	* added targets 'model-pic16' and 'objects-pic16' to compile the
	library
	* added target 'port-specific-objects-pic16' to handle the
	generated libraries and copy them into the build/ directory
	* added target 'clean-intermediate-pic16' to clean intermediate
	files into pic16 directory
	* in target 'installdirs' added line to create directory pic16 in
	the installation path

	* device/include/Makefile.in (version 1.11): in target 'install'
	added lines to copy all header files to installation path,
	* in target 'installdirs' added line create directory for pic16
	headers in the installation path

2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>

	* src/ds390/gen.c (genCall): fixed a double use of acc and b after
	 a function call

2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>

	* configure,
	* device/lib/configure.in,
	* device/lib/configure: fixed for autoconf 2.57

2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/z80/main.c (_parseOptions): fixed the portmode= command line
	option so that it actually works. Made it specific to the z80, since
	the gbz80 doesn't have these kinds of I/O ports.

2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* device/include/z180.h,
	* device/lib/_memcpy.c,
	* device/lib/_memmove.c,
	* device/lib/_mulint.c,
	* device/lib/ser_ir.c,
	* device/lib/ser_ir_cts_rts.c,
	* device/lib/_strcmp.c,
	* device/lib/_strtok.c: fixed pragmas to non-deprecated form
	* src/z80/main.c (_process_pragma): add support for pragmas bank and
	portmode; added deprecation warning for bank= and protmode= forms.
	Also, guard against buffer overflow.
	* src/z80/gen.c (aopGet): generate better code for sfr banked read

2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
	changed interrupt vector table generation to only emit declared vectors.
	* device/include/Makefile.in: added missing backslash
	* device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)

2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>

	Mainly changes to support compilation of the device libraries
	* src/pic16/device.c: stack is allocated via symbol and not
	via literal number. The symbol is placed in the corresponding
	position of the data ram
	* (pic16_dump_section): relocatable and absolute uninitialized
	data are now emitted in sorted order to reduce section naming,
	* src/pic16/ralloc.c (newReg): fixed bug with SFR's that
	weren't marked as being in the access bank,

2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>

	Added portion of GNU PIC Library under the directory
	device/include/pic16 and device/lib/pic16. These files
	contain the declarations of SFRs for the PIC18Fxx2 devices.
	The directory is initialized via configure from toplevel.
	
2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>

	* src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
	the spilllocations to be compared correctly

2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>

	* src/SDCCast.c (decorateType): fixed bug introduced today

2004-01-12  Borut Razem <borut.razem AT siol.net>

	* src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
	doc/sdccman.lyx: upper case pragmas are deprecated

2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>

	* src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
	in simpler and even better code

2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>

	* src/SDCCicode.c (operandOperation): fixed bug #874819
	* src/SDCCast.c (decorateType): fixed
	char foo (unsigned long ul) { return ul > 0; }

2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>

	* doc/sdccman.lyx: Moved and added some sections, small changes
	all over. Telling LaTeX to be less strict with word spacing
	to better keep the right margin. Changed some notes about
	maintainance of the ports in section 3.2.1 - is it OK like this?

2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>

	SDCC source changes:
	* src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
	convilong): modified to inform the pic16 port that builtin functions
	are external

	PIC16 PORT specific changes:
	* src/pic16/device.c pic16_dump_equates() added,
	processor registers declared internally by the port are emitted in
	the translation as equates,
	* src/pic16/gen.c: inline code is passed unprocessed to the
	translation,
	* (pic16_popGetLit2): fnuction modified to take second operand as
	pCodeOp pointer and not as literal,
	* (popRegFromIdx): prefixed with pic16_,
	* (pic16_popCombine2): modified to receive already allocated pCode
	operands,
	* (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
	* (genFunction): initializes local stack frame and pushes on stack
	all the registers used by this function,
	* (genEndFunction): restores all registers from stack and restores
	stack frame,
	* src/pic16/glue.c (pic16emitRegularMap): various changes and
	improvements,
	* (pic16glue): changed the program startup sequence,
	* added new dbName code 'A' for functions placed in absolute section
	* src/pic16/main.c: added function attribute _naked,
	* added pragma 'code' to place a fnuction at an absolute address,
	* added command line arguments --debug-ralloc and --pcode-verbose,
	* (_pic16_finiliseOptions): options.all_callee_saves is set by default
	* src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
	* (pic16_newpCodeOpLit2): modified to take the second operand as
	pCodeOp pointer,
	* (pic16_printpBlock): modified to emit each function in a separate
	section,
	* (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
	UPPER for immediate operands,
	* src/pic16/pcodepeeph.c: added peephole support for the LFSR
	instruction,
	* src/pic16/peeph.def: all peepholes with movff are commented out,
	because there is a problem in the pcode peep optimizer,
	* src/pic16/ralloc.c: the register allocator can now reuse local
	function symbols for another function. This saves register usage.
	* src/pic16/ralloc.h: added flag isLocal in structure regs,

	Added file src/pic16/NOTES with information about program writing on
	the current port version.

2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>

	* src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
	and peephole 252 (array access)

2004-01-09  Borut Razem <borut.razem AT siol.net>

	* src/SDCCmain.c : fixed #872250: -l command line defined library
	  files are scanned before standard library files

2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/SDCCast.c (decorateType): fixed bug #874046

2004-01-09  Borut Razem <borut.razem AT siol.net>

	* support/scripts/sdcc.nsi: remove previous installation

2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>

	* src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
	bytes for last interrupt vector (mcs51)
	* sdcc.spec: fixed typo

2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
	gen51Code): more efficient parameter receive for --model-large
	("bug" #845294)

2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/ds390/main.c,
	* src/z80/main.c: added missed needLinkerScript flags (more than
	one port structure defined in these file)
	* src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
	bug #795325

2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>

	* src/SDCCmain.c: removed various references to DEFAULT_PORT
	* src/port.h: added flag needLinkerScript in port->linker
	structure to inform whether to create a .lnk file or not,
	* src/avr/main.c,
	* src/ds390/main.c,
	* src/hc08/main.c,
	* src/mcs51/main.c,
	* src/pic/main.c,
	* src/pic16/main.c,
	* src/xa51/main.c,
	* src/z80/main.c: changed appropriately to configure
	needLinkerScript flag
	* src/pic/gen.c,
	* src/pic16/gen.c (genAddrOf): fixed bug #863624
	* src/pic/glue.c: added variable udata_section_name to
	override default uninitialized data segment definition for
	devices only with SHAREBANK memory (reported from Erik Epetrich)
	* (pic14emitOverlay): modified to emit a commented overlay segment
	directive when no overlay data exist
	* (picglue): modified to emit uninitialized data segment
	according to udata_section_name
	* src/pic/main.c (_pic14_parseOptions): added command line
	options --udata-section-name=[name] to override default
	udata definition name
	* modified _linkCmd and _asmCmd to include compiler passed
	arguments via -W option
	* src/pic16/main.c: added $l in _asmCmd, changed extension for
	object file from '.rel' to '.o' in port->linker structure,
	changed size of fptr from 2 to 3 in port structure

2004-01-07  Borut Razem <borut.razem AT siol.net>

	* support/scripts/sdcc.nsi: update PATH
	* support/scripts/sdcc.ico: craeted

2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>

	* device/include/Makefile.in: fix install
	* doc/Makefile: fix install

2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
	in bug #860505
	* src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
	how the function variable allocation summary is displayed; also
	include information about variables allocated to the overlay
	segment

2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>

	* as/mcs51/lkmain.c: Help about -Y option
	* as/mcs51/lkarea.c: Fixed gcc warnings

2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>

	* src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
	fixed warning
	* support/valdiag/tests/overflow.c: added
	* src/SDCCast.c (decorateType),
	* src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
	LEFT_OP (left shift)

2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>

	* as/mcs51/lkmain.c: stack must be after data when option -Y is not used
	(default behaviour).

2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	A python script to validate compiler diagnostic messages. It can be
	used to verify that sdcc complains about bad c source code and
	gives a good location of the error.
	* support/valdiag/Makefile,
	* support/valdiag/valdiag.py,
	* support/valdiag/tests/*

2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
	* src/SDCCsymt.c (newEnumType),
	* src/SDCCsymt.h
	* support/Util/SDCCerr.c,
	* support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
	enum related bugs.
	* support/regression/tests/enum.c: added test for enum values that
	require at least 2 bytes of storage.

2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>

	* src/common.h: added ifndef/define/endif macros
	around the header file.
	Bug reported from Jesus Calvino-Fraga

2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>

	* sdcc.spec: updated
	* device/include/Makefile.in: don't install CVS directories
	* device/lib/Makefile.in: added removal of CVS directories after install
	* doc/Makefile: fixed install, added local_icons
	* sim/ucsim/gui.src/Makefile.in: fixed an old typo
	* src/mcs51/gen.c (genRightShift): fixed bug #870788
	* src/ds390/gen.c (genRightShift): fixed bug #870788
	* src/SDCCast.c (decorateType): fixed bug #870781

2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>

	PIC16 port related changes:
	* device.c: removed pic16_finalMapping and pic16_finalMappingSize,
	added variable stackPos,

	* gen.c: genCall, assignResultValue: added support for
	pushing/retrieving function parameters to/from stack,
	genFunction,genEndFunction: setup stack frame for the
	generated function,
	genAddrOf: will be changed according to bug 863624

	* added files genutils.c and genutils.h which contain gen*
	debugged and optimised functions extracted from gen.c
	
	* glue.c: added variable 'externs' which holds extern symbols,
	pic16emitRegularMap: is modified to properly handle relocatable
	 symbols under the new scheme,
	pic16createInterruptVect: is modified
	pic16printPublics: is modified to emit 'global'	assembler directives,
	added pic16_printExterns to print extern symbols,
	pic16glue: initializes stack/frame pointer in the beginning of
	the assembly output. Temporary hack, will be corrected later,
	because gplink yet does not support stack and SDCC does not
	yet support a type of crt0.o object to create the final binary.
	
	* Removed many lines that contain 8051 legacy code.
	* The code is finally placed under a 'code' directive.
	* Added port specific options.
	
	* _process_pragma: simplified since now we do not need *special*
	include file to define SFR registers. But a separate header
	will be needed. This will be developed later.
	* _pic16_parseOptions: added, parses port specific options:
	--pgen-banksel,	--obanksel=, --pomit-config-words, --pomit-ivt,
	--pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
	--preplace-udata-with=
	
	* _pic16_setDefaultOptions: modified to initialize section names,
	but hack is temporarly out of order since it needs improvement.
	* _pic16_genAssemblerPreamble: configuration words are emitted by
	their address instead of their name. This part is incomplete and
	supports only the 18Fxx2 devices. Other devices will emit an error
	during assembly since they do not contain the same set of config
	registers
	* _pic16_genIVT: is modified,
	
	* pcode.c: added definitions for some hardware registers that are needed
	for stack support
	* added flag is2LitOp and variable pci_magic in pCodeInstruction.
	All PCI entries are updated. Now LFSR is supported.
	* Removed pic16_pciTRIS is mentioned by mdubuc in source
	* added pic16_newpCodeOpLit2 to support instructions with
	two literal arguments
	* pic16_pCode2str: corrected code that emits assembler instructions
	with two literal operands and those that have an access bit modifier
	* genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
	this fixes a bug which caused some labels to be lost, when an
	assembler directive was added, i.e. banksel,
	* pic16_FixRegisterBanking: improved logic that causes the insertion
	of bank switching,
	* InlineFunction: functions that are called once, are not any more
	inlined. This can be a port option in the future,
	
	* pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
	
	* ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
	hold the corresponding uninitialized symbols,
	* pic16_allocProcessorRegister: registers have explicit marked the
	accessBank field,
	* pic16_allocInternalRegister: registers are explicit marked as
	not used,
	* pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
	processing list, so bit registers were lost,
	* 

	* ralloc.h: added field 'accessBank' and original symbol operand
	in register definition,
	* removed the field isMapped from register definition,

	** Several functions have been removed from various sources:
	BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
	pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
	isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
	pic16_assignRelocatableRegisters
	
	** others have been introduced:
	pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
	pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
	
2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>

	* support/scripts/inc2h.pl: changed definition of BIT_AT
	to emit 'sbit at' instead of 'bit at'. This was a request.

	PIC16 port related preliminary changes:
	* gen.c: prefixed function popRegFromString with
	pic16_ and all references to it corrected
	* pcode.c: all pic16_pc_* hardware registers prefixed
	with underscore (_),
	pic16_popCopyGPR2Bit(): function sets register wasUsed=1
	* ralloc.c: newReg(): when register is REG_SFR then
	set address to rIdx,
	pic16_allocProcessorRegister(): marks register wasUsed=0
	pic16_writeUsedRegs(): added a call to assign processor
	registers via pic16_assignFixedRegisters

2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>

	* as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
	as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
	variables in unused register banks.  Also the SSEG is placed
	wherever there is enough space for it, and IDATA can be anywhere
	in internal RAM.  For now compile using	-Wl-Y[stack_size].
	The mem file is different for this option as well, since it
	makes no sense of talking about DSEG lenght.

2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>

	* src/SDCClrange.c: fixed bug 869095 that caused segfault
	in certain cases, e.g. when ROM assignment, patch provided
	from Albert den Haan.

2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>

	Many signedness and type propagation fixes:
	* src/SDCCicode.c: made geniCodeCast() static
	replaced SPEC_ by IS_ (cosmetic)
	(operandOperation): fixed div and mod operation
	(usualBinaryConversions): added support for promotion of char
	(geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
	(geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
	(geniCodeAdd): an array index will stay unsigned, even if promoted
	from char to int
	(geniCodeArray): ditto
	* src/SDCCicode.h: made geniCodeCast() static: removed prototype
	* src/SDCCsymt.c (computeType): added more support for char;
	promotion of char is selectable by promoteCharToInt, fixed signedness
	for all cases
	(powof2): replaced (unsigned long) by (TYPE_UDWORD)
	* src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
	* src/SDCCval (val*): replaced signedness calculation by
	computeType()
	rearranged if-branches (cosmetic)
	(valShift): added warning W_SHIFT_CHANGED
	(valCompare): fixed problem with different types
	* src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
	* support/regression/tests/literalop.c: added many cases
	* support/regression/tests/ast_constant_folding.c: changed finally to
	'unsigned int'
	* .version: new year, new version: 2.3.7
	* src/SDCCmain.c (main): applied patch #866468
	* debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
	provided by Scott Bronson
	* doc/sdccman.lyx: updated documentation for sdcdb
	updated and added chapter tips

2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/SDCCsymt.h: missing from yesterday's commits

2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/SDCC.y (struct_or_union_specifier),
	* support/Util/SDCCerr.c,
	* support/Util/SDCCerr.h: verify that struct & union tags are used
	as declared.

2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/SDCCglobl.h: missing from yesterday's commits

2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
	sft_attributes, struct_declaration, parameter_declaration,
	type_name, start_block, declaration_list),
	* src/SDCC.lex (check_type): support redefinition of typedef names

2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>

	* src/mcs51/gen.c (genPlus): added special handling for 256 byte
	aligned xdata arrays. Erik helped me with the if clause.

2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
	warning

2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/SDCCast.h,
	* src/SDCCast.c (newAst_),
	* src/SDCCicode.h,
	* src/SDCCicode.c (ast2iCode, newiCode),
	* src/SDCCglobl.h,
	* src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
	expr, statement, expression_statement, selection_statement,
	iteration_statement, expr_opt, jump_statement): foundation for tracking
	sequence points
	* src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
	point code too)

2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* support/Util/SDCCerr.c,
	* src/SDCCast.h,
	* src/SDCCast.c (createCase, createDefault, decorateType),
	* src/SDCClabel.c (labelUnreach),
	* src/SDCC.y (labeled_statement, jump_statement): More improvements
	to error messages.
	* support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
	(with thanks to Stas Sergeev)
	* device/include/time.h,
	* device/lib/time.c (CheckTime): suppress unreachable code warning

2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/SDCCast.c (createIvalCharPtr),
	* src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
	bug #753752)
	* support/regression/tests/nullstring.c: tests for these two bugs

2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* support/Util/SDCCerr.h,
	* support/Util/SDCCerr.c (E_NOT_ALLOWED),
	* src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
	about storage class and 'at' used inside struct or union
	* src/SDCCBBlock.c (iCodeFromeBBlock),
	* src/SDCCcse.c (ifxOptimize),
	* src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
	printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
	printIval, emitStaticSeg, emitOverlay),
	* src/SDCClabel.c (deleteIfx),
	* src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
	* src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
	gatherAutoInit, processParms),
	* support/Util/SDCCerr.h,
	* support/Util/SDCCerr.c (werrorfl): Support for better error location
	reporting for post-parse errors.

2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
	implicit casts via union; they don't work on big endian systems
	(possible fix for bug #861138)

2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>

	(committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
	* src/mcs51/main.c: fixed the fix for bug #737001

2003-12-15  Borut Razem <borut.razem AT siol.net>

	* support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4

2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* support/makebin/makebin.c: put output in binary mode

2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>

	* src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
	xdata and data memory on startup. Set the environment variable
	SDCC_NOGENRAMCLEAR to disable this.
	* src/mcs51/peephole.def,
	* src/ds390/peephole.def: using the atomic test and clear instruction jbc
	(allows non-interrupt and interrupt code to safely compete for a resource
	without the non-interrupt code having to disable interrupts)

2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/SDCCicode.c (geniCodeAdd),
	* src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
	with valFromType if type might be a pointer and host is big endian).
	* src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
	types, not just integer types.
	* src/SDCCsymt.c (addSymChain): clarified error message when symbol is
	multiply defined with mismatching "at" address.

2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/ds390/main.c (PORT tininative_port): fixed bug #858416
	* src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
	* src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
	with embedded nulls (fixed bug #753752)

2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>

	* src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
	Apparently this did not see much testing (endless loop)

2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165

2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
	gracefully handle NULL memmap pointers

2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
	instead of deleting the iCode when an operand is volatile
	* src/z80/gen.c (genDummyRead),
	* src/mcs51/gen.c (genDummyRead),
	* src/ds390/gen.c (genDummyRead),
	* src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
	not just IC_RIGHT
	* src/SDCCicode.c (geniCodeCall): fixed bug #851607
	* src/SDCC.y: fixed bug #850420

2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	Applied z80 i/o port patch from Peter Townson and fixed some operators
	to better handle operands in A register.
	* device/include/z180.h
	* src/SDCC.y
	* src/SDCCglue.c
	* src/z80/gen.c
	* src/z80/gen.h
	* src/z80/main.c
	* src/z80/peeph-z80.def
	* src/z80/peeph.def
	* src/z80/z80.h

2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again

2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* device/lib/hc08/_mullong.c: Removed extra #endif

2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* sim/ucsim/hc08.src/inst.cc,
	* sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
	carries from x to h
	* src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
	* src/hc08/gen.c (XAccRsh): fixed problem with right shift
	* device/include/stdarg.h: fixed varargs for hc08
	* device/lib/Makefile.in,
	* device/lib/hc08/Makefile,
	* device/lib/hc08/_mulint.c,
	* device/lib/hc08/_mullong.c: fixed some endian problems

2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>

	* sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
	* sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
	* device/lib/_gptrget.c,
	* device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)

2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
	* src/SDCCast.c (astErrors): fixed bug #846007
	* src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007

2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/SDCCast.c (decorateType): disabled a transformation I added in
	revision 1.188 (access to fields of a structure at an absolute address);
	it breaks with bitfields, extern declarations, and gcse analysis.
	* src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
	could be assigned through a pointer, so don't complain.
	* src/SDCCast.c (astErrors),
	* src/SDCCast.h,
	* src/SDCCglue.c (emitRegularMap): fixed bug #847813

2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
	
	* src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
	* src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
	output of __config directives, since gpasm now supports them
	* src/pic16/main.c (_pic16_finaliseOptions): define MCU
	pre-processor macro, i.e. -DMCU=p18f452
	* src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
	and modified to handle 'cast' icode similarly to '=' icode
	* src/pic16/device.h (typedef struct PIC_device): added field
	'extMIface' to indicate that chip has external memory interface
	* src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
	18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
	18F8720

2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/SDCC.y (pointer): fixed bug #846006
	* support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
	* src/SDCCast.c (decorateType): fixed bug #846009
	* src/ds390/peeph.def,        
	* src/ds390/gen.c (genAnd, genOr),
	* src/mcs51/peeph.def,        
	* src/mcs51/gen.c (genAnd, genOr): fixed bug #846777

2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
	* src/SDCCdflow.c
	* src/SDCCcse.c
	* src/SDCCcse.h
	* src/SDCCBBlock.h
	* src/SDCCBBlock.c

2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>

	fixed bug #845089
	* src/SDCCbitv.h,
	* src/SDCCbitv.c: added function to free a bitvector
	* src/SDCClrange.h,
	* src/SDCClrange.c: added function to recompute the liveranges
	* src/avr/ralloc.c,
	* src/ds390/ralloc.c,
	* src/hc08/ralloc.c,
	* src/mcs51/ralloc.c,
	* src/pic/ralloc.c,
	* src/pic16/ralloc.c,
	* src/xa51/ralloc.c,
	* src/z80/ralloc.c: recompute the liveranges after register packing

2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>

	* src/SDCCloop.c (newInduction): fixed bug #845630

2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/SDCCsymt.c (compareTypesExact): disabled debugging output
	inadvertantly left behind from my 2003-11-12 change

2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	Updated headers I neglected to commit yesterday.
	* src/SDCClrange.h,
	* src/SDCCicode.h

2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/SDCCcse.c (algebraicOpts): fixed bug #773153
	* src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
	* src/SDCCopt.c (eBBlockFromiCode),
	* src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
	the creation of the key hash table from the sequencing so it can be used
	earlier (for some GCSE bug fixes still pending)

2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>

	* src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
	* support/regression/tests/addsub.c: testing genPlus shortcut

2003-11-15  Borut Razem <borut.razem AT siol.net>

	* src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp

2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/SDCCcse.c (cseBBlock): fixed bug #527779
	* src/SDCCcse.c (deleteGetPointers): rewrote so that the set
	ordering is immaterial.
	* src/SDCCdflow.c (mergeInExprs): fixed bug #587536

2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
	
	* src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
	* src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
	(SIGSEV) of bug #840381
	* src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
	unlink new file before rename if new and old filenames are the same)

2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>

	* src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
	uninitialized variables) for the mcs51. Set environment variable 
	SDCC_GENRAMCLEAR to test. 
	xdata initialization slightly shorter

2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/SDCCsymt.h,
	* src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
	#838241 & 780691 (basicly the same bug)
	* src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
	* src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162

2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>

	* src/SDCCmain.c (linkEdit): "fix" #834252

2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
	* src/SDCCast.h,
	* src/SDCC.y: fixed bug #819403

2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
	the reentrant attribute.
	* src/hc08/gen.c (genPackBits): added missing stack readjustment
	* sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
	simulation
	* src/SDCCast.c (decorateType): fixed bug with storage class not being
	updated during pointer dereference; f.e. ~(((char *)1)*) was being
	erroneously reduced to a literal.
	* src/hc08/ralloc.c (packRegisters, rematStr),
	* src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
	some cases

2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>

	* 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 <bernhard AT bernhardheld.de>

	* 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 <Frieder.Ferlemann AT web.de>

	* 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 <epetrich AT ivorytower.norman.ok.us>

	* 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 <borut.razem AT siol.net>

	* 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 <epetrich AT ivorytower.norman.ok.us>

	* 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 <epetrich AT ivorytower.norman.ok.us>

	* 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 <epetrich AT ivorytower.norman.ok.us>

	* 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 <borut.razem AT siol.net>

	* 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 <bernhard AT bernhardheld.de>

	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 <jesusc AT ece.ubc.ca>

	* 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 <Martin.Helmling AT octo-soft.de>

        * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)

2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>

        * src/SDCCmain.c (linkEdit): "fixed" again bug #833605

2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>

	* src/mcs51/main.c: xdata initialization is 13 bytes shorter now

2003-10-31  Borut Razem <borut.razem AT siol.net>

	* 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 <borut.razem AT siol.net>

	* 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 <epetrich AT ivorytower.norman.ok.us>
	
	* as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning

2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>

	* src/SDCCcse.c (updateSpillLocation): fixed bug #808027

2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>

	* src/SDCCmain.c (linkEdit): "fixed" bug #833605
	* src/SDCCast.c (decorateType): fixed bug #832664

2003-10-31  Borut Razem <borut.razem AT siol.net>

	* 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 <borut.razem AT siol.net>

	* src/SDCC.lex: sdcc now understands both formats:
	  '# <line_number> <file_name>' and
	  '#line <line_number> <file_name>'
	* support/cpp2/cppmain.c: sdcpp now generates the standard
	  '# <line_number> <file_name>' instead of former
	  '#line <line_number> <file_name>'

2003-10-30  Borut Razem <borut.razem AT siol.net>

	* 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 <epetrich AT ivorytower.norman.ok.us>

	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 <bernhard AT bernhardheld.de>

	* .version: bumped to 2.3.6 to reflect the big improvements
	made by Erik and Klaus. Thanks!

2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>

	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 <epetrich AT ivorytower.norman.ok.us>

	* 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 <epetrich AT ivorytower.norman.ok.us>

	* src/z80/ralloc.c (joinPushes): Fixed bug #828742

2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* 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 <epetrich AT ivorytower.norman.ok.us>

	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 <borut.razem AT siol.net>

	* src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31

2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* 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 <bernhard AT bernhardheld.de>

	* src/SDCCval.c (valMinus): fixed bug #826041

2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	Some hc08 related updates that I missed earlier
	* sim/ucsim/stypes.h
        * support/regression/ports/hc08/spec.mk

2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	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 <epetrich AT ivorytower.norman.ok.us>

	* 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 <bernhard AT bernhardheld.de>

	* 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 <bernhard AT bernhardheld.de>

	* src/mcs51/gen.c (genCpl): fixed bug
	http://sf.net/mailarchive/message.php?msg_id=6263915

2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>

	* 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 <epetrich AT ivorytower.norman.ok.us>

	* src/SDCCmain.c: removed some unintended changes

2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* 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 <bernhard AT bernhardheld.de>

	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 <borut.razem AT siol.net>

	* src/SDCC.lex: removed definition of unused variables
	  save_optimize and save_options

2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>

	* 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 <borut.razem AT siol.net>

	* src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
	  my_unput() replaced by unput()

2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>

	* 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 <borut.razem AT siol.net>

	* 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 <Frieder.Ferlemann AT web.de>

	* doc/sdccman.lyx: various additions and updates (interrupts, inline
	  assembly, critical functions, atomic, nojtbound)

2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>

	Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
	* src/SDCCBBlock.h
	* src/SDCCloop.c
	* src/SDCCloop.h
	* src/SDCClrange.c

2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* 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 <epetrich AT ivorytower.norman.ok.us>

	* 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 <epetrich AT ivorytower.norman.ok.us>

	* src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
	the other part of bug #814548
	* src/SDCCpeeph.c (labelInRange): fixed bug #814558

2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>

	* src/SDCCcse.c: fixed part of bug #814548

2003-09-28  Borut Razem <borut.razem AT siol.net>

	* 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 <epetrich AT ivorytower.norman.ok.us>

	* src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206

2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
	* src/asm.c (printILine): Fixed bug #811015

2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>

	*link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
	freeing.

2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* 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 <epetrich AT ivorytower.norman.ok.us>

	* src/mcs51/ralloc.c (fillGaps),
	* src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
	register positioning bug)

2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>

	* device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)

2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* 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 <jesusc AT ece.ubc.ca>

	*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 <epetrich AT ivorytower.norman.ok.us>

	* src/SDCCsymt.c (structElemType): fixed bug #808291 (members
	of const struct should be treated as if const themselves)

2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>

	* src/SDCCval.c (valPlus, valMinus): fixed bug #808337

2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>

	* support/librarian/sdcclib.c: Generate correct offsets for libraries with
	Unix (/n) and DOS (/r/n) line terminations.

2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
	bug #613775

2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* 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 <bernhard AT bernhardheld.de>

	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 <epetrich AT ivorytower.norman.ok.us>

	* 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 <bernhard AT bernhardheld.de>

	* 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 <epetrich AT ivorytower.norman.ok.us>

	* src/z80/gen.c (genXor): Fixed bug #805445

2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	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 <jesusc AT ece.ubc.ca>

	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 <epetrich AT ivorytower.norman.ok.us>

	* src/SDCCicode.c (geniCodeLogic): fixed bug #797572

2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* 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 <epetrich AT ivorytower.norman.ok.us>

	* 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 <bernhard AT bernhardheld.de>

	* src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
	compilers

2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/SDCCast.c (isConformingBody): fixed loop reversal bug
	reported in bug #800609

2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>

	* 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 <bernhard AT bernhardheld.de>

	* device/lib/_mullong.c: replaced int by short for gcc

2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* 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 <vrokas AT otenet.gr>

	* 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 <bernhard AT bernhardheld.de>

	* 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 <Frieder.Ferlemann AT web.de>

	* doc/sdccman.lyx: reverted tables to those in cvs 1.64

2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>

	* device/lib/_startup.c: quick & dirty fix for ds390/ds400;
	these ports have their own __sdcc_external_start()

2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>

	pic patch provided by Slade Rich <slade_rich AT yahoo.com>
	* 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 <Frieder.Ferlemann AT web.de>

	* doc/sdccman.lyx: various additions and updates. Rearranged sections

2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>

	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 <epetrich AT ivorytower.norman.ok.us>

	A few small changes that speed up the peephole optimizer.

	* src/SDCCpeeph.c

2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	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 <epetrich AT ivorytower.norman.ok.us>

	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 <epetrich AT ivorytower.norman.ok.us>

	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 <bernhard AT bernhardheld.de>

	pic patch provided by Slade Rich <slade_rich AT yahoo.com>
	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 <epetrich AT ivorytower.norman.ok.us>

	* src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454

2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	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 <Frieder.Ferlemann AT web.de>

	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 <epetrich AT ivorytower.norman.ok.us>

	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 <epetrich AT ivorytower.norman.ok.us>

	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 <bernhard AT bernhardheld.de>

	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 <epetrich AT ivorytower.norman.ok.us>

	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 <epetrich AT ivorytower.norman.ok.us>

	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 <bernhard AT bernhardheld.de>

	* 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 <epetrich AT ivorytower.norman.ok.us>

	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 <bernhard AT bernhardheld.de>

	* src/SDCCval.c (valMult): fix overflow detection of negative int

2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* 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 <bernhard AT bernhardheld.de>

	* 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 <bernhard AT bernhardheld.de>

	* 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 <jesusc AT ece.ubc.ca>

	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 <bernhard AT bernhardheld.de>

	* src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>

2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>

	* support\librarian\clean.mk: Do not remove Makefile.
	* support\librarian\Makefile: added.

2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>

	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 <bernhard AT bernhardheld.de>

	* 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 <jesusc AT ece.ubc.ca>

	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 <jesusc AT ece.ubc.ca>

	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 <jesusc AT ece.ubc.ca>

	*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 <bernhard AT bernhardheld.de>

	* src/z80/mappings.i: fix _mul[us][int,long] entries

2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>

	*src/SDCCmain.c: do not search for crt0.o when using --nostdlib

2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>

	* 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 <jesusc AT ece.ubc.ca>

	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 <bernhard AT bernhardheld.de>

	* 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 <bernhard AT bernhardheld.de>

	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 <jesusc AT ece.ubc.ca>

	* as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
	"Insufficient space in data memory".

2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>

	* src/mcs51/gen.c: fixed bug #771358
	* src/z80/gen.c: fixed bug #759087

2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>

	* src/pic16/glue.c: minor cleanup by Vangelis

2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>

        * 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 <epetrich AT ivorytower.norman.ok.us>

	* src/z80/gen.c: fixed some right shift bugs (#772726 among them)

2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>

    * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.

2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>

	* device/lib/Makefile.in: bad fix, reverted to 1.43

2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>

	* device/lib/Makefile.in: added missing z80 object files

2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>

	* 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 <jesusc AT ece.ubc.ca>

    * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0

2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>

    * 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 <jesusc AT ece.ubc.ca>

    * 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 <jesusc AT ece.ubc.ca>

    * as/mcs51/lkmain.c: properly handle extensions in function afile.

2003-07-02  Borut Razem <borut.razem AT siol.net>

	* 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 <kevin AT vigor.nu>

        * DS800C400 fun, improved ROM interface and tinibios.

2003-06-27 Kevin Vigor <kevin AT vigor.nu>

	* More support for DS80C400. Now includes beginning of interface to ROM.

2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>

	* src/mcs51/gen.c (gencjneshort): fixed bug #760345

2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>

	* as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.

2003-06-19  Borut Razem <borut.razem AT siol.net>

	* src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line

2003-06-19  Borut Razem <borut.razem AT siol.net>

	* 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 <bernhard AT bernhardheld.de>

	* support/Util/MySystem.c (merge_command): revert bad fix

2003-06-18  Borut Razem <borut.razem AT siol.net>

	* src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003

2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>

	* src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
	option --use-stdout sends errors to stdout instead of stderr.

2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>

	* support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg

2003-06-15  Borut Razem <borut.razem AT siol.net>

	* 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 <bernhard AT bernhardheld.de>

	* src/pic16/ralloc.c: fix warnings
	* src/pic16/pcode.c: fix warning

2003-06-10  Scott Dattalo  <scott AT dattalo.com>

	 Scott D. for Vangelis Rokas (vrokas AT 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 <jesusc AT ece.ubc.ca>

	* 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 <jesusc AT ece.ubc.ca>

	* device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
	  device/lib/libfloat.lib: added atof function.

2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>

	* 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 <bernhard AT bernhardheld.de>

	* src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>

2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>

	* doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
          additions to the "related tools/documentation" section

2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>

	* src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable

2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>

	* src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
	* src/SDCCcse.c (algebraicOpts): fixed "c * 1"

2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>

	* 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 <Frieder.Ferlemann AT web.de>

	* 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 <Frieder.Ferlemann AT web.de>

	* doc/sdccman.lyx: Manual has an index now

2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>

	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 <jesusc AT ece.ubc.ca>

	* 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 <Frieder.Ferlemann AT web.de>

	* 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 <jesusc AT ece.ubc.ca>

	 * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
	 
2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>

	* src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning

2003-05-21    <johan AT balder>

	* src/SDCCglue.c (printIval): fixed bug #739934

2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>

	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  <scott AT dattalo.com>

	* src/pic16/pcode.c: Cleaned warnings
	* src/pic16/pcodepeep.c: Cleaned warnings
	* src/pic16/ralloc.c: Cleaned warnings

2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>

	* doc/sdccman.lyx: fixed bug 739745
	* src/pic16/pcode.c (pic16_get_op): fixed warning on alpha

2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>

	* 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 AT 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    <johan AT balder>

	* 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 <bernhard AT bernhardheld.de>

        * 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 <bernhard AT bernhardheld.de>

	* 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 <borut.razem AT siol.net>

	* src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix

2003-05-11  Borut Razem <borut.razem AT siol.net>

	* 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 <bernhard AT bernhardheld.de>

	* 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    <johan AT balder>

	* 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 <bernhard AT bernhardheld.de>

	* 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 <bernhard AT bernhardheld.de>

	* support/regression/tests/float.c: workaround 33 bit hex constant
	* support/regression/tests/simplefloat.c: fix division for host

2003-04-29  Scott Dattalo  <scott AT dattalo.com>

	* src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
	that tame's the PIC's over-aggressive optimizer.

2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>

	 * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
	 support for MSVC.
	 
2003-04-29  Kevin Vigor <kevin AT vigor.nu>

	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  <scott AT DATTALO.COM>

	* 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 <bernhard AT bernhardheld.de>

	* debugger/mcs51/cmd.c: added header newalloc.h

2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>

	* 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 <bernhard AT bernhardheld.de>

	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 <bernhard AT bernhardheld.de>

	* as/Makefile: fix target clean
	* as/clean.mk: fix target clean
	* as/z80/clean.mk: fix target clean

2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>

	* Makefile.common.in: added  AT EXEEXT AT 
	* 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  <scott AT dattalo.com>

	* 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 <borut.razem AT siol.net>

	* 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 <borut.razem AT siol.net>

	* "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 <bernhard AT bernhardheld.de>

	* 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 <kevin AT vigor.nu>

	* src/SDCCopt.c: add special case optimization to replace modulo by
	  a power of two with a bitwise AND.

2003-04-18    <johan AT balder>

	* src/mcs51/gen.c (getFreePtr): fixed bug #635354

2003-04-17    <johan AT balder>

	* 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 <borut.razem AT siol.net>

	* 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 <borut.razem AT siol.net>

	* 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 <bernhard AT bernhardheld.de>

	* 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 <borut.razem AT siol.net>

	* 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 <bernhard AT bernhardheld.de>

	* src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha

2003-04-11 kevin Vigor <kevin AT vigor.nu>

	* ds390/gen.c ds390/peeph.def: fix bug 706781

2003-04-11  Borut Razem <borut.razem AT siol.net>

	* 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  <scott AT dattalo.com>

	* 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    <johan AT CP255758-A>

	* 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 <bernhard AT bernhardheld.de>

	* 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 <paul AT pjrc.com>

	* src/SDCCpeeph.c: added okToRemoveSLOC test

2003-04-06    Paul Stoffregen <paul AT pjrc.com>

	* device/lib/printf_fast.c: added leading zero format ("%06d", etc)

2003-04-06    Paul Stoffregen <paul AT pjrc.com>

	* src/SDCCpeeph.c: added labelIsReturnOnly test
	* src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret

2003-04-05    <johan AT balder>

	* 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    <johan AT balder>

	* 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    <johan AT balder>

	* 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 <bernhard AT bernhardheld.de>

	* _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 <bernhard AT bernhardheld.de>

	* 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    <johan AT balder>

	* 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 <bernhard AT bernhardheld.de>

	* 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 <borut.razem AT siol.net>

	* 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 <bernhard AT bernhardheld.de>

	* Makefile, src/Makefile.in: add dependencies, so that 'make -j' works

2003-03-30  Borut Razem <borut.razem AT siol.net>

	* 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  <scott AT dattalo.com>

	* src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> 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 <bernhard AT bernhardheld.de>

	* support/Util/dbuf.h: remove C++ stuff to make it portable

2003-03-28  Borut Razem <borut.razem AT siol.net>

	* 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 <paul AT pjrc.com>

	* src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51

2003-03-26    <johan AT balder>

	* 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 <bernhard AT bernhardheld.de>

	* 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 <Frieder.Ferlemann AT web.de>

	* 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    <johan AT balder>

	* src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231

2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>

	* 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 <bernhard AT bernhardheld.de>

	* src/mcs51/peeph.def: fix bug #705773

2003-03-20    <johan AT balder>

	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 <bernhard AT bernhardheld.de>

	* src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek

2003-03-16    <johan AT balder>

	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 <bernhard AT bernhardheld.de>

	* src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
	* src/ds390/gen.c (genAddrOf): fixed bug #704087

2003-03-13    <johan AT 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 AT 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 AT 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 AT 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 AT 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 AT vigor.nu>

	* src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
	with shorter literals. Fixes bug 700121.

2003-03-11    <johan AT balder>

	* src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer

2003-03-11  Bernhard Held <bernhard AT 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 AT 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 AT 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 AT bernhardheld.de>

	* src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers

2003-03-09  Borut Razem <borut.razem AT 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 AT 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 AT web.de>

	* src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01

2003-03-08  Bernhard Held <bernhard AT 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 AT 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 AT 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 AT 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 AT bernhardheld.de>

	* src/mcs51/gen.c (genMinus): fixed bug 696436

2003-03-02  Borut Razem <borut.razem AT siol.net>

	* src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()

2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>

	* configure.in: test for mkstemp
	* sdccconf_in.h: add HAVE_MKSTEMP

2003-02-24  Bernhard Held <bernhard AT 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 AT 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 AT 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 AT 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 AT 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 AT 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 AT 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 AT balder>

	* src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm

2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>

	* doc/sdccman.lyx: Environment variables, -o and other minor things

2003-02-14    <johan AT 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 AT bernhardheld.de>

	* support/regression/ports/host/spec.mk: use cc as host compiler for max osx

2003-02-10  Borut Razem <borut.razem AT 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 AT bernhardheld.de>

	* doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT 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 AT bernhardheld.de>

	* src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS

2003-02-09  Bernhard Held <bernhard AT 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 AT 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 AT ece.ubc.ca>

	* as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
	patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
	Address Record is not correctly generated for DS390."

2003-02-02  Borut Razem <borut.razem AT 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 AT 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 AT 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 AT ece.ubc.ca>

	* src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
	area 'DATA'"

2003-02-01    <johan AT balder>

	* src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"

2003-01-31    <johan AT CP255758-A>

	* src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch

2003-01-30    <johan AT balder>

	* src/SDCCBBlock.c: automatic bug detection
	* src/SDCCicode.c: automatic bug detection

2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>

	* src/SDCCglobl.h:   now --xram-size 0 works
	* src/SDCCmain.c:    now --xram-size 0 works

2003-01-29    <johan AT 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 AT 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 AT 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 AT balder>

	* src/SDCC.y: fixed bug #613764

2003-01-26    <johan AT 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 AT 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 AT 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 AT 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 AT 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 AT 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

2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>

	* src/mcs51/peeph.def: better assembler identation by Frieder
	* src/mcs51/gen.c: better assembler identation by Frieder

2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>

	* as/z80/string.h: removed for gcc 3.2
	* support/makebin/makebin.c: #include <string.h> for gcc 3.2
	* src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2

2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>

	* src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
	* src/SDCCpeeph.c (replaceRule): fix bug #663503
	* support/regression/Makefile: separate temp files for ports
	* support/regression/generate-cases.py: separate temp files for ports
	* src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
	* src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b

2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>

	* moved tinitalk to device/examples/ds390

2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>

	* as/mcs51/lkmem.c: rflag is for DS390
	* src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
	* src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
			 (linkEdit): move mem- and map-files the same way as ihx-files
	* src/z80/main.c (_setDefaultOptions): removed --generic
	* src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
	* src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
	* src/pic/glue.c (picglue): --c1mode works again
	* src/pic16/glue.c (pic16glue): --c1mode works again
	* src/asm.c (printCLine): fix #660034

2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>

	* src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
	* src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
	* src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
	* as/mcs51/lkmem (summary): better fix for sp problem
	* src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
	* src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
	* support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
					      remove --stack-after-data

2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>

	* src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
	* src/SDCCutil.c (join): ugly bug: missing '\0'
	* as/mcs51/lkmem.c (summary): sp on address 7 is safe

2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>

	* src/SDCCmain.c (assemble, linkEdit): preparations for -o
	* src/port.h: typo
	* src/pic/main.c (_asmCmd): gpasm supports -o
	* src/z80/main.c: more general macros
	* device/lib/Makefile.in: remove intermediate files

2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>

	* .version: Bumped version number to 2.3.3
	* src/SDCCBBlock.c: new option -o
	* src/SDCCglobl.h: new option -o
	* src/SDCCglue.c: new option -o
	* src/SDCCmain.c: new option -o
	* src/asm.c: new option -o
	* src/ds390/main.c: new option -o
	* src/pic/glue.c: new option -o
	* src/pic/pcode.c: new option -o
	* src/pic/ralloc.c: new option -o
	* src/pic16/glue.c: new option -o
	* src/pic16/pcode.c: new option -o
	* src/pic16/ralloc.c: new option -o
	* src/z80/main.c: new option -o
	* device/lib/Makefile.in: use -o
	* support/regression/ports/ds390/spec.mk: use -o
	* support/regression/ports/gbz80/spec.mk: use -o
	* support/regression/ports/mcs51/spec.mk: use -o
	* support/regression/ports/mcs51-stack-auto/spec.mk: use -o
	* support/regression/ports/z80/spec.mk: use -o
	* support/regression/ports/ucz80/spec.mk: use -o
	* support/regression/ports/xa51/spec.mk: use -o
	* support/regression/fwk/lib/timeout.c: fix usage string

2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
	* src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
	
2003-01-07    <johan AT balder>

	* src/SDCCast.c (decorateType): fixed bug #600035

2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
	* as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
	* as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
	* src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
	* src/pic/pcode.c: outcommented unused variable to remove warnings
	* src/pic/ralloc.c: outcommented unused variable to remove warnings

2003-01-06    <karl AT turbobit.com>
	* sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
   regression tests.

2003-01-06    <johan AT balder>

	* src/SDCCicode.c: fixed array add

2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
	* src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
	* support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2

2003-01-04    <johan AT balder>

	* src/SDCCval.c (getNelements): fixed the initialized array of structures

2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
        * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o

2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
	* src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
	* support/regression/tests/bug-524697.c: fit mem usage into 8032

2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
	* src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"

2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
        * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o

2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
	* src/mcs51/main.c: removed {bindir}{sep} from aslink

2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>

    * in \sdcc\as\mcs51\ changed these files in order to create an
    aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
    lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the 
    following files to include the previous two files: aslink.dsp,
    Makefile.aslink, Makefile.bcc, and Makefile.in.

    * Changed \sdcc\src\SDCCmain.c so it creates files with extension
    .adb instead of .cdb
    
2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>

	* \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
	value from option --iram-size.

2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>

	* \sdcc\as\mcs51\lklist.c: added boundary check before using
	dram[] array.

2002-09-18    <wiml AT hhhh.org>

	* SDCClrange.h: exposed setFromRange() and setToRange()
	* mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
	  packRegsForAccUse() (bug 542397)
	* mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
	  multiple times and emitting the fetch operations more than once
	  added aopGetUsesAcc() function to allow binary operators to
	  fetch their operands in the correct order; made genMinus() emit
	  compact code for X = LITERAL - Y 

2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
	* \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
	sprintf() in line 1267.

2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
	* \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
	like ports.

2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
	Changes to aslink (All the changes are marked with 'JCF'):

	* \sdcc\as\mcs51\aslink.h: External definition of sflag and
	summary().

	* \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
	area BSEG.  Also moves, if possible, the DATA area down into the internal
	ram so more space is available.

	* \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
	sflag.

	* \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
	not bytes.  Function summary() which creates a memory usage summary
	file with extension .mem.  Reports of overlaping stack and small stack
	size.  If the space for the stack is less than 16 bytes aslink trows a
	warning.
	
	* \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
	the 8051.  Option 'y' for memory summary output file.

	Changes to sdcc (All the changes are marked with 'JCF'):

	* \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].

	* \sdcc\src\SDCCglue.c:  If a register bank is used, creates an
	overlaying area	for it (uses RegBankUsed[4]).

	* \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
	bank zero as used by default.  By default aslink locates the stack
	(equivalent to --stack-after-data).  Pass option 'y' to aslink for
	the creation of the .mem file.  Delegates the allocation of data area
	to aslink (it is not longer 0x30 by default).  If --stack-loc passes
	the begining of the stack area to aslink.

	* \sdcc\src\SDCCmem.c:  If a register bank is used, marks it so
	glue() in SDCCglue.c creates an area for it.
	
2002-09-03  Borut Razem <borut.razem AT siol.net>
	* sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
	sdcc/src/pic/glue.c:
	introduced atexit() handler for teporay files removal in case of
	errors, assertions, ...

2002-08-29  Borut Razem <borut.razem AT siol.net>
	* sdcc/support/cpp2/auto-host_vc_in.h:
	re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
	with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
	Maybe there is a similar problem with BORLANDC? It should be checked!

	* sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
	corrected improper use of assert: the assignment to clr variable was done inside the assert.
	In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
	was not executed, and the compiler (cl) launched a warning:
	ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized

2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
	* src/SDCCglue.c (printIvalArray): iterative calculation of array length

2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
	* sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects

	* sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
	  sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
	  sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
	  sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
	  sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
	  sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
	  sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
	- added Release configuration in VS projects
	- review of compiler an linker options
	- VC .exe files are generated in bin_vc directory, not to interfere
	  with binaries generated from other projects (cygwin, mingw, bcc ...)

	* sdcc/src/yacc.dsp: added

	* sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
	added - genarate sdcc_vc.h using sdcc_vc_in.h as template
	and insert the version number definitions from .version 

	* sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp

	* sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
	added - genarate auto-host.h using auto-host_vc_in.h as template

	* sdcc/sdcc_vc.h,
	removed from CVS, generated automatically

2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
	* support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)

2002-08-11  Borut Razem <borut.razem AT siol.net>
	* support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)

2002-08-10  Borut Razem <borut.razem AT siol.net>
	* src/SDCCmain.c (main):
	file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
	platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
	The consequence was that some temporary files were not removed.

	* src/SDCCglue.c:
	unification of code in functions tempfilename() and tempfile():
	function tempnam() is defined in Visual Studio 6.0 and .NET

	* sdcc/sdcc.dsw: removed project sdcpp, added project xa51a

	* sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
	  sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
	- removed compiler command line option /WX: Treats all warnings as errors
	- update a list of source files, included into the project

	* sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
	  sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
	changed project type to Generic Project so that can be correcly converted to VS.NET project

	* sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC

	* sdcc/src/SDCCast.c: solved MSC error in function decorateType()

	* sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings

	* dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
	added return 0 statements after assert() to make compiler happy

	* sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
	added newline in the def file to keep MSC compiler satisfied

	* sdcc/src/z80/gen.c:
	- function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
	  so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
	- solved MSC error in function aopDump()

	* sdcc_vc.h: define PREFIX as "\\sdcc"

2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
	* src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107

2002-06-22  Scott Dattalo <scott AT dattalo.com>
	* src/pic/*: Numerous bug fixes. Flow analysis has been enhanced. 
	- Rewrote the register banking algorithm. 
	- Added pCode live-range analysis to registers (for now, only non-used and 
	singly-used registers optimized away)

	* src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis

	* support/scripts/inc2h.pl Kevin L. Pauba <klpauba AT cox.net> submitted this perl script for converting MicroChip include files into SDCC Pic include files.
	
2002-05-10  Scott Dattalo <scott AT dattalo.com>
	* src/pic/*: Added support for multiplication. Fixed many,many bugs.
	
2002-04-22  Michael Hope  <michaelh AT vroom>

	* device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.

	* configure.in (DD_COPT): Added include support required for gbdk.

	* .version: Bumped version number just to increase it.

	* src/SDCCmain.c: Added -nostdinc to the default options.

2002-04-15  Michael Hope  <michaelh AT vroom>

	* device/lib/z80/printf.c (sprintf): Added.

	* src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.

	* src/z80/peeph.def: Added transpose redundent load rule.

	* src/z80/main.c: Added force callee saves for jaune.

	* src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.

	* src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.

2002-03-28  Johan Knol  <johan AT balder>

	* src/SDCCval.c: fixed bug #532436

2002-03-14  Scott Dattalo <scott AT dattalo.com>
	* /src/port.h:
	Added "char *Processor" field to the port structure.

	* /src/SDCCmain.c:
	Added -p option. Allows port dependent processor to be specified.

	* all ports:
	Initialized the new field char *Processor field to NULL in all ports

	* /src/pic/*:
	Compiler generated registers for interrupt context saving
	were not getting allocated.
		
2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>

	* /src/SDCCast.c:
	Fixed left shift. Will promote the left side of a left shift
	if a) left shifting more than size of operand or b) when assigned
	to something size > size of left side

2002-03-14  Scott Dattalo <scott AT dattalo.com>
	* src/pic/*
	tons of changes. Register allocation has been 
	rewritten. Added customization for the various PICs. Flow
	analysis is restructured. ...

	* src/pic/device.h:
	Added

	* src/pic/device.c:
	Added. device.c is a PIC port hack to accomodate variations
	in PIC devices.

2002-03-13  Michael Hope  <michaelh AT vroom>

	* src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.

2002-03-04  johanknol  <johanknol AT manik>

	* /src/SDCCval.c: fixed

	const unsigned char arr[][2] = { { 0, 1 } };
	t18.c:1: error: Initializer element is not constant

2002-03-04  bela  <bela AT manik>

	* /device/include/mcs51reg.h:
	ds89c420 register definition update

2002-03-03    <johan AT FRIJA>

	* support/Util/SDCCerr.c: did something, but don't no why anymore

	* support/regression/tests/bug-524691.c: made it a little less shy 

	* src/SDCCast.c (decorateType): fixed bug #524697

	* src/SDCCast.c: made some lineno improvements

	* src/SDCCval.c (getNelements): changed warning to error

	* src/SDCCglue.c (printIvalArray): changed warning to error

	* src/SDCCicode.c: fixed a warning for mingw

	* src/SDCCast.c (decorateType): fixed the << promotion for ops

	* src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)

2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>

	* src/ds390/peeph.def:
	Added some more peephole rules

	* src/ds390/gen.c: Various fixes & enhancements

	* src/SDCClrange.c, src/SDCClrange.h:
	functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c

	* src/ds390/ralloc.c:
	various fixes & enhancements (ds390) specific

	* src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
	Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
	from rallocs.

	* sdcc/src/SDCCcse.c: Better fix for bug # 514308

2002-03-02    <johan AT FRIJA>

	* src/SDCCast.c (decorateType): fixed bug #524708

	* src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)

	* src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691

2002-03-01  Michael Hope  <michaelh AT vroom>

	* src/SDCCsymt.c (initCSupport): Removed managling of support function names.

	* src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.

2002-03-01    <johan AT FRIJA>

	* src/SDCCglue.c (printIvalPtr): fixed bug #524211

	* src/SDCCast.c (decorateType): fixed bug #524209

	* src/SDCCval.c (valNot): fixed bug #524195

2002-02-26    <johan AT balder>

	* src/xa51/gen.c: fixed a warning

	* src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534

	* src/SDCCast.c (decorateType): fixed bug #522534

2002-02-23    <johan AT balder>

	* src/SDCCdflow.c (computeDataFlow): fixed bug #460088

2002-02-22    <johan AT balder>

	* src/SDCCast.c: fixed bug #514865

	* src/SDCCy.c ("SDCC.y"): fixed bug #516625

2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>

	* sdcc/src/SDCCloop.c:
	Previous fix was not good. basic blocks that have "break" or "return" are
	not really partof a loop , but live ranges used in these blocks should
	be live thru the entire loop, so set partOfLoop but don't add them to
	loop region

2002-02-21    <johan AT FRIJA>

	* src/SDCCcse.c: fixed bug #514308

2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>

	* src/SDCCloop.c:
	Fixed BUG #519583. If a conditional block ended in a return/break
	statement inside a loop, it was not being considered part of the loop.

	* src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)

2002-02-10  Karl Bongers <karl AT turbobit.com>

	* debugger/*:
	Fixed up SDCDB debugger somewhat.  Updated debugger/README
	with lots of comments and notes.

	* device/examples/test2.c:
	Fix bug, "red" variable not being initialized(compiler complained).

	* device/examples/Makefile, examples/test3.c:
	Add Makefile in device/examples folder, compiles test3.c
	for use as a multiple module SDCDB test case.

	* sim/ucsim/cmd.src/cmdset.cc:
	Took out debug printfs in ucsim "next" command.

	* sim/ucsim/xa.src:
	Karl and Johan start ucsim XA support.  Most dissassembly working,
	about 75% emulation done(plenty of work remaining).

	* sim/ucsim/z80.src:
	Add Z80 support to ucsim, add test-ucz80 regression test,
	notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
	Notice z80 compiler fails on examples/test3.c/crc code.

2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>

	* src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
	Added support for --parms-in-bank1

	* src/ds390/peeph.def:
	added a few more peephole optimzations

	* src/ds390/main.c:
	1) added __builtin_inp & __builtin_outp used to read in data of given length
	   from a memory mapped port
	2) added __builtin_memcmp
	3) added __builtin_swapw swap bytes of a short

	* src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
	1) handle multiple send & receives from register bank1
	2) ralloc can now allocate DPTR1 to some liveRanges

	* src/SDCCsymt.c, src/SDCCsymt.h:
	changes to handle multiple sends & receives

	* src/SDCCptropt.h:
	added some pointer arithmetic optimization

	* src/SDCCptropt.c:
	added some pointer arithmetic optimizations but not stable yet so not
	called from anywhere (will get this working shortly)

	* src/SDCCopt.c: fixed for multiple sends & receives

	* src/SDCCmain.c:
	1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
	2) preprocessing done AFTER port->finalizeoptions . This allows ports to
	   set preprocessor defines (depending on options)

	* src/SDCCicode.c, src/SDCCicode.h:
	changes made to handle multiple sends & receives

	* src/SDCCglobl.h:
	Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)

	* src/SDCCcse.c, src/SDCCcse.h:
	added function findbackward def (to be used in upcoming optimization)

	* src/SDCCcflow.c, src/SDCCcflow.h:
	added function returnAtEnd - to determine if a basic block terminates with
	a RETURN iCode

	* src/SDCCast.c, src/SDCCast.h:
	added option parms-in-bank1

	* device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c 
	* device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c 
	* device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
	adjusted for --parms-in-bank1 option

	* device/include/string.h:
	donot redefine "reentrant" keyword

	* device/include/ds80c390.h: Added some more SFRs

2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>

	* sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4 

2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>

	* src/SDCCast.c (funcOfType): fix usage of double --float-reent

2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>

	* support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387

2002-01-18  Paul Stoffregen  <paul AT pjrc.com>

	* Added --xram-movc option

2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>

	* support/regression/Makefile: don't include test-mcs51-stack-auto in target all

2002-01-11  Johan Knol

	* Added math lib of Jesus Calvino-Fraga

2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>

	* src/SDCCmain.c (processFile): fix processing of ../../src.c
	* support/regression/Makefile: new target test-mcs51-stack-auto
	* support/regression/ports/mcs51-stack-auto/spec.mk: added

2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>

	* src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()

2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>

	* support/regression/ports/mcs51/support.c: correct setup of timer / UART

2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>

	* src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan

	* src/SDCCglue.h: add definition for printIvalChar()

2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>

	* src/SDCCast.c: fix #498138 by Johan

	* src/SDCCglue.c: fix #498138 by Johan

2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>

	* support/regression/Makefile: fix clean

	* support/regression/ports/ds390/support.c: fix transmission of last character

2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>

	* /sdcc/src/ds390/gen.c:
	a) improved computing address of stack variable
	b) took out some #if 0 code
	c) improved parmBytes adjustment
	d) improved genPlusIncr & genMinusIncr
	e) genCmp could generate bad code (when left assigned to DPTR)
	f) Fixed bug in hasInc

	* /sdcc/src/ds390/ralloc.c:
	a) packRegsForSupport could mess up live information (Fixed)
	b) packRegsDPTRuse could be incorrect for left & right shift

	* /sdcc/src/mcs51/ralloc.c:
	packRegsForSupport could mess up the live information (Fixed)

	* /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc

	* /sdcc/src/SDCCast.c:
	can reverse a loop even if function call is present as long
	as the loop control variable is local & is not passed as parameter

2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>

	* /sdcc/ChangeLog: *** empty log message ***

	* /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
	More builtin function additions for TININative

	* /sdcc/src/ds390/ralloc.c:
	Had broken the regression testsuite

	* /sdcc/src/SDCCast.c: Fixed a bug in dumptree

	* /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
	Added funcattr hasStackParms will be set for reentrant functions when there
	are paramteres on the stack, this helps in minimizing frame pointer generation
	typeFromStr can handle function pointers now

	* /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
	*** empty log message ***

2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>

	* /src/ds390/gen.c, /src/ds390/main.c:
	More builtin function additions for TININative

	* /src/ds390/ralloc.c:
	Had broken the regression testsuite

	* /src/SDCCast.c: Fixed a bug in dumptree

	* /src/SDCCsymt.c, /src/SDCCsymt.h:
	Added funcattr hasStackParms will be set for reentrant functions when there
	are paramteres on the stack, this helps in minimizing frame pointer generation
	typeFromStr can handle function pointers now

	* /doc/builtins.txt, /doc/TININative.txt:
	*** empty log message ***


2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>

	* /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
	ALPHA version for -mTININative

	* /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
	updated to reflect changes in the port structure

	* /src/port.h:
	added function do_assemble (similar to do_link) if non-null this function
	will be called to do assembly (-mTININative) requires a multi command
	assembly
	added function genAssemblerEnd will be called to generate assembler Epilogue

	* /src/SDCCsymt.c:
	added _JavaNative to debug info printing

	* /src/SDCCmain.c: added option --tini-libid
	added port->do_assemble function (-mTININative) has a multi command assemble

	* /src/SDCCglue.c: Disabled "constExpr" check
	added port->genAssemblerEnd function

	* /src/SDCCglobl.h: Added option --tini-libid value

	* /src/SDCCast.h:
	tookout optimizeCompare from the header (has no external references)

	* /src/SDCCast.c: made one more function "static"

2001-12-23  Michael Hope  <michaelh AT juju.net.nz>

	* src/z80/mappings.i: Added z80asm support.

	* src/z80/main.c: Added z80asm support on --asm=z80asm

	* src/z80/gen.c: Fixed asm portability issues.

	* src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.

	* src/SDCCglue.c (printExterns): Added global/extern split.

2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>

	* support/regression/Makefile: added test for mcs51 model large

	* support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large

	* support/regression/ports/gbz80/spec.mk: added -mgbz80

2001-12-05  Michael Hope  <michaelh AT juju.net.nz>

	* src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.

1904-01-06  Michael Hope  <michaelh AT juju.net.nz>

	* src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.

	* src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.

2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>

	* src/mcs51/gen.c (genFunction): avoid excess "inc sp"

	* support/regression/tests/simplefloat.c: Port to mcs51.

2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
	* support/regression/tests/bug-485362.c: Added.

	* support/regression/tests/simplefloat.c (testDivNearOne): Added.

	* src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.

	* src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.

	* src/z80/gen.c (aopDump): Added a dump function.

2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
	* sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.

	* sim/ucsim/s51.src/port.cc: Port 4 and 5 added.

	* sim/ucsim/s51.src/regs51.h: DS390 SFRs added.

	* sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.

	* sim/ucsim/s51.src/uc390cl.h: Work in progress.

	* sim/ucsim/sim.src/uccl.h: 6 ports for DS390.

	* support/regression/fwk/lib/testfwk.c: Run with tinibios.

	* support/regression/ports/mcs51/spec.mk: Fine tuninig.

	* support/regression/ports/ds390/support.c: Use tinibios.

	* support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.

2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c

	* src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
	(packRegsForHLUse3): Added packing support for send, cast, and return value from a call.

	* src/z80/peeph.def: Added rules for optimising pushes of part of a pair.

	* src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.

2001-11-18  Michael Hope  <michaelh AT juju.net.nz>

	* src/z80/gen.c (genCmp): Fixed compare on unsigned.

	* src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
	(packRegsForIYUse): Created and optimised.

2001-11-07  Michael Hope  <michaelh AT juju.net.nz>

	* support/regression/tests/float.c (testFloatAdd): Fixed up warning.
2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>

	* sdcc/support/regression/tests/bug-460010.c: fix seg violation on host

	* sdcc/support/regression/tests/muldiv.c: fix output on mcs51

	* sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51

2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>

	* sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added

	* sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added

2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>

	* sdcc/sim/ucsim/globals.cc: New: IXRAM.

	* sdcc/sim/ucsim/stypes.h: New: IXRAM.

	* sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.

2001-11-07  Michael Hope  <michaelh AT juju.net.nz>

	* src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
	(packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
	(packRegsForAccUse2): Added rule to pack hbit IFXs into A.

	* src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.

	* src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
	(genNotFloat): Added.
	(genUminusFloat): Added.

	* device/lib/z80/Makefile: Added floating pt stubs.

	* device/lib/Makefile.in (Z80SOURCES): Added floating pt support.

	* src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.

	* device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.

2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>

	* sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.

	* sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.

	* sdcc/support/regression/Makefile: Add port ds390.

	* sdcc/support/regression/ports/mcs51/spec.mk: Minor change.

	* sdcc/support/regression/ports/z80/spec.mk: Minor change.

	* sdcc/support/regression/ports/ds390/spec.mk: Added.

	* sdcc/support/regression/ports/ds390/support.c: Added.

	* sdcc/support/regression/ports/ds390/uCsim.cmd: Added.

	* sdcc/support/regression/ports/mcs51/timeout.c: Cut.

	* sdcc/support/regression/fwk/lib/timeout.c: Paste.

2001-11-04  Michael Hope  <michaelh AT juju.net.nz>

	* device/include/malloc.h: Added z80 and gbz80 support.

	* device/lib/gbz80/heap.s: Added.

	* device/lib/z80/heap.s: Added.

	* device/lib/malloc.c: Added z80 and gbz80 support.

	* support/regression/tests/malloc.c (testMalloc): Added.

	* src/SDCCmain.c (parseCmdLine): Added support for -Wp.

	* support/regression/tests/bug-478094.c: Added.

	* src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.

2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>

	* sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests

        * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests

        * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests

        * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests

	* sdcc/support/regression/tests/bug-460010.c: Small change for ds390

2001-11-04  Michael Hope  <michaelh AT juju.net.nz>

	* src/z80/peeph-gbz80.def: Removed a bad sub optimisation.

2001-11-03  Michael Hope  <michaelh AT juju.net.nz>

	* support/regression/tests/bug-477927.c: Added.

	* src/z80/peeph.def: Added minor rules.

	* src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.

	* src/z80/peeph.def: Added jump optimisation modification.

2001-11-01  Michael Hope  <michaelh AT juju.net.nz>

	* src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.

2001-10-30  Michael Hope  <michaelh AT juju.net.nz>

	* support/regression/tests/funptrs.c: Added.

2001-10-29  Michael Hope  <michaelh AT juju.net.nz>

	* src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.

2001-10-28  Michael Hope  <michaelh AT juju.net.nz>

	* src/z80/gen.c (genArrayInit): Made it work for on stack arrays.

	* src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.

	* src/z80/gen.c (genMinus): Fixed for where the result is one byte.
	(movLeft2ResultLong): Created.

	* src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
	(joinPushes): Added.  Joins two char pushes into a word push.

2001-10-27  Michael Hope  <michaelh AT juju.net.nz>

	* support/cpp2/Makefile.in (install): Added creation of dest dir.

	* support/makebin/Makefile (install): Added creation of dest dir.

2001-10-24 Karl Bongers <karl AT turbobit.com>

	* configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.

2001-10-21  Michael Hope  <michaelh AT juju.net.nz>

	* src/z80/ralloc.c: Turned off faulty pack for one use.

	* src/z80/peeph-gbz80.def: Removed redundent restart options.

	* src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.

2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>

	* support/regression/Makefile: Improved clean

	* support/regression/ports/gbz80/spec.mk: Added clean

	* support/regression/ports/host/spec.mk: Added clean

	* support/regression/ports/z80/spec.mk: Added clean

	* support/regression/ports/mcs51/spec.mk: Added clean, little improvements

	* support/regression/ports/mcs51/timeout.c: little improvements

2001-10-17  Michael Hope  <michaelh AT juju.net.nz>

	* device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.

	* support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.

	* support/regression/generate-cases.py: Fixed up to use function pts correctly.

2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>

	* support/regression/port/mcs51/spec.mk: add timeout for uCsim

	* support/regression/port/mcs51/timeout.c: add timeout for uCsim

2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
	* src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.

	* src/z80/ralloc.c: Turned off pack for one use as it's quite broken.

	* src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.

	* src/mcs51/main.c (_linkCmd): Added bin path to command.

	* src/SDCCmain.c (initValues): Added support for when it it called just to link.

	* as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.

	* src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.

	* support/regression/tests/longor.c: Added.

2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>

	* as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX

	* as/mcs51/aslink.h: define PATH_MAX

	* as/mcs51/asm.h: define PATH_MAX

	* as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX

	* as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX

	* as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX

	* as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX

	* src/SDCCglobl.h: define PATH_MAX

	* src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX

	* src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX

2001-10-11  Michael Hope  <michaelh AT juju.net.nz>

	* src/z80/gen.c (gencjneshort): Fixed

	* src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.

2001-10-09  Michael Hope  <michaelh AT juju.net.nz>

	* support/regression/tests/bug-469671.c: Added.

	* src/z80/gen.c (shiftIntoPair): Fixed up warning.

2001-10-08  Michael Hope  <michaelh AT juju.net.nz>

	* src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.

	* src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.

2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>

	* src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY

	* src/device/lib/_mulint.c  : removed hint: nooverlay bug

	* src/device/lib/_mullong.c : removed hint: nooverlay bug

	* src/device/lib/_divuint.c : removed hint: nooverlay bug

	* src/device/lib/_divulong.c: removed hint: nooverlay bug

	* src/device/lib/_moduint.c : removed hint: nooverlay bug

	* src/device/lib/_modulong.c: removed hint: nooverlay bug

2001-10-07  Michael Hope  <michaelh AT juju.net.nz>

	* src/z80/gen.c (setupPair): Added 'extended stack' support for the z80.  Can now have local variables or parameters of more than 127 bytes in size.  Increadibly slow, but it will work.  Currently anything involving the carry flag.

	* support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.

	* support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.

2001-10-07    <johan AT FRIJA>

	* device/lib/gets.c (gets): fixed the return value.

2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
	* src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.

	* 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.

2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>

	* src/SDCCmain.c: distinguish between assembler debug and plain options

	* src/avr/main.c:   remove standard assembler options

	* src/ds390/main.c: remove standard assembler options

	* src/mcs51/main.c: remove standard assembler options

	* src/port.h: removed "PENDING" comment

2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>

	* src/device/lib/_mulint.c  : new, with assember functions

	* src/device/lib/_mullong.c : new, with assember functions

	* src/device/lib/_divuint.c : with assember functions

	* src/device/lib/_divsint.c : with assember functions

	* src/device/lib/_divulong.c: with assember functions

	* src/device/lib/_divslong.c: with assember functions

	* src/device/lib/_moduint.c : with assember functions

	* src/device/lib/_modsint.c : with assember functions

	* src/device/lib/_modulong.c: with assember functions

	* src/device/lib/_modslong.c: with assember functions

	* src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c

	* src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c

	* src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
	                              replaced _mululong.c and _mulslong.c by _mullong.c

2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>

	* src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected

2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>

	* src/SDCCglue.c: test, if win32api is available for MINGW

2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>

	* src/SDCCsymt.c: no more _modifier in printTypeChain()
	* support/regression/tests/driverstruct.c: REENTRANT for mcs51
	* support/regression/ports/gbz80/spec.mk: removed GENERIC
	* support/regression/ports/host/spec.mk: removed GENERIC
	* support/regression/ports/mcs51/spec.mk: removed GENERIC
	* support/regression/ports/z80/spec.mk: removed GENERIC

2001-10-01  Michael Hope  <michaelh AT juju.net.nz>

	* support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.

	* support/regression/tests/bug-467035.c: Created.

2001-10-01    <johan AT FRIJA>

	* src/SDCC.y: fixed bug #466586 part 1

2001-10-01  Johan Knol <johan.knol AT iduna.nl>

	* SDCCicode.c: z80 has no generic pointers
	* removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
	
2001-09-30  Michael Hope  <michaelh AT juju.net.nz>

	* sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.

2001-09-29  Michael Hope  <michaelh AT juju.net.nz>

	* Makefile (sdcc-libs): Added makebin to the list of standard targets.

	* support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.

2001-09-25  Michael Hope  <michaelh AT juju.net.nz>

	* configure.in: Fixed up so that ucsim is only configured once.

	* support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.

	* src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
	(getPathDifference): As above.

	* src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.

	* src/SDCCglue.c (tempfilename): Added function for pre-processor.

2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
	* .version: Updated to 2.3.1

	* src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
	Added copyright header.

	* src/SDCCmain.c: Shifted various functions into SDCCutil.c
	(assemble): Added support for macro based assembler commands.
	(linkEdit): Added support for macro based linker commands.
	(preProcess): Changed the pre-processor to use macros.
	(_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
	(_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.

	* device/lib/z80/crt0.s: Added module name for debugging.

2001-09-20  Michael Hope  <michaelh AT juju.net.nz>

	* src/SDCCmain.c (printVersionInfo): Added the build date to the version info.

	* src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.

	* src/SDCCglue.c: Moved gc_strdup to SDCCutil.c

	* src/Makefile.in: Added SDCCmacro and SDCCutil

2001-09-19  Michael Hope  <michaelh AT juju.net.nz>

	* src/SDCCmain.c (printVersionInfo): Added the build date to the version info.

2001-09-16    <johan AT FRIJA>

	* support/Util/SDCCerr.c: fixed up the error/warning/info database. I only changed the E_ W_ I_ prefix to what SDCCerr.c says it is.

2001-09-15    <johan AT FRIJA>

	* src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
	* src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1

2001-09-11    <johan AT FRIJA>

	* src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)

2001-09-10  Michael Hope  <michaelh AT juju.net.nz>

	* support/regression/tests/bug-460444.c: Added test case.

	* src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
	(genCast): Added justification for all of the asserts.

2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>

	* support/regression/support.c: _xdata replaced by xdata

	* support/regression/spec.mk: removed _generic

2001-09-09  Michael Hope  <michaelh AT juju.net.nz>

	* src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.

	* src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
	(genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.

	* src/z80/peeph.def: Added a rule to optimise shift then compare.

	* support/regression/tests/bug-460000.c (testShiftByParam): Added test case.

	* support/regression/tests/bug-460010.c: Added test case.

	* support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.

2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>

	* support/regression/Makefile: inter-port-clean adjusted for mcs51

	* support/regression/testfwk.c: removed workaround for bug #436344

	* support/regression/tests/bp.c: use less memory with mcs51

	* support/regression/tests/bug-441448.c: use less memory

	* support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data

	* support/regression/collate-results.py: typo

2001-09-08  Michael Hope  <michaelh AT juju.net.nz>

	* support/regression/tests/fetchoverlap.c: Added new test case.

	* support/regression/tests/bp.c: Added new test case.

	* support/regression/tests/bug-448984.c: Added new test case.

	* support/regression/tests/pow2shifts.c: Added new test case.

	* src/z80/gen.c: Turned off the noise it normally generates for the release.
	(genlshTwo): Fixed right shift for count > 8.

	* src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.

2001-09-08    <johan AT FRIJA>

	* src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function

2001-09-07    <johan AT FRIJA>

	* src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)

	* src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol

2001-09-06    <johan AT FRIJA>

	* src/SDCC.y: this could be a fix for bug #458744 (1.37)
	* bernhard noted me at this: "() equals to (void)" (1.38)

2001-09-05    <johan AT FRIJA>

	* src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2

2001-09-04    <johan AT FRIJA>

	* src/SDCCsymt.c (checkSClass): a fix for bug #458099/1


2001-09-04  Paul Stoffregen  <paul AT pjrc.com>

	* pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization

2001-09-03  Michael Hope  <michaelh AT juju.net.nz>

	* link/z80/aslink.h: Fixed path for PATH_MAX

2001-09-02  Michael Hope  <michaelh AT juju.net.nz>

	* src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.

	* support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.

	* support/regression/tests/uminus.c: Added a test for the unary minus operator.

	* src/z80/gen.c (genUminus): Fixed add, sub, and uminus on the gbz80 port for longs.  Had to shift some functions about to do it.

2001-09-01  Michael Hope  <michaelh AT juju.net.nz>

	* src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
	(genCmp): Fixed up genCmp for the GB with longs.

	* device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.

	* support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.

	* device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.

	* device/lib/_mullong.c (_mulslong): Changed to actually return a value :)

2001-08-30  Paul Stoffregen  <paul AT pjrc.com>

	* added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.

2001-08-30  Michael Hope  <michaelh AT juju.net.nz>

	* device/lib/gbz80/crt0.s (init): Fixed up support for the gbz80 such that it will at least run (and fail badly) the regression tests.

	* src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.

2001-08-29  Michael Hope  <michaelh AT juju.net.nz>

	* link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.

	* src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.

2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>

  * sim/ucsim/configure:    little improvement of Cygwin-detection	
  * sim/ucsim/configure.in: little improvement of Cygwin-detection	
  * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
  * support/regression/tests/bug-221100.c: small changes for mcs51
  * support/regression/tests/bug-221168.c: small changes for mcs51
  * support/regression/tests/bug-227710.c: small changes for mcs51
  * support/regression/tests/staticinit.c: small changes for mcs51
  * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
  * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
  * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
