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