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