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