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