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