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