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