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