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