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