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