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