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