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