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