* support/Util/SDCCerr.h,
[fw/sdcc] / ChangeLog
1 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2
3         * support/Util/SDCCerr.h,
4         * support/Util/SDCCerr.c,
5         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
6         enumerator_list),
7         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
8         for symbol conflicts.
9         * support/valdiags/tests/enum.c,
10         * support/valdiags/tests/tentdecl.c,
11         * support/valdiags/tests/struct.c: expect possible error messages
12         referring to original symbol definitions.
13         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
14         * src/SDCCsymt.h,
15         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
16
17 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
18
19         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
20
21 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
22
23         * src/pic16/ralloc.c (newReg): fixed bug #908929
24
25 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
26
27         * src/ds390/gen.c: added missing #include "main.h"
28
29 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
30
31         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
32         checking if symbol is already in set,
33         * src/pic16/device.h: prototype for checkAddSym,
34         * src/pic16/gen.c: (_G): added entry interruptvector,
35         * (assignResultValue): removed some commented out lines,
36         * (genFunction): check for ISR via sym->type, absolute section for
37         interrupt code is created via a new pBlock, the goto instruction is
38         placed now correctly at the interrupt vector position, changed all
39         references from ivec to _G.interruptvector,
40         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
41         is the interrupt is a high priority one, same for return from ISR,
42         * src/pic16/glue.c: changed all calls of addSetHead for publics and
43         externs to calls of checkAddSym,
44         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
45         pic16_pcode_verbose flag is set,
46         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
47         * src/pic16/pcoderegs.c: message about how many registers are saved
48         will only be emitted if pic16_pcode_verbose flag is set,
49
50 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
51
52         * src/ds390/ralloc.h,
53         * src/ds390/ralloc.c (ds390_regWithIdx),
54         * src/ds390/gen.c (emitcode),
55         * src/ds390/main.h,
56         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
57         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
58         ds390operandCompare, getRegsRead, getRegsWritten,
59         initializeAsmLineNode): customized instruction size calculation for
60         ds390, started basis for some register optimizations
61         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
62         corresponding assembly output
63         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
64         missing push/pop of r0/r1. Optimized push/pops
65
66 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
67
68         * src/mcs51/main.c (instructionSize): fixed ACALL size
69         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
70
71 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
72
73         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
74         the sorting of rlist with NULL elements
75         * (print_idataType, print_idata): NEW to create idata sections
76         * src/pic16/device.h: idataSymSet new variable
77         * src/pic16/gen.c (genFunction): fixed some bugs in string
78         comparing, improved the absolute section creation for ISRs,
79         added FSR0L/FSR0H in registers that are saved in an ISR,
80         * (genInline): fixed the processing of inline snippets,
81         now they undergo no process by the peephole optimizer
82         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
83         are placed in idataSymSet,
84         * (pic16emitStaticSeg): extern symbols are added in externs,
85         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
86         switching when aboslute variables are placed in access bank memory
87         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
88         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
89         commented out with #if,
90         * (pic16_packRegisters): reintroduce the check for CAST because some
91         symbols are not correctly handled,
92         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
93         pCodeInstruction instead of pCode,
94         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
95         pCodeAsmDir definition,
96         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
97         directive, then the argument directive is emitted without the leading
98         tab, hack for inline labels which must be in the first column,
99         * (compareLabel,pic16_findNextInstruction),
100         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
101         * (insertBankSwitch): modified for the new pCodeAsmDir,
102
103 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
104         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
105
106         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
107         instance,
108         * (pushSide): commented out with #if,
109         * (assignResultValue): fixed some typos in saving
110         registers,
111         * (genPcall): FIXED and sync'ed with genCall,
112         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
113         * (genNearPointerGet): fixed to handle some more cases,
114         implementation scheme via table reads,
115         * (genConstPointerGet): modified to access code memory correct,
116         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
117         and improved to handle some cases
118         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
119         instead of "RETLW" for init data
120         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
121         not IN_DIRSPACE, work around to reduce bank switching when aboslute
122         variables are placed in access bank memory (<0x80 and >=0xf80),
123         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
124         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
125         TBLWT_POSTDEC,TBLWT_PREINC
126         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
127         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
128         directives
129         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
130         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
131         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
132         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
133
134 2004-02-29  Borut Razem <borut.razem AT siol.net>
135
136         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
137         support/Util/findme.h, support/Util/system.h: enhance binary relative
138         search for lib and include by using findProgramPath()
139
140 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
141
142         * src/SDCCpeeph.h,
143         * src/SDCCpeeph.c (pcDistance),
144         * src/port.h,
145         * src/mcs51/ralloc.h,
146         * src/mcs51/ralloc.c (mcs51_regWithIdx),
147         * src/mcs51/main.h,
148         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
149         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
150         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
151         size calculation port specific, started basis for some register
152         optimizations
153         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
154         missing push/pop of r0/r1. Optimized push/pops
155         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
156         * device/lib/_modsint.c (_modsint),
157         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
158         and stack version so regression tests pass
159
160 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
161
162         * src/Makefile.in (dep): include SLIBOBJS in dependency check
163         * src/SDCCast.c (decorateType): catch another small optimization
164         with '?' operator
165         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
166         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
167         modified to finally use computeType() all over SDCC,
168         see Feature Request #877103
169         * src/SDCCval.h: cosmetic
170         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
171         valCompare(); regression tested in muldiv.c
172         * support/regression/tests/muldiv.c (testMod): mod sign follows
173         dividend only
174
175 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
176
177         * src/SDCCast.c (decorateType): fixed bug #902362
178         * doc/INSTALL.txt: fixed install instructions for win32
179
180 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
181
182         * device/include/Makefile.in (install): fixed by replacing spaces
183         by tabs
184         * doc/README.txt,
185         * doc/INSTALL.txt: updated for release
186         * doc/sdccman.lyx: added warning for --xstack being buggy
187
188 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
189
190         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
191         to eliminate build warnings.
192         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
193
194 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
195            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
196
197         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
198         removed -penable-stack, added comment for stack pragma, added
199         warning for not initializing the stack/frame registers, removed
200         comment at interrupts section
201
202         Stack is made permanent, there is no ability to disable stack usage.
203         * src/pic16/device.h,
204         * src/pic16/device.c: removed all references to USE_STACK macro,
205         * src/pic16/device.c (pic16_dump_section): when no elements in
206         rlist, free rlist before return,
207         * (pic16_dump_int_registers): NEW, internal registers are a new set
208         of general purpose registers reused by each function,
209         * (checkAddReg): returns 1 if registers is added to set,
210         * (pic16_groupRegistersInSection): when a registers is of type
211         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
212         * src/pic16/device.h: memRange and Assigned Memory are deleted,
213         SRCASECMP macro is moved here from device.c
214         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
215         PO_PCLATU, PO_PRODL, PO_PRODH,
216         * (pic16_pCodeOpType, genMinus, 
217         changed compares to "a" register, with AOP_ACC,
218         * (pic16_genPlus): fixed some bugs and indented properly,
219         * (pic16_addSign): changed size to size+offset in the MOVWF
220         instruction,
221         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
222         multiply 8-bit operand by literal, result is 8-bit,
223         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
224         multiply 2 8-bit operand, result is 8-bit,
225         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
226         genUMult8X*_16,
227         * src/pic16/gen.c: changed accUse to contain WREG only,
228         * (pic16_emitcomment): renamed to pic16_emitpcomment,
229         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
230         true, do not use immediate addressing any more unless sym is a
231         pointer in codespace,
232         * (aopForRemat): do not use immediate addressing when symbol not in
233         codespace and when symbol's address is requested,
234         * (aopOp): for-loop in if(sym->accUse) is modified for the new
235         accUse size (= 1),
236         * (aopGet): added case for AOP_ACC and don't return "accumulator
237         bug" but WREG instead,
238         * (popGetTempReg): pushes contents of temporary register in stack,
239         * (popReleaseTempReg): pops contents of temporary register from
240         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
241         * (pic16_popGet): separated case AOP_ACC to return register WREG
242         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
243         or PO_IMMEDIATE and initializes their instance/offset appropriately,
244         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
245         the use of immediate pointers to certain cases only.
246
247         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
248         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
249         * (assignResultValue, genCall, genRet): modified to use the new
250         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
251         genPcall is still broken,
252         * (genFunction): added code to create 'A' type pBlocks when
253         interrupt functions are generated, code not extensively tested yet,
254         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
255         * (genEndFunction): modified so ISRs pop stored registers from stack,
256         * (genMultOneByte): cleanup,
257         * (AccRsh): added flag andmask, to and result with appropriate mask,
258         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
259         * (genDataPointerGet): fixed and reenabled its use,
260         * (genNearDataPointerGet): bugs fixed,
261         * (genDataPointerSet): bugs fixed,
262         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
263         pic16_DumpSymbol, pic16_DumpOp,
264         * src/pic16/genutils.h: function prototypes for the above functions,
265         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
266         pointers,
267         * (pic16emitRegularMap): many many many improvements, but needs a
268         major cleanup,
269         * src/pic16/main.c: enable_stack in pic16_options is removed,
270         * (_pic16_parseOptions): removed command line options -penable-stack,
271         * (_process_pragma): emit stack symbol only when stack pragma is
272         processed,
273         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
274         redirected to FSR0L/FSR0H pair,
275         * (pic16_get_op, pic16_get_op2): modifications and improvements,
276         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
277         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
278         for immediates,
279         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
280         * (dumpPicOptype): NEW,
281         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
282         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
283         with movff instruction,
284         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
285         added pic16_int_regs, some packRegsFor* functions are commented out,
286         because produce errors,
287         * src/pic16/NOTES: minor modifications
288
289 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
290
291         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
292         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
293         --pack-iram.
294         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
295         * as/mcs51/lkaomf51.c: fixed bug #895763
296
297 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
298
299         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
300
301 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
302
303         * doc/sdccman.lyx: added details about the HC08 storage classes and
304         interrupts, fixed the register usage info for z80 & gbz80
305
306 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
307
308         * doc/sdccman.lyx: added more pic16 port documentation
309         * device/include/pic16/: added header pic18fregs.h
310
311 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
312
313         * doc/sdccman.lyx: added Vangelis' contribution
314
315 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
316
317         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
318         extend to the next CALL or PCALL, not just to the next CALL.
319
320 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
321
322         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
323
324 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
325
326         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
327         bug #895752 and a better fix for bug #716790
328
329 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
330
331         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
332
333 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
334
335         * doc/sdccman.lyx: minor changes, minor changed
336
337 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
338
339         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
340         which can't handle SDCC_NEWONEBYTEOPS,
341         (geniCodeMultiply): removed conversion from mult to shift for pic14
342         and pic16
343
344 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
345
346         * src/hc08/gen.h,
347         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
348         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
349         thus fixing bug #895406
350
351 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
352
353         * device/lib/_modsint.c,
354         * device/lib/_modslong.c: sign follows divisor only
355         * src/hc08/gen.c (genMultOneByte): if result size is 1,
356         signs or signedness can be ignored
357         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
358         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
359         added optimization for IFX,
360         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
361         arguments;
362         reenabled optimization for IFX, which was removed on 2004-01-11
363         * src/SDCCast.h: added return type IFX
364         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
365         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
366         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
367         SDCC_OLDONEBYTEOPS selects the old behaviour
368         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
369         changed again and commented promotion rule
370         * src/SDCCval.c (valDiv): promotion no longer necessary
371         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
372         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
373         rewritten
374         * support/regression/tests/onebyte.c: added
375
376 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
377
378         * gen.c (genInline): reverted to old code for assemnling inline
379         code because of bug reported James Chadd
380
381 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
382
383         * ralloc.h: missing declarations from previous patch,
384         seems that patch for ralloc.h was never applied, fixed
385         
386 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
387            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
388
389         * pcode.c,
390         * pcode.h,
391         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
392         indirect addressing. Marked FSR0 as deprecated
393         * gen.c (pointerCode): commented out, not needed now
394         (pic16_popGet2p): new MOVFF helper function
395         (genGenPointerGet),
396         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
397         (shiftRLong): removed duplicate debugging info
398
399 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
400
401         * src/ds390/gen.c (genNearPointerGet),
402         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
403         optimization with bits, but not bitfields.
404         * src/ds390/ralloc.c (packRegisters),
405         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
406
407 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
408
409         * src/SDCCcse.c (algebraicOpts): copy operands before modification
410
411 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
412
413         * src/SDCCsymt.h,
414         * src/SDCCicode.c (operandFromSymbol),
415         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
416         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
417         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
418         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
419         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
420         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
421         bug #892038
422         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
423         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
424         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
425         * src/SDCCsymt.c (newSymbol),
426         * src/SDCC.y (struct_or_union_specifier, enum_specifier, 
427         enumerator_list),
428         * src/SDCCval.h,
429         * src/SDCCval.c (newiList): fixed bug #885705
430
431 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
432
433         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
434         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
435
436 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
437
438         * device/include/c8051f120.h,
439         * device/include/c8051f300.h,
440         * device/include/c8051f310.h: added/updated header files for Silicon
441         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
442         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
443         in new section Submitting patches
444
445 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
446
447         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
448         genFarPointerGet, genCodePointerGet, genGenPointerGet,
449         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
450         genGenPointerSet),
451         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
452         genFarPointerGet, genCodePointerGet, genGenPointerGet,
453         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
454         genGenPointerSet),
455         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
456         genFarPointerGet, genCodePointerGet, genGenPointerGet,
457         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
458         genGenPointerSet),
459         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
460         genFarPointerGet, genCodePointerGet, genGenPointerGet,
461         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
462         genGenPointerSet): fixed bug #892400
463         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
464         to eliminate build warnings.
465         * src/SDCCast.c (processParms),
466         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
467         fixed bug 751859
468         * support/valdiag/valdiag.py: added GCC to the list of defines active
469         when compiling with gcc
470
471 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
472
473         * support/Util/SDCCerr.h,
474         * support/Util/SDCCerr.c,
475         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
476         with an incomplete type (fixed bug #883734)
477         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
478
479 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
480
481         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
482
483 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
484
485         * src/SDCCast.c (decorateType),
486         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
487         function pointer implementation
488         * support/regression/tests/funptrs.c: added tests to verify both forms
489         of function pointers work correctly. Added tests to verify parameters
490         are passed in the correct order.
491
492 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
493
494         * device.c (regCompare): registers are sorted by ascending
495         address and increasing size,
496         * main.c (_pic16_finaliseOptions): removed the declaration
497         of compiler macro MCU. Now a macro of the format pic18fxxxx
498         will be defined from the command line
499
500 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
501             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
502
503         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
504         PCOP_RLCF was overwritten!
505         * gen.c (genSkip): commented out calls to pic16_emitcode,
506         * (genCmpEQ): fixed "long" compares, only high word did get compared,
507         * (genlshTwo),
508         * (genRRC): added debugging info,
509         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
510         overwritten while shifting,
511         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
512         overwritten while shifting,
513         * (AccLsh),
514         * (AccRsh),
515         * (shiftLLeftOrResult),
516         * (shiftRLeftOrResult),
517         * (shiftRLong),
518         * (shiftLLong): Implemented with pic16_emitpcode
519         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
520         * (genLeftShift): Fixed bug, operand for shift by variable always
521         was "and"ed with 0x0f,
522         * (genLeftShiftLiteral),
523         * (genrshTwo),
524         * (genRightShiftLiteral): added debugging info,
525         * (genrshFour): added comment,
526         * (genRightShift): determined signedness from operand "left"
527         instead of "result"
528
529 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
530
531         * src/SDCCicode.c (geniCodeParms),
532         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
533         function pointers, fixed function pointer bugs #861242 and #861896
534
535 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
536
537         * device/include/c8051f000.h,
538         * device/include/c8051f120.h,
539         * device/include/c8051f300.h: added header files for Silicon
540         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
541
542 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
543
544         * src/SDCCast.c (processParams): added new type flow and restructured
545         (gatherAutoInit): added new type flow
546         (addCast): cosmetic changes
547         (getLeftResultType): added new type flow for array indices, patch
548         provided by Stas, see FR #877103
549         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
550         array index patch by Stas
551         * src/SDCCast.h: added prototype getResultTypeFromType()
552         * src/SDCCval.h,
553         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
554         * src/pic/glue.c (pic14emitStaticSeg),
555         * src/pic16/glue.c (pic16emitStaticSeg),
556         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
557         for initialization of symbols
558         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
559         * support/Util/SDCCerr.h:
560         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
561         * .version: bumped version number to 2.3.8
562         * device/include/Makefile.in (install),
563         * doc/Makefile (install): changed to 'rm `find ...`' construct to
564         avoid warnings
565
566 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
567
568         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
569         Slade Rich fixed an optimization bug
570         * src/pic/pcodepeep.c,
571         * src/pic/pcoderegs.c
572         * doc/Makefile (install): added test for directory
573
574 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
575
576         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
577         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
578         * src/pic/ralloc.c (getRegPtr, getRegGpr),
579         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
580         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
581         * as/mcs51/asexpr.c (term),
582         * as/hc08/asexpr.c (term): fixed bug #887146
583
584 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
585
586         * src/z80/gen.c (genMult): handle single byte result product
587         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
588         DUMMY_READ_VOLATILE (fixed bug #886367)
589
590 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
591
592         * support/regression/tests/libmullong.c: fixed logic, on little endian
593         hosts we ended without a mullong_wrapper()
594
595 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
596
597         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
598         virus/worm forged address usage.
599
600 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
601
602         Fixed promotion, it should be done on AST level:
603         * src/SDCCast.c (addCast): added promotion to int
604         (decorateType): updated call to upCast()
605         * src/SDCCicode.c (geniCodeLeftShift): removed call to
606         usualUnaryConversions()
607
608 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
609
610         * support/regression/tests/literalop.c (mulWrapper): Added a
611         wrapper to remove integer overflow warnings.
612
613         * support/regression/tests/float_trans.c: Made work on host.
614
615         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
616         location of sz80.
617
618         * support/regression/generate-cases.py (main): Changed from inline
619         to a main method.
620
621         * doc/Makefile (install): Changed to depth first to get rid of
622         missing directory install warning.
623
624         * as/Makefile (install-doc): Made work on Mac.
625
626 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
627
628         * src/SDCCast.c: added an additional type flow in decorateType() of
629         opposite direction, see feature request #860006; it's enabled at runtime
630         by setting the environment variable SDCC_NEWTYPEFLOW
631         * src/SDCCast.h: changed prototype of decorateType()
632         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
633         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
634         'char' to 'int' can be omitted, if both operands are 'unsigned char';
635         see feature request #877103
636         * src/SDCCval.c: updated call of decorateType()
637         (valBitwise): fixed bug #882876
638         (valMinus): added promotion
639         (valLogicAndOr): result is unsigned
640         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
641         * src/SDCCsymt.c (computeType),
642         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
643         must not cause an unsigned operation
644         * src/pic/glue (pic14emitRegularMap),
645         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
646
647 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
648
649         * src/pic/pcode.c (PCodeID): commented out left over debug code
650
651 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
652
653         * support/valdiag/tests/overflow.c: added shift tests
654         * src/pic/device.c,
655         * src/pic/gen.c,
656         * src/pic/gen.h,
657         * src/pic/glue.c,
658         * src/pic/main.c,
659         * src/pic/pcode.c,
660         * src/pic/pcode.h,
661         * src/pic/pcodepeep.c,
662         * src/pic/pcoderegs.c,
663         * src/pic/ralloc.c,
664         * src/pic/ralloc.h: applied patch from Slade Rich;
665         added support for multiple code pages and multiple RAM banks on the
666         PIC 14 port. The ASM files now no longer simply assume all the
667         code / RAM are in the same page / bank. This means the linker can
668         safely allocate code/RAM of separate ASM files to different pages/banks.
669         * doc/sdccman.lyx: added Slade's tips
670         * src/mcs51/peeph.def: fixed bug #880768
671
672 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
673
674         * src/hc08/ralloc.c (rematStr): fixed bug #879282
675         * src/SDCCast.c (decorateType): fixed bug #880197
676
677 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
678
679         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
680         getopt.h.
681
682         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
683         strtof is not part of C89 and isn't included with Mac OS X.
684
685 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
686
687         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
688         shiftL2Left2Result): fixed bug #879326
689         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
690         (genMultOneByte): fixed bug in signed vs unsigned multiplication
691         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
692         address fetch for clr instruction
693         * device/lib/hc08/_mulint.c: created optimized assembly version
694         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
695
696 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
697
698         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
699         proposed in FR #877103
700
701 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
702
703         * src/SDCCval.c (cheapestVal): added missing checks
704         * src/SDCCicode.c (usualBinaryConversions): fixed condition
705         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
706
707 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
708
709         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
710         equal operands
711
712 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
713
714         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
715         loaded with the linker search paths (-L arguments) and the libraries
716         to be linked with the current source (-l arguments). Changes
717         currently will affect only the pic16 port.
718         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
719         include path the port specific paths and port specific libraries,
720         * gplink command now contains the $3 argument,
721         * src/pic16/device.h,
722         * src/pic16/device.c,: structure PIC_device is made public and
723         renamed to PIC16_device, the same for variable Pics which is renamed
724         to Pics16. Updated all references to them.
725         * src/pic16/glue.c (pic16glue): corrected bug with code
726         initialization which bypassed the variable initializations block.
727
728         * device/lib/pic16/Makefile.rules: removed --penable-stack from
729         COMPILE_FLAGS and added the --nostdinc option
730
731 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
732
733         * device/include/mc68hc908jb8.h: Register defs for another member
734         of the hc08 family. Contributed by Bjorn Bringert - thanks!
735
736 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
737
738         Documenting changes from previous commits.
739         * configure.in (version 1.56),
740         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
741         when generating output files to configure the pic16 library,
742         but now I've commented it out, since gputils aren't installed in the
743         SF compile farm, so library won't compile
744
745         * device/lib/Makefile.in (version 1.56): initially I've added in
746         target 'all' the prerequestive 'model-pic16' so it compiled the
747         pic16 library, but now I've commented it out for the same reasons
748         above,
749         * added targets 'model-pic16' and 'objects-pic16' to compile the
750         library
751         * added target 'port-specific-objects-pic16' to handle the
752         generated libraries and copy them into the build/ directory
753         * added target 'clean-intermediate-pic16' to clean intermediate
754         files into pic16 directory
755         * in target 'installdirs' added line to create directory pic16 in
756         the installation path
757
758         * device/include/Makefile.in (version 1.11): in target 'install'
759         added lines to copy all header files to installation path,
760         * in target 'installdirs' added line create directory for pic16
761         headers in the installation path
762
763 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
764
765         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
766          a function call
767
768 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
769
770         * configure,
771         * device/lib/configure.in,
772         * device/lib/configure: fixed for autoconf 2.57
773
774 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
775
776         * src/z80/main.c (_parseOptions): fixed the portmode= command line
777         option so that it actually works. Made it specific to the z80, since
778         the gbz80 doesn't have these kinds of I/O ports.
779
780 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
781
782         * device/include/z180.h,
783         * device/lib/_memcpy.c,
784         * device/lib/_memmove.c,
785         * device/lib/_mulint.c,
786         * device/lib/ser_ir.c,
787         * device/lib/ser_ir_cts_rts.c,
788         * device/lib/_strcmp.c,
789         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
790         * src/z80/main.c (_process_pragma): add support for pragmas bank and
791         portmode; added deprecation warning for bank= and protmode= forms.
792         Also, guard against buffer overflow.
793         * src/z80/gen.c (aopGet): generate better code for sfr banked read
794
795 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
796
797         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
798         changed interrupt vector table generation to only emit declared vectors.
799         * device/include/Makefile.in: added missing backslash
800         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
801
802 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
803
804         Mainly changes to support compilation of the device libraries
805         * src/pic16/device.c: stack is allocated via symbol and not
806         via literal number. The symbol is placed in the corresponding
807         position of the data ram
808         * (pic16_dump_section): relocatable and absolute uninitialized
809         data are now emitted in sorted order to reduce section naming,
810         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
811         weren't marked as being in the access bank,
812
813 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
814
815         Added portion of GNU PIC Library under the directory
816         device/include/pic16 and device/lib/pic16. These files
817         contain the declarations of SFRs for the PIC18Fxx2 devices.
818         The directory is initialized via configure from toplevel.
819         
820 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
821
822         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
823         the spilllocations to be compared correctly
824
825 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
826
827         * src/SDCCast.c (decorateType): fixed bug introduced today
828
829 2004-01-12  Borut Razem <borut.razem AT siol.net>
830
831         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
832         doc/sdccman.lyx: upper case pragmas are deprecated
833
834 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
835
836         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
837         in simpler and even better code
838
839 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
840
841         * src/SDCCicode.c (operandOperation): fixed bug #874819
842         * src/SDCCast.c (decorateType): fixed
843         char foo (unsigned long ul) { return ul > 0; }
844
845 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
846
847         * doc/sdccman.lyx: Moved and added some sections, small changes
848         all over. Telling LaTeX to be less strict with word spacing
849         to better keep the right margin. Changed some notes about
850         maintainance of the ports in section 3.2.1 - is it OK like this?
851
852 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
853
854         SDCC source changes:
855         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
856         convilong): modified to inform the pic16 port that builtin functions
857         are external
858
859         PIC16 PORT specific changes:
860         * src/pic16/device.c pic16_dump_equates() added,
861         processor registers declared internally by the port are emitted in
862         the translation as equates,
863         * src/pic16/gen.c: inline code is passed unprocessed to the
864         translation,
865         * (pic16_popGetLit2): fnuction modified to take second operand as
866         pCodeOp pointer and not as literal,
867         * (popRegFromIdx): prefixed with pic16_,
868         * (pic16_popCombine2): modified to receive already allocated pCode
869         operands,
870         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
871         * (genFunction): initializes local stack frame and pushes on stack
872         all the registers used by this function,
873         * (genEndFunction): restores all registers from stack and restores
874         stack frame,
875         * src/pic16/glue.c (pic16emitRegularMap): various changes and
876         improvements,
877         * (pic16glue): changed the program startup sequence,
878         * added new dbName code 'A' for functions placed in absolute section
879         * src/pic16/main.c: added function attribute _naked,
880         * added pragma 'code' to place a fnuction at an absolute address,
881         * added command line arguments --debug-ralloc and --pcode-verbose,
882         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
883         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
884         * (pic16_newpCodeOpLit2): modified to take the second operand as
885         pCodeOp pointer,
886         * (pic16_printpBlock): modified to emit each function in a separate
887         section,
888         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
889         UPPER for immediate operands,
890         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
891         instruction,
892         * src/pic16/peeph.def: all peepholes with movff are commented out,
893         because there is a problem in the pcode peep optimizer,
894         * src/pic16/ralloc.c: the register allocator can now reuse local
895         function symbols for another function. This saves register usage.
896         * src/pic16/ralloc.h: added flag isLocal in structure regs,
897
898         Added file src/pic16/NOTES with information about program writing on
899         the current port version.
900
901 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
902
903         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
904         and peephole 252 (array access)
905
906 2004-01-09  Borut Razem <borut.razem AT siol.net>
907
908         * src/SDCCmain.c : fixed #872250: -l command line defined library
909           files are scanned before standard library files
910
911 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
912
913         * src/SDCCast.c (decorateType): fixed bug #874046
914
915 2004-01-09  Borut Razem <borut.razem AT siol.net>
916
917         * support/scripts/sdcc.nsi: remove previous installation
918
919 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
920
921         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
922         bytes for last interrupt vector (mcs51)
923         * sdcc.spec: fixed typo
924
925 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
926
927         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
928         gen51Code): more efficient parameter receive for --model-large
929         ("bug" #845294)
930
931 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
932
933         * src/ds390/main.c,
934         * src/z80/main.c: added missed needLinkerScript flags (more than
935         one port structure defined in these file)
936         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
937         bug #795325
938
939 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
940
941         * src/SDCCmain.c: removed various references to DEFAULT_PORT
942         * src/port.h: added flag needLinkerScript in port->linker
943         structure to inform whether to create a .lnk file or not,
944         * src/avr/main.c,
945         * src/ds390/main.c,
946         * src/hc08/main.c,
947         * src/mcs51/main.c,
948         * src/pic/main.c,
949         * src/pic16/main.c,
950         * src/xa51/main.c,
951         * src/z80/main.c: changed appropriately to configure
952         needLinkerScript flag
953         * src/pic/gen.c,
954         * src/pic16/gen.c (genAddrOf): fixed bug #863624
955         * src/pic/glue.c: added variable udata_section_name to
956         override default uninitialized data segment definition for
957         devices only with SHAREBANK memory (reported from Erik Epetrich)
958         * (pic14emitOverlay): modified to emit a commented overlay segment
959         directive when no overlay data exist
960         * (picglue): modified to emit uninitialized data segment
961         according to udata_section_name
962         * src/pic/main.c (_pic14_parseOptions): added command line
963         options --udata-section-name=[name] to override default
964         udata definition name
965         * modified _linkCmd and _asmCmd to include compiler passed
966         arguments via -W option
967         * src/pic16/main.c: added $l in _asmCmd, changed extension for
968         object file from '.rel' to '.o' in port->linker structure,
969         changed size of fptr from 2 to 3 in port structure
970
971 2004-01-07  Borut Razem <borut.razem AT siol.net>
972
973         * support/scripts/sdcc.nsi: update PATH
974         * support/scripts/sdcc.ico: craeted
975
976 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
977
978         * device/include/Makefile.in: fix install
979         * doc/Makefile: fix install
980
981 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
982
983         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
984         in bug #860505
985         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
986         how the function variable allocation summary is displayed; also
987         include information about variables allocated to the overlay
988         segment
989
990 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
991
992         * as/mcs51/lkmain.c: Help about -Y option
993         * as/mcs51/lkarea.c: Fixed gcc warnings
994
995 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
996
997         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
998         fixed warning
999         * support/valdiag/tests/overflow.c: added
1000         * src/SDCCast.c (decorateType),
1001         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
1002         LEFT_OP (left shift)
1003
1004 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1005
1006         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
1007         (default behaviour).
1008
1009 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1010
1011         A python script to validate compiler diagnostic messages. It can be
1012         used to verify that sdcc complains about bad c source code and
1013         gives a good location of the error.
1014         * support/valdiag/Makefile,
1015         * support/valdiag/valdiag.py,
1016         * support/valdiag/tests/*
1017
1018 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1019
1020         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
1021         * src/SDCCsymt.c (newEnumType),
1022         * src/SDCCsymt.h
1023         * support/Util/SDCCerr.c,
1024         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
1025         enum related bugs.
1026         * support/regression/tests/enum.c: added test for enum values that
1027         require at least 2 bytes of storage.
1028
1029 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
1030
1031         * src/common.h: added ifndef/define/endif macros
1032         around the header file.
1033         Bug reported from Jesus Calvino-Fraga
1034
1035 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
1036
1037         * sdcc.spec: updated
1038         * device/include/Makefile.in: don't install CVS directories
1039         * device/lib/Makefile.in: added removal of CVS directories after install
1040         * doc/Makefile: fixed install, added local_icons
1041         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
1042         * src/mcs51/gen.c (genRightShift): fixed bug #870788
1043         * src/ds390/gen.c (genRightShift): fixed bug #870788
1044         * src/SDCCast.c (decorateType): fixed bug #870781
1045
1046 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
1047
1048         PIC16 port related changes:
1049         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
1050         added variable stackPos,
1051
1052         * gen.c: genCall, assignResultValue: added support for
1053         pushing/retrieving function parameters to/from stack,
1054         genFunction,genEndFunction: setup stack frame for the
1055         generated function,
1056         genAddrOf: will be changed according to bug 863624
1057
1058         * added files genutils.c and genutils.h which contain gen*
1059         debugged and optimised functions extracted from gen.c
1060         
1061         * glue.c: added variable 'externs' which holds extern symbols,
1062         pic16emitRegularMap: is modified to properly handle relocatable
1063          symbols under the new scheme,
1064         pic16createInterruptVect: is modified
1065         pic16printPublics: is modified to emit 'global' assembler directives,
1066         added pic16_printExterns to print extern symbols,
1067         pic16glue: initializes stack/frame pointer in the beginning of
1068         the assembly output. Temporary hack, will be corrected later,
1069         because gplink yet does not support stack and SDCC does not
1070         yet support a type of crt0.o object to create the final binary.
1071         
1072         * Removed many lines that contain 8051 legacy code.
1073         * The code is finally placed under a 'code' directive.
1074         * Added port specific options.
1075         
1076         * _process_pragma: simplified since now we do not need *special*
1077         include file to define SFR registers. But a separate header
1078         will be needed. This will be developed later.
1079         * _pic16_parseOptions: added, parses port specific options:
1080         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
1081         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
1082         --preplace-udata-with=
1083         
1084         * _pic16_setDefaultOptions: modified to initialize section names,
1085         but hack is temporarly out of order since it needs improvement.
1086         * _pic16_genAssemblerPreamble: configuration words are emitted by
1087         their address instead of their name. This part is incomplete and
1088         supports only the 18Fxx2 devices. Other devices will emit an error
1089         during assembly since they do not contain the same set of config
1090         registers
1091         * _pic16_genIVT: is modified,
1092         
1093         * pcode.c: added definitions for some hardware registers that are needed
1094         for stack support
1095         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
1096         All PCI entries are updated. Now LFSR is supported.
1097         * Removed pic16_pciTRIS is mentioned by mdubuc in source
1098         * added pic16_newpCodeOpLit2 to support instructions with
1099         two literal arguments
1100         * pic16_pCode2str: corrected code that emits assembler instructions
1101         with two literal operands and those that have an access bit modifier
1102         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
1103         this fixes a bug which caused some labels to be lost, when an
1104         assembler directive was added, i.e. banksel,
1105         * pic16_FixRegisterBanking: improved logic that causes the insertion
1106         of bank switching,
1107         * InlineFunction: functions that are called once, are not any more
1108         inlined. This can be a port option in the future,
1109         
1110         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
1111         
1112         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
1113         hold the corresponding uninitialized symbols,
1114         * pic16_allocProcessorRegister: registers have explicit marked the
1115         accessBank field,
1116         * pic16_allocInternalRegister: registers are explicit marked as
1117         not used,
1118         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
1119         processing list, so bit registers were lost,
1120         * 
1121
1122         * ralloc.h: added field 'accessBank' and original symbol operand
1123         in register definition,
1124         * removed the field isMapped from register definition,
1125
1126         ** Several functions have been removed from various sources:
1127         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
1128         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
1129         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
1130         pic16_assignRelocatableRegisters
1131         
1132         ** others have been introduced:
1133         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
1134         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
1135         
1136 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
1137
1138         * support/scripts/inc2h.pl: changed definition of BIT_AT
1139         to emit 'sbit at' instead of 'bit at'. This was a request.
1140
1141         PIC16 port related preliminary changes:
1142         * gen.c: prefixed function popRegFromString with
1143         pic16_ and all references to it corrected
1144         * pcode.c: all pic16_pc_* hardware registers prefixed
1145         with underscore (_),
1146         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
1147         * ralloc.c: newReg(): when register is REG_SFR then
1148         set address to rIdx,
1149         pic16_allocProcessorRegister(): marks register wasUsed=0
1150         pic16_writeUsedRegs(): added a call to assign processor
1151         registers via pic16_assignFixedRegisters
1152
1153 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1154
1155         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
1156         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
1157         variables in unused register banks.  Also the SSEG is placed
1158         wherever there is enough space for it, and IDATA can be anywhere
1159         in internal RAM.  For now compile using -Wl-Y[stack_size].
1160         The mem file is different for this option as well, since it
1161         makes no sense of talking about DSEG lenght.
1162
1163 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
1164
1165         * src/SDCClrange.c: fixed bug 869095 that caused segfault
1166         in certain cases, e.g. when ROM assignment, patch provided
1167         from Albert den Haan.
1168
1169 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
1170
1171         Many signedness and type propagation fixes:
1172         * src/SDCCicode.c: made geniCodeCast() static
1173         replaced SPEC_ by IS_ (cosmetic)
1174         (operandOperation): fixed div and mod operation
1175         (usualBinaryConversions): added support for promotion of char
1176         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
1177         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
1178         (geniCodeAdd): an array index will stay unsigned, even if promoted
1179         from char to int
1180         (geniCodeArray): ditto
1181         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
1182         * src/SDCCsymt.c (computeType): added more support for char;
1183         promotion of char is selectable by promoteCharToInt, fixed signedness
1184         for all cases
1185         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
1186         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
1187         * src/SDCCval (val*): replaced signedness calculation by
1188         computeType()
1189         rearranged if-branches (cosmetic)
1190         (valShift): added warning W_SHIFT_CHANGED
1191         (valCompare): fixed problem with different types
1192         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
1193         * support/regression/tests/literalop.c: added many cases
1194         * support/regression/tests/ast_constant_folding.c: changed finally to
1195         'unsigned int'
1196         * .version: new year, new version: 2.3.7
1197         * src/SDCCmain.c (main): applied patch #866468
1198         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
1199         provided by Scott Bronson
1200         * doc/sdccman.lyx: updated documentation for sdcdb
1201         updated and added chapter tips
1202
1203 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1204
1205         * src/SDCCsymt.h: missing from yesterday's commits
1206
1207 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1208
1209         * src/SDCC.y (struct_or_union_specifier),
1210         * support/Util/SDCCerr.c,
1211         * support/Util/SDCCerr.h: verify that struct & union tags are used
1212         as declared.
1213
1214 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1215
1216         * src/SDCCglobl.h: missing from yesterday's commits
1217
1218 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1219
1220         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
1221         sft_attributes, struct_declaration, parameter_declaration,
1222         type_name, start_block, declaration_list),
1223         * src/SDCC.lex (check_type): support redefinition of typedef names
1224
1225 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1226
1227         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
1228         aligned xdata arrays. Erik helped me with the if clause.
1229
1230 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1231
1232         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
1233         warning
1234
1235 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1236
1237         * src/SDCCast.h,
1238         * src/SDCCast.c (newAst_),
1239         * src/SDCCicode.h,
1240         * src/SDCCicode.c (ast2iCode, newiCode),
1241         * src/SDCCglobl.h,
1242         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
1243         expr, statement, expression_statement, selection_statement,
1244         iteration_statement, expr_opt, jump_statement): foundation for tracking
1245         sequence points
1246         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
1247         point code too)
1248
1249 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1250
1251         * support/Util/SDCCerr.c,
1252         * src/SDCCast.h,
1253         * src/SDCCast.c (createCase, createDefault, decorateType),
1254         * src/SDCClabel.c (labelUnreach),
1255         * src/SDCC.y (labeled_statement, jump_statement): More improvements
1256         to error messages.
1257         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
1258         (with thanks to Stas Sergeev)
1259         * device/include/time.h,
1260         * device/lib/time.c (CheckTime): suppress unreachable code warning
1261
1262 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1263
1264         * src/SDCCast.c (createIvalCharPtr),
1265         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
1266         bug #753752)
1267         * support/regression/tests/nullstring.c: tests for these two bugs
1268
1269 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1270
1271         * support/Util/SDCCerr.h,
1272         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
1273         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
1274         about storage class and 'at' used inside struct or union
1275         * src/SDCCBBlock.c (iCodeFromeBBlock),
1276         * src/SDCCcse.c (ifxOptimize),
1277         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
1278         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
1279         printIval, emitStaticSeg, emitOverlay),
1280         * src/SDCClabel.c (deleteIfx),
1281         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
1282         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
1283         gatherAutoInit, processParms),
1284         * support/Util/SDCCerr.h,
1285         * support/Util/SDCCerr.c (werrorfl): Support for better error location
1286         reporting for post-parse errors.
1287
1288 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1289
1290         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
1291         implicit casts via union; they don't work on big endian systems
1292         (possible fix for bug #861138)
1293
1294 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1295
1296         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
1297         * src/mcs51/main.c: fixed the fix for bug #737001
1298
1299 2003-12-15  Borut Razem <borut.razem AT siol.net>
1300
1301         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
1302
1303 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1304
1305         * support/makebin/makebin.c: put output in binary mode
1306
1307 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1308
1309         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
1310         xdata and data memory on startup. Set the environment variable
1311         SDCC_NOGENRAMCLEAR to disable this.
1312         * src/mcs51/peephole.def,
1313         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
1314         (allows non-interrupt and interrupt code to safely compete for a resource
1315         without the non-interrupt code having to disable interrupts)
1316
1317 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1318
1319         * src/SDCCicode.c (geniCodeAdd),
1320         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
1321         with valFromType if type might be a pointer and host is big endian).
1322         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
1323         types, not just integer types.
1324         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
1325         multiply defined with mismatching "at" address.
1326
1327 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1328
1329         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
1330         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
1331         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
1332         with embedded nulls (fixed bug #753752)
1333
1334 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1335
1336         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
1337         Apparently this did not see much testing (endless loop)
1338
1339 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1340
1341         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
1342
1343 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1344
1345         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
1346         gracefully handle NULL memmap pointers
1347
1348 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1349
1350         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
1351         instead of deleting the iCode when an operand is volatile
1352         * src/z80/gen.c (genDummyRead),
1353         * src/mcs51/gen.c (genDummyRead),
1354         * src/ds390/gen.c (genDummyRead),
1355         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
1356         not just IC_RIGHT
1357         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
1358         * src/SDCC.y: fixed bug #850420
1359
1360 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1361
1362         Applied z80 i/o port patch from Peter Townson and fixed some operators
1363         to better handle operands in A register.
1364         * device/include/z180.h
1365         * src/SDCC.y
1366         * src/SDCCglue.c
1367         * src/z80/gen.c
1368         * src/z80/gen.h
1369         * src/z80/main.c
1370         * src/z80/peeph-z80.def
1371         * src/z80/peeph.def
1372         * src/z80/z80.h
1373
1374 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1375
1376         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
1377
1378 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1379
1380         * device/lib/hc08/_mullong.c: Removed extra #endif
1381
1382 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1383
1384         * sim/ucsim/hc08.src/inst.cc,
1385         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
1386         carries from x to h
1387         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
1388         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
1389         * device/include/stdarg.h: fixed varargs for hc08
1390         * device/lib/Makefile.in,
1391         * device/lib/hc08/Makefile,
1392         * device/lib/hc08/_mulint.c,
1393         * device/lib/hc08/_mullong.c: fixed some endian problems
1394
1395 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1396
1397         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
1398         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
1399         * device/lib/_gptrget.c,
1400         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
1401
1402 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1403
1404         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
1405         * src/SDCCast.c (astErrors): fixed bug #846007
1406         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
1407
1408 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1409
1410         * src/SDCCast.c (decorateType): disabled a transformation I added in
1411         revision 1.188 (access to fields of a structure at an absolute address);
1412         it breaks with bitfields, extern declarations, and gcse analysis.
1413         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
1414         could be assigned through a pointer, so don't complain.
1415         * src/SDCCast.c (astErrors),
1416         * src/SDCCast.h,
1417         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
1418
1419 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
1420         
1421         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
1422         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
1423         output of __config directives, since gpasm now supports them
1424         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
1425         pre-processor macro, i.e. -DMCU=p18f452
1426         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
1427         and modified to handle 'cast' icode similarly to '=' icode
1428         * src/pic16/device.h (typedef struct PIC_device): added field
1429         'extMIface' to indicate that chip has external memory interface
1430         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
1431         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
1432         18F8720
1433
1434 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1435
1436         * src/SDCC.y (pointer): fixed bug #846006
1437         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
1438         * src/SDCCast.c (decorateType): fixed bug #846009
1439         * src/ds390/peeph.def,        
1440         * src/ds390/gen.c (genAnd, genOr),
1441         * src/mcs51/peeph.def,        
1442         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
1443
1444 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1445
1446         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
1447         * src/SDCCdflow.c
1448         * src/SDCCcse.c
1449         * src/SDCCcse.h
1450         * src/SDCCBBlock.h
1451         * src/SDCCBBlock.c
1452
1453 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
1454
1455         fixed bug #845089
1456         * src/SDCCbitv.h,
1457         * src/SDCCbitv.c: added function to free a bitvector
1458         * src/SDCClrange.h,
1459         * src/SDCClrange.c: added function to recompute the liveranges
1460         * src/avr/ralloc.c,
1461         * src/ds390/ralloc.c,
1462         * src/hc08/ralloc.c,
1463         * src/mcs51/ralloc.c,
1464         * src/pic/ralloc.c,
1465         * src/pic16/ralloc.c,
1466         * src/xa51/ralloc.c,
1467         * src/z80/ralloc.c: recompute the liveranges after register packing
1468
1469 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
1470
1471         * src/SDCCloop.c (newInduction): fixed bug #845630
1472
1473 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1474
1475         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
1476         inadvertantly left behind from my 2003-11-12 change
1477
1478 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1479
1480         Updated headers I neglected to commit yesterday.
1481         * src/SDCClrange.h,
1482         * src/SDCCicode.h
1483
1484 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1485
1486         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
1487         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
1488         * src/SDCCopt.c (eBBlockFromiCode),
1489         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
1490         the creation of the key hash table from the sequencing so it can be used
1491         earlier (for some GCSE bug fixes still pending)
1492
1493 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1494
1495         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
1496         * support/regression/tests/addsub.c: testing genPlus shortcut
1497
1498 2003-11-15  Borut Razem <borut.razem AT siol.net>
1499
1500         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
1501
1502 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1503
1504         * src/SDCCcse.c (cseBBlock): fixed bug #527779
1505         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
1506         ordering is immaterial.
1507         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
1508
1509 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1510         
1511         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
1512         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
1513         (SIGSEV) of bug #840381
1514         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
1515         unlink new file before rename if new and old filenames are the same)
1516
1517 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1518
1519         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
1520         uninitialized variables) for the mcs51. Set environment variable 
1521         SDCC_GENRAMCLEAR to test. 
1522         xdata initialization slightly shorter
1523
1524 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1525
1526         * src/SDCCsymt.h,
1527         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
1528         #838241 & 780691 (basicly the same bug)
1529         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
1530         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
1531
1532 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
1533
1534         * src/SDCCmain.c (linkEdit): "fix" #834252
1535
1536 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1537
1538         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
1539         * src/SDCCast.h,
1540         * src/SDCC.y: fixed bug #819403
1541
1542 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1543
1544         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
1545         the reentrant attribute.
1546         * src/hc08/gen.c (genPackBits): added missing stack readjustment
1547         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
1548         simulation
1549         * src/SDCCast.c (decorateType): fixed bug with storage class not being
1550         updated during pointer dereference; f.e. ~(((char *)1)*) was being
1551         erroneously reduced to a literal.
1552         * src/hc08/ralloc.c (packRegisters, rematStr),
1553         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
1554         some cases
1555
1556 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1557
1558         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
1559         * doc/sdccman.lyx: changed from 'article' to 'book'
1560         * doc/Makefile: readded test_suite_spec and cdbfileformat
1561
1562 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
1563
1564         * device/include/stdlib.h: include malloc.h to comply with ANSI
1565         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
1566
1567 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1568
1569         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
1570         * doc/clean.mk: also remove *.out files
1571         * doc/sdccman.lyx: some additions, larger top/bottom margins
1572
1573 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1574
1575         * src/SDCC.y: fixed bug #837365
1576         * support/regression/tests/bitopcse.c
1577         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
1578         a symbol (might be valop instead)
1579         * device/lib/Makefile.in: added errno.c to HC08SOURCES
1580         * device/lib/clean.mk: added hc08 to the cleaning list
1581
1582 2003-11-04  Borut Razem <borut.razem AT siol.net>
1583
1584         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
1585           made 2003-11-04
1586         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
1587           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
1588           malloc is declared in standard stdlib.h
1589
1590 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1591
1592         * device/lib/hc08/Makefile: need to clean .rel not .o files
1593         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
1594
1595 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1596
1597         * src/port.h,
1598         * src/hc08/main.c,
1599         * src/mcs51/main.c,
1600         * src/ds390/main.c,
1601         * src/z80/main.c,
1602         * src/avr/main.c,
1603         * src/pic/main.c,
1604         * src/pic16/main.c,
1605         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
1606         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
1607         tests (which uses the port's oclsExpense function)
1608         * src/SDCC.y,
1609         * src/SDCCast.c,
1610         * src/SDCCicode.c,
1611         * src/hc08/gen.c,
1612         * src/ds390/gen.c,
1613         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
1614
1615 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1616
1617         * src/SDCCcse.c (ifxOptimize),
1618         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
1619         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
1620         deleting the IFX iCode.
1621         * src/hc08/ralloc.c: reduced unneeded slocs
1622         * src/hc08/gen.c: fixed bug in asmopToBoolean
1623
1624 2003-11-04  Borut Razem <borut.razem AT siol.net>
1625
1626         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
1627           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
1628           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
1629           transferred to configure
1630
1631 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
1632
1633         Use headers defined in the C[++] standards:
1634         * sim/ucsim/gui.src/serio.src/fileio.cc
1635         * sim/ucsim/gui.src/serio.src/frontend.cc
1636         * sim/ucsim/gui.src/serio.src/main.cc
1637         * sim/ucsim/gui.src/serio.src/posix_signal.cc
1638         * support/Util/NewAlloc.c
1639         * as/hc08/lklibr.c
1640         * as/mcs51/lklibr.c
1641         * as/z80/aslist.c
1642         * as/z80/assym.c
1643
1644 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1645
1646         * Added MSVC projects for hc08 assembler and linker:
1647         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
1648         /as/hc08/link_hc08.dsp
1649
1650 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
1651
1652         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
1653
1654 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
1655
1656         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
1657
1658 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1659
1660         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
1661
1662 2003-10-31  Borut Razem <borut.razem AT siol.net>
1663
1664         * support/cpp2/cpplib.h,
1665           support/cpp2/cpplib.c,
1666           support/cpp2/cpplex.c,
1667           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
1668           to switch _asm block preprocessing on / off. Default is
1669           #pragma preproc_asm +
1670
1671 2003-10-31  Borut Razem <borut.razem AT siol.net>
1672
1673         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
1674           when outputting comment blocks (when executed with -C option) and
1675           _asm (SDCPP specific) blocks
1676
1677 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1678         
1679         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
1680
1681 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
1682
1683         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
1684
1685 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
1686
1687         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
1688         * src/SDCCast.c (decorateType): fixed bug #832664
1689
1690 2003-10-31  Borut Razem <borut.razem AT siol.net>
1691
1692         * support\cpp2\cpplex.c: fixed for SDCPP:
1693           comments(when executed with -C option) and _asm blocks
1694           were included even if they where in skipped #if block.
1695           Applied solution from GCC cpp 3.3.2
1696
1697 2003-10-31  Borut Razem <borut.razem AT siol.net>
1698
1699         * src/SDCC.lex: sdcc now understands both formats:
1700           '# <line_number> <file_name>' and
1701           '#line <line_number> <file_name>'
1702         * support/cpp2/cppmain.c: sdcpp now generates the standard
1703           '# <line_number> <file_name>' instead of former
1704           '#line <line_number> <file_name>'
1705
1706 2003-10-30  Borut Razem <borut.razem AT siol.net>
1707
1708         * support/cpp2/cpphash.h,
1709         * support/cpp2/cpplib.h
1710         * support/cpp2/cpplex.c,
1711         * support/cpp2/cppmain.c,
1712         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
1713
1714 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1715
1716         Fixed a number of problems revealed by bug #827883.
1717         * src/SDCCloop.c (loopInvariants): Spill location of the
1718         result operand should be recomputed if extracted from
1719         a loop. Also, don't extract assignments of an iTemp
1720         from a literal.
1721         * src/SDCCast.c (isConformingBody): loop reversal should
1722         not occur if the control variable is involved with a
1723         relational operator.
1724
1725 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
1726
1727         * .version: bumped to 2.3.6 to reflect the big improvements
1728         made by Erik and Klaus. Thanks!
1729
1730 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
1731
1732         Replaced the livrange code.
1733         * src/SDCClrange.c: added new LR code
1734         * src/SDCCloop.c,
1735         * src/SDCCBBlock.h: removed remainig parts from old LR code
1736         * src/ds390/ralloc.c,
1737         * src/ds390/gen.c: minor fixes to make it work with new code
1738
1739 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1740
1741         * as/hc08/asm.h,
1742         * as/hc08/lkrloc.c,
1743         * src/hc08/gen.c,
1744         * src/hc08/ralloc.c: Fix various warnings related to the hc08
1745         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
1746         (tweaked fix for bug #818696)
1747
1748 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1749
1750         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
1751
1752 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1753
1754         * src/SDCCmain.c,
1755         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
1756         * src/mcs51/gen.c (gencjneshort),
1757         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
1758         more efficient (per Scott Bronson's suggestion)
1759
1760 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1761
1762         Extended the semantics of the critical keyword to include
1763         individual statements. See RFE #827755 and #799831
1764         * src/SDCC.y
1765         * src/SDCCicode.c
1766         * src/SDCCopt.c
1767         * src/SDCCast.c
1768         * support/Util/SDCCerr.c
1769         * support/Util/SDCCerr.h
1770         * src/mcs51/gen.c
1771         * src/ds390/gen.c
1772         * src/hc08/gen.c
1773
1774 2003-10-19  Borut Razem <borut.razem AT siol.net>
1775
1776         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
1777
1778 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1779
1780         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
1781         Fixed bug #818696
1782         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
1783         and predecrement operand is displayed
1784
1785 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
1786
1787         * src/SDCCval.c (valMinus): fixed bug #826041
1788
1789 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1790
1791         Some hc08 related updates that I missed earlier
1792         * sim/ucsim/stypes.h
1793         * support/regression/ports/hc08/spec.mk
1794
1795 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1796
1797         New target "hc08" for the Motorola 68hc08 family of micros
1798
1799         * configure
1800         * configure.in
1801         * Makefile
1802         * src/hc08/*
1803         * src/SDCCmain.c
1804         * src/port.h
1805         * sim/ucsim/hc08.src/*
1806         * sim/ucsim/configure.in
1807         * src/ucsim/configure
1808         * sim/ucsim/packages_in.mk
1809         * as/hc08/*
1810         * as/Makefile
1811         * device/include/mc68hc908qy.h
1812         * device/lib/hc08/*
1813         * device/lib/Makefile.in
1814         * support/regression/ports/hc08/*
1815         * support/regression/Makefile
1816
1817 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1818
1819         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
1820         regression test
1821         * src/ds390/gen.c (genCast): fixed bug #821957
1822
1823 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
1824
1825         * device/lib/logf.c: "fixed" overlay bug
1826         * support/regression/ports/host/spec.mk: added m library
1827         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
1828         * support/regression/tests/float_trans: added (for Eric)
1829
1830 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
1831
1832         * src/mcs51/gen.c (genCpl): fixed bug
1833         http://sf.net/mailarchive/message.php?msg_id=6263915
1834
1835 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
1836
1837         * src/SDCCast.c (decorateType): added extended constant folding
1838         * src/SDCCsymt.c (computeType): cleanup
1839         * src/SDCCval.c (valShift): minor optimization
1840         * support/regression/tests/ast_constant_folding.c: added
1841
1842 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1843
1844         * src/SDCCmain.c: removed some unintended changes
1845
1846 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1847
1848         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
1849         * src/z80/gen.c: fixed part of bug #817589
1850         * src/SDCCsymt.c (checkFunction): fixed bug #817895
1851
1852 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
1853
1854         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
1855         * src/SDCCcflow.c
1856         * src/SDCCcse.c
1857         * src/SDCCdflow.c
1858         * src/SDCClabel.c
1859         * src/SDCClrange.c
1860         * src/SDCCmem.c
1861         * src/SDCCopt.c
1862         * src/SDCCpeeph.c
1863         * src/SDCCset.c
1864         * src/avr/ralloc.c
1865         * src/ds390/ralloc.c
1866         * src/izt/ralloc.c
1867         * src/mcs51/ralloc.c
1868         * src/pic/ralloc.c
1869         * src/pic16/ralloc.c
1870         * src/xa51/ralloc.c
1871         * src/z80/ralloc.c
1872         * src/z80/gen.c: removed unused label "release:"
1873
1874 2003-10-06  Borut Razem <borut.razem AT siol.net>
1875
1876         * src/SDCC.lex: removed definition of unused variables
1877           save_optimize and save_options
1878
1879 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
1880
1881         * clean.mk: removed '=' in "-maxdepth=1"
1882         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
1883         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
1884
1885 2003-10-06  Borut Razem <borut.razem AT siol.net>
1886
1887         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
1888           my_unput() replaced by unput()
1889
1890 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
1891
1892         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
1893         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
1894         type-punned pointer will break strict-aliasing rules"
1895         Old LR behaviour is again default; Klaus' LR can be choosen by
1896         defining the environment variable LRKLAUS
1897         * src/SDCCBBlock.h
1898         * src/SDCCloop.c
1899         * src/SDCClrange.c
1900         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
1901         * clean.mk: fixed removal of files in bin/CVS/
1902         * device/lib/clean.mk: fixed removal of directories small and large
1903         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
1904         * src/SDCCicode.c,
1905         * src/SDCCval.c: removed superflous test for pedantic
1906
1907 2003-10-05  Borut Razem <borut.razem AT siol.net>
1908
1909         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
1910           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
1911           message "unmatched #pragma SAVE and #pragma RESTORE"
1912
1913 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1914
1915         * doc/sdccman.lyx: various additions and updates (interrupts, inline
1916           assembly, critical functions, atomic, nojtbound)
1917
1918 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
1919
1920         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
1921         * src/SDCCBBlock.h
1922         * src/SDCCloop.c
1923         * src/SDCCloop.h
1924         * src/SDCClrange.c
1925
1926 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1927
1928         * src/z80/gen.h,
1929         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
1930         * src/mcs51/gen.h
1931         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
1932         * src/ds390/gen.h
1933         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
1934         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
1935         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
1936
1937 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1938
1939         * src/z80/gen.c (genRet): fixed bug #524753
1940         * src/z80/gen.c (genCast): fixed internal error on cast from
1941         pointer to long
1942         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
1943         fix for bug #477835 to the z80
1944         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
1945         for tracking iCodes in the peephole optimizer for z80
1946
1947 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1948
1949         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
1950         the other part of bug #814548
1951         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
1952
1953 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
1954
1955         * src/SDCCcse.c: fixed part of bug #814548
1956
1957 2003-09-28  Borut Razem <borut.razem AT siol.net>
1958
1959         * src/asm.c: rewrite of printILine() to use temporary file instead
1960           a pipe
1961         * src/xa51/main.c: commented out declaration of int rewinds
1962
1963 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1964
1965         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
1966
1967 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1968
1969         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
1970         * src/asm.c (printILine): Fixed bug #811015
1971
1972 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1973
1974         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
1975         freeing.
1976
1977 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1978
1979         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
1980         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
1981         to correctly handle general case of AOP_PAIRPTR
1982         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
1983
1984 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1985
1986         * src/mcs51/ralloc.c (fillGaps),
1987         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
1988         register positioning bug)
1989
1990 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
1991
1992         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
1993
1994 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1995
1996         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
1997         genCodePointerGet, genGenPointerGet, genFarPointerSet,
1998         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
1999         (ralloc doesn't intentionally do this now, but perhaps later)
2000         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
2001         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
2002         register positioning bugs (Fixed bug #762602 and #795325)
2003         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
2004         (Fixed bug #808779)
2005         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
2006         lines that --i-code-in-asm generates
2007
2008 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2009
2010         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
2011         trying to fclose a FILE* that was already closed.
2012
2013 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2014
2015         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
2016         of const struct should be treated as if const themselves)
2017
2018 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
2019
2020         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
2021
2022 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2023
2024         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
2025         Unix (/n) and DOS (/r/n) line terminations.
2026
2027 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2028
2029         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
2030         bug #613775
2031
2032 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2033
2034         * src/mcs51/gen.c (genFunction, genEndFunction),
2035         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
2036         and restore of EA so that stack offsets to parameters are
2037         correct when using both critical and reentrant/stack-auto.
2038         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
2039         size (can be triggered in error if sloc is shared between
2040         different sized objects)
2041         * device/include/float.h: fixed macros to explicitly use
2042         unsigned long where needed
2043
2044 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
2045
2046         Feature req. 799831: added code to allow nesting of critical functions
2047         * src/mcs51/gen.c (genFunction, genEndFunction)
2048         * src/ds390/gen.c (genFunction, genEndFunction)
2049
2050 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2051
2052         * src/SDCCsymt.c (sclsFromPtr),
2053         * src/SDCCsymt.h,
2054         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
2055         support for standard C idiom of memory mapped variables; for
2056         example, *((xdata int*)0x1234) = 1 is now internally equivalent
2057         to xdata int at 0x1234 tempvar = 1.
2058         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
2059         provided by Akiya ISHIDA
2060
2061 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
2062
2063         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
2064         * src/SDCCval.c (constVal): added reduction from int to char
2065         * src/SDCCval.c (valMult, valDiv): fixed sign handling
2066         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
2067         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
2068         to ignore the sign
2069         * support/regression/tests/shifts.c: fixed
2070
2071 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2072
2073         * src/z80/gen.c (genXor): Fixed bug #805445
2074
2075 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2076
2077         Fixed bug #621531 (const & volatile confusion in the type chain).
2078         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
2079         refer to the const or volatile state of the pointer itself.
2080
2081         * src/SDCCast.c
2082         * src/SDCCglue.c
2083         * src/SDCCicode.c
2084         * src/SDCCsymt.c
2085         * src/SDCCval.c
2086         * src/SDCC.y
2087         * src/SDCCsymt.h
2088         * src/pic/gen.c
2089         * src/pic/ralloc.c
2090         * src/pic16/gen.c
2091         * src/pic16/ralloc.c
2092         * support/regression/tests/const.c
2093
2094 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2095
2096         When checking for duplicated modules, use absolute paths
2097         instead of relative paths.  Files changed:
2098
2099         * as/mcs51/lklib.c
2100         * link/z80/lklib.c
2101
2102 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2103
2104         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
2105
2106 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2107
2108         * device/include/string.h: added size_t typedef, changed
2109         prototypes to use size_t, eliminated separate reentrant and
2110         non-reentrant declarations, added _memmove declaration
2111         * device/lib/_memcpy.c: changed to use size_t instead of int,
2112         changed /4 to >>2 to avoid division library call
2113         * device/lib/_memcmp.c,
2114         * device/lib/_memset.c,
2115         * device/lib/_strncat.c,
2116         * device/lib/_strncpy.c,
2117         * device/lib/_strncmp.c: changed to use size_t instead of int
2118         * device/lib/_memmove.c: new file (fixed bug #772294)
2119         * device/lib/Makefile.in: added _memmove.c
2120         * device/lib/z80/asm_strings.s: fixed bug #772290
2121         * support/regression/tests/bitfields.c: attempt to fix host assertion
2122         failure on amd64-unknown-linux2.2
2123
2124 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2125
2126         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
2127         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
2128         * as/z80/asmain.c (main): fixed bug #801766
2129
2130 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
2131
2132         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
2133         compilers
2134
2135 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2136
2137         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
2138         reported in bug #800609
2139
2140 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
2141
2142         * Top header beautifications in src/pic16 directory:
2143           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
2144           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
2145           pcoderegs.h, ralloc.c, ralloc.h
2146         * main.c: added top header and GPL license notice
2147         * pcode.c: fixed the if-conditional warning
2148  
2149 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
2150
2151         * device/lib/_mullong.c: replaced int by short for gcc
2152
2153 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2154
2155         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
2156         and JUMPTABLE iCodes properly now (worked by accident before)
2157         * src/mcs51/gen.c (leftRightUseAcc),
2158         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
2159         iCode properly now. Use getSize instead of nRegs since a & b
2160         aren't part of the nRegs tally.
2161
2162 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
2163
2164         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
2165         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
2166           before instructions that use the _STATUS register
2167
2168 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
2169
2170         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
2171         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
2172         fetching of the pointer
2173         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
2174         copied from genNearPointerSet()
2175         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
2176         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
2177         If they pop r0/r1 they must be called in the opposite order than aopOp().
2178         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
2179         (resp. --stack-auto), prepared for --xstack
2180
2181 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2182
2183         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
2184
2185 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
2186
2187         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
2188         these ports have their own __sdcc_external_start()
2189
2190 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
2191
2192         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
2193         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
2194         type for bits was changed. It resulted in bit variables becoming
2195         global, which is not permitted in PIC 14 assembly output.
2196
2197 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2198
2199         * doc/sdccman.lyx: various additions and updates. Rearranged sections
2200
2201 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2202
2203         Z80 and MCS51 linkers complaint if a public symbol is defined
2204         in more than one library module:
2205
2206         * as/mcs51/lklib.c
2207         * link/z80/lklib.c
2208         * as/mcs51/Makefile.in
2209
2210 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2211
2212         A few small changes that speed up the peephole optimizer.
2213
2214         * src/SDCCpeeph.c
2215
2216 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2217
2218         Try to make the peephole optimizer smarter by maintaining
2219         an association between the assembly source code and the
2220         iCodes that originated them. Put this information to use
2221         with a new peephole rule condition "notVolatile" so that
2222         the rules can be aggressive yet still safe.
2223
2224         * src/SDCCpeeph.c
2225         * src/SDCCpeeph.h
2226         * src/mcs51/gen.c
2227         * src/mcs51/peeph.def
2228
2229 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2230
2231         Fixed bug #741761
2232
2233         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
2234         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
2235         if the left or right operand symbols have the accuse flag set.
2236
2237 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2238
2239         Changed the type of the result of the ! (NOT) operator to char;
2240         previously it returned the same type as the source. This allows
2241         us to eliminate all the genFloatNot functions (all of its target
2242         implementations were very buggy) since !float can use the same
2243         code as !long now.
2244
2245         * src/SDCCicode.c (ast2iCode): ! returns char
2246         * src/mcs51/gen.c (genNot, genNotFloat),
2247         * src/ds390/gen.c (genNot, genNotFloat),
2248         * src/z80/gen.c (genNot, genNotFloat),
2249         * src/pic/gen.c (genNot, genNotFloat),
2250         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
2251
2252 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
2253
2254         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
2255         1. Interrupt would not compile properly. Ensure PCLATH register is saved
2256            during interrupts. Ensure WSAVE is located at a shared bank address.
2257         2. Fixed page selection in some places
2258         3. Fixed BTFSS/C to where necessary use registers directly and not simply
2259            the registers name strings.
2260         4. Fixed "signed / unsigned compare" compiler warnings.
2261         5. The PIC port manages its own allocation of the general purpose
2262            registers, but makes no attempt to reuse them. As a result when
2263            compiling it soon runs out of general purpose registers. Some
2264            additional code was added to the files pcode.c and device.c to walk
2265            through the function call tree and rename the registers so that they
2266            get reused.
2267
2268         * src/pic/device.c
2269         * src/pic/gen.c
2270         * src/pic/glue.c
2271         * src/pic/pcode.c
2272         * src/pic/pcode.h
2273         * src/pic/ralloc.c
2274         * src/pic/ralloc.h
2275         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
2276         genPlus() & genMinus() when the result is the same as left or right
2277
2278 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2279
2280         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
2281
2282 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2283
2284         Made bitfield a distinct type from bit so that bitfields
2285         convert as per ANSI C and bits retain their traditional
2286         boolean style behaviour. Implemented bitfield support in
2287         the z80 port.
2288
2289         * src/SDCCsymt.h,
2290         * src/SDCCsymt.c,
2291         * src/SDCCast.c,
2292         * src/cdbFile.c,
2293         * src/mcs51/gen.c,
2294         * src/ds390/gen.c: bit v bitfield split
2295         * src/z80/gen.c: New support for bitfields
2296         * support/regression/tests/bitfields.c: reenabled z80,
2297         added more tests
2298
2299 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2300
2301         Rules 246.x, 247.x relate to bitfields, the others speed up
2302         access to xdata mapped I/O devices.
2303
2304         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
2305
2306 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2307
2308         Cleaned up genPackBits and genUnpackBits and added two helper
2309         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
2310         for literal assignments in genPackBits (thanks to Frieder for
2311         reminding me).
2312
2313         * src/mcs51/gen.c
2314         * src/ds390/gen.c
2315
2316 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2317
2318         Fixed bug #748310 (pointer to function type mishandled when the
2319         function name is omitted). Also fixed a SIGSEGV when a function
2320         attribute (reentrant, etc) is used on a non-function or on a
2321         function but misplaced before the parameter list.
2322
2323         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
2324         bug #748310
2325         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
2326         * support/Util/SDCCerr.h,
2327         * support/Util/SDCCerr.c: Added func attr misuse error msg
2328
2329 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
2330
2331         Fixed bug #787649 by anonymous
2332         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
2333         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
2334
2335 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2336
2337         Fixed numerous bitfield problems.
2338
2339         * src/SDCC.y: More bitfield related error checking
2340         * src/SDCCsymt.h,
2341         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
2342         * support/Util/SDCCerr.h,
2343         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
2344         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
2345         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
2346         * support/regression/tests/bitfields.c: tests added
2347
2348 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2349
2350         Made the constant following the "interrupt" keyword optional. If
2351         omitted, the function will not automatically be given an entry
2352         in the interrupt vector table (similar to #pragma NOIV, but
2353         less syntacticly kludgy). The interrupt number is also now
2354         range checked. Also fixed a bug in the high order bit example
2355         in the manual.
2356
2357         * src/SDCC.y
2358         * src/SDCCmem.c
2359         * src/SDCCglue.c
2360         * src/SDCCsymt.h
2361         * support/Util/SDCCerr.c
2362         * support/Util/SDCCerr.h
2363         * doc/sdccman.lyx
2364
2365 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
2366
2367         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
2368         * src/SDCCicode.c (operandOperation): rewritten some ops
2369         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
2370         * src/SDCCsymt.c (computeType): literals are handled the same way as any
2371         other type
2372         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
2373         be re-activated by defining REDUCE_LITERALS)
2374         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
2375         unsigned, but are signed by default
2376         * src/SDCCval.c (constVal): rearranged
2377         * src/SDCCval.c (valMod): preliminary fix
2378         * src/SDCCval.c (valCastLiteral): use TYPE_* types
2379         * support/regression/literalop.c: added, work in progress
2380
2381 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2382
2383         Generate warnings for useless declarations like "char data;"
2384         that don't do what new users expect.
2385
2386         * src/SDCC.y
2387         * support/Util/SDCCerr.h
2388         * support/Util/SDCCerr.c
2389
2390 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
2391
2392         * src/SDCCval.c (valMult): fix overflow detection of negative int
2393
2394 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2395
2396         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
2397
2398         Changes to support big endian targets:
2399
2400         * src/ports.h
2401         * src/SDCCglue.c
2402         * src/avr/main.c
2403         * src/ds390/main.c
2404         * src/izt/i186.c
2405         * src/mcs51/main.c
2406         * src/pic/main.c
2407         * src/pic16/main.c
2408         * src/xa51/main.c
2409         * src/z80/main.c
2410
2411 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
2412
2413         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
2414         * device/lib/time.c: fixed warning "integer overflow in expression"
2415
2416 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
2417
2418         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
2419         * src/SDCCval.c (constVal): changed default to signed; hex and octal
2420         constants are unsigned; added recognition of "u" flag for unsigned
2421         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
2422         * src/SDCCval.c (valDiv, valMod): fixed signdness
2423         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
2424         signedness of modulo, left and right shift
2425         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
2426         * support/Util/SDCCerr.h: added warning W_INT_OVL
2427         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
2428         * src/SDCCast.c (ast_print): improved output of constants
2429
2430 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2431
2432         Fixed some warnings when building with MSVC:
2433
2434         * as\mcs51\asdata.c
2435         * as\z80\asdata.c
2436         * as\mcs51\asm.h
2437         * as\z80\asm.h
2438         * link\z80\aslink.h
2439         * link\z80\lkdata.c
2440         * link\z80\lkeval.c
2441         * link\z80\lkgb.c
2442         * link\z80\lkihx.c
2443         * link\z80\lks19.c
2444         * link\z80\lksym.c
2445         * support\cpp2\cpplib.c
2446         * src\ds390\gen.c
2447         * src\mcs51\gen.c
2448     
2449 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
2450
2451         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
2452
2453 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2454
2455         * support\librarian\clean.mk: Do not remove Makefile.
2456         * support\librarian\Makefile: added.
2457
2458 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2459
2460         Added librarian to MSVC build:
2461         * all.dsp
2462         * sdcc.dsw
2463         * support\librarian\librarian.dsp
2464
2465         'configure' not needed for librarian, removed:
2466         * support\librarian\configure
2467         * support\librarian\configure.in
2468         * support\librarian\config_in.h
2469         * support\librarian\Makefile.in
2470
2471         Hopefully these ones built the librarian and the rest of sdcc properly:
2472         * Makefile
2473         * Makefile.common.in
2474
2475         Messed up 'configure', so revert to previous version:
2476         * configure
2477         * configure.in
2478
2479 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
2480
2481         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
2482         there, while the mantissa of a double is "only" 53 bits wide.
2483
2484 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2485
2486         Adding sdcclib to the build.  MSVC project coming soon.
2487         Files added/changed:
2488
2489         * support\librarian\clean.mk
2490         * support\librarian\configure
2491         * support\librarian\configure.in
2492         * support\librarian\config_in.h
2493         * support\librarian\Makefile.bcc
2494         * support\librarian\Makefile.in
2495         * support\librarian\sdcclib.c
2496         * Makefile.bcc
2497         * Makefile
2498         * Makefile.common.in
2499         * configure
2500         * configure.in
2501
2502 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2503
2504         Linker now complaints if linked modules have conflicting options, for
2505         example, one compiled using --model-large and another one compiled with
2506         --model-small.  The following files were modified:
2507
2508         * as\mcs51\asdata.c
2509         * as\mcs51\aslink.h
2510         * as\mcs51\asm.h
2511         * as\mcs51\asmain.c
2512         * as\mcs51\asout.c
2513         * as\mcs51\i51pst.c
2514         * as\mcs51\lkdata.c
2515         * as\mcs51\lklibr.c
2516         * as\mcs51\lkmain.c
2517         * as\z80\asdata.c
2518         * as\z80\asm.h
2519         * as\z80\asmain.c
2520         * as\z80\asout.c
2521         * as\z80\z80pst.c
2522         * link\z80\aslink.h
2523         * link\z80\lkdata.c
2524         * link\z80\lklibr.c
2525         * link\z80\lkmain.c
2526         * src\SDCCglue.c
2527
2528 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2529
2530         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
2531         as/mcs51/lklibr.c: Generate a warning when a library is not found.
2532
2533 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
2534
2535         * src/z80/mappings.i: fix _mul[us][int,long] entries
2536
2537 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2538
2539         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
2540
2541 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
2542
2543         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
2544         * support/regression/tests/bitopcse.c: added
2545         fixed warning:
2546         * src/avr/gen.c:
2547         * src/pic/gen.c:
2548         * src/pic16/gen.c:
2549         * src/z80/gen.c:
2550         * src/xa51/gen.c:
2551
2552 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2553
2554         added support for new library format to z80, gbz80 linkers:
2555         *link/z80/aslink.h
2556         *link/z80/lklex.c
2557         *link/z80/lklib.c
2558         *link/z80/lklist.c
2559
2560 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
2561
2562         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
2563         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
2564
2565 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
2566
2567         added DUMMY_READ_VOLATILE:
2568         * src/SDCC.y:
2569         * src/avr/gen.c:
2570         * src/xa51/gen.c:
2571         * src/z80/gen.c:
2572         * src/pic/gen.c:
2573         * src/pic16/gen.c:
2574         * src/mcs51/gen.c:
2575         * src/ds390/gen.c:
2576         * src/SDCCcse.c (algebraicOpts): many improvements
2577         * src/SDCCcse.h: removed algebraicOpts()
2578         * src/SDCCicode.c (picDummyRead): added
2579
2580 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2581
2582         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
2583         "Insufficient space in data memory".
2584
2585 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2586
2587         * src/mcs51/gen.c: fixed bug #771358
2588         * src/z80/gen.c: fixed bug #759087
2589
2590 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
2591
2592         * src/pic16/glue.c: minor cleanup by Vangelis
2593
2594 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2595
2596         * device/include/regc515c.h: fixed #758477
2597         * device/lib/_gptrget.c: saving some cycles in generic pointer get
2598         * device/lib/_gptrput.c: saved a few bytes
2599         * my tab spacing is 8, yours too?)
2600         * device/lib/_ser.c: process RX bytes earlier than TX bytes
2601         * device/lib/serial.c: process RX bytes earlier than TX bytes
2602         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
2603
2604 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2605
2606         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
2607
2608 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2609
2610     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
2611
2612 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
2613
2614         * device/lib/Makefile.in: bad fix, reverted to 1.43
2615
2616 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
2617
2618         * device/lib/Makefile.in: added missing z80 object files
2619
2620 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
2621
2622         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
2623         pic16 progress by Vangelis:
2624         * src/SDCCglobl.h:
2625         * src/SDCCmain.c:
2626         * src/pic/Makefile:
2627         * src/pic:
2628         * pic/Makefile:
2629         * pic16/device.c:
2630         * pic16/device.h:
2631         * pic16/gen.c:
2632         * pic16/gen.h:
2633         * pic16/genarith.c:
2634         * pic16/glue.c:
2635         * pic16/main.c:
2636         * pic16/pcode.c:
2637         * pic16/pcode.h:
2638         * pic16/pcodepeep.c:
2639         * pic16/peeph.def:
2640
2641 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2642
2643     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
2644
2645 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2646
2647     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
2648     added gbz80 build to MSVC project.
2649     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
2650     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
2651     from 8051 stuff and setup so it links using a .lnk file.
2652
2653 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2654
2655     * support/librarian/sdcclib.c: sdcc librarian.
2656     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
2657     with sdcclib.
2658
2659 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2660
2661     * as/mcs51/lkmain.c: properly handle extensions in function afile.
2662
2663 2003-07-02  Borut Razem <borut.razem AT siol.net>
2664
2665         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
2666         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
2667         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
2668         src/xa51/main.c, src/z80/main.c:
2669         virtualization of glue() function: each port has it's own glue function,
2670         which is accessed by do_glue function pointer in PORT.general structure
2671
2672 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
2673
2674         * DS800C400 fun, improved ROM interface and tinibios.
2675
2676 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
2677
2678         * More support for DS80C400. Now includes beginning of interface to ROM.
2679
2680 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
2681
2682         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
2683
2684 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2685
2686         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
2687
2688 2003-06-19  Borut Razem <borut.razem AT siol.net>
2689
2690         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
2691
2692 2003-06-19  Borut Razem <borut.razem AT siol.net>
2693
2694         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
2695         fixed Z80 port - crt0.o: cannot open.
2696
2697 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
2698
2699         * support/Util/MySystem.c (merge_command): revert bad fix
2700
2701 2003-06-18  Borut Razem <borut.razem AT siol.net>
2702
2703         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
2704
2705 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2706
2707         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
2708         option --use-stdout sends errors to stdout instead of stderr.
2709
2710 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
2711
2712         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
2713
2714 2003-06-15  Borut Razem <borut.razem AT siol.net>
2715
2716         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
2717         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
2718         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
2719         fixed width array of pointers replaced with sets;
2720         multiple include and lib paths ared transferred to preprocessor and linker
2721         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
2722         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
2723         fixed width array of pointers
2724         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
2725         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
2726         fixupPath(), getPathDifference()
2727         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
2728         fixed width array of pointers
2729
2730 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
2731
2732         * src/pic16/ralloc.c: fix warnings
2733         * src/pic16/pcode.c: fix warning
2734
2735 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
2736
2737          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
2738         know all the details, but essentially this set of changes enable
2739         the pic16 port to generate movff instructions and generate assembler
2740         directives,
2741         * src/SDCCmain.c:
2742         * src/pic16/gen.c:
2743         * src/pic16/glue.c:
2744         * src/pic16/pcode.c:
2745         * src/pic16/device.c:
2746         * src/pic16/main.c:
2747         * src/pic16/pcode.h:
2748         * src/pic16/pcoderegs.c:
2749         * src/pic16/ralloc.c:
2750         * src/pic16/ralloc.h:
2751
2752 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2753
2754         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
2755         added option --vc, so sdcc errors and warnings are compatible with
2756         Microsoft Visual Studio.
2757
2758 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2759
2760         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
2761           device/lib/libfloat.lib: added atof function.
2762
2763 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
2764
2765         * doc/sdccman.lyx: updated to Lyx 1.3
2766         * doc/cdbfileformat.lyx: updated to Lyx 1.3
2767         * doc/test_suite_spec.lyx: updated to Lyx 1.3
2768         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
2769
2770 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
2771
2772         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
2773
2774 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2775
2776         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
2777           additions to the "related tools/documentation" section
2778
2779 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
2780
2781         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
2782
2783 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
2784
2785         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
2786         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
2787
2788 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
2789
2790         * doc/sdccman.lyx: fix double dash and other minor things
2791         * doc/Makefile: fix double dash
2792
2793 2003-05-28  Karl Bongers(patches from Martin Helmling)
2794         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
2795           condition and ignore commands.
2796
2797 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2798
2799         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
2800           is in parts still quite out of date, I did changes as far as I felt makes sense
2801           for a non-native english speaker.
2802           Please feel free to add to the manual or to correct my changes.
2803         * doc/Makefile: undid touching the date of intermediate tex files.
2804
2805 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2806
2807         * doc/sdccman.lyx: Manual has an index now
2808
2809 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
2810
2811         Finalize muluint/mulsint and mululong/mulslong merging:
2812         * device/lib/_mulint.c
2813         * device/lib/_mullong.c
2814         * device/lib/gbz80/mul.s
2815         * device/lib/gbz80/stubs.s
2816         * device/lib/z80/mul.s
2817         * device/lib/z80/stubs.s
2818         * src/SDCCsymt.c (initCSupport)
2819
2820 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2821
2822         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
2823         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
2824           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
2825           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
2826           instead of /Zm500.
2827
2828 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2829
2830         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
2831           the regression tests I'm not brave enough to enable 245.b, 245.c
2832         * doc/sdccman.lyx: added latex preamble for hyperref package.
2833           Using pdflatex this will give you a hyperlinked pdf file with
2834           bookmarks. (prepend '%' before /usepackage if this breaks something)
2835
2836 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2837
2838          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
2839          
2840 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
2841
2842         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
2843
2844 2003-05-21    <johan AT balder>
2845
2846         * src/SDCCglue.c (printIval): fixed bug #739934
2847
2848 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
2849
2850         Applied patch from bug 737905 (renamed yylineo to mylineno):
2851         * src/altlex.c
2852         * src/SDCCast.c
2853         * src/SDCglobl.h
2854         * src/SDCC.lex
2855         * src/SDCCsymt.c
2856         * src/SDCCval.c 
2857         * src/pic16/pcode.c: Cleaned warnings
2858         * src/pic16/pcodeflow.c: Cleaned warnings
2859         * src/pic16/pcoderegs.c: Cleaned warnings
2860
2861 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
2862
2863         * src/pic16/pcode.c: Cleaned warnings
2864         * src/pic16/pcodepeep.c: Cleaned warnings
2865         * src/pic16/ralloc.c: Cleaned warnings
2866
2867 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
2868
2869         * doc/sdccman.lyx: fixed bug 739745
2870         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
2871
2872 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
2873
2874         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
2875         it can be defined with CFLAGS when running configure
2876         * src/SDCCmain.c: fixed compiling + linking with object files
2877
2878 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
2879
2880         * configure.in: configure for pic16 port,
2881             added --disable-pic16-port
2882         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
2883         * src/SDCCmain.c: linkOptions is changed to set *,
2884             added if/endif conditional macros to remove options help
2885             messages from optionsTable when a port is not configured, added
2886             support for the PIc16 port in the ports table, when executing
2887             the compiler with no port specified on command line, a default
2888             port is selected with the new macro DEFAULT_PORT which is
2889             defined in port.h, in setDefaultOptions() linkOptions is removed
2890             from initialization assignment, since now it is a set,
2891             parseCmdLine uses setParseWithComma for linkOptions, in
2892             linkEdit() linkOptions are accessed with new function indexSet()
2893             which returns the i'th item of a set variable. See SDCCset.c, in
2894             linkEdit() when calling buildCmdLine(), added linkOptions as
2895             last argument. Now users can pass arguments to gplink via the
2896             -Wl option, main() uses pic16glue() to glue up pic16 programs
2897         * src/SDCCpeeph.c: various changes to support pic16
2898         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
2899             return the i'th item of the set
2900         * src/SDCCset.h: added function prototype for indexSet()
2901         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
2902         * src/clean.mk: added pic16 in CLEANALLPORTS variable
2903         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
2904             added macro DEFAULT_PORT
2905         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
2906         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
2907             generated
2908         * src/pic16/glue.c: commented out some error producing lines
2909         * src/pic16/main.c: __config directives are commented out to stop
2910             gpasm complaining and test the linkage with gplink, _linkCmd and
2911             _asmCmd changed to be more gplink and gpasm friendly
2912         * src/pic16/peeph.def: peep rule 3 is commented out, since it
2913             produced an error when parsed, peep rule 12 is added to utilize
2914             movff, but it is commented out since the pCode does not support
2915             yet a command with 2 address arguments
2916
2917 2003-05-18    <johan AT balder>
2918
2919         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
2920         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
2921 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
2922
2923         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
2924   Added feature to script commands from file.
2925
2926 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
2927
2928         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
2929         * src/SDCCutil.c: include ctype.h for win32
2930
2931 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
2932
2933         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
2934
2935 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
2936
2937         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
2938   Fixed so you can set breakpoints prior to run, run does not stop
2939   on entry now.  Add tbreak.  Other enhancements and fixes for use
2940   with ddd.
2941
2942 2003-05-12  Borut Razem <borut.razem AT siol.net>
2943
2944         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
2945
2946 2003-05-11  Borut Razem <borut.razem AT siol.net>
2947
2948         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
2949         the path of bin directory, so that PATH is the only env. variable, which has to be set
2950         in case of standard installation.
2951         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
2952         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
2953         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
2954
2955 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
2956
2957         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
2958         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
2959         temp files are in the port dir; clean the gen/test directory when
2960         generating new test.c
2961         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
2962         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
2963         * support/regression/tests/zeropad.c: added
2964
2965 2003-05-09    <johan AT balder>
2966
2967         * src/SDCCglue.c: fixed bug #597940
2968
2969 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
2970
2971         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
2972   cache sfr, optimize next,step, fix off by one sourceline,
2973   support ddd list function.
2974         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
2975
2976 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
2977
2978         * support/regression/HTMLgen.py: added compare_s2f()
2979         * support/regression/Makefile: redo 1.27
2980         * support/regression/generate-cases.py: redo 1.5
2981
2982 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
2983
2984         * support/regression/tests/float.c: workaround 33 bit hex constant
2985         * support/regression/tests/simplefloat.c: fix division for host
2986
2987 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
2988
2989         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
2990         that tame's the PIC's over-aggressive optimizer.
2991
2992 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2993
2994          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
2995          support for MSVC.
2996          
2997 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
2998
2999         Initial support for DS80C400. "Hello world" runs on TINIm400
3000         (with polled I/O).
3001
3002 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
3003
3004          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
3005          * Some notes on ddd usage added in debugger/README
3006          Martin Helmling adding more features and fixes for ddd GUI debugger.
3007          Code added for nexti, stepi, up, down, and other adjustments.
3008
3009 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
3010
3011         * src/pic/pCodepeep.c non-wildcard asmops are now handled
3012         * src/pic/peeph.def Added two rules to optimize carry manipulation
3013         * src/pic/* removed debug printfs
3014
3015 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
3016
3017         * debugger/mcs51/cmd.c: added header newalloc.h
3018
3019 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
3020
3021         * as/Makefile: new EXEEXT
3022         * as/z80/Makefile: remove trailing slash of BUILDIR
3023         * as/z80/clean.mk: new EXEEXT
3024         * Makefile.common.in: add to CFLAGS (and others), don't replace it
3025         * support/cpp2/Makefile.in: new EXEEXT
3026         * src/pic/glue.c (pic14emitRegularMap): fixed warning
3027
3028 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
3029
3030         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
3031         EXEEXT was introduced to fix all related problems with targets
3032         "clean", "install" and "uninstall"; a couple of further flaws
3033         especially with "clean" have been fixed too
3034         * as/mcs51/Makefile.in
3035         * as/mcs51/clean.mk
3036         * as/z80/Makefile
3037         * Makefile
3038         * clean.mk
3039         * debugger/mcs51/Makefile.in
3040         * debugger/mcs51/clean.mk
3041         * link/z80/Makefile
3042         * link/z80/Makefile.in
3043         * link/z80/clean.mk
3044         * link/Makefile
3045         * packihx/Makefile.in
3046         * packihx/clean.mk
3047         * sim/ucsim/Makefile
3048         * sim/ucsim/clean.mk
3049         * sim/ucsim/avr.src/Makefile.in
3050         * sim/ucsim/avr.src/clean.mk
3051         * sim/ucsim/s51.src/Makefile.in
3052         * sim/ucsim/s51.src/clean.mk
3053         * sim/ucsim/xa.src/Makefile.in
3054         * sim/ucsim/xa.src/clean.mk
3055         * sim/ucsim/z80.src/Makefile.in
3056         * sim/ucsim/z80.src/clean.mk
3057         * sim/ucsim/main_in.mk
3058         * sim/ucsim/packages_in.mk
3059         * sim/ucsim/gui.src/Makefile.in
3060         * sim/ucsim/gui.src/serio.src/Makefile.in
3061         * sim/ucsim/gui.src/serio.src/clean.mk
3062         * src/Makefile.in
3063         * src/clean.mk
3064         * support/cpp2/Makefile.in
3065         * support/cpp2/clean.mk
3066         * support/makebin/Makefile
3067         * support/makebin/clean.mk
3068         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
3069         * doc/sdccman.lyx: --program-suffix no longer needed
3070
3071 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
3072
3073          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
3074          Martin Helmling added support for ddd GUI debugger.
3075          Code added to display assembly, set variables, and other commands
3076          to interface to ddd.
3077
3078 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
3079
3080         * as/Makefile: fix target clean
3081         * as/clean.mk: fix target clean
3082         * as/z80/clean.mk: fix target clean
3083
3084 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
3085
3086         * Makefile.common.in: added  AT EXEEXT AT 
3087         * configure.in: removed all mingw32 stuff
3088         * configure: rebuilt from configure.in
3089         * doc/sdccman.lyx: updated section "installation"
3090         * support/scripts/sdcc_mingw32: adapted to configure
3091         * support/scripts/sdcc_cygwin_mingw32: added
3092
3093 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
3094
3095         * src/pic Added object file support for the PIC port
3096         * src/pic Applied patch from Craig Franklin (this started the object file support)
3097         * src/regression Updated the PIC regression tests for object files
3098
3099 2003-04-20  Borut Razem <borut.razem AT siol.net>
3100
3101         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
3102           lklex.c: In function `getfid':
3103           lklex.c:203: warning: array subscript has type `char'
3104         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
3105           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
3106         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
3107           stack handling macros
3108
3109 2003-04-19  Borut Razem <borut.razem AT siol.net>
3110
3111         * "handling space characters in file path" task:
3112         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
3113         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
3114         * support/Util/MySystem.h: make it self-sufficient
3115         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
3116           src/z80/main.c, sdcc/as/mcs51/lklex.c:
3117           handling space characters in file path
3118         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
3119           (it will be used by assemblers, which have their own includes, e.g. gpasm)
3120         * support/Util/MySystem.c: handling space characters in executable's path
3121
3122 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
3123
3124         * as/z80/Makefile: fix permanent rebuild of z80
3125         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
3126         * support/regression/tests/bitfields.c: added Johan's bitfields.c
3127
3128 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
3129
3130         * src/SDCCopt.c: add special case optimization to replace modulo by
3131           a power of two with a bitwise AND.
3132
3133 2003-04-18    <johan AT balder>
3134
3135         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
3136
3137 2003-04-17    <johan AT balder>
3138
3139         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
3140         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
3141
3142 2003-04-13  Borut Razem <borut.razem AT siol.net>
3143
3144         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
3145         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
3146           fixed mingw problem in adl_NORMALIZE_PATH
3147
3148 2003-04-12  Borut Razem <borut.razem AT siol.net>
3149
3150         * fixed "#pragma SAVE/RESTORE can not be nested":
3151         * src/SDCC.lex: reworked pragma handling functions
3152         * sdcc/src/SDCCglobl.h: reworked stack handling macros
3153         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
3154
3155 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
3156
3157         * src/SDCCutil.c (pathEquivalent): defined but not used
3158         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
3159         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
3160         * configure: rebuilt from configure.in
3161         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
3162         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
3163         * device/include/Makefile.in: replace sdcc_datadir
3164         * device/lib/Makefile.in: replace sdcc_datadir
3165         * Makefile.common.in: add LDFLAGS from configure
3166         * packihx/Makefile.in: use LDFLAGS
3167         * src/Makefile.in: use LDFLAGS
3168         * support/cpp2/Makefile.in: add LDFLAGS from configure
3169         * support/makebin/Makefile: use LDFLAGS
3170         * .version: bumped version number to 2.3.5
3171
3172 2003-04-12  Borut Razem <borut.razem AT siol.net>
3173
3174         * completed "different paths" task:
3175         * src/SDCCmacro.c: fixed bug in handling quotes
3176         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
3177         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
3178
3179 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
3180
3181         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
3182
3183 2003-04-11 kevin Vigor <kevin AT vigor.nu>
3184
3185         * ds390/gen.c ds390/peeph.def: fix bug 706781
3186
3187 2003-04-11  Borut Razem <borut.razem AT siol.net>
3188
3189         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
3190
3191 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
3192
3193         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
3194         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
3195          set - this bit used to not be set...).
3196         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated 
3197           bad code in PIC Port
3198         * src/regression/and2.c added to test bug 609268
3199         * src/regression/Makefile added and2.c to regression test
3200
3201
3202 2003-04-08    <johan AT CP255758-A>
3203
3204         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
3205         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
3206         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
3207
3208 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
3209
3210         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
3211         fix bug #487815
3212         * support/cpp2/Makefile.in: fix bug #487815
3213         * configure: rebuilt from configure.in
3214         * Makefile.common.in: docdir changed, new path suffixes
3215         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
3216         * sdcc_vc_in.h: reflect changes from sdccconf.h
3217         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
3218         * src/SDCCutil.h: remove BINDIR hack
3219         * doc/sdccman.lyx: update new path hierarchy
3220
3221 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
3222
3223         * src/SDCCpeeph.c: added okToRemoveSLOC test
3224
3225 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
3226
3227         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
3228
3229 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
3230
3231         * src/SDCCpeeph.c: added labelIsReturnOnly test
3232         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
3233
3234 2003-04-05    <johan AT balder>
3235
3236         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
3237         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
3238         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
3239         * src/SDCCast.c: fixed a warning
3240         * src/SDCCast.h: fixed a warning
3241         * src/SDCCicode.c (operandFromAst): fixed a warning
3242
3243 2003-04-04    <johan AT balder>
3244
3245         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
3246         * src/SDCCast.c (decorateType): fixed bug #715076
3247         * src/SDCC.y: fixed bug #702907
3248
3249 2003-04-03    <johan AT balder>
3250
3251         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
3252         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
3253         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
3254         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
3255         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
3256
3257 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
3258
3259         * _decdptr.c: fix return values
3260         * _gptrget.c: fix return values
3261         * _gptrgetc.c: fix return values
3262         * _gptrput.c: fix return values
3263         * _mulint.c: fix return values
3264         * as/z80/Makefile: fix 'make -j' problem
3265
3266 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
3267
3268         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
3269         * configure.in: big cleanup, updated to autoconf 2.5x
3270         * configure: rebuilt from configure.in
3271         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
3272         * sdcc_vc_in.h: reflect changes from sdccconf.h
3273         * doc/Makefile: fixed a flaw in "make install"
3274
3275 2003-04-02    <johan AT balder>
3276
3277         * src/ds390/gen.c (genCmp): no comments
3278         * src/mcs51/gen.c (genCmp): no comments
3279         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
3280         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
3281
3282 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
3283
3284         * support/regression/generate-cases.py: place generated file in given sub directory
3285         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
3286         * support/regression/Makefile: improvements for 'make -j';
3287         side effect: it's simpler and faster now
3288
3289 2003-03-31  Borut Razem <borut.razem AT siol.net>
3290
3291         * src/z80/main.c: link-{port} and as-{port} defined without path
3292         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
3293
3294 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
3295
3296         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
3297
3298 2003-03-30  Borut Razem <borut.razem AT siol.net>
3299
3300         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
3301           changed type of list parameter to set
3302         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
3303         * src/port.h: changed type of do_assemble() parameter to set
3304         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
3305           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
3306           definition of "cppoutfilename" macro with NULL value in preProcess()
3307         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
3308         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
3309         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
3310           replaced with set *binPathSet
3311         * shash_add() deallocates the item, if allready exsists, before adding the new one
3312         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
3313
3314 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
3315
3316         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
3317           a nested for loop bug in the PIC port
3318         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
3319           for loops
3320
3321 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
3322
3323         * support/Util/dbuf.h: remove C++ stuff to make it portable
3324
3325 2003-03-28  Borut Razem <borut.razem AT siol.net>
3326
3327         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
3328           literal strings in stringLiteral()
3329         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
3330         * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
3331           to the project
3332
3333 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
3334
3335         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
3336
3337 2003-03-26    <johan AT balder>
3338
3339         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
3340         * src/ds390/gen.c (saveRegisters): catched symbol abuse
3341         * src/SDCCast.c (decorateType): fixed " -v < 3"
3342
3343 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
3344
3345         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
3346         Added Lenny Story's debug infrastructure changes:
3347         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
3348         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
3349         * src/cdbFile.c: added
3350         * src/SDCCdebug.c: added
3351         * src/SDCCdebug.h: added
3352         * src/SDCCast.c (createFunction)
3353         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
3354         * src/SDCCmain.c (parseCmdLine, main)
3355         * src/SDCCmem.c (redoStackOffsets)
3356         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
3357         * src/SDCCsymt.h
3358         * src/common.h
3359         * src/avr/gen.c (genAVRCode)
3360         * src/ds390/gen.c (gen390Code)
3361         * src/mcs51/gen.c (gen51Code) 
3362         * src/pic/gen.c (genpic14Code)
3363         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
3364         * src/xa51/gen.c (genXA51Code)
3365         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
3366
3367 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3368
3369         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
3370         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
3371
3372 2003-03-22    <johan AT balder>
3373
3374         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
3375
3376 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
3377
3378         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
3379         * doc/cdbfileformat.lyx: added, written by Lenny Story
3380         * doc/Makefile: added cdbfileformat.lyx
3381         * doc/clean.mk: added cdbfileformat.lyx
3382
3383 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
3384
3385         * src/mcs51/peeph.def: fix bug #705773
3386
3387 2003-03-20    <johan AT balder>
3388
3389         An sfr/sbit can have an "at #" AND an initializer
3390         * src/SDCCsymt.c (checkSClass): 
3391         * src/SDCCmem.c (allocGlobal): 
3392         * src/SDCCmem.c (allocLocal):
3393         * src/SDCCast.c (createBlock): 
3394
3395 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
3396
3397         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
3398
3399 2003-03-16    <johan AT balder>
3400
3401         Undid the hackup of const and volatile, the problem is much bigger
3402         * src/SDCC.y:1.65
3403         * src/SDCCast.c:1.171
3404         * src/SDCCglue.c:1.138
3405         * src/SDCCicode.c:1.146
3406         * src/SDCCsymt.c:1.150
3407         * src/SDCCval.c:1.65
3408
3409 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
3410
3411         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
3412         * src/ds390/gen.c (genAddrOf): fixed bug #704087
3413
3414 2003-03-13    <johan AT balder>
3415
3416         Hackup const and volatile modifiers in type chains a bit:
3417         * src/SDCC.y:1.63
3418         * src/SDCCast.c:1.169
3419         * src/SDCCglue.c:1.136
3420         * src/SDCCicode.c:1.143
3421         * src/SDCCsymt.c1.146
3422         * src/SDCCsymt.h1.59
3423         * src/SDCCval.c:1.63
3424
3425 2003-03-12    <johan AT balder>
3426
3427         * src/SDCCBBlock.h: more LRH debugging junk
3428         * src/SDCCcflow.h: more LRH debugging junk
3429         * src/SDCCloop.c: more LRH debugging junk
3430         * src/SDCC.y (struct_declaration): fixed bug #697590
3431         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
3432         * src/ds390/gen.c (aopForRemat): fixed bug #700031
3433         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
3434
3435 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
3436         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
3437         test function names must now match exactly).
3438         * src/SDCCcse.c: added special case in findCheaperOp to allow
3439         extending a short integer. Makes less awful code for bug 700121 test case.
3440
3441 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3442
3443         * as/mcs51/lkmain.c: Added ASlink-Warning to messages 
3444         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
3445
3446 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
3447
3448         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
3449         actually called (operandsNotEqual() was called for all 
3450         operandsNotEqualX tests).
3451
3452 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
3453
3454         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
3455         with shorter literals. Fixes bug 700121.
3456
3457 2003-03-11    <johan AT balder>
3458
3459         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
3460
3461 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
3462
3463         * src/SDCCloop.c (mergeRegions): an evil beast is dead
3464         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
3465
3466 2003-03-10  Borut Razem <borut.razem AT siol.net>
3467
3468         * src/SDCCmain.c: pipe preprocessor's output
3469         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
3470         * sdcc_vc_in.h: define pclose as _pclose for WIN32
3471         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
3472         which closes all pipes in pipeSet set
3473         * src/SDCCset.c: free deleted item in function deleteSetItem()
3474         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
3475         moved from z80 to src subproject
3476         * .version: increased version number to 2.3.4
3477
3478 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
3479
3480         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
3481         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
3482         * support/regression/ports/xa51/spec.mk: fix typo
3483
3484 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
3485
3486         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
3487
3488 2003-03-09  Borut Razem <borut.razem AT siol.net>
3489
3490         * src/SDCCmain.c: pipe preprocessor's output
3491         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
3492         * sdcc_vc_in.h: define pclose as _pclose for WIN32
3493         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
3494         which closes all pipes in pipeSet set
3495         * src/SDCCset.c: free deleted item in function deleteSetItem()
3496         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
3497         moved from z80 to src subproject
3498
3499 2003-03-09  Borut Razem <borut.razem AT siol.net>
3500
3501         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
3502         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
3503         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
3504         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
3505         * src/SDCCglobl.h: unification of WIN32 native definitions
3506
3507 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3508
3509         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
3510
3511 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
3512
3513         * src/configure.in:   check for endianess (even while cross-compiling)
3514         * src/configure:      check for endianess (even while cross-compiling)
3515         * src/configure_in.h: check for endianess (even while cross-compiling)
3516         * src/avr/gen.c:        remove old endianess stuff
3517         * src/mcs51/gen.c:      remove old endianess stuff
3518         * src/ds390/gen.c:      remove old endianess stuff
3519         * src/pic/gen.c:        remove old endianess stuff
3520         * src/pic/genarith.c:   remove old endianess stuff
3521         * src/pic/glue.c:       fix endianess check
3522         * src/pic16/gen.c:      remove old endianess stuff
3523         * src/pic16/genarith.c: remove old endianess stuff
3524         * src/pic16/glue.c:     fix endianess check
3525         * src/xa51/gen.c:       remove old endianess stuff
3526         * src/z80/gen.c:        fix endianess check
3527         * src/SDCCglue.c:       fix endianess check
3528         * src/ds390/peeph.def: fix bug 700036
3529
3530 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
3531
3532         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
3533         * src/configure: find appropriate data-types on host for SDCC's int and long
3534         * src/configure.in: find appropriate data-types on host for SDCC's int and long
3535         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
3536         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
3537
3538 2003-03-07    <johan AT balder>
3539
3540         Just a big NOOP:
3541                 some minor cleanups before the big shot
3542                 OP_DEFS and OP_USES now use Kevin's protection
3543                 new option --nolabelopt
3544
3545         * src/SDCCBBlock.c:
3546         * src/SDCCast.c,:
3547         * src/SDCCcflow.c:
3548         * src/SDCCcse.c:
3549         * src/SDCCicode.c:
3550         * src/SDCCicode.h:
3551         * src/SDCClabel.c:
3552         * src/SDCCloop.c:
3553         * src/SDCCmain.c:
3554         * src/ds390/ralloc.c:
3555         * src/mcs51/ralloc.c:
3556         * src/pic/ralloc.c:
3557         * src/xa51/ralloc.c:
3558         * src/z80/ralloc.c:
3559
3560 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
3561
3562         * src/pic/pcode.c (get_op): fix 64 bit warnings
3563         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
3564         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
3565         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
3566         * support/regression/tests/malloc.c: fix 64 bit warnings
3567
3568 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
3569
3570         * src/mcs51/gen.c (genMinus): fixed bug 696436
3571
3572 2003-03-02  Borut Razem <borut.razem AT siol.net>
3573
3574         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
3575
3576 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
3577
3578         * configure.in: test for mkstemp
3579         * sdccconf_in.h: add HAVE_MKSTEMP
3580
3581 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
3582
3583         * device/include/ctype.h: removed warning while using --stack-auto
3584         * device/include/malloc.h: removed warning while using --stack-auto
3585         * device/include/string.h: removed warning while using --stack-auto
3586
3587 2003-02-23  Borut Razem <borut.razem AT siol.net>
3588
3589         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
3590         because NDEBUG is defined (see man assert)
3591         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
3592
3593 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3594
3595         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
3596         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
3597
3598 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3599
3600         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
3601         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
3602
3603 2003-02-18    <johan AT balder>
3604
3605         * as/mcs51/asmain.c (asmbl): module can start with a digit
3606         * as/z80/asmain.c (asmbl): module can start with a digit
3607
3608 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
3609
3610         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
3611         * src/asm.c: fix pipe() for Mingw32
3612
3613 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
3614
3615         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
3616         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
3617         make -V work again; --c1mode reads now from stdin
3618         * doc/sdccman.lyx: added --c1mode
3619         * support/Util/SDCCerr.c: new messages for c1 mode
3620         * support/Util/SDCCerr.h: new messages for c1 mode
3621         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
3622
3623 2003-02-15    <johan AT balder>
3624
3625         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
3626
3627 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
3628
3629         * doc/sdccman.lyx: Environment variables, -o and other minor things
3630
3631 2003-02-14    <johan AT balder>
3632
3633         * src/xa51/main.c: before anyone really tries to use it :)
3634
3635         * Install doc's in share/sdcc/doc
3636         * removed some obsolete files
3637         * Do a proper make distclean and uninstall
3638         M Makefile.common.in
3639         R sdccbuild.sh
3640         M as/Makefile
3641         M device/include/Makefile.in
3642         M device/lib/Makefile.in
3643         M doc/sdccman.lyx
3644         M link/Makefile
3645         M sim/ucsim/doc/Makefile.in
3646         M src/clean.mk
3647         R src/avr/peeph.rul
3648         R src/xa51/peeph.rul
3649         M support/cpp2/Makefile.in
3650         M support/makebin/Makefile
3651
3652
3653 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
3654
3655         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
3656
3657 2003-02-10  Borut Razem <borut.razem AT siol.net>
3658
3659         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
3660         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
3661         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
3662         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
3663         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
3664         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
3665         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
3666         src/z80/Makefile.bcc: Borland Makefile cleanup
3667         * as/z80/Makefile.bcc: Added Borland Makefile
3668         * support/cpp2/borland.h: Removed
3669
3670 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
3671
3672         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
3673         * src/SDCC.lex: new pragma NOIV
3674         * src/SDCCglobl.h: new pragma NOIV
3675         * src/SDCCmem.c: new pragma NOIV
3676
3677 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
3678
3679         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
3680
3681 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
3682
3683         * src/SDCCmain.c: signal handling is switched off by --debug
3684         * doc/Makefile: small fix for install; use clean.mk again
3685         * doc/clean.mk: clean *.pdf and *.html too
3686
3687 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
3688
3689         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
3690         * device/lib/printfl.c: fix a ds390 bug by making it portable
3691         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
3692         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
3693         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
3694         * debugger/mcs51/cmd.c: converted multi-line string literals
3695         * sim/ucsim/globals.cc: converted multi-line string literals
3696         * src/SDCCmain.c: introduced signal handler to remove temp files
3697         * doc/Makefile: small tweaks, implement clean
3698         * doc: removed generated files
3699
3700 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3701
3702         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
3703         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
3704         Address Record is not correctly generated for DS390."
3705
3706 2003-02-02  Borut Razem <borut.razem AT siol.net>
3707
3708         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
3709         * as/mcs51/asm.h: fixed compilation with Borland C
3710         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
3711         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
3712         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
3713         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
3714         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
3715         src/z80/Makefile.bcc: delete $(LIB) only if exist
3716         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
3717
3718 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
3719
3720         * device/include/malloc.h: introduced NULL
3721         * device/include/string.h: introduced NULL
3722         * device/include/stdlib.h: introduced NULL
3723         * device/lib/_memcpy.c: removed NULL
3724         * device/lib/_strcat.c: removed NULL
3725         * device/lib/_strchr.c: removed NULL
3726         * device/lib/_strcmp.c: removed NULL
3727         * device/lib/_strcpy.c: removed NULL
3728         * device/lib/_strcspn.c: removed NULL
3729         * device/lib/_strlen.c: removed NULL
3730         * device/lib/_strncat.c: removed NULL
3731         * device/lib/_strncmp.c: removed NULL
3732         * device/lib/_strncpy.c: removed NULL
3733         * device/lib/_strpbrk.c: removed NULL
3734         * device/lib/_strrchr.c: removed NULL
3735         * device/lib/_strspn.c: removed NULL
3736         * device/lib/_strstr.c: removed NULL
3737         * device/lib/_strtok.c: removed NULL
3738         * device/lib/malloc.c: removed NULL, include own header
3739
3740 2003-02-02    <johan AT balder>
3741
3742         * 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
3743         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
3744         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
3745         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
3746         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
3747         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
3748
3749 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3750
3751         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
3752         area 'DATA'"
3753
3754 2003-02-01    <johan AT balder>
3755
3756         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
3757
3758 2003-01-31    <johan AT CP255758-A>
3759
3760         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
3761
3762 2003-01-30    <johan AT balder>
3763
3764         * src/SDCCBBlock.c: automatic bug detection
3765         * src/SDCCicode.c: automatic bug detection
3766
3767 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3768
3769         * src/SDCCglobl.h:   now --xram-size 0 works
3770         * src/SDCCmain.c:    now --xram-size 0 works
3771
3772 2003-01-29    <johan AT balder>
3773
3774         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
3775
3776 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3777
3778         * as/mcs51/aslink.h: Added options --xram-size and --code-size 
3779         * as/mcs51/lkdata.c: Added options --xram-size and --code-size 
3780         * as/mcs51/lkmain.c: Added options --xram-size and --code-size 
3781         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size 
3782         * src/SDCCglobl.h:   Added options --xram-size and --code-size 
3783         * src/SDCCmain.c:    Added options --xram-size and --code-size 
3784
3785 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
3786
3787         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
3788         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
3789
3790 2003-01-27    <johan AT balder>
3791
3792         * src/SDCC.y: fixed bug #613764
3793
3794 2003-01-26    <johan AT balder>
3795
3796         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
3797         * src/SDCCsymt.h: fixed bug #673374
3798         * src/SDCCglue.c: fixed bug #661910
3799         * src/SDCCast.c: fixed bug #458099 and 673374
3800
3801 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
3802
3803         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
3804         * as/mcs51/strcmpi.h: added
3805         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
3806         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
3807         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
3808         * as/mcs51/assym.c: strcmpi -> as_strcmpi
3809         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
3810         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
3811         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
3812         * as/mcs51/Makefile.aslink: new module strcmpi
3813         * as/mcs51/Makefile.asx8051: new module strcmpi
3814         * as/mcs51/Makefil.bcc: new module strcmpi
3815         * as/mcs51/Makefile.in: new module strcmpi
3816         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
3817
3818 2003-01-26    <johan AT balder>
3819
3820         * src/SDCCglue.c: reverted back to 1.124
3821         * src/SDCCast.c: reverted back to 1.156
3822         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
3823
3824 2003-01-25    <johan AT balder>
3825
3826         * src/SDCCglue.c: A better fix for bug #661910
3827         * src/SDCCast.c: A better fix for bug #661910
3828         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
3829
3830 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
3831
3832         * src/Makefile.in: remove spawn.o
3833         * src/SDCCmain.c: remove spawn.h
3834         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
3835         * src/spawn.c: removed
3836         * src/spawn.h: removed
3837         * support/regression/ports/ds390/spec.mk: link with -r
3838
3839 2003-01-24    <johan AT CP255758-A>
3840
3841         * src/ds390/gen.c (aopOp): fixed bug #667458
3842         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
3843         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
3844         (createIvalCharPtr): an ival doesn't always have a storage class anymore
3845
3846 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
3847
3848         * src/mcs51/peeph.def: better assembler identation by Frieder
3849         * src/mcs51/gen.c: better assembler identation by Frieder
3850
3851 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
3852
3853         * as/z80/string.h: removed for gcc 3.2
3854         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
3855         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
3856
3857 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
3858
3859         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
3860         * src/SDCCpeeph.c (replaceRule): fix bug #663503
3861         * support/regression/Makefile: separate temp files for ports
3862         * support/regression/generate-cases.py: separate temp files for ports
3863         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
3864         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
3865
3866 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
3867
3868         * moved tinitalk to device/examples/ds390
3869
3870 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
3871
3872         * as/mcs51/lkmem.c: rflag is for DS390
3873         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
3874         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
3875                          (linkEdit): move mem- and map-files the same way as ihx-files
3876         * src/z80/main.c (_setDefaultOptions): removed --generic
3877         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
3878         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
3879         * src/pic/glue.c (picglue): --c1mode works again
3880         * src/pic16/glue.c (pic16glue): --c1mode works again
3881         * src/asm.c (printCLine): fix #660034
3882
3883 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
3884
3885         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
3886         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
3887         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
3888         * as/mcs51/lkmem (summary): better fix for sp problem
3889         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
3890         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
3891         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
3892                                               remove --stack-after-data
3893
3894 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
3895
3896         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
3897         * src/SDCCutil.c (join): ugly bug: missing '\0'
3898         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
3899
3900 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
3901
3902         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
3903         * src/port.h: typo
3904         * src/pic/main.c (_asmCmd): gpasm supports -o
3905         * src/z80/main.c: more general macros
3906         * device/lib/Makefile.in: remove intermediate files
3907
3908 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
3909
3910         * .version: Bumped version number to 2.3.3
3911         * src/SDCCBBlock.c: new option -o
3912         * src/SDCCglobl.h: new option -o
3913         * src/SDCCglue.c: new option -o
3914         * src/SDCCmain.c: new option -o
3915         * src/asm.c: new option -o
3916         * src/ds390/main.c: new option -o
3917         * src/pic/glue.c: new option -o
3918         * src/pic/pcode.c: new option -o
3919         * src/pic/ralloc.c: new option -o
3920         * src/pic16/glue.c: new option -o
3921         * src/pic16/pcode.c: new option -o
3922         * src/pic16/ralloc.c: new option -o
3923         * src/z80/main.c: new option -o
3924         * device/lib/Makefile.in: use -o
3925         * support/regression/ports/ds390/spec.mk: use -o
3926         * support/regression/ports/gbz80/spec.mk: use -o
3927         * support/regression/ports/mcs51/spec.mk: use -o
3928         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
3929         * support/regression/ports/z80/spec.mk: use -o
3930         * support/regression/ports/ucz80/spec.mk: use -o
3931         * support/regression/ports/xa51/spec.mk: use -o
3932         * support/regression/fwk/lib/timeout.c: fix usage string
3933
3934 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
3935         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
3936         
3937 2003-01-07    <johan AT balder>
3938
3939         * src/SDCCast.c (decorateType): fixed bug #600035
3940
3941 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
3942         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
3943         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
3944         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
3945         * src/pic/pcode.c: outcommented unused variable to remove warnings
3946         * src/pic/ralloc.c: outcommented unused variable to remove warnings
3947
3948 2003-01-06    <karl AT turbobit.com>
3949         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
3950    regression tests.
3951
3952 2003-01-06    <johan AT balder>
3953
3954         * src/SDCCicode.c: fixed array add
3955
3956 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
3957         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
3958         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
3959
3960 2003-01-04    <johan AT balder>
3961
3962         * src/SDCCval.c (getNelements): fixed the initialized array of structures
3963
3964 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3965         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
3966
3967 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
3968         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
3969         * support/regression/tests/bug-524697.c: fit mem usage into 8032
3970
3971 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
3972         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
3973
3974 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
3975         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
3976
3977 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
3978         * src/mcs51/main.c: removed {bindir}{sep} from aslink
3979
3980 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3981
3982     * in \sdcc\as\mcs51\ changed these files in order to create an
3983     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
3984     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the 
3985     following files to include the previous two files: aslink.dsp,
3986     Makefile.aslink, Makefile.bcc, and Makefile.in.
3987
3988     * Changed \sdcc\src\SDCCmain.c so it creates files with extension
3989     .adb instead of .cdb
3990     
3991 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3992
3993         * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
3994         value from option --iram-size.
3995
3996 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3997
3998         * \sdcc\as\mcs51\lklist.c: added boundary check before using
3999         dram[] array.
4000
4001 2002-09-18    <wiml AT hhhh.org>
4002
4003         * SDCClrange.h: exposed setFromRange() and setToRange()
4004         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
4005           packRegsForAccUse() (bug 542397)
4006         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
4007           multiple times and emitting the fetch operations more than once
4008           added aopGetUsesAcc() function to allow binary operators to
4009           fetch their operands in the correct order; made genMinus() emit
4010           compact code for X = LITERAL - Y 
4011
4012 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4013         * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
4014         sprintf() in line 1267.
4015
4016 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4017         * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
4018         like ports.
4019
4020 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4021         Changes to aslink (All the changes are marked with 'JCF'):
4022
4023         * \sdcc\as\mcs51\aslink.h: External definition of sflag and
4024         summary().
4025
4026         * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
4027         area BSEG.  Also moves, if possible, the DATA area down into the internal
4028         ram so more space is available.
4029
4030         * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
4031         sflag.
4032
4033         * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
4034         not bytes.  Function summary() which creates a memory usage summary
4035         file with extension .mem.  Reports of overlaping stack and small stack
4036         size.  If the space for the stack is less than 16 bytes aslink trows a
4037         warning.
4038         
4039         * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
4040         the 8051.  Option 'y' for memory summary output file.
4041
4042         Changes to sdcc (All the changes are marked with 'JCF'):
4043
4044         * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
4045
4046         * \sdcc\src\SDCCglue.c:  If a register bank is used, creates an
4047         overlaying area for it (uses RegBankUsed[4]).
4048
4049         * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
4050         bank zero as used by default.  By default aslink locates the stack
4051         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
4052         the creation of the .mem file.  Delegates the allocation of data area
4053         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
4054         the begining of the stack area to aslink.
4055
4056         * \sdcc\src\SDCCmem.c:  If a register bank is used, marks it so
4057         glue() in SDCCglue.c creates an area for it.
4058         
4059 2002-09-03  Borut Razem <borut.razem AT siol.net>
4060         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
4061         sdcc/src/pic/glue.c:
4062         introduced atexit() handler for teporay files removal in case of
4063         errors, assertions, ...
4064
4065 2002-08-29  Borut Razem <borut.razem AT siol.net>
4066         * sdcc/support/cpp2/auto-host_vc_in.h:
4067         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
4068         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
4069         Maybe there is a similar problem with BORLANDC? It should be checked!
4070
4071         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
4072         corrected improper use of assert: the assignment to clr variable was done inside the assert.
4073         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
4074         was not executed, and the compiler (cl) launched a warning:
4075         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
4076
4077 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
4078         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
4079
4080 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
4081         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
4082
4083         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
4084           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
4085           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
4086           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
4087           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
4088           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
4089           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
4090         - added Release configuration in VS projects
4091         - review of compiler an linker options
4092         - VC .exe files are generated in bin_vc directory, not to interfere
4093           with binaries generated from other projects (cygwin, mingw, bcc ...)
4094
4095         * sdcc/src/yacc.dsp: added
4096
4097         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
4098         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
4099         and insert the version number definitions from .version 
4100
4101         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
4102
4103         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
4104         added - genarate auto-host.h using auto-host_vc_in.h as template
4105
4106         * sdcc/sdcc_vc.h,
4107         removed from CVS, generated automatically
4108
4109 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
4110         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
4111
4112 2002-08-11  Borut Razem <borut.razem AT siol.net>
4113         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
4114
4115 2002-08-10  Borut Razem <borut.razem AT siol.net>
4116         * src/SDCCmain.c (main):
4117         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
4118         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
4119         The consequence was that some temporary files were not removed.
4120
4121         * src/SDCCglue.c:
4122         unification of code in functions tempfilename() and tempfile():
4123         function tempnam() is defined in Visual Studio 6.0 and .NET
4124
4125         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
4126
4127         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
4128           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
4129         - removed compiler command line option /WX: Treats all warnings as errors
4130         - update a list of source files, included into the project
4131
4132         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
4133           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
4134         changed project type to Generic Project so that can be correcly converted to VS.NET project
4135
4136         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
4137
4138         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
4139
4140         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
4141
4142         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
4143         added return 0 statements after assert() to make compiler happy
4144
4145         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
4146         added newline in the def file to keep MSC compiler satisfied
4147
4148         * sdcc/src/z80/gen.c:
4149         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
4150           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
4151         - solved MSC error in function aopDump()
4152
4153         * sdcc_vc.h: define PREFIX as "\\sdcc"
4154
4155 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
4156         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
4157
4158 2002-06-22  Scott Dattalo <scott AT dattalo.com>
4159         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced. 
4160         - Rewrote the register banking algorithm. 
4161         - Added pCode live-range analysis to registers (for now, only non-used and 
4162         singly-used registers optimized away)
4163
4164         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
4165
4166         * 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.
4167         
4168 2002-05-10  Scott Dattalo <scott AT dattalo.com>
4169         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
4170         
4171 2002-04-22  Michael Hope  <michaelh AT vroom>
4172
4173         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
4174
4175         * configure.in (DD_COPT): Added include support required for gbdk.
4176
4177         * .version: Bumped version number just to increase it.
4178
4179         * src/SDCCmain.c: Added -nostdinc to the default options.
4180
4181 2002-04-15  Michael Hope  <michaelh AT vroom>
4182
4183         * device/lib/z80/printf.c (sprintf): Added.
4184
4185         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
4186
4187         * src/z80/peeph.def: Added transpose redundent load rule.
4188
4189         * src/z80/main.c: Added force callee saves for jaune.
4190
4191         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
4192
4193         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
4194
4195 2002-03-28  Johan Knol  <johan AT balder>
4196
4197         * src/SDCCval.c: fixed bug #532436
4198
4199 2002-03-14  Scott Dattalo <scott AT dattalo.com>
4200         * /src/port.h:
4201         Added "char *Processor" field to the port structure.
4202
4203         * /src/SDCCmain.c:
4204         Added -p option. Allows port dependent processor to be specified.
4205
4206         * all ports:
4207         Initialized the new field char *Processor field to NULL in all ports
4208
4209         * /src/pic/*:
4210         Compiler generated registers for interrupt context saving
4211         were not getting allocated.
4212                 
4213 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
4214
4215         * /src/SDCCast.c:
4216         Fixed left shift. Will promote the left side of a left shift
4217         if a) left shifting more than size of operand or b) when assigned
4218         to something size > size of left side
4219
4220 2002-03-14  Scott Dattalo <scott AT dattalo.com>
4221         * src/pic/*
4222         tons of changes. Register allocation has been 
4223         rewritten. Added customization for the various PICs. Flow
4224         analysis is restructured. ...
4225
4226         * src/pic/device.h:
4227         Added
4228
4229         * src/pic/device.c:
4230         Added. device.c is a PIC port hack to accomodate variations
4231         in PIC devices.
4232
4233 2002-03-13  Michael Hope  <michaelh AT vroom>
4234
4235         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
4236
4237 2002-03-04  johanknol  <johanknol AT manik>
4238
4239         * /src/SDCCval.c: fixed
4240
4241         const unsigned char arr[][2] = { { 0, 1 } };
4242         t18.c:1: error: Initializer element is not constant
4243
4244 2002-03-04  bela  <bela AT manik>
4245
4246         * /device/include/mcs51reg.h:
4247         ds89c420 register definition update
4248
4249 2002-03-03    <johan AT FRIJA>
4250
4251         * support/Util/SDCCerr.c: did something, but don't no why anymore
4252
4253         * support/regression/tests/bug-524691.c: made it a little less shy 
4254
4255         * src/SDCCast.c (decorateType): fixed bug #524697
4256
4257         * src/SDCCast.c: made some lineno improvements
4258
4259         * src/SDCCval.c (getNelements): changed warning to error
4260
4261         * src/SDCCglue.c (printIvalArray): changed warning to error
4262
4263         * src/SDCCicode.c: fixed a warning for mingw
4264
4265         * src/SDCCast.c (decorateType): fixed the << promotion for ops
4266
4267         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
4268
4269 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
4270
4271         * src/ds390/peeph.def:
4272         Added some more peephole rules
4273
4274         * src/ds390/gen.c: Various fixes & enhancements
4275
4276         * src/SDCClrange.c, src/SDCClrange.h:
4277         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
4278
4279         * src/ds390/ralloc.c:
4280         various fixes & enhancements (ds390) specific
4281
4282         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
4283         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
4284         from rallocs.
4285
4286         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
4287
4288 2002-03-02    <johan AT FRIJA>
4289
4290         * src/SDCCast.c (decorateType): fixed bug #524708
4291
4292         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
4293
4294         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
4295
4296 2002-03-01  Michael Hope  <michaelh AT vroom>
4297
4298         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
4299
4300         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
4301
4302 2002-03-01    <johan AT FRIJA>
4303
4304         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
4305
4306         * src/SDCCast.c (decorateType): fixed bug #524209
4307
4308         * src/SDCCval.c (valNot): fixed bug #524195
4309
4310 2002-02-26    <johan AT balder>
4311
4312         * src/xa51/gen.c: fixed a warning
4313
4314         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
4315
4316         * src/SDCCast.c (decorateType): fixed bug #522534
4317
4318 2002-02-23    <johan AT balder>
4319
4320         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
4321
4322 2002-02-22    <johan AT balder>
4323
4324         * src/SDCCast.c: fixed bug #514865
4325
4326         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
4327
4328 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
4329
4330         * sdcc/src/SDCCloop.c:
4331         Previous fix was not good. basic blocks that have "break" or "return" are
4332         not really partof a loop , but live ranges used in these blocks should
4333         be live thru the entire loop, so set partOfLoop but don't add them to
4334         loop region
4335
4336 2002-02-21    <johan AT FRIJA>
4337
4338         * src/SDCCcse.c: fixed bug #514308
4339
4340 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
4341
4342         * src/SDCCloop.c:
4343         Fixed BUG #519583. If a conditional block ended in a return/break
4344         statement inside a loop, it was not being considered part of the loop.
4345
4346         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
4347
4348 2002-02-10  Karl Bongers <karl AT turbobit.com>
4349
4350         * debugger/*:
4351         Fixed up SDCDB debugger somewhat.  Updated debugger/README
4352         with lots of comments and notes.
4353
4354         * device/examples/test2.c:
4355         Fix bug, "red" variable not being initialized(compiler complained).
4356
4357         * device/examples/Makefile, examples/test3.c:
4358         Add Makefile in device/examples folder, compiles test3.c
4359         for use as a multiple module SDCDB test case.
4360
4361         * sim/ucsim/cmd.src/cmdset.cc:
4362         Took out debug printfs in ucsim "next" command.
4363
4364         * sim/ucsim/xa.src:
4365         Karl and Johan start ucsim XA support.  Most dissassembly working,
4366         about 75% emulation done(plenty of work remaining).
4367
4368         * sim/ucsim/z80.src:
4369         Add Z80 support to ucsim, add test-ucz80 regression test,
4370         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
4371         Notice z80 compiler fails on examples/test3.c/crc code.
4372
4373 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
4374
4375         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
4376         Added support for --parms-in-bank1
4377
4378         * src/ds390/peeph.def:
4379         added a few more peephole optimzations
4380
4381         * src/ds390/main.c:
4382         1) added __builtin_inp & __builtin_outp used to read in data of given length
4383            from a memory mapped port
4384         2) added __builtin_memcmp
4385         3) added __builtin_swapw swap bytes of a short
4386
4387         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
4388         1) handle multiple send & receives from register bank1
4389         2) ralloc can now allocate DPTR1 to some liveRanges
4390
4391         * src/SDCCsymt.c, src/SDCCsymt.h:
4392         changes to handle multiple sends & receives
4393
4394         * src/SDCCptropt.h:
4395         added some pointer arithmetic optimization
4396
4397         * src/SDCCptropt.c:
4398         added some pointer arithmetic optimizations but not stable yet so not
4399         called from anywhere (will get this working shortly)
4400
4401         * src/SDCCopt.c: fixed for multiple sends & receives
4402
4403         * src/SDCCmain.c:
4404         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
4405         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
4406            set preprocessor defines (depending on options)
4407
4408         * src/SDCCicode.c, src/SDCCicode.h:
4409         changes made to handle multiple sends & receives
4410
4411         * src/SDCCglobl.h:
4412         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
4413
4414         * src/SDCCcse.c, src/SDCCcse.h:
4415         added function findbackward def (to be used in upcoming optimization)
4416
4417         * src/SDCCcflow.c, src/SDCCcflow.h:
4418         added function returnAtEnd - to determine if a basic block terminates with
4419         a RETURN iCode
4420
4421         * src/SDCCast.c, src/SDCCast.h:
4422         added option parms-in-bank1
4423
4424         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c 
4425         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c 
4426         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
4427         adjusted for --parms-in-bank1 option
4428
4429         * device/include/string.h:
4430         donot redefine "reentrant" keyword
4431
4432         * device/include/ds80c390.h: Added some more SFRs
4433
4434 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
4435
4436         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4 
4437
4438 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
4439
4440         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
4441
4442 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
4443
4444         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
4445
4446 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
4447
4448         * Added --xram-movc option
4449
4450 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
4451
4452         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
4453
4454 2002-01-11  Johan Knol
4455
4456         * Added math lib of Jesus Calvino-Fraga
4457
4458 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
4459
4460         * src/SDCCmain.c (processFile): fix processing of ../../src.c
4461         * support/regression/Makefile: new target test-mcs51-stack-auto
4462         * support/regression/ports/mcs51-stack-auto/spec.mk: added
4463
4464 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
4465
4466         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
4467
4468 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
4469
4470         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
4471
4472 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
4473
4474         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
4475
4476         * src/SDCCglue.h: add definition for printIvalChar()
4477
4478 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
4479
4480         * src/SDCCast.c: fix #498138 by Johan
4481
4482         * src/SDCCglue.c: fix #498138 by Johan
4483
4484 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
4485
4486         * support/regression/Makefile: fix clean
4487
4488         * support/regression/ports/ds390/support.c: fix transmission of last character
4489
4490 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
4491
4492         * /sdcc/src/ds390/gen.c:
4493         a) improved computing address of stack variable
4494         b) took out some #if 0 code
4495         c) improved parmBytes adjustment
4496         d) improved genPlusIncr & genMinusIncr
4497         e) genCmp could generate bad code (when left assigned to DPTR)
4498         f) Fixed bug in hasInc
4499
4500         * /sdcc/src/ds390/ralloc.c:
4501         a) packRegsForSupport could mess up live information (Fixed)
4502         b) packRegsDPTRuse could be incorrect for left & right shift
4503
4504         * /sdcc/src/mcs51/ralloc.c:
4505         packRegsForSupport could mess up the live information (Fixed)
4506
4507         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
4508
4509         * /sdcc/src/SDCCast.c:
4510         can reverse a loop even if function call is present as long
4511         as the loop control variable is local & is not passed as parameter
4512
4513 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
4514
4515         * /sdcc/ChangeLog: *** empty log message ***
4516
4517         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
4518         More builtin function additions for TININative
4519
4520         * /sdcc/src/ds390/ralloc.c:
4521         Had broken the regression testsuite
4522
4523         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
4524
4525         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
4526         Added funcattr hasStackParms will be set for reentrant functions when there
4527         are paramteres on the stack, this helps in minimizing frame pointer generation
4528         typeFromStr can handle function pointers now
4529
4530         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
4531         *** empty log message ***
4532
4533 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
4534
4535         * /src/ds390/gen.c, /src/ds390/main.c:
4536         More builtin function additions for TININative
4537
4538         * /src/ds390/ralloc.c:
4539         Had broken the regression testsuite
4540
4541         * /src/SDCCast.c: Fixed a bug in dumptree
4542
4543         * /src/SDCCsymt.c, /src/SDCCsymt.h:
4544         Added funcattr hasStackParms will be set for reentrant functions when there
4545         are paramteres on the stack, this helps in minimizing frame pointer generation
4546         typeFromStr can handle function pointers now
4547
4548         * /doc/builtins.txt, /doc/TININative.txt:
4549         *** empty log message ***
4550
4551
4552 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
4553
4554         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
4555         ALPHA version for -mTININative
4556
4557         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
4558         updated to reflect changes in the port structure
4559
4560         * /src/port.h:
4561         added function do_assemble (similar to do_link) if non-null this function
4562         will be called to do assembly (-mTININative) requires a multi command
4563         assembly
4564         added function genAssemblerEnd will be called to generate assembler Epilogue
4565
4566         * /src/SDCCsymt.c:
4567         added _JavaNative to debug info printing
4568
4569         * /src/SDCCmain.c: added option --tini-libid
4570         added port->do_assemble function (-mTININative) has a multi command assemble
4571
4572         * /src/SDCCglue.c: Disabled "constExpr" check
4573         added port->genAssemblerEnd function
4574
4575         * /src/SDCCglobl.h: Added option --tini-libid value
4576
4577         * /src/SDCCast.h:
4578         tookout optimizeCompare from the header (has no external references)
4579
4580         * /src/SDCCast.c: made one more function "static"
4581
4582 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
4583
4584         * src/z80/mappings.i: Added z80asm support.
4585
4586         * src/z80/main.c: Added z80asm support on --asm=z80asm
4587
4588         * src/z80/gen.c: Fixed asm portability issues.
4589
4590         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
4591
4592         * src/SDCCglue.c (printExterns): Added global/extern split.
4593
4594 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
4595
4596         * support/regression/Makefile: added test for mcs51 model large
4597
4598         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
4599
4600         * support/regression/ports/gbz80/spec.mk: added -mgbz80
4601
4602 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
4603
4604         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
4605
4606 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
4607
4608         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
4609
4610         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
4611
4612 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
4613
4614         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
4615
4616         * support/regression/tests/simplefloat.c: Port to mcs51.
4617
4618 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
4619         * support/regression/tests/bug-485362.c: Added.
4620
4621         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
4622
4623         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
4624
4625         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
4626
4627         * src/z80/gen.c (aopDump): Added a dump function.
4628
4629 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
4630         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
4631
4632         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
4633
4634         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
4635
4636         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
4637
4638         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
4639
4640         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
4641
4642         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
4643
4644         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
4645
4646         * support/regression/ports/ds390/support.c: Use tinibios.
4647
4648         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
4649
4650 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
4651
4652         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
4653         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
4654
4655         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
4656
4657         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
4658
4659 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
4660
4661         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
4662
4663         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
4664         (packRegsForIYUse): Created and optimised.
4665
4666 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
4667
4668         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
4669 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
4670
4671         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
4672
4673         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
4674
4675         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
4676
4677 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
4678
4679         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
4680
4681         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
4682
4683 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
4684
4685         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
4686
4687         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
4688
4689         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
4690
4691 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
4692
4693         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
4694         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
4695         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
4696
4697         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
4698
4699         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
4700         (genNotFloat): Added.
4701         (genUminusFloat): Added.
4702
4703         * device/lib/z80/Makefile: Added floating pt stubs.
4704
4705         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
4706
4707         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
4708
4709         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
4710
4711 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
4712
4713         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
4714
4715         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
4716
4717         * sdcc/support/regression/Makefile: Add port ds390.
4718
4719         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
4720
4721         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
4722
4723         * sdcc/support/regression/ports/ds390/spec.mk: Added.
4724
4725         * sdcc/support/regression/ports/ds390/support.c: Added.
4726
4727         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
4728
4729         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
4730
4731         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
4732
4733 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
4734
4735         * device/include/malloc.h: Added z80 and gbz80 support.
4736
4737         * device/lib/gbz80/heap.s: Added.
4738
4739         * device/lib/z80/heap.s: Added.
4740
4741         * device/lib/malloc.c: Added z80 and gbz80 support.
4742
4743         * support/regression/tests/malloc.c (testMalloc): Added.
4744
4745         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
4746
4747         * support/regression/tests/bug-478094.c: Added.
4748
4749         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
4750
4751 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
4752
4753         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
4754
4755         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
4756
4757         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
4758
4759         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
4760
4761         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
4762
4763 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
4764
4765         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
4766
4767 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
4768
4769         * support/regression/tests/bug-477927.c: Added.
4770
4771         * src/z80/peeph.def: Added minor rules.
4772
4773         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
4774
4775         * src/z80/peeph.def: Added jump optimisation modification.
4776
4777 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
4778
4779         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
4780
4781 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
4782
4783         * support/regression/tests/funptrs.c: Added.
4784
4785 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
4786
4787         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
4788
4789 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
4790
4791         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
4792
4793         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
4794
4795         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
4796         (movLeft2ResultLong): Created.
4797
4798         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
4799         (joinPushes): Added.  Joins two char pushes into a word push.
4800
4801 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
4802
4803         * support/cpp2/Makefile.in (install): Added creation of dest dir.
4804
4805         * support/makebin/Makefile (install): Added creation of dest dir.
4806
4807 2001-10-24 Karl Bongers <karl AT turbobit.com>
4808
4809         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
4810
4811 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
4812
4813         * src/z80/ralloc.c: Turned off faulty pack for one use.
4814
4815         * src/z80/peeph-gbz80.def: Removed redundent restart options.
4816
4817         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
4818
4819 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
4820
4821         * support/regression/Makefile: Improved clean
4822
4823         * support/regression/ports/gbz80/spec.mk: Added clean
4824
4825         * support/regression/ports/host/spec.mk: Added clean
4826
4827         * support/regression/ports/z80/spec.mk: Added clean
4828
4829         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
4830
4831         * support/regression/ports/mcs51/timeout.c: little improvements
4832
4833 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
4834
4835         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
4836
4837         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
4838
4839         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
4840
4841 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
4842
4843         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
4844
4845         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
4846
4847 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
4848         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
4849
4850         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
4851
4852         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
4853
4854         * src/mcs51/main.c (_linkCmd): Added bin path to command.
4855
4856         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
4857
4858         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
4859
4860         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
4861
4862         * support/regression/tests/longor.c: Added.
4863
4864 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
4865
4866         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
4867
4868         * as/mcs51/aslink.h: define PATH_MAX
4869
4870         * as/mcs51/asm.h: define PATH_MAX
4871
4872         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
4873
4874         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
4875
4876         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
4877
4878         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
4879
4880         * src/SDCCglobl.h: define PATH_MAX
4881
4882         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
4883
4884         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
4885
4886 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
4887
4888         * src/z80/gen.c (gencjneshort): Fixed
4889
4890         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
4891
4892 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
4893
4894         * support/regression/tests/bug-469671.c: Added.
4895
4896         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
4897
4898 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
4899
4900         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
4901
4902         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
4903
4904 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
4905
4906         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
4907
4908         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
4909
4910         * src/device/lib/_mullong.c : removed hint: nooverlay bug
4911
4912         * src/device/lib/_divuint.c : removed hint: nooverlay bug
4913
4914         * src/device/lib/_divulong.c: removed hint: nooverlay bug
4915
4916         * src/device/lib/_moduint.c : removed hint: nooverlay bug
4917
4918         * src/device/lib/_modulong.c: removed hint: nooverlay bug
4919
4920 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
4921
4922         * 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.
4923
4924         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
4925
4926         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
4927
4928 2001-10-07    <johan AT FRIJA>
4929
4930         * device/lib/gets.c (gets): fixed the return value.
4931
4932 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
4933         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
4934
4935         * 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.
4936
4937         * 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.
4938
4939         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
4940
4941         * src/pic/gen.c: Removed Safe_strdup.
4942
4943         * configure.in: Added option to enable libgc support.
4944
4945         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
4946         (bitVectUnion): Optimised.
4947         (bitVectIntersect): Optimised.
4948         (bitVectBitsInCommon): Optimised.
4949         (bitVectCplAnd): Optimised.
4950
4951         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
4952
4953 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
4954
4955         * src/SDCCmain.c: distinguish between assembler debug and plain options
4956
4957         * src/avr/main.c:   remove standard assembler options
4958
4959         * src/ds390/main.c: remove standard assembler options
4960
4961         * src/mcs51/main.c: remove standard assembler options
4962
4963         * src/port.h: removed "PENDING" comment
4964
4965 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
4966
4967         * src/device/lib/_mulint.c  : new, with assember functions
4968
4969         * src/device/lib/_mullong.c : new, with assember functions
4970
4971         * src/device/lib/_divuint.c : with assember functions
4972
4973         * src/device/lib/_divsint.c : with assember functions
4974
4975         * src/device/lib/_divulong.c: with assember functions
4976
4977         * src/device/lib/_divslong.c: with assember functions
4978
4979         * src/device/lib/_moduint.c : with assember functions
4980
4981         * src/device/lib/_modsint.c : with assember functions
4982
4983         * src/device/lib/_modulong.c: with assember functions
4984
4985         * src/device/lib/_modslong.c: with assember functions
4986
4987         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
4988
4989         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
4990
4991         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
4992                                       replaced _mululong.c and _mulslong.c by _mullong.c
4993
4994 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
4995
4996         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
4997
4998 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
4999
5000         * src/SDCCglue.c: test, if win32api is available for MINGW
5001
5002 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
5003
5004         * src/SDCCsymt.c: no more _modifier in printTypeChain()
5005         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
5006         * support/regression/ports/gbz80/spec.mk: removed GENERIC
5007         * support/regression/ports/host/spec.mk: removed GENERIC
5008         * support/regression/ports/mcs51/spec.mk: removed GENERIC
5009         * support/regression/ports/z80/spec.mk: removed GENERIC
5010
5011 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
5012
5013         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
5014
5015         * support/regression/tests/bug-467035.c: Created.
5016
5017 2001-10-01    <johan AT FRIJA>
5018
5019         * src/SDCC.y: fixed bug #466586 part 1
5020
5021 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
5022
5023         * SDCCicode.c: z80 has no generic pointers
5024         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
5025         
5026 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
5027
5028         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
5029
5030 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
5031
5032         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
5033
5034         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
5035
5036 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
5037
5038         * configure.in: Fixed up so that ucsim is only configured once.
5039
5040         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
5041
5042         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
5043         (getPathDifference): As above.
5044
5045         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
5046
5047         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
5048
5049 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
5050         * .version: Updated to 2.3.1
5051
5052         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
5053         Added copyright header.
5054
5055         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
5056         (assemble): Added support for macro based assembler commands.
5057         (linkEdit): Added support for macro based linker commands.
5058         (preProcess): Changed the pre-processor to use macros.
5059         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
5060         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
5061
5062         * device/lib/z80/crt0.s: Added module name for debugging.
5063
5064 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
5065
5066         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
5067
5068         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
5069
5070         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
5071
5072         * src/Makefile.in: Added SDCCmacro and SDCCutil
5073
5074 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
5075
5076         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
5077
5078 2001-09-16    <johan AT FRIJA>
5079
5080         * 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.
5081
5082 2001-09-15    <johan AT FRIJA>
5083
5084         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
5085         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
5086
5087 2001-09-11    <johan AT FRIJA>
5088
5089         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
5090
5091 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
5092
5093         * support/regression/tests/bug-460444.c: Added test case.
5094
5095         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
5096         (genCast): Added justification for all of the asserts.
5097
5098 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
5099
5100         * support/regression/support.c: _xdata replaced by xdata
5101
5102         * support/regression/spec.mk: removed _generic
5103
5104 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
5105
5106         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
5107
5108         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
5109         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
5110
5111         * src/z80/peeph.def: Added a rule to optimise shift then compare.
5112
5113         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
5114
5115         * support/regression/tests/bug-460010.c: Added test case.
5116
5117         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
5118
5119 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
5120
5121         * support/regression/Makefile: inter-port-clean adjusted for mcs51
5122
5123         * support/regression/testfwk.c: removed workaround for bug #436344
5124
5125         * support/regression/tests/bp.c: use less memory with mcs51
5126
5127         * support/regression/tests/bug-441448.c: use less memory
5128
5129         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
5130
5131         * support/regression/collate-results.py: typo
5132
5133 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
5134
5135         * support/regression/tests/fetchoverlap.c: Added new test case.
5136
5137         * support/regression/tests/bp.c: Added new test case.
5138
5139         * support/regression/tests/bug-448984.c: Added new test case.
5140
5141         * support/regression/tests/pow2shifts.c: Added new test case.
5142
5143         * src/z80/gen.c: Turned off the noise it normally generates for the release.
5144         (genlshTwo): Fixed right shift for count > 8.
5145
5146         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
5147
5148 2001-09-08    <johan AT FRIJA>
5149
5150         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
5151
5152 2001-09-07    <johan AT FRIJA>
5153
5154         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
5155
5156         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
5157
5158 2001-09-06    <johan AT FRIJA>
5159
5160         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
5161         * bernhard noted me at this: "() equals to (void)" (1.38)
5162
5163 2001-09-05    <johan AT FRIJA>
5164
5165         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
5166
5167 2001-09-04    <johan AT FRIJA>
5168
5169         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
5170
5171
5172 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
5173
5174         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
5175
5176 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
5177
5178         * link/z80/aslink.h: Fixed path for PATH_MAX
5179
5180 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
5181
5182         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
5183
5184         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
5185
5186         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
5187
5188         * 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.
5189
5190 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
5191
5192         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
5193         (genCmp): Fixed up genCmp for the GB with longs.
5194
5195         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
5196
5197         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
5198
5199         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
5200
5201         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
5202
5203 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
5204
5205         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
5206
5207 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
5208
5209         * 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.
5210
5211         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
5212
5213 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
5214
5215         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
5216
5217         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
5218
5219 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
5220
5221   * sim/ucsim/configure:    little improvement of Cygwin-detection      
5222   * sim/ucsim/configure.in: little improvement of Cygwin-detection      
5223   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
5224   * support/regression/tests/bug-221100.c: small changes for mcs51
5225   * support/regression/tests/bug-221168.c: small changes for mcs51
5226   * support/regression/tests/bug-227710.c: small changes for mcs51
5227   * support/regression/tests/staticinit.c: small changes for mcs51
5228   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
5229   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
5230   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601