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