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