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