603bcd9268873b7d5d0801ce3c82d3889d4b52d0
[fw/sdcc] / ChangeLog
1 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
2
3         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
4           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
5         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
6         * src/SDCCast.c (resultTypePropagate): propagate for '!',
7           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
8           bugfix: only use newBoolLink for bit result type
9         * src/SDCCicode.c (geniCodeLogic): added param tree,
10           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
11           (geniCodeLogicAndOr): use IS_BIT,
12           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
13           (ast2iCode): added tree param to geniCodeLogic for comparisons
14         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
15         * support/regression/tests/bug1723128.c: added test NotZero
16
17 2007-06-01 Borut Razem <borut.razem AT siol.net>
18
19         * SDCPP synchronized with GCC CPP release version 4.2.0,
20           currently the latest release:
21         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
22           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
23           support/cpp2/cppdefault.h, support/cpp2/except.h,
24           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
25           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
26           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
27           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
28           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
29           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
30           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
31           support/cpp2/opts.h, support/cpp2/output.h,
32           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
33           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
34           support/cpp2/system.h, support/cpp2/version.c,
35           support/cpp2/Makefile.in: modified
36         * support/cpp2/opts-common.c: added
37         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
38         * device/lib/pic16/libdev/pic18f[24]5j10.c:
39           search for included source file in local directory
40         * sim/ucsim/configure, sim/ucsim/configure.in:
41           temporary solution to supress GCC 4.2.0 c++ warning:
42           deprecated conversion from string constant to `char *'
43
44 2007-06-01 Raphael Neider <rneider AT web.de>
45
46         * device/lib/pic/libdev/pic12f683.c,
47         * device/include/pic/pic12f683.h: added GPIO bits
48
49 2007-06-01 Raphael Neider <rneider AT web.de>
50
51         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
52           quotation marks, clarified role of PIC14 vs. PIC16 ports
53         * src/pic16/devices.inc,
54         * device/include/pic16/pic18fregs.h,
55         * device/include/pic16/pic18f[24][45]j10.h,
56         * device/lib/pic16/pics.all,
57         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
58           18f24j10, 18f25j10, 18f44j10, and 18f45j10
59         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
60           for new devices as they are not yet supported by gputils
61
62 2007-05-31 Borut Razem <borut.razem AT siol.net>
63
64         * Small Device C Compiler 2.7.0 released
65         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
66           changed sdcc version to 2.7.1
67         * support/scripts/sdcc.nsi: added How to create WIN32 release
68           setup.exe package
69
70 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
71
72         * doc/sdccman.lyx: documented initialization and allocation of absolute
73           variables, bit parameter passing, the need for function pointers to be
74           reentrant and alpha quality support of inline and retrict
75
76 2007-05-26 Borut Razem <borut.razem AT siol.net>
77
78         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
79           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
80         * docs/knownbugs.html: updated
81
82 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
83
84         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
85           thanks Jan Waclawek
86         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
87           AOP_CRY and ruonly
88           (gencjneshort): optimized when left is AOP_DIR
89         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
90           initializing unions in a struct/array
91         * support/regression/fwk/include/testfwk.h: added defines for data, near
92           and far for host and z80
93         * support/regression/tests/bug1723128.c: new, added
94
95 2007-05-22 Borut Razem <borut.razem AT siol.net>
96
97         * doc/knownbugs.html: updated
98
99 2007-05-21 Raphael Neider <rneider AT web.de>
100
101         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
102           error message instead
103         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
104
105 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
106
107         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
108
109 2007-05-21 Raphael Neider <rneider AT web.de>
110
111         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
112           closes #1722392
113         * src/regression/gpsim_assert.h,
114         * src/regression/Makefile,
115         * src/regression/pcodeopt.c: regression test for the above fix
116
117 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
118
119         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
120           jumps to self, fixed bug 1717281
121
122 2007-05-10 Borut Razem <borut.razem AT siol.net>
123
124         * support/scripts/gen_known_bugs.pl: cosmetic fix
125         * doc/knownbugs.html: generated by gen_known_bugs.pl
126
127 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
128
129         * src/SDCCast.c (createFunction): also generate non-inlined version of
130           function for functions declared as "static inline"
131         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
132           function can be inlined after non-inlined version generated.
133
134 2007-05-10 Borut Razem <borut.razem AT siol.net>
135
136         * support/scripts/gen_known_bugs.pl: added script
137           which generates knownbugs.html
138
139 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
140
141         * doc/knownbugs.html: updated for release 2.7.0
142
143 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
144
145         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
146
147 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
148
149         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
150           (throughout): updated generating comments
151         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
152           (throughout): updated generating comments
153         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
154           rule instead of at the second, or it might skip lines when removing the
155           complete match
156         * support/regression/tests/bug1714204.c: changed test to foo
157
158 2007-05-08 Borut Razem <borut.razem AT siol.net>
159
160         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
161           thanks to SDCC Distributed Compile Farm members,
162           added Z80 and GBZ80 command line options
163         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
164
165 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
166
167         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
168         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
169         * support/regression/tests/longlit.c: modified to be tested at all and
170           to pass the actual test
171
172 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
173
174         * device/include/mcs51/uPSD33xx.h: Added.
175
176 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
177
178         * device/lib/_gptrput.c,
179         * device/lib/_gptrget.c: removed old code,
180          (_gptrgetWord),
181         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
182         * support/regression/tests/bug1714204.c: new, added
183
184 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
185
186         * support/regression/tests/regtrack.c: test was never executed
187           because of the regression test being picky about white spaces.
188         * device/lib/mcs51/crtclear.asm: added comment
189
190 2007-05-06 Raphael Neider <rneider AT web.de>
191
192         * device/lib/pic/Makefile.rules,
193         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
194           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
195
196 2007-05-06 Raphael Neider <rneider AT web.de>
197
198         * src/pic16/device.h,
199         * src/pic16/main.h,
200         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
201           _pic16_setDefaultOptions): removed/reordered command-line args
202         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
203           devices, regrouped command line args, environment variables),
204           clarified sone points, added sections on how to add devices to the
205           PIC14/PIC16 ports
206
207 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
208
209         * src/z80/peeph.def: fixed bug in rule 2
210
211 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
212
213         * src/port.h: added TARGET_MCS51_LIKE
214         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
215           take advantage of it too
216         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
217           (shiftR2Left2Result): Optimized: don't check shifting by 0
218         * src/z80/peeph-z80.def,
219         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
220           modifications, see patch 1700823
221         * src/mcs51/peep.c (): fixed bug 1712928
222         * support/regression/tests/bug1712928.c: new, added
223
224 2007-05-05 Borut Razem <borut.razem AT siol.net>
225
226         * device/lib/pic16/Makefile.common.in,
227           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
228           removed bash dependencies
229
230 2007-05-01 Borut Razem <borut.razem AT siol.net>
231
232         * src/SDCCicode.c:
233           fixed bug #1710507: --i-code-in-asm makes compile fail
234           all iCode comments are now one liners
235         * src/mcs51/gen.c: fixed memory leak
236
237 2007-05-01 Raphael Neider <rneider AT web.de>
238
239         * device/lib/pic/libdev/*.c
240         * device/include/pic/*.h: regenerated all device libs from updated
241           .inc files
242         * support/scripts/inc2h.pl: documented usage, now uses strict to
243           catch more bugs
244
245 2007-04-30 Borut Razem <borut.razem AT siol.net>
246
247         * doc/sdccman.lyx:
248           fixed bug #1669175: Problem with space in output paths
249           documented how to use paths with spaces for Windows users
250
251 2007-04-29 Borut Razem <borut.razem AT siol.net>
252
253         * Fixed svn:eol-style and svn:keywords properties
254         * src/SDCCval.c: fixed bug
255           #1592871: Segfault with "large" const arrays of characters
256           replaced recursion with iteration
257         * Removed svn:executable property from non-executable files
258
259 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
260
261         * src/mcs51/gen.c (genRet): fixed bug 1707003
262
263 2007-04-27 Raphael Neider <rneider AT web.de>
264
265         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
266           createReachingDefinitions,assignValnums,pic16_destructDF,
267           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
268           prevent NULL pointer dereferences
269         * device/lib/pic/libdev/pic16f886.c,
270         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
271           prevent building them, gputils do not really support them yet
272
273 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
274
275         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
276           helps printf_small. 32 bytes more __idata mem.
277
278 2007-04-27 Raphael Neider <rneider AT web.de>
279
280         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
281           return early when pb or pb->pcHead is NULL (patch #1708427)
282         * src/regression/empty.c,
283         * src/regression/Makefile: added test with empty functions
284         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
285
286 2007-04-27 Borut Razem <borut.razem AT siol.net>
287
288         * src/SDCCast.c: fixed feature request
289           #1547512: Redundant strings linked when using sizeof("abc")
290
291 2007-04-23 Borut Razem <borut.razem AT siol.net>
292
293         * doc/sdccman.lyx, src/SDCCmain.c:
294           peep-hole comments are generated only if --fverbose-asm option is
295           specified and --no-peep-comments is not, as proposed by Frieder.
296         * support/regression/Makefile.in: compile regression tests with
297           --fverbose-asm option so one can "grep" whether a new (or an old)
298           peephole is (still) applied; requested by Frieder.
299
300 2007-04-23 Kevin Buettner <kevin AT buettner.to>
301
302         * device/include/pic/pic16f886.h,
303         * device/include/pic/pic16f887.h,
304         * device/lib/pic/libdev/pic16f886.c,
305         * device/lib/pic/libdev/pic16f887.c,
306         * device/include/pic/pic14devices.txt,
307         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
308
309 2007-04-23 Kevin Buettner <kevin AT buettner.to>
310
311         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
312           fixes #1704666
313
314 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
315
316         * device/lib/_memset.c: assembler version for mcs51
317
318 2007-04-22 Borut Razem <borut.razem AT siol.net>
319
320         * support/scripts/listerr.c: program to create the list of errors and
321           warnings list from - added
322         * doc/sdccman.lyx: removed the note
323           "For list of warnings and corresponding codes, see err_warn.txt"
324         * src/SDCCsymt.c: fixed bug #1699804:
325           Bug with some uses of sizeof(static local array) (MCS51)
326         * support/regression/tests/bug-1699804.c: added
327
328 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
329
330         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
331           (main): added option -i,
332           (asmbl, case S_INCL): use search_path_fopen,
333           mostly from patch 1579668 by Peter Miller, thanks
334         * src/z80/main.c: fixed typo --callee-saves-bc
335         * device/include/mcs51/compiler.h: added sfrword for Tasking
336
337 2007-04-20 Borut Razem <borut.razem AT siol.net>
338
339         * src/z80/main.c: replaced reserved keyword asm with asmblr
340
341 2007-04-19 Borut Razem <borut.razem AT siol.net>
342
343         * src/port.h: use const pointers to strings
344         * src/SDCCargs.h: declared getStringArg() and getIntArg()
345         * src/pic16/main.c: include SDCCargs.h
346         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
347           const char, since the strings are dynamically allocated
348         * src/SDCCmain.c: options.code_seg and options.const_seg are
349           dynamically allocated; check port specific command line options
350           before the general ones
351         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
352
353 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
354
355         * device/include/ds400rom.h,
356         * device/lib/ds390/lcd390.c,
357         * device/lib/ds390/memcpyx.c,
358         * device/lib/ds390/rtc390.c,
359         * device/lib/ds400/ds400rom.c,
360         * device/lib/ds400/memcpyx.c,
361         * device/lib/hc08/_ret.c: more replacements of keywords with their
362           double underscore equivalents
363         * device/lib/ds390/Makefile.in,
364         * device/lib/ds400/Makefile.in,
365         * device/lib/gbz80/Makefile.in,
366         * device/lib/hc08/Makefile.in,
367         * device/lib/mcs51/Makefile.in,
368         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
369
370 2007-04-17 Borut Razem <borut.razem AT siol.net>
371
372         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
373           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
374           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
375           to --fverbose-asm, to be gcc'ish
376
377 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
378
379         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
380
381 2007-04-17 Borut Razem <borut.razem AT siol.net>
382
383         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
384         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
385           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
386           with their double underscore equivalent
387
388 2007-04-14 Borut Razem <borut.razem AT siol.net>
389
390         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
391           source"
392
393 2007-04-13 Borut Razem <borut.razem AT siol.net>
394
395         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
396           C99 standard
397         * device/examples/serialcomm/windows/serial.[ch],
398           device/examples/serialcomm/windows/test_serialcomm.cpp:
399           updated by Bela Torok
400         * device/examples/serialcomm/windows/serialcomm.dsw,
401           device/examples/serialcomm/windows/serialcomm.dsp: added
402
403 2007-04-13 Jan Waclawek <wek AT efton.sk>
404
405         * doc/sdccman.lyx: additions and changes at various places
406           (submitted as #1697136).
407           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
408
409 2007-04-10 Borut Razem <borut.razem AT siol.net>
410
411         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
412           LyX file format changed to 245
413         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
414           "FreeWare" replaced with "free open source"
415
416 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
417
418         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
419
420 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
421
422         * device/include/pic16/pic18fregs.h,
423         * device/lib/_bp.c,
424         * device/lib/_decdptr.c,
425         * device/lib/_divsint.c,
426         * device/lib/_divslong.c,
427         * device/lib/_divuint.c,
428         * device/lib/_divulong.c,
429         * device/lib/_fs2schar.c,
430         * device/lib/_fs2sint.c,
431         * device/lib/_fs2slong.c,
432         * device/lib/_fs2uchar.c,
433         * device/lib/_fs2uint.c,
434         * device/lib/_fs2ulong.c,
435         * device/lib/_fsadd.c,
436         * device/lib/_fscmp.c,
437         * device/lib/_fsdiv.c,
438         * device/lib/_fseq.c,
439         * device/lib/_fsget1arg.c,
440         * device/lib/_fsget2args.c,
441         * device/lib/_fsgt.c,
442         * device/lib/_fslt.c,
443         * device/lib/_fsmul.c,
444         * device/lib/_fsneq.c,
445         * device/lib/_fsnormalize.c,
446         * device/lib/_fsreturnval.c,
447         * device/lib/_fsrshift.c,
448         * device/lib/_fssub.c,
449         * device/lib/_fsswapargs.c,
450         * device/lib/_gptrget.c,
451         * device/lib/_gptrgetc.c,
452         * device/lib/_gptrput.c,
453         * device/lib/_logexpf.c,
454         * device/lib/_modsint.c,
455         * device/lib/_modslong.c,
456         * device/lib/_moduint.c,
457         * device/lib/_modulong.c,
458         * device/lib/_mulint.c,
459         * device/lib/_mullong.c,
460         * device/lib/_schar2fs.c,
461         * device/lib/_ser.c,
462         * device/lib/_setjmp.c,
463         * device/lib/_sint2fs.c,
464         * device/lib/_slong2fs.c,
465         * device/lib/_spx.c,
466         * device/lib/_uchar2fs.c,
467         * device/lib/_uint2fs.c,
468         * device/lib/_ulong2fs.c,
469         * device/lib/asincosf.c,
470         * device/lib/atanf.c,
471         * device/lib/calloc.c,
472         * device/lib/ds390/tinibios.c,
473         * device/lib/ds400/tinibios.c,
474         * device/lib/expf.c,
475         * device/lib/free.c,
476         * device/lib/hc08/_mulint.c,
477         * device/lib/logf.c,
478         * device/lib/malloc.c,
479         * device/lib/printf_fast.c,
480         * device/lib/printf_tiny.c,
481         * device/lib/printfl.c,
482         * device/lib/realloc.c,
483         * device/lib/ser_ir.c,
484         * device/lib/serial.c,
485         * support/regression/tests/libmullong.c: replaced all special keywords
486           with their double underscore equivalent
487         * support/regression/ports/mcs51-xstack-auto/spec.mk,
488         * device/lib/Makefile.in: compile libs with --std-c99 instead of
489           --std-sdcc99
490         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
491           (genRet): if the bit-symbol is ruonly it already is in the carry
492         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
493         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
494         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
495           type UCHAR if dest is not bit
496
497 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
498
499         * device/include/math.h,
500         * device/lib/cotf.c,
501         * device/lib/expf.c,
502         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
503
504 2007-04-01 Borut Razem <borut.razem AT siol.net>
505
506         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
507           fixed bug #1692042: input buffer overflow...scanner uses REJECT
508         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
509           gcc_unreachable() called internal_error()...
510
511 2007-03-30 Raphael Neider <rneider AT web.de>
512
513         * src/pic/ralloc.c (isData): suppress garbage debug output
514
515 2007-03-28 Borut Razem <borut.razem AT siol.net>
516
517         * doc/sdccman.lyx:
518           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
519           is developed, built and used worldwide, and the word "night" doesn't
520           make any sense.
521
522 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
523
524         * device/include/mcs51/C8051F360.h: new, added
525         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
526
527 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
528
529         * src/SDCC.y (declaration_specifiers, function_specifier),
530         * support/Util/SDCCerr.c,
531         * support/Util/SDCCerr.h,
532         * src/SDCCsymt.h,
533         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
534           inline keyword
535         * src/SDCCmem.c (deallocParms),
536         * src/SDCCast.c: support for function inlining, not quite complete
537         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
538           'restrict' qualifier
539
540 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
541
542         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
543           (saveRBank, unsaveRBank): don't save bits,
544           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
545         * support/regression/tests/bug1535242.c: new, added
546         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
547           thanks Alexey Shamrin <shamrin AT gmail.com>,
548           made assert.h header ANSI compliant (added a check for NDEBUG macro,
549           removed header guard)
550         * .version,
551         * sdcc.spec: bumped version to 2.6.5
552         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
553
554 2007-03-22 Borut Razem <borut.razem AT siol.net>
555
556         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
557           fixed bug #1653671: sdcdb integration into ddd is broken
558
559 2007-03-22 Raphael Neider <rneider AT web.de>
560
561         * src/pic/gen.c (popGetExternal): augmented to also create references
562           to external variables (not only labels),
563           (genCall): comment on plan to reduce PAGESEL overhead,
564           (genFunction, genEndFunction): also save/restore FSR around interrupt
565           handling code, removed lots of unused code
566           (genDivOneByte): release acquired temp register
567         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
568           of popGetExternal
569         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
570           for registers that need to be saved during interrupts (FSR, STATUS,
571           PCLATH; W needs special handling), currently only FSR is used
572
573 2007-03-22 Raphael Neider <rneider AT web.de>
574
575         * device/include/pic/pic14devices.txt: 16f688 has only one config word
576
577 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
578
579         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
580
581 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
582
583         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
584
585 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
586
587         * as/link/aslink.h: added LKOBJEXT
588         * as/link/hc08/link_hc08.dsp,
589         * as/link/hc08/Makefile.bcc,
590         * as/link/hc08/Makefile.in,
591         * as/link/mcs51/aslink.dsp,
592         * as/link/mcs51/Makefile.bcc,
593         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
594         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
595         * as/link/lkaomf51.c: merged and moved
596         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
597         * as/link/z80/lkdata.c,
598         * as/link/lkdata.c: merged and moved
599         * as/link/hc08/lkmain.c,
600         * as/link/mcs51/lkmain.c: cosmetic changes
601         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
602         * as/link/lklex.c: use LKOBJEXT
603         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
604           ANSI-fied functions, removed bubble-sorts
605         * as/link/z80/lksym.c           as/link/lksym.c: merged,
606           ANSI-fied functions
607         * as/link/z80/linkgbz80.dsp,
608         * as/link/z80/linkz80.dsp,
609         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
610           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
611         * as/link/z80/lkhead.c,
612         * as/link/z80/lklex.c: deleted
613         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
614         * as/link/z80/lkmain.c: added copyfile()
615
616 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
617
618         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
619
620 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
621
622         * device/lib/_strlen.c: assembler version for mcs51
623
624 2007-03-13 Raphael Neider <rneider AT web.de>
625
626         * device/include/pic16/pic18f2221.h,
627         * device/include/pic16/pic18f2321.h,
628         * device/include/pic16/pic18f2331.h,
629         * device/include/pic16/pic18f4221.h,
630         * device/include/pic16/pic18f4321.h,
631         * device/include/pic16/pic18f4331.h: fixed config byte location names
632         * support/scripts/inc2h-pic16.pl: removed debug output, emit
633           consistently named config byte locations
634
635 2007-03-13 Borut Razem <borut.razem AT siol.net>
636
637         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
638           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
639           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
640           as/link/z80/Makefile.in, as/z80/Makefile.in:
641           introduced LDFLAGS
642
643 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
644
645         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
646         * device/lib/printf_large.c: pointer was converted to generic
647         pointer for mcs51 models other than model-small (Maarten noticed)
648
649 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
650
651         * device/include/mcs51/ADuC84x.h: Added.
652
653 2007-03-10 Borut Razem <borut.razem AT siol.net>
654
655         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
656           fixed RFE #1624219: double backslashes in filenames;
657           functions hexEscape(), octalEscape() and copyStr() moved from
658           SDCCval.c to SDCCutil.c and made them glovbally available
659
660 2007-03-09 Borut Razem <borut.razem AT siol.net>
661
662         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
663           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
664           1673361: Missaligned comments in output files
665
666 2007-03-09 Raphael Neider <rneider AT web.de>
667
668         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
669
670 2007-03-09 Raphael Neider <rneider AT web.de>
671
672         * src/pic/gen.c,
673         * src/pic/glue.c,
674         * src/pic/ralloc.c: suppress undesired debug output
675         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
676
677 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
678
679         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
680
681 2007-03-07 Borut Razem <borut.razem AT siol.net>
682
683         * device/lib/pic16/libdev/pic18f[24][34]31.c:
684           search include files in the current directory
685
686 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
687
688         * src/SDCCglue.c (emitMaps, glue),
689         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
690           absolute xdata
691         * support/regression/tests/absolute.c: added xdata test
692
693 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
694
695         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
696           added condition to macro, fixes bug 1666080
697
698 2007-03-02 Raphael Neider <rneider AT web.de>
699
700         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
701
702 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
703
704         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
705         be cleared. Unconditionally set __XPAGE
706         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
707
708 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
709
710         * src/SDCCglobl.h,
711         * src/SDCCmain.c,
712         * src/mcs51/gen.c,
713         * src/mcs51/rtrack.c,
714         * src/ds390/gen.c,
715         * doc/sdccman.lyx: added --no-gen-comments
716         * src/mcs51/peeph.def: added 192.b, disabled 185
717
718 2007-02-25 Raphael Neider <rneider AT web.de>
719
720         * src/pic16/gen.c (genCast): fixed typo
721         * device/lib/pic16/Makefile.subdir: only install existing files
722         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
723
724 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
725
726         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
727         * device/lib/mcs51/crtclear.asm,
728         * device/lib/mcs51/crtxclear.asm: renumbered labels
729         * device/lib/mcs51/Makefile.in: added crtcall.asm
730         * doc/sdccman.lyx: documented mcs51 crt* library startup code
731         * src/mcs51/gen.c (movc): removed,
732           (aopGet, genPlusBits): clear a after loading the carry (possibly from
733             acc.x or psw.x),
734           (toCarry, genSend, genRet): added function toCarry,
735           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
736           (assignBit, genAssign, genCast): added function assignBit
737         * src/mcs51/Makefile.bcc: added rtrack.c
738         * src/mcs51/ralloc.h: made valueKnown a bitfield
739         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
740           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
741           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
742         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
743         * src/z80/gen.c: added AOP_IS_PAIRPTR,
744           (_pop): only pop valid pairs, see gencjneshort,
745           (gencjneshort): return pair that still needs to be popped, restructured,
746           (gencjne, genCmpEq): call _pop
747
748 2007-02-23 Raphael Neider <rneider AT web.de>
749
750         * device/include/pic/pic14devices.txt: 16f684 has only one config word
751
752 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
753
754         * device/include/mcs51/P89LPC925.h: Added.
755
756 2007-02-18 Raphael Neider <rneider AT web.de>
757
758         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
759
760 2007-02-17 Borut Razem <borut.razem AT siol.net>
761
762         * support/cpp2/directives.c, support/cpp2/version.c:
763           synchronized with GCC CPP 4.1.2
764
765 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
766
767         * src/mcs51/rtrack.h,
768         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
769           by checking the strings passed by emitcode() to the assembler.
770           Feel free to change. This in part addresses RFE #482179.
771           Set environment variable SDCC_RTRACK to enable.
772         * src/mcs51/gen.c: inserted hooks
773         * src/mcs51/ralloc.h: added two members to struct regs
774         * support/regression/tests/regtrack.c: added
775
776 2007-02-14 Borut Razem <borut.razem AT siol.net>
777
778         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
779         * Makefile.in: applied patch from Makefile related part of
780           #1469393: Compiler does not initialize static data
781
782 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
783
784         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
785           for better fix of bug 1273984, compiles pic16 rand.c
786
787 2007-02-12 Borut Razem <borut.razem AT siol.net>
788
789         * src/pic16/main.c: fixed pic16 standard library directory bug
790
791 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
792
793         * src/hc08/gen.c (genSwap): fix swap regression test
794
795 2007-02-10 Borut Razem <borut.razem AT siol.net>
796
797         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
798           with same scope
799         * support/regression/tests/bug-1654060.c: added regression test for
800           #1654060
801
802 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
803
804         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
805         bit moves in return statement
806
807 2007-02-09 Borut Razem <borut.razem AT siol.net>
808
809         * src/SDCC.y: fixed bug #1654060 typedef within function causes
810           syntax error
811
812 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
813
814         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
815         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
816
817 2007-02-07 Raphael Neider <rneider AT web.de>
818
819         * src/pic16/devices.inc,
820         * device/include/pic16/pic18fregs.h,
821         * device/include/pic16/pic18f[24][34]31.h,
822         * device/lib/pic16/libdev/pic18f[24][34]31.c,
823         * device/lib/pic16/pics.all: added 18f[24][34]31 family
824         * device/lib/pic16/libio/i2c.ignore: do not build i2c
825
826 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
827
828         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
829           can this have lived here for so many years?
830         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
831           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
832         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
833
834 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
835
836         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
837         appended by loop induction must be at the very end of the eBBlock
838
839 2007-02-05 Kevin Vigor
840
841         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
842
843 2007-02-05 Borut Razem <borut.razem AT siol.net>
844
845         * support/regression/fwk/lib/timeout.c: native WIN32 port,
846           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
847
848 2007-02-03 Borut Razem <borut.razem AT siol.net>
849
850         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
851           applied patch #1646602 option to set default signedness of char to
852           unsigned, added -funsigned-char command line option,
853           thanks to Gunther Jehle
854         * device/lib/Makefile.in: added the -f option to rm so it doesn't
855           prompt for file deletion a few hundred times (especially the
856           subversion files, which have ro permissions so it asks for
857           confirmation), thanks to Simon McAuliffe;
858           added {} + option to find in order to remove multiple files from a
859           single rm commad
860
861 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
862
863         * device/include/mcs51/SST89x5xRDx.h: Added.
864
865 2007-02-02 Raphael Neider <rneider AT web.de>
866
867         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
868         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
869
870 2007-02-01 Raphael Neider <rneider AT web.de>
871
872         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
873           config words again
874
875 2007-01-31 Borut Razem <borut.razem AT siol.net>
876
877         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
878           if compiled with GCC. Thanks to Raphael Neider
879
880 2007-01-31 Raphael Neider <rneider AT web.de>
881
882         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
883             operand names, handles name and (name + n) for all n,
884           (sameBank): restructured, also check bank allocation policy,
885         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
886           (pic14_operandsAllocatedInSameBank): check whether to operands
887             will be allocated into the same bank (i.e., section) to reduce
888             BANKSEL overhead, queried from pcode.c:sameBank,
889           (pic14printLocals): reintroduced clustering registers into a single
890             section: all compiler generated symbols will now reside in one
891             bank (per file), reducing BANKSEL overhead and code size,
892           (showAllMemmaps): use local dbuf where possible
893
894 2007-01-29 Raphael Neider <rneider AT web.de>
895
896         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
897           (call_libraryfunc): retrieve/create symbol and mark as used,
898           (genFunction): mark defined functions as non-extern and add again
899            to code memmap for later output
900         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
901           (pic14printLocals): reworked for new symbol emission,
902           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
903           showAllMemmaps): reworked symbol output using dbufs, added handling
904             of string literals (still incomplete),
905           (picglue): removed symbol emission, moved into showAllMemmaps,
906           (emitSymbolSet): new workhorse for symbol output,
907           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
908
909 2007-01-29 Borut Razem <borut.razem AT siol.net>
910
911         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
912           component contains the extension separator.
913
914 2007-01-28 Borut Razem <borut.razem AT siol.net>
915
916         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
917           on WIN32
918         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
919           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
920           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
921           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
922           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
923           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
924           src/z80/gen.c, support/Util/MySystem.c:
925           accept slash and backslash as directory separator on WIN32 and
926           Cygwin ports
927
928 2007-01-28 Raphael Neider <rneider AT web.de>
929
930         * src/pic16/devices.inc,
931         * device/include/pic16/pic18f[24][23]21.h,
932         * device/include/pic16/pic18fregs.h,
933         * device/lib/pic16/libdev/pic18f[24][23]21.c,
934         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
935         * device/lib/pic16/libio/adc.ignore,
936         * device/lib/pic16/libio/i2c.ignore,
937         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
938           family, as gputils do not yet support the devices
939         * device/lib/pic16/Makefile.subdir: ignore errors on install
940         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
941           headers and libraries from gputils .inc files
942
943 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
944
945         * doc/sdccman.lyx: add printf_fast_f precision limitation note
946
947 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
948
949         * doc/sdccman.lyx: add printf benchmarks
950
951 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
952
953         * device/lib/printf_fast.c: fix %c, char promoted to int
954         * device/lib/printf_tiny.c: fix %c, char promoted to int
955
956 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
957
958         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
959
960 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
961
962         * support/regression/tests/swap.c: 64 bit hosts failed
963         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
964
965 2007-01-25 Raphael Neider <rneider AT web.de>
966
967         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
968           based on absolute register address, patch by Alex Blond
969
970 2007-01-22 Raphael Neider <rneider AT web.de>
971
972         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
973           emitted, do not emit them again...
974
975 2007-01-22 Raphael Neider <rneider AT web.de>
976
977         * src/regression/bank1.c, src/regression/compare6.c,
978           src/regression/add.c: cosmetic changes
979         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
980         * src/pic/gen.c: fixed global zero and one,
981           (aopForSym): removed unued code,
982           (aopGet): assert aop is defined, check and use `index' of
983             pCodeImmd operands (fixes #1630908),
984         * src/pic/pcode.c (get_op): added output of generic pointer tag,
985           (register_reassign): prevent accidental register unification,
986           (ReuseReg): cosmetic changes (also above)
987         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
988           pic14emitStaticSeg): do not emit initialized data,
989           (printIval*): replaced with working versions,
990           (pic14createInterruptVect,picglue): use idata for initialized data,
991             now init data should work in all modules (not only main()),
992         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
993
994 2007-01-21 Borut Razem <borut.razem AT siol.net>
995
996         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
997           use -fPIC or -fpic if they are supported and not ignored
998         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
999         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
1000
1001 2007-01-20 Borut Razem <borut.razem AT siol.net>
1002
1003         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
1004           implemented RFE #1470316: allow "$" in variable names
1005
1006 2007-01-20 Raphael Neider <rneider AT web.de>
1007
1008         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
1009
1010 2007-01-20 Raphael Neider <rneider AT web.de>
1011
1012         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
1013         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
1014         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
1015         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
1016           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
1017         * device/lib/pic/libdev/pic*.c,
1018         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
1019         * device/lib/pic/libdev/Makefile.in: show progress
1020
1021 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
1022
1023         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
1024         * support/scripts/sdcc_cygwin_mingw32,
1025         * support/scripts/sdcc_mingw32,
1026         * support/scripts/build.mak: replaced --datadir by --datarootdir for
1027         conformance with autoconf 2.6
1028
1029 2007-01-19 Raphael Neider <rneider AT web.de>
1030
1031         * src/pic/device.c (register_map): fixed list construction
1032         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
1033           (genMod): removed case for genModbits,
1034           (genModbits): removed as now unused/unimplemented
1035         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
1036
1037 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1038
1039         * support/regression/tests/swap.c: added in response to #1638622
1040         * doc/sdccman.lyx: synced version, minor changes
1041
1042 2007-01-18 Borut Razem <borut.razem AT siol.net>
1043
1044         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
1045           thanks to Gunther Jehle
1046         * src/asm.c: don't die if the file drfined in #line couldn't be opened
1047         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
1048           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
1049           use filename in lineno instead.
1050         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
1051           print the file name in ast_print()
1052
1053 2007-01-18 Borut Razem <borut.razem AT siol.net>
1054
1055         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
1056           defined in MSVC
1057         * src/SDCC.lex: stringLiteral() returns const char pointer,
1058           EOF detection in stringLiteral(), fixed asmbuf memory leak,
1059           fixed column counting
1060         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
1061           accept const char pointer as parameter
1062         * src/SDCCdwarf2.c: corrected buffer size
1063
1064 2007-01-17 Borut Razem <borut.razem AT siol.net>
1065
1066         * support/Util/dbuf_string.c: fixed for amd64
1067
1068 2007-01-15 Borut Razem <borut.razem AT siol.net>
1069
1070         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
1071           removed terminal symbol ELIPSIS, since it was never generated by the
1072           lexer and it was wrongly used in parameter_identifier_list rule
1073
1074 2007-01-15 Raphael Neider <rneider AT web.de>
1075
1076         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
1077             code page and data banking description
1078         * src/pic/genarith.c,
1079         * src/pic/gen.h: removed bit arithmetic functions,
1080             updated exit(1) to exit(EXIT_FAILURE)
1081         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
1082         * device/include/pic16/pic18f2455.h,
1083         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
1084             TRISD and TRISE, fixed/added some bit names
1085         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
1086         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
1087             updated pic18f2455.{c,h} instead of duplicating them
1088
1089 2007-01-14 Borut Razem <borut.razem AT siol.net>
1090
1091         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
1092           Cannot debug files that contain spaces in the path name
1093           by converting spaces in asm file name to underscores
1094
1095 2007-01-13 Borut Razem <borut.razem AT siol.net>
1096
1097         * doc/sdccman.lyx: fixed format errors
1098
1099 2007-01-10 Borut Razem <borut.razem AT siol.net>
1100
1101         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
1102           codeseg/constseg #pragma fail
1103         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
1104         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
1105           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
1106           suppoprt/cpp2/sdcpp.[ch]: house cleaning
1107
1108 2007-01-09 Borut Razem <borut.razem AT siol.net>
1109
1110         * get rid of diagnistic.[ch], pretty-print.[ch],
1111           c-pretty-print.[ch], ... used just for error, warning, ...
1112           message formatting
1113         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
1114           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
1115           suppoprt/cpp2/pretty-print.[ch]:
1116           removed
1117         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
1118           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
1119           suppoprt/cpp2/sdcpp.dsp:
1120           changed
1121
1122 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
1123
1124         * device/lib/printf_large.c (output_float): removed recursion,
1125           use smaller buffer on stack for mcs51,
1126           fixed bug printing 1.96
1127         * support/regression/tests/snprintf.c: added test
1128
1129 2007-01-07 Borut Razem <borut.razem AT siol.net>
1130
1131         * use dynamic memory buffers instead temporary files
1132         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
1133           added
1134         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
1135           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
1136           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
1137           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
1138           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
1139           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
1140           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
1141           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
1142           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
1143           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
1144           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
1145           support/Util/dbuf.c, support/Util/dbuf.h:
1146           modified
1147         * .version, sdcc.spec: bumped version to 2.6.4
1148
1149 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
1150
1151         * src/port.h: added TARGET_Z80_LIKE macro
1152         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
1153           output PSEG location if --xram-loc or --xstack-loc was used
1154         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
1155
1156 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
1157
1158         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
1159         * as/as_z80.dsp,   as/z80/as_z80.dsp,
1160         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
1161         * sdcc.dsw: moved project files into subdir
1162         * as/hc08/as_hc08.dsp,
1163         * as/hc08/Makefile.bcc,
1164         * as/hc08/Makefile.in,
1165         * as/mcs51/Makefile.bcc,
1166         * as/mcs51/Makefile.in,
1167         * as/z80/Makefile.bcc,
1168         * as/z80/Makefile.in,
1169         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
1170         * as/hc08/asm.h,
1171         * as/mcs51/asm.h,
1172         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
1173         * as/hc08/asmain.c,
1174         * as/hc08/assym.c,
1175         * as/mcs51/asmain.c,
1176         * as/mcs51/assym.c,
1177         * as/z80/assym.c: removed include "strcmpi.h"
1178         * as/hc08/strcmpi.c,
1179         * as/hc08/strcmpi.h,
1180         * as/mcs51/strcmpi.c,
1181         * as/mcs51/strcmpi.h,
1182         * support/Util/strcmpi.c,
1183         * support/Util/strcmpi.h: removed files
1184         * as/strcmpi.c: added as_strncmpi()
1185
1186 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1187
1188         * sdcc.dsw: Added some dependencies on project config.dsp
1189
1190 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
1191
1192         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
1193           with [di]ram_start to fix a regresion
1194
1195 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
1196
1197         * configure.in: added missing mcs51 in status output
1198         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
1199         directory
1200         * debugger/mcs51/clean.mk (distclean): remove config.h
1201         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
1202         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
1203         options.h, s-options-h and options.c
1204         * support/cpp2/clean.mk: unused, removed
1205         * Makefile.common.in,
1206         * main_in.mk,
1207         * as/Makefile.in,
1208         * as/hc08/Makefile.in,
1209         * as/hc08/clean.mk,
1210         * as/mcs51/Makefile.in,
1211         * as/mcs51/clean.mk,
1212         * as/z80/clean.mk,
1213         * as/z80/conf.mk,
1214         * as/z80/Makefile.in,
1215         * as/z80/clean.mk,
1216         * as/link/Makefile.in,
1217         * as/link/hc08/Makefile.in,
1218         * as/link/hc08/clean.mk,
1219         * as/link/mcs51/Makefile.in,
1220         * as/link/mcs51/clean.mk,
1221         * as/link/z80/Makefile.in,
1222         * as/link/z80/clean.mk,
1223         * as/link/z80/conf.mk,
1224         * debugger/mcs51/Makefile.in,
1225         * debugger/mcs51/clean.mk,
1226         * device/include/Makefile.in,
1227         * device/lib/Makefile.in,
1228         * device/lib/mcs51/Makefile.in,
1229         * device/lib/pic/Makefile.in,
1230         * device/lib/pic/Makefile.common.in,
1231         * device/lib/pic/Makefile.subdir,
1232         * device/lib/pic/Makefile.rules,
1233         * device/lib/pic16/libio/Makefile.in,
1234         * device/lib/pic16/Makefile.subdir,
1235         * device/lib/pic16/libdev/Makefile.in,
1236         * device/lib/pic16/Makefile.rules,
1237         * device/lib/pic16/Makefile.common.in,
1238         * sim/ucsim/avr.src/Makefile.in,
1239         * sim/ucsim/main_in.mk,
1240         * sim/ucsim/cmd.src/Makefile.in,
1241         * sim/ucsim/doc/Makefile.in,
1242         * sim/ucsim/gui.src/Makefile.in,
1243         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
1244         * sim/ucsim/gui.src/serio.src/Makefile.in,
1245         * sim/ucsim/hc08.src/Makefile.in,
1246         * sim/ucsim/libltdl/Makefile.in,
1247         * sim/ucsim/s51.src/Makefile.in,
1248         * sim/ucsim/sim.src/Makefile.in,
1249         * sim/ucsim/sim.src/conf.mk,
1250         * sim/ucsim/xa.src/Makefile.in,
1251         * sim/ucsim/z80.src/Makefile.in,
1252         * src/Makefile.in,
1253         * src/clean.mk,
1254         * src/port.mk,
1255         * support/cpp2/Makefile.in,
1256         * support/librarian/Makefile.in,
1257         * support/librarian/clean.mk,
1258         * support/makebin/Makefile.in,
1259         * support/makebin/clean.mk,
1260         * support/packihx/Makefile.in,
1261         * support/regression/Makefile.in,
1262         * support/regression/ports/ds390/spec.mk,
1263         * support/regression/ports/gbz80/spec.mk,
1264         * support/regression/ports/hc08/spec.mk,
1265         * support/regression/ports/mcs51/spec.mk,
1266         * support/regression/ports/mcs51-large/spec.mk,
1267         * support/regression/ports/mcs51-medium/spec.mk,
1268         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1269         * support/regression/ports/pic14/spec.mk,
1270         * support/regression/ports/pic16/spec.mk,
1271         * support/regression/ports/mcs51-stack-auto/spec.mk,
1272         * support/regression/ports/ucz80/spec.mk,
1273         * support/regression/ports/xa51/spec.mk,
1274         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
1275         adding a slash after $(top_builddir) and/or adding @datarootdir@
1276         * configure.in,
1277         * debugger/mcs51/configure.in,
1278         * device/lib/pic/configure.in,
1279         * device/lib/pic16/configure.in,
1280         * sim/ucsim/configure.in,
1281         * support/cpp2/configure.in,
1282         * support/packihx/configure.in: changed AC_PREREQ to 2.60
1283         * configure,
1284         * debugger/mcs51/configure,
1285         * device/lib/pic/configure,
1286         * device/lib/pic16/configure,
1287         * sim/ucsim/configure,
1288         * support/cpp2/configure,
1289         * support/packihx/configure: generated with autoconf 2.60
1290
1291 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
1292
1293         * as/link/hc08/lkihx.c (newArea),
1294         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
1295
1296 2007-01-02 Borut Razem <borut.razem AT siol.net>
1297
1298         * doc/sdccman.lyx: documented #pragma sdcc_hash
1299         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
1300           initialized to 0
1301         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
1302
1303 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
1304
1305         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
1306         empty 'while'-loop to work correctly, see regression test 'while.c'
1307         * support/regression/tests/while.c: added
1308
1309 2007-01-01 Borut Razem <borut.razem AT siol.net>
1310
1311         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
1312           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
1313           support/cpp2/libcpp/sdcpp.c:
1314           sdcpp specific pragma/directive/option handling moved to sdcpp.c
1315         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
1316         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
1317
1318 2006-12-31 Borut Razem <borut.razem AT siol.net>
1319
1320         * SDCPP synchronized with GCC CPP release version 4.1.1,
1321           currently the latest release:
1322         * support/cpp2/libcpp, support/cpp2/libcpp/include,
1323           support/cpp2/libcpp/include/cpp-id-data.h
1324           support/cpp2/libiberty/fopen_unlocked.c
1325           support/cpp2/libiberty/md5.c
1326           support/cpp2/md5.h
1327           support/cpp2/opt-functions.awk
1328           support/cpp2/opt-gather.awk
1329           support/cpp2/optc-gen.awk
1330           support/cpp2/opth-gen.awk:
1331           added
1332         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
1333           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1334           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
1335           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
1336           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
1337           support/cpp2/diagnostic.h, support/cpp2/except.h,
1338           support/cpp2/hwint.h, support/cpp2/input.h,
1339           support/cpp2/intl.h, support/cpp2/move-if-change,
1340           support/cpp2/opts.c, support/cpp2/opts.h,
1341           support/cpp2/output.h, support/cpp2/prefix.c,
1342           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
1343           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
1344           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
1345           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
1346           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
1347           support/cpp2/version.c:
1348           modified
1349         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
1350           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
1351           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
1352           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
1353           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
1354           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
1355           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
1356           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
1357           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
1358           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
1359           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
1360           moved
1361         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
1362           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
1363           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
1364           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
1365           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
1366           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
1367           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
1368           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
1369           support/cpp2/hashtable.h, support/cpp2/line-map.c,
1370           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
1371           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
1372           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
1373           support/cpp2/system.h:
1374           deleted / moved
1375
1376 2006-12-31 Borut Razem <borut.razem AT siol.net>
1377
1378         * configure.in, configure: fixed bug #1538756: configure dies if bison
1379           and flex are not installed, 2nd try
1380
1381 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
1382
1383         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
1384         400.x for better code in RFE 899102
1385
1386 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
1387
1388         * src/SDCCpeeph.c (deadMove),
1389         * src/port.h,
1390         * src/mcs51/peep.h: renamed 'op' by 'reg'
1391         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
1392         (scan4op): small change for removeDeadMove(), added support for
1393         'callee saves' and/or PACLL function calls,
1394         (removeDeadMove): added, removes superflous 'mov r%1,%2',
1395         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
1396         left in new dispatcher mcs51DeadMove()
1397         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
1398         removeDeadMove()
1399         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
1400
1401 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1402
1403         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
1404           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
1405
1406 2006-12-30 Borut Razem <borut.razem AT siol.net>
1407
1408         * support/cpp2/spacs.h: deleted from svn
1409         * configure.in, configure: fixed bug #1538756: configure dies if bison
1410           and flex are not installed
1411
1412 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
1413
1414         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
1415           with this z80 passes printf float test when enabled
1416         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
1417
1418 2006-12-28 Borut Razem <borut.razem AT siol.net>
1419
1420         * support/cpp2/config.in, support/cpp2/configure.in,
1421           support/cpp2/configure, support/cpp2/Makefile.in:
1422           fix for the solaris build
1423
1424 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1425
1426         * src/SDCC.y (type_specifier2, pointer),
1427         * src/SDCCsymt.h,
1428         * src/SDCCsymt.c (mergeSpec, checkSClass),
1429         * support/Util/SDCCerr.c,
1430         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
1431         * support/valdiag/valdiag.py: Allow test cases to specify
1432           required language standard
1433         * support/valdiag/tests/restrict.c: New file to test restrict keyword
1434         * support/valdiag/tests/tentdecl.c: Supress empty source file error
1435
1436 2006-12-27 Borut Razem <borut.razem AT siol.net>
1437
1438         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
1439         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
1440           mbchar removed
1441         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
1442           fixed for borland C
1443         * support/cpp2/libiberty/Makefile.bcc: updated
1444         * src/pic16/main.c: fixed #pragma udata handling
1445         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
1446
1447 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
1448
1449         * src/SDCCpeeph.c: made labelHashEntry global,
1450         made pcDistance, FBYNAME static,
1451         (pcDistance): made static, use isComment and isLabel,
1452         (deadMove): added,
1453         (getLabelRef): added, extracted from labelRefCount(),
1454         (labelRefCount): use new getLabelRef(),
1455         (callFuncByName): made static, added deadMove,
1456         use isComment and isLabel,
1457         (newPeepRule): made static, set isLabel,
1458         (isLabelDefinition): added parameter isPeepRule to allow '%' in
1459         labels from peephole rules,
1460         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
1461         when isComment or isLabel is set
1462         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
1463         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
1464         to make them global
1465         * src/mcs51/peep.h: added
1466         * src/mcs51/peep.c: added, implements mcs51DeadMove()
1467         * src/port.h: added peep->deadMove to port structure
1468         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
1469         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
1470         deadMove, finally removed no. 1 and 2
1471         * src/mcs51/gen.c,
1472         * src/pic/gen.c,
1473         * src/z80/gen.c,
1474         * src/z80/ralloc.c,
1475         * src/pic16/gen.c,
1476         * src/ds390/gen.c,
1477         * src/hc08/gen.c: mark lines with isComment or isLabel
1478         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
1479         * .version,
1480         * sdcc.spec: bumped version to 2.6.3
1481
1482 2006-12-26 Borut Razem <borut.razem AT siol.net>
1483
1484         * support/cpp2/Makefile.in: added dependency on options.h
1485         * configure: regenerated
1486         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
1487         * support/cpp2/Makefile.in: added vasprintf.c
1488
1489 2006-12-25 Borut Razem <borut.razem AT siol.net>
1490
1491         * SDCPP synchronized with GCC CPP release version 3.4.6,
1492           the latest release before 4.x:
1493         * support/cpp2/Makefile.in, support/cpp2/config.h,
1494           support/cpp2/configure, support/cpp2/configure.in,
1495           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
1496           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
1497           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
1498           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
1499           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
1500           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
1501           support/cpp2/cpptrad.c, support/cpp2/except.h,
1502           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
1503           support/cpp2/hwint.h, support/cpp2/intl.h,
1504           support/cpp2/line-map.c, support/cpp2/line-map.h,
1505           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
1506           support/cpp2/output.h, support/cpp2/prefix.c,
1507           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
1508           support/cpp2/system.h, support/cpp2/version.c:
1509           modified
1510         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1511           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
1512           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
1513           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
1514           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
1515           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
1516           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
1517           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
1518           support/cpp2/move-if-change, support/cpp2/opts.c,
1519           support/cpp2/opts.h, support/cpp2/opts.sh,
1520           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
1521           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
1522           support/cpp2/win32, support/cpp2/win32/dirent.c,
1523           support/cpp2/win32/dirent.h:
1524           added
1525         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
1526         * support/cpp2/sdcpp.h: renamed from sdcc.h
1527         * sdcppinit.c: deleted
1528
1529 2006-12-23 Borut Razem <borut.razem AT siol.net>
1530
1531         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
1532           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
1533           preproc.c: an other try to fix bug #982435: introduced
1534           -pedantic-parse-number command line option and pedantic_parse_number
1535           pragma
1536
1537 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
1538
1539         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
1540            BSEG handling,
1541           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
1542            corrected overlayed areax addresses, warn about memory overlaps
1543         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
1544         * src/avr/main.c,
1545         * src/ds390/main.c,
1546         * src/hc08/main.c,
1547         * src/mcs51/main.c,
1548         * src/pic16/main.c,
1549         * src/pic/main.c,
1550         * src/xa51/main.c,
1551         * src/z80/main.c,
1552         * src/port.h: added xabs_name and iabs_name
1553         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
1554           (glue, emitMaps): create and emit maps d_abs and i_abs
1555         * src/SDCCglue.h: cosmetic changes
1556         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
1557         * src/SDCCmem.h,
1558         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
1559           (allocDefault): put absolute, initialized globals in them
1560         * support/regression/tests/absolute.c: added absolute bdata test
1561         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
1562
1563 2006-12-20 Borut Razem <borut.razem AT siol.net>
1564
1565         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
1566         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
1567           added regression test for bug #982435
1568
1569 2006-12-18 Borut Razem <borut.razem AT siol.net>
1570
1571         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
1572         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
1573           small cosmetic changes
1574         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
1575         * support/regression/tests/bug-1351710.c: added regression test
1576
1577 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1578
1579         * doc/sdccman.lyx: added the long missed iCode table
1580           "<where is figure II?>", added links to wiki
1581
1582 2006-12-17 Borut Razem <borut.razem AT siol.net>
1583
1584         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
1585           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
1586           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
1587           unified table driven pragma handling, pragma argument type checking
1588         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
1589           current one - version 1.1.3
1590         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
1591
1592 2006-12-13 Raphael Neider <rneider AT web.de>
1593
1594         * src/pic/device.h: removed AssignedMemory structure and macros
1595         * src/pic/device.c: removed global finalMapping (linker assigns
1596             memory locations),
1597           (register_map): add SFRs to remembered memRanges
1598           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
1599           assignFixedRegisters,assignRelocatableRegisters): removed,
1600           (setMaxRAM,validAddress): adapted accordingly,
1601           (pic14_hasSharebank,pic14_getSharedStack): only report and use
1602             reasonably sized sharebanks,
1603         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
1604           (allDefsOutOfRange): removed unused code,
1605         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
1606             handling
1607         * src/pic/pcode.c (register_reassign): removed recursion warning,
1608             fired far too often,
1609         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
1610             to use existing pic14_stringInSet() to avoid duplicate symbols,
1611             tidied up the code a bit,
1612           (pic14printLocals): added in symmetry to printExterns, replaces
1613             writeUsedRegs more or less,
1614           (picglue): call new pic14_printLocals(),
1615         * device/include/pic/pic*.h: removed #pragma memmap directives,
1616             information gathered from include/pic/pic14devices.txt
1617         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
1618
1619 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
1620
1621         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
1622
1623 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1624
1625         * device/include/mcs51/cc2430.h: fixed missing ';'
1626
1627 2006-12-10 Raphael Neider <rneider AT web.de>
1628
1629         * device/lib/pic16/libc/stdio/vfprintf.c,
1630         * device/lib/pic16/libc/stdio/printf_small.c,
1631         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
1632           char arguments, as char varargs are cast to int by the caller,
1633           hopefully fixes #1604915 (other device libraries are still affected)
1634
1635 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1636
1637         * src/mcs51/ralloc.c (packRegsForAssign),
1638         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
1639
1640 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
1641
1642         * device/include/malloc.h: removed init_dynamic_memory
1643         * device/lib/malloc.c: made init_dynamic_memory static and automatically
1644           call it once from malloc. Also use _sdcc_heap[] from _heap.c
1645         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
1646         * device/lib/libsdcc.lib,
1647         * device/lib/Makefile.in,
1648         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
1649         * doc/sdccman.lyx: documented use of new _heap.c
1650         * support/regression/tests/malloc.c: removed init_dynamic_memory
1651         * src/cdbFile.c(spacesToUnderscores): new function,
1652           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
1653           1068030
1654         * device/include/tinibios.h: removed defines for putchar and getchar
1655         * device/lib/ds390/Makefile.in: added putchar.c
1656         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
1657
1658 2006-12-09 Borut Razem <borut.razem AT siol.net>
1659
1660         * support/cpp2/sdcc.h: prevent multiple inclusion
1661         * support/cpp2/options.h: deleted
1662
1663 2006-12-08 Borut Razem <borut.razem AT siol.net>
1664
1665         * support/cpp2/sdcc.h: removed x*alloc() macros
1666         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
1667         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
1668           support/cpp2/sdcpp.sdc: x*alloc files added to the project
1669         * support/cpp2/system.h: moved #include "sdcc.h"
1670         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
1671           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
1672           added
1673         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
1674           -funsigned-char options
1675         * support/cpp2/sdcppmain.c: fixed bug 1611411
1676
1677 2006-12-07 Borut Razem <borut.razem AT siol.net>
1678
1679         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
1680           directive
1681
1682 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
1683
1684         * src/SDCCsymt.c (addDecl): fixed bug 1609244
1685         * src/SDCCmain.c (linkEdit): fixed bug 1609279
1686         * doc/sdccman.lyx,
1687         * .version: bumped to 2.6.2 because a) it's been a while
1688           b) the linker sources have moved c) the preprocessor is upgraded
1689
1690 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1691
1692         * support/regression/tests/snprintf.c: some checks
1693         * lib/src/printf_large.c: %bc: read char instead of int from stack
1694
1695 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
1696
1697         * device/include/mcs51/cc2430.h: inserted _XPAGE
1698
1699 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1700
1701         * device/include/mcs51/cc2430.h: added
1702
1703 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
1704
1705         * device/include/asm/default/features.h,
1706         * device/include/asm/ds390/features.h,
1707         * device/include/mcs51/at89s53.h,
1708         * device/include/ser.h,
1709         * device/include/ser_ir.h,
1710         * device/include/serial.h: changed keywords to double underscore variants,
1711           fixes bug 1590261 some more, thanks Steven Borley
1712
1713 2006-12-01 Raphael Neider <rneider AT web.de>
1714
1715         * src/pic/pcode.c (register_reassign): do not crash on recursive code
1716           but emit warning (recursion is not supported for pic14)
1717
1718 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1719
1720         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
1721         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
1722
1723 2006-11-30 Raphael Neider <rneider AT web.de>
1724
1725         * src/pic/device.c (dump_sfr): always emit symbols
1726         * src/pic/glue.c (pic14printPublics): fixed typo
1727
1728 2006-11-30 Raphael Neider <rneider AT web.de>
1729
1730         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
1731           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
1732           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
1733            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
1734            a sharebank, use a non-shared bank for the stack if none available
1735         * src/pic/device.h (struct memRange): added linked list next field,
1736           added prototypes for above functions
1737         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
1738           (typeRegWithIdx): accept fixed and unfixed stack registers
1739         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
1740           the stack, handle shared and banked stack (except for WSAVE),
1741           (insertBankSel): removed useless optimization (will never fire),
1742           (FixRegisterBanking): added optimization for devices with only one
1743           possibly aliased bank of memory, like 16f84
1744         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
1745           devices have no SHAREBANK in the linker script
1746         * device/include/pic/pic14devices.txt: documented memmap
1747         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
1748
1749 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1750
1751         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
1752           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
1753           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
1754           genhc08Code): switched most of the D (debug) macros to DD (detailed
1755           debug) macros to better control clutter in the generated .asm file.
1756         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
1757           genRightShift): fixed bug with non-constant bit shift stored to
1758           a volatile result (SF Open Discussion forum thread #1616749).
1759           Single byte case is not yet optimized.
1760
1761 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
1762
1763         * device/include/asm/mcs51/features.h,
1764         * device/include/malloc.h,
1765         * device/include/stdio.h: changed keywords to double underscore variants,
1766           fixes bug 1590261
1767
1768 2006-11-27 Borut Razem <borut.razem AT siol.net>
1769
1770         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
1771           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
1772           support/cpp2/output.h, support/cpp2/cppinit.c,
1773           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
1774           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
1775           support/cpp2/cppdefault.c, support/cpp2/system.h,
1776           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
1777           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
1778           support/cpp2/prefix.c, support/cpp2/except.h,
1779           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
1780           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
1781           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
1782           support/cpp2/version.c, support/cpp2/cppmain.c,
1783           support/cpp2/version.h, support/cpp2/hashtable.c,
1784           support/cpp2/cpperror.c:
1785           synchronized with GCC CPP release version 3.3.6,
1786           the latest where cppmain.c still exists.
1787         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
1788           support/cpp2/sdcppinit.c: added
1789
1790 2006-11-27 Borut Razem <borut.razem AT siol.net>
1791
1792         * support/cpp2/cpplex.c:
1793           fixed _asm ... _endasm handling bug, introduce with GCC CPP
1794           synchronization
1795         * support/cpp2/cpplib.c: removed definitions of unused variables
1796
1797 2006-11-26 Borut Razem <borut.razem AT siol.net>
1798
1799         * support/cpp2/libiberty.h: commented out x*alloc() declarations
1800           since they are redefined by macros in support/cpp2/sdcc.h
1801         * support/cpp2/sdcc.h: x*alloc macro redefinition
1802
1803 2006-11-25 Borut Razem <borut.razem AT siol.net>
1804
1805         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
1806           support/cpp2/configure, support/cpp2/Makefile.in,
1807           support/cpp2/cppfiles.c, support/cpp2/output.h,
1808           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
1809           support/cpp2/config.h, support/cpp2/cpplib.h,
1810           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
1811           support/cpp2/cppdefault.c, support/cpp2/config.in,
1812           support/cpp2/system.h, support/cpp2/cpplex.c,
1813           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
1814           support/cpp2/cppdefault.h, support/cpp2/prefix.c
1815           support/cpp2/hwint.h, support/cpp2/mbchar.h,
1816           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
1817           support/cpp2/configure.in, support/cpp2/intl.h,
1818           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
1819           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
1820           support/cpp2/version.c, support/cpp2/cppmain.c,
1821           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
1822           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
1823           support/cpp2/cpperror.c,
1824           support/cpp2/libiberty/safe-ctype.c,
1825           support/cpp2/libiberty/safe-ctype.h,
1826           support/cpp2/libiberty/splay-tree.c,
1827           support/cpp2/libiberty/obstack.c,
1828           support/cpp2/libiberty/lbasename.c,
1829           support/cpp2/libiberty/splay-tree.h,
1830           support/cpp2/libiberty/obstack.h:
1831           synchronized with GCC CPP release version 3.2.3,
1832           the latest before integration of cpp into gcc
1833         * support/cpp2/except.h, support/cpp2/line-map.c,
1834           support/cpp2/line-map.h,
1835           support/cpp2/libiberty/hex.c,
1836           support/cpp2/libiberty/concat.c,
1837           support/cpp2/libiberty/filenames.h: added
1838         * support/cpp2/intl.c: deleted
1839
1840 2006-11-24 Borut Razem <borut.razem AT siol.net>
1841
1842         * src/SDCC.y: enabled compilation of empty source file
1843         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
1844           "ISO C forbids an empty source file"
1845         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
1846           if all the code is ifdefed out.
1847
1848 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1849
1850         * src/hc08/gen.c (genPcall): fix for bug #1601032
1851
1852 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
1853
1854         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
1855         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
1856         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
1857         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
1858         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
1859         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
1860         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
1861         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
1862         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
1863         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
1864         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
1865         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
1866         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
1867         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
1868         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
1869           Renamed to all upper case as per the standard set by SiLabs
1870
1871 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
1872
1873         * device/include/mcs51/C8051F520.h: new, added
1874         * device/include/mcs51/compiler.h: added link about predefined macros
1875
1876 2006-11-23 Raphael Neider <rneider AT web.de>
1877
1878         * src/regression/Makefile: add -L path to fresh library
1879         * src/regression/simulate: emphasize FAILED output
1880         * src/regression/create_stc: output _failures from gpsim
1881         * src/regression/compare4.c,
1882         * src/regression/rotate6.c: fixed char literals,
1883           all compile, all run =8-D
1884
1885         * src/pic/pcode.h: added isPCASMDIR macro
1886         * src/pic/gen.c (genAnd): fixed bit offset
1887         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
1888           packBits): unified register numbering schemes,
1889           (newReg): do not insert stack registers into hash table,
1890           (initStack): unpinned pseudo stack, simplified,
1891           (typeRegWithIdx): fixed retrieval of stack registers,
1892         * src/pic/pcode.c (addpCodeComment,sameBank): added,
1893           (pCodeReplace): removed invalid assertion,
1894           (insertPCodeInstruction): fixed newly added labels,
1895           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
1896           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
1897           DumpFlow): removed unsed (broken?) code,
1898           (insertBankSel): prevent STATUS from being BANKSELed,
1899           (FixRegisterBanking): rewritten from scratch, implemented generic
1900             optimizations (suppress BANKSELs to same register and to registers
1901             present in all banks),
1902           (AnalyzeBanking): update flow after BANKSELection
1903
1904         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
1905             sharebank, let linker place it, mark STKxx symbols as emitted
1906
1907 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1908
1909         * src/regression/arrays.c,
1910         * src/regression/bank1.c,
1911         * src/regression/bool2.c,
1912         * src/regression/compare7.c,
1913         * src/regression/compare8.c,
1914         * src/regression/compare9.c,
1915         * src/regression/compare10.c,
1916         * src/regression/configword.c,
1917         * src/regression/for.c,
1918         * src/regression/mult1.c,
1919         * src/regression/pointer1.c,
1920         * src/regression/rotate6.c,
1921         * src/regression/string1.c,
1922         * src/regression/struct1.c,
1923         * src/regression/Makefile: make PIC14 regression tests run again
1924           (3 fail, 6 won't compile)
1925
1926 2006-11-21 Raphael Neider <rneider AT web.de>
1927
1928         * device/include/pic16/pic18f4550.h,
1929         * device/include/pic16/pic18f4455.h,
1930         * device/lib/pic16/libdev/pic18f4550.c,
1931         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
1932         * configure.in: removed superfluous closing bracket
1933
1934 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1935
1936         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
1937           always positive.
1938
1939 2006-11-21 Raphael Neider <rneider AT web.de>
1940
1941         * src/pic/device.{c,h}: added pic14_getPIC()
1942         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
1943           (genAnd): added PIC code for one case, fixes #1597044
1944         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
1945           SFRs that are present in all banks (e.g., STATUS)
1946
1947 2006-11-20 Raphael Neider <rneider AT web.de>
1948
1949         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
1950           INCFSZ/INCFSZW and declared them as changing Z bit,
1951           (insertPCodeInstruction): correctly invert the above instructions,
1952           fixes #1599333,
1953           (DoBankSelect): don't panic on po_immediates
1954
1955 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
1956
1957         * as/link/aslink.h,
1958         * as/link/mcs51/lkihx.c (newArea),
1959         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
1960         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
1961
1962 2006-11-11 Raphael Neider <rneider AT web.de>
1963
1964         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
1965           bitfield symbols, fixes #1579535 (once more...).
1966
1967 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1968
1969         * support/regression/generate-cases.py,
1970         * support/regression/fwk/include/testfwk.h,
1971         * support/regression/fwk/lib/testfwk.c: used code pointers,
1972           (about 50kByte less code generated for mcs51)
1973
1974 2006-11-06 Borut Razem <borut.razem AT siol.net>
1975
1976         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
1977           debugger/mcs51/configure: fixed failed check because the function
1978           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
1979           who submitted the patch for gpsim.
1980         * debugger/mcs51/configure.in: removed the result message
1981         * debugger/mcs51/Makefile.in: fixed the config.status warning
1982           "... seems to ignore the --datarootdir setting"
1983
1984 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
1985
1986         * device/include/mcs51/c8051f020.h,
1987         * device/include/mcs51/c8051f040.h,
1988         * device/include/mcs51/c8051f060.h,
1989         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
1990         * src/z80/gen.c (gencjneshort),
1991         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
1992
1993 2006-10-31 Borut Razem <borut.razem AT siol.net>
1994
1995         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
1996           debugger/mcs51/configure: get readline version
1997
1998 2006-10-30 Borut Razem <borut.razem AT siol.net>
1999
2000         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
2001         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
2002           debugger/mcs51/configure: locate readline even when cross compiling
2003         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
2004
2005 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2006
2007         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
2008           serial port.
2009
2010 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
2011
2012         * device/include/malloc.h,
2013         * device/lib/calloc.c,
2014         * device/lib/free.c,
2015         * device/lib/malloc.c,
2016         * device/lib/realloc.c: moved definition of struct into sources
2017         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
2018
2019 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
2020
2021         * as/asx8051.dsp: corrected output directories
2022         * as/link/hc08: new directory for hc08 linker
2023         * as/hc08/aslink.h,             as/link/aslink.h,
2024         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
2025         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
2026         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
2027         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
2028         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
2029         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
2030         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
2031         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
2032         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
2033         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
2034         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
2035         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
2036         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
2037         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
2038         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
2039         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
2040         * as/link/hc08/conf.mk,
2041         * configure,
2042         * configure.in,
2043         * Makefile.in,
2044         * sdcc.dsw: moved hc08 linker to as/link/hc08
2045         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
2046         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
2047         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
2048         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
2049         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
2050         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
2051         * as/link/mcs51/aslink.dsp,
2052         * as/link/mcs51/Makefile.in: factored out the common files
2053         * as/hc08/lkstore.c: deleted, use the one already in as/link/
2054         * as/clean.mk: extra cleaning common files
2055         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
2056         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
2057         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
2058
2059 2006-10-29 Raphael Neider <rneider AT web.de>
2060
2061         * src/pic/ralloc.c (newReg): create aliases for registers with
2062           multiple names to fix #1579535 and #1584001,
2063           (regWithIdx,dirregWithName): resolve aliases on lookup
2064         * src/pic/pcode.c (DoBankSelect): die with error message on failing
2065           bankselect
2066         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
2067           to prevent build errors on small devices
2068
2069 2006-10-28 Raphael Neider <rneider AT web.de>
2070
2071         * src/pic/gen.c (genFunction,genCall): drop "same code page"
2072           assumption within interrupt handlers, fixes #1584940
2073         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
2074           "emitted" to avoid emitting them again in udata
2075
2076 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2077
2078         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
2079         Removed.
2080
2081 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2082
2083         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
2084         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
2085         on/off CR to CRLF conversion.
2086
2087 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2088
2089         * doc/sdccman.lyx: updated IRQ section
2090
2091 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2092
2093         * device/lib/serial_io.c: removed
2094         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
2095         replacements for serial_io.c
2096
2097 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
2098
2099         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
2100
2101 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2102
2103         * device/lib/serial_io.c: Default putchar() and getchar() for
2104           mcs51 uses serial port.
2105
2106 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
2107
2108         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
2109
2110 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2111
2112         * support/regression/ports/mcs51/support.c: smaller
2113         _sdcc_external_startup()
2114         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
2115
2116 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
2117
2118         * device/lib/gbz80/crt0.s,
2119         * device/lib/gbz80/crt0_rle.s,
2120         * device/lib/gbz80/div.s,
2121         * device/lib/gbz80/fstubs.s,
2122         * device/lib/gbz80/heap.s,
2123         * device/lib/gbz80/mul.s,
2124         * device/lib/gbz80/putchar.s,
2125         * device/lib/gbz80/stubs.s,
2126         * device/lib/z80/crt0.s,
2127         * device/lib/z80/crt0_rle.s,
2128         * device/lib/z80/div.s,
2129         * device/lib/z80/fstubs.s,
2130         * device/lib/z80/heap.s,
2131         * device/lib/z80/mul.s,
2132         * device/lib/z80/putchar.s,
2133         * device/lib/z80/stubs.s: reverted, I was mistaken
2134
2135 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2136
2137         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
2138         * support/regression/ports/mcs51/support.c: removed race
2139         condition on TI in _putchar allowing to use serial port mode 0
2140
2141 2006-10-20 Borut Razem <borut.razem AT siol.net>
2142
2143         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
2144
2145 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
2146
2147         * device/lib/gbz80/crt0.s,
2148         * device/lib/gbz80/crt0_rle.s,
2149         * device/lib/gbz80/div.s,
2150         * device/lib/gbz80/fstubs.s,
2151         * device/lib/gbz80/heap.s,
2152         * device/lib/gbz80/mul.s,
2153         * device/lib/gbz80/putchar.s,
2154         * device/lib/gbz80/stubs.s,
2155         * device/lib/z80/crt0.s,
2156         * device/lib/z80/crt0_rle.s,
2157         * device/lib/z80/div.s,
2158         * device/lib/z80/fstubs.s,
2159         * device/lib/z80/heap.s,
2160         * device/lib/z80/mul.s,
2161         * device/lib/z80/putchar.s,
2162         * device/lib/z80/stubs.s: removed all leading underscores from area names
2163
2164 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
2165
2166         * support/regression/ports/mcs51/support.c: use highest baudrate so the
2167           regression tests are not waiting in the simulator for simulated
2168           transmission of debug output
2169
2170 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2171
2172         * device/lib/printf_large.c: slightly smaller
2173         * doc/sdccman.lyx: do not use spaces within html links
2174
2175 2006-10-16 Borut Razem <borut.razem AT siol.net>
2176
2177         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
2178           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
2179           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
2180           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
2181           debugger/mcs51/configure:
2182           [ 1185668 ] add gnu readline support to sdcdb - enabled
2183
2184 2006-10-16 Raphael Neider <rneider AT web.de>
2185
2186         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
2187           fixes #1577882, removes close to all banking optimizations
2188
2189 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
2190
2191         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
2192           variables in code memory
2193         * support/regression/tests/absolute.c: added test for this
2194
2195 2006-10-15 Raphael Neider <rneider AT web.de>
2196
2197         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
2198           devices,
2199           (BankSelect): emit BANKSEL before touching linker-placed regs,
2200           fixes #1570934
2201
2202 2006-10-10 Raphael Neider <rneider AT web.de>
2203
2204         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
2205         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
2206         * src/pic/main.c (_pic14_parseOptions),
2207         * src/pic/main.h: mostly reverted to previous state, now use results
2208             from SDCCmain.c's argument parsing
2209
2210 2006-10-10 Borut Razem <borut.razem AT siol.net>
2211
2212         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
2213           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
2214           [ 1185668 ] add gnu readline support to sdcdb -
2215           prepared for READLINE, not enabled yet,
2216           thanks to <tal.bav AT gmail.com>
2217
2218 2006-10-10 Raphael Neider <rneider AT web.de>
2219
2220         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
2221         * src/pic16/devices.inc,
2222         * device/include/pic16 (pic18f[24]620.h),
2223         * device/include/pic18fregs.h,
2224         * device/lib/pic16/pics.all,
2225         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
2226             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
2227             Gary Plumbridge and Anton Strobl
2228
2229 2006-10-10 Raphael Neider <rneider AT web.de>
2230
2231         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
2232           --stack-siz=NUM options to configure the argument passing stack
2233         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
2234         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
2235           (pic14_getSharebankSize): obey --stack-siz=NUM,
2236           (pic14_getSharebankAddress): obey --stack-loc=NUM
2237
2238 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2239
2240         * doc/sdccman.lyx: added to the manual
2241         * doc/figures/ddd_example.png: added (neither pdflatex nor
2242         most browsers seem to like the .eps file)
2243
2244 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
2245
2246         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
2247         to /tmp and /var/tmp acc. LSB
2248         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
2249         RESULT_TYPE_IFX
2250         * support/regression/tests/onebyte.c: added test
2251
2252 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2253
2254         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
2255
2256 2006-10-05 Borut Razem <borut.razem AT siol.net>
2257
2258         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
2259           thanks to dfulab:
2260           - sdcc.dsw: changed property eol-style to CRLF
2261           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
2262
2263 2006-10-04 Raphael Neider <rneider AT web.de>
2264
2265         * device/include/pic/{pic16f84.h,pic16f84a.h},
2266         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
2267           from patch #1522504, thanks to Robas Teodor
2268
2269 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
2270
2271         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
2272           fixes bug 1566015
2273
2274 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
2275
2276         * src/pic16/glue.c (pic16emitMaps),
2277         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
2278         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
2279         * device/lib/pic16/libc/string/memcpypgm2ram.c,
2280         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
2281           Philipp Krause
2282         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
2283         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
2284
2285 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2286
2287         * support/librarian/sdcclib.c: Added option -l.
2288         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
2289           usage totals.
2290         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
2291           using Windows command prompt.
2292
2293 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
2294
2295         * device/lib/libsdcc.lib: added module rand
2296         * src/ds390/ralloc.c (rematStr),
2297         * src/hc08/ralloc.c (rematStr),
2298         * src/mcs51/ralloc.c (rematStr),
2299         * src/z80/ralloc.c (rematStr): made output more consistent
2300         * src/mcs51/gen.c: cosmetic changes
2301
2302 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
2303
2304         * src/port.h: added mem.cabs_name to PORT
2305         * src/ds390/main.c,
2306         * src/hc08/main.c,
2307         * src/mcs51/main.c,
2308         * src/pic16/main.c,
2309         * src/pic/main.c,
2310         * src/xa51/main.c,
2311         * src/z80/main.c: added cabs_name initializers
2312         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
2313           constants
2314           (emitMaps): emit absolutes in code memory into cabs_name
2315         * src/SDCCmem.c,
2316         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
2317         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
2318         * support/regression/fwk/include/testfwk.h: added define for at
2319         * support/regression/tests/absolute.c: added, new
2320
2321 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
2322
2323         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
2324           optimizations, see also patch 887161 by Stas Sergeev
2325         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
2326           to be necessary anymore,
2327           (102, 103, 104, 127): renamed all occurances of bp to _bp
2328
2329 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
2330
2331         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
2332           thanks Weston T. Schmidt for patch 1555221
2333         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
2334         * src/SDCCicode.c(geniCodeMultiply): small optimization
2335
2336 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
2337
2338         * device/include/stdlib.h: added rand prototypes
2339         * device/lib/rand.c: new, added
2340         * device/lib/Makefile.in: added rand.c
2341         * src/z80/peeph.def,
2342         * src/z80/peeph-gbz80.def,
2343         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
2344
2345 2006-09-20 Raphael Neider <rneider AT web.de>
2346
2347         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
2348
2349 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
2350
2351         * as/link/aslink.h: cosmetic changes
2352         * as/link/mcs51/Makefile.in,
2353         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
2354
2355 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
2356
2357         * as/link/aslink.h,
2358         * as/link/mcs51/aslink.h,
2359         * as/link/z80/aslink.h: merged and moved to as/link/
2360         * as/link/lkstore.c,
2361         * as/link/mcs51/lkstore.c: moved to as/link/
2362         * as/link/clean.mk: remove *.o
2363         * as/link/mcs51/alloc.h: deleted
2364         * as/link/mcs51/lkarea.c: added lnksect prototype
2365         * as/link/mcs51/lkdata.c,
2366         * as/link/mcs51/lklex.c,
2367         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
2368         * as/link/mcs51/lkmem.c,
2369         * as/link/mcs51/lknoice.c: removed include strcmpi.h
2370         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
2371         * as/link/mcs51/aslink.dsp,
2372         * as/link/mcs51/Makefile.aslink,
2373         * as/link/mcs51/Makefile.bcc,
2374         * as/link/mcs51/Makefile.in: updated for moved files
2375         * as/link/z80/lkarea.c,
2376         * as/link/z80/lkhead.c,
2377         * as/link/z80/lklex.c,
2378         * as/link/z80/lklibr.c,
2379         * as/link/z80/lklist.c,
2380         * as/link/z80/lkmain.c,
2381         * as/link/z80/lkrloc.c,
2382         * as/link/z80/lksym.c: synced with mcs51
2383         * as/link/z80/lkdata.c,
2384         * as/link/z80/lkeval.c,
2385         * as/link/z80/lkihx.c,
2386         * as/link/z80/lks19.c: cosmetic changes
2387         * as/link/z80/Makefile.in,
2388         * as/link/z80/linkgbz80.dsp,
2389         * as/link/z80/linkz80.dsp: updated for moved files
2390
2391 2006-09-16 Borut Razem <borut.razem AT siol.net>
2392
2393         * debugger/mcs51/sdcdb.c: partially fixed
2394           [ 1203664 ] sdcdb fails to open files w. two "." periods
2395         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
2396           debugger/mcs51/symtab.h: fixed indenting
2397         * configure.in, configure: up to date with latest Maarten's changes
2398
2399 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
2400
2401         as/link/mcs51
2402         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
2403         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
2404         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
2405         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
2406         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
2407         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
2408         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
2409         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
2410         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
2411         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
2412         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
2413         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
2414         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
2415         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
2416         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
2417         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
2418         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
2419         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
2420         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
2421         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
2422         as/link/mcs51/alloc.h,
2423         as/link/mcs51/clean.mk,
2424         as/link/mcs51/conf.mk,
2425         as/link/mcs51/Makefile.bcc,
2426         as/link/mcs51/Makefile.in,
2427         as/link/mcs51/readme.390,
2428         as/link/mcs51/strcmpi.c,
2429         as/link/mcs51/strcmpi.h,
2430         as/mcs51/clean.mk,
2431         as/mcs51/Makefile.bcc,
2432         as/mcs51/Makefile.in,
2433         configure,
2434         Makefile.in,
2435         sdcc.dsw: moved mcs51 linker to as/link/mcs51
2436
2437 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
2438
2439         * as/link,
2440         * as/link/Makefile.in,
2441         * as/link/z80/linkgbz80.dsp,
2442         * as/link/z80/linkz80.dsp,
2443         * configure,
2444         * link,
2445         * link/clean.mk,
2446         * link/Makefile.in,
2447         * link/README,
2448         * link/z80,
2449         * link/z80/aslink.h,
2450         * link/z80/clean.mk,
2451         * link/z80/conf.mk,
2452         * link/z80/linkgbz80.dsp,
2453         * link/z80/linkz80.dsp,
2454         * link/z80/lkarea.c,
2455         * link/z80/lkdata.c,
2456         * link/z80/lkeval.c,
2457         * link/z80/lkgb.c,
2458         * link/z80/lkgg.c,
2459         * link/z80/lkhead.c,
2460         * link/z80/lkihx.c,
2461         * link/z80/lklex.c,
2462         * link/z80/lklibr.c,
2463         * link/z80/lklist.c,
2464         * link/z80/lkmain.c,
2465         * link/z80/lkrloc.c,
2466         * link/z80/lks19.c,
2467         * link/z80/lksym.c,
2468         * link/z80/Makefile.in,
2469         * Makefile.in,
2470         * sdcc.dsw: moved link/ to as/link/
2471
2472 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
2473
2474         * as/mcs51/i51mch.c (machine): fixed warning
2475
2476 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
2477
2478         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
2479
2480 2006-09-09 Borut Razem <borut.razem AT siol.net>
2481
2482         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
2483           sdcdb WIN32 native port
2484         * src/clean.mk: fixed
2485
2486 2006-09-08 Borut Razem <borut.razem AT siol.net>
2487
2488         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
2489
2490 2006-09-08 Raphael Neider <rneider AT web.de>
2491
2492         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
2493         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
2494             to gplink to disable processor mismatch warning and to allow
2495             the use of devices with only aliased (shared) memory banks,
2496           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
2497
2498 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2499
2500         * doc/sdccman.lyx: Some re-formating plus example on using
2501           #pragma preproc_asm +/-
2502
2503 2006-09-07 Borut Razem <borut.razem AT siol.net>
2504
2505         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
2506           section
2507
2508 2006-09-06 Borut Razem <borut.razem AT siol.net>
2509
2510         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
2511           line at sdcc.nsi:153
2512         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
2513
2514 2006-09-05 Borut Razem <borut.razem AT siol.net>
2515
2516         * configure.in, configure: support for winsock2
2517         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
2518           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
2519           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
2520           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
2521           debugger/mcs51/symtab.h: sdcdb WIN32 native port
2522
2523 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
2524
2525         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
2526           and OP_DEFS
2527         * support/regression/tests/bug1551947.c: new, added
2528         * src/SDCCsymt.h: strings are char* not byte*
2529
2530 2006-09-05 Raphael Neider <rneider AT web.de>
2531
2532         * device/lib/pic16/libdev/pic18f4550.c,
2533           device/include/pic16/pic18f4550.h: added PORTD/TRISD
2534             declarations/definitions from patch #1520949
2535
2536 2006-09-05 Raphael Neider <rneider AT web.de>
2537
2538         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
2539           byte-aligned bitfields, fixes #1539278
2540
2541 2006-09-05 Raphael Neider <rneider AT web.de>
2542
2543         * src/pic/gen.c (genReceive): skip unreferenced arguments,
2544           fixes #1544120
2545
2546 2006-09-04 Borut Razem <borut.razem AT siol.net>
2547
2548         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
2549         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
2550           -mno-cygwin is a part of the compiler name
2551         * support/scripts/sdcc_mingw32: don't disable ucsim
2552
2553 2006-09-03 Borut Razem <borut.razem AT siol.net>
2554
2555         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
2556         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
2557
2558 2006-09-03 Raphael Neider <rneider AT web.de>
2559
2560         * src/pic/ralloc.c,
2561         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
2562           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
2563           fixes #1550049
2564
2565 2006-09-01 Borut Razem <borut.razem AT siol.net>
2566
2567         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
2568           to make ppc-osx happy
2569
2570 2006-08-31 Borut Razem <borut.razem AT siol.net>
2571
2572         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
2573         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
2574         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
2575         * support/regression/ports/ds390/spec.mk,
2576           support/regression/ports/mcs51/spec.mk,
2577           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
2578           To run regression tests in mingw environment:
2579           make DEV_NULL=NUL CC=gcc
2580
2581 2006-08-30 Borut Razem <borut.razem AT siol.net>
2582
2583         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
2584           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
2585           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
2586           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
2587           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
2588           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
2589           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
2590           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
2591           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
2592           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
2593           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
2594           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
2595           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
2596           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
2597           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
2598           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
2599           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
2600           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
2601           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
2602           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
2603           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
2604           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
2605           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
2606           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
2607           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
2608           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
2609           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
2610           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
2611           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
2612           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
2613           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
2614           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
2615           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
2616           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
2617           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
2618           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
2619           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
2620           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
2621           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
2622           ucsim WIN32 native port
2623
2624 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2625
2626         * doc/sdccman.lyx: added note on dynamic memory heap initialization
2627
2628 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
2629
2630         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
2631         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
2632
2633 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
2634
2635         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
2636         * support/regression/tests/bug1546986.c: new, added
2637         * as/mcs51/.cvsignore,
2638         * debugger/mcs51/.cvsignore,
2639         * src/.cvsignore: deleted
2640
2641 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2642
2643         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
2644           definitions)
2645
2646 2006-08-20 Borut Razem <borut.razem AT siol.net>
2647
2648         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
2649           removed cl_listen_console::match(), cl_console::match(),
2650           restructured cl_commander::proc_input()
2651
2652 2006-08-16 Borut Razem <borut.razem AT siol.net>
2653
2654         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
2655           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
2656           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
2657
2658 2006-08-14 Borut Razem <borut.razem AT siol.net>
2659
2660         * support/regression/Makefile.in,
2661           support/regression/ports/pic14/gpsim.cmd,
2662           support/regression/ports/pic14/spec.mk,
2663           support/regression/ports/pic14/support.c:
2664           added pic14 regression test
2665
2666 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
2667
2668         * as/doc/asxhtm.html: documented changed ABS behaviour
2669         * as/doc/README: fixed some typos
2670
2671 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
2672
2673         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
2674           not defined on host
2675
2676 2006-08-12 Borut Razem <borut.razem AT siol.net>
2677
2678         * support/regression/fwk/include/testfwk.h,
2679           support/regression/fwk/lib/testfwk.c,
2680           support/regression/generate-cases.py,
2681           support/regression/Makefile.in:
2682           regression test framework does not depend on function pointers and
2683           variable arguments
2684
2685 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
2686
2687         * device/include/stddef.h: c temporary hack to fix bug 1518273
2688
2689 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2690
2691         * device/include/mcs51/cc2510fx.h: added
2692         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
2693           to projects.
2694
2695 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
2696
2697         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
2698         * as/z80/Makefile.in: added strcmpi.c
2699         * as/z80/z80adr.c: added upper case registers and lower case conditionals
2700         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
2701
2702 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
2703
2704         * device/lib/gbz80/asm_strings.s,
2705         * device/lib/gbz80/crt0_rle.s,
2706         * device/lib/gbz80/div.s,
2707         * device/lib/gbz80/mul.s,
2708         * device/lib/gbz80/shift.s,
2709         * device/lib/z80/asm_strings.s,
2710         * device/lib/z80/crt0_rle.s,
2711         * device/lib/z80/div.s,
2712         * device/lib/z80/mul.s,
2713         * device/lib/z80/shift.s: changed to all lower case menmonics except the
2714           flags which are all upper case
2715
2716 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
2717
2718         * as/z80/asm.h: made CASE_SENSITIVE 1
2719         * link/z80/aslink.h: made CASE_SENSITIVE 1
2720         * src/z80/gen.c (throughout): made all conditionals upper case
2721         * support/regression/tests/bug1503067.c: new
2722
2723 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
2724
2725         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
2726           (shiftIntoPair): added case 2 for PAIR_IY,
2727           (setupToPreserveCarry): replaced parameters with iCode and check if
2728            PAIR_DE is in use to fix bug 1399290,
2729           (genPlus, genMinus): updated call to setupToPreserveCarry
2730         * support/regression/tests/bug1399290.c: new
2731
2732 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
2733
2734         * device/lib/Makefile.in (Z80SOURCES): enabled float support
2735         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
2736         * src/ds390/gen.c (shiftRLong),
2737         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
2738         * src/mcs51/gen.c (sameReg): changed to sameByte,
2739           (xch_a_aopGet): new,
2740           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
2741            shiftRLong): fixed bug 1533966
2742         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
2743           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
2744         * support/regression/Makefile.in: disabled z80, enabled ucz80
2745         * support/regression/tests/float_trans.c: enabled test for z80 and host
2746         * support/regression/tests/shifts2.c: new, for testing bug 1533966
2747
2748 2006-08-01 Borut Razem <borut.razem AT siol.net>
2749
2750         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
2751           comparison is always false due to limited range of data type
2752           on PPC64 machine (openpower-linux1) where "char = unsigned char"
2753
2754 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
2755
2756         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
2757         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
2758         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
2759         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
2760
2761 2006-07-31 Borut Razem <borut.razem AT siol.net>
2762
2763         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
2764           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
2765           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
2766           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
2767           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
2768           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
2769           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
2770           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
2771           enable ucsim mingw compilation. Serial port is disabled,
2772           since it uses termios.h API, which is not available on native
2773           WIN32
2774
2775 2006-07-31 Borut Razem <borut.razem AT siol.net>
2776
2777         * Small Device C Compiler 2.6.0 released
2778         * support/scripts/sdcc.nsi: added FULL_DOC option
2779         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
2780
2781 2006-07-28 Borut Razem <borut.razem AT siol.net>
2782
2783         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
2784         * doc/INSTALL.txt: updated
2785
2786 2006-07-27 Borut Razem <borut.razem AT siol.net>
2787
2788         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
2789           device/lib/pic/libdev/Makefile.in: fixed bug
2790           [ 1438354 ] pic libsdcc: distclean doesn't work
2791         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
2792           device/lib/pic16/libio/Makefile.in: fixed bug
2793           [ 1438344 ] pic16 lib: clean doesn't work properly
2794         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
2795
2796 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
2797
2798         * device/lib/pic/libsdcc/fsdiv.c,
2799         * device/lib/pic/libsdcc/fsmul.c,
2800         * device/lib/pic16/libsdcc/float/fsdiv.c,
2801         * device/lib/pic16/libsdcc/float/fsmul.c,
2802         * device/lib/_fsdiv.c,
2803         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
2804         * support/regression/tests/bug1520966.c: added
2805         * doc/knownbugs.html: removed [ 1520966 ] from the list
2806
2807 2006-07-25 Borut Razem <borut.razem AT siol.net>
2808
2809         * configure.in, configure, sdccconf_in.h: fixed bug
2810           [ 1519095 ] regression test onebyte.c fails on ppc64 host
2811         * doc/knownbugs.html: removed [ 1519095 ] from the list
2812
2813 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
2814
2815         * doc/knownbugs.html: added, contains list of known bugs at release
2816         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
2817
2818 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
2819
2820         * device/include/mcs51/compiler.h: added SFRX for xdata based special
2821           function registers and corrected defaults with additional warning
2822         * device/lib/malloc.c: cosmetic changes
2823         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
2824         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
2825           (fillGaps): and used it
2826
2827 2006-07-20 Raphael Neider <rneider AT web.de>
2828
2829         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
2830           output unless SDCCPICDEBUG is set
2831         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
2832           output if SILENT is set
2833
2834 2006-07-11 Borut Razem <borut.razem AT siol.net>
2835
2836         * doc/README.txt: updated
2837
2838 2006-07-10 Borut Razem <borut.razem AT siol.net>
2839
2840         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
2841           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
2842           in WIN32 installation
2843         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
2844           release candidate 1
2845
2846 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
2847
2848         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
2849         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
2850
2851 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
2852
2853         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
2854
2855 2006-07-06 Borut Razem <borut.razem AT siol.net>
2856
2857         * support/regression/tests/bitfields.c:
2858           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
2859         * support/regression/tests/constantRange.c:
2860           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
2861
2862 2006-07-04 Borut Razem <borut.razem AT siol.net>
2863
2864         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
2865           src/port.mk,
2866           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
2867           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
2868           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
2869           reverted changes from 2006-07-03
2870         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
2871         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
2872           added CPPFLAGS, used by the host port
2873
2874 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
2875
2876         * support/regression/valdiag/tests/switch.c,
2877         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
2878         * support/regression/tests/libmullong.c: fixed for host
2879         * support/regression/ports/host/spec.mk: disable all warnings for host,
2880         SDCC runs with --less-pedantic too
2881
2882 2006-07-03 Borut Razem <borut.razem AT siol.net>
2883
2884         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
2885           defined CPPFLAGS
2886         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
2887         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
2888           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
2889           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
2890           include ../port.mk
2891         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
2892           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
2893           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
2894           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
2895
2896 2006-07-02 Raphael Neider <rneider AT web.de>
2897
2898         * src/pic16/devices.inc,
2899         * device/include/pic16/pic18fregs.h,
2900         * device/include/pic16/pic18f4550.h,
2901         * device/lib/pic16/pics.all,
2902         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
2903
2904 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
2905
2906         * as/hc08/lkaomf51.c (OutputName),
2907         * as/mcs51/lkaomf51.c (OutputName),
2908         * as/z80/asmain.c (asmbl),
2909         * src/ds390/main.c (asmLineNodeFromLineNode),
2910         * src/hc08/ralloc.c (hc08_assignRegisters),
2911         * src/mcs51/main.c (asmLineNodeFromLineNode),
2912         * src/xa51/ralloc.c (checkRegMask),
2913         * src/xa51/gen.c (emitcode),
2914         * src/z80/gen.c (_emit2),
2915         * src/SDCCast.c (searchLitOp),
2916         * src/SDCCglobl.h,
2917         * support/packihx/packihx.c,
2918         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
2919         * src/ds390/gen.c (aopPutUsesAcc),
2920         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
2921         * support/regression/tests/libmullong.c (mullong_wrapper),
2922         * src/SDCCsymt.c (powof2),
2923         * src/SDCCast.c,
2924         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
2925         * src/SDCCsymt.h: added TYPE_TARGET_*
2926         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
2927         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
2928         SDCCast because 1) header problems 2) this is the right place
2929         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
2930         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
2931         prototype
2932
2933 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
2934
2935         * src/SDCCicode.h: removed buggy semicolon in unused macro
2936         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
2937         search for previous definiton of auto symbols too,
2938         (findPrevUse): fixed logic of emitWarnings
2939
2940 2006-06-26 Raphael Neider <rneider AT web.de>
2941
2942         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
2943           PCLATH and PCLATU on interrupts, potentially fixes #1505141
2944
2945 2006-06-25 Raphael Neider <rneider AT web.de>
2946
2947         * device/lib/pic/libm: NEW, added math library functions
2948         * device/lib/pic/libsdcc: NEW; added float support functions
2949         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
2950         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
2951           NEW, added math related headers
2952         * device/include/asm/pic/features.h: NEW
2953         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
2954           (popGet): allow larger offsets for AOP_PCODE,
2955           (genDataPointerSet): handle literals explicitly, more debug output,
2956           (genAssign): fixed for float using aopLiteral ;-)
2957         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
2958           GOTO initialisation routine
2959         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
2960           flag on registers, fixes #1469043 (local variables do not work)
2961         * src/pic/main.c (_pic14_do_link),
2962         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
2963           available
2964
2965 2006-06-25 Borut Razem <borut.razem AT siol.net>
2966
2967         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
2968           characters printed (not including the trailing '\0' used to end
2969           output to strings). Problem detected in regression test bug-927659.c.
2970           NOTE: printf() family functions should return int instead
2971           unsigned int!
2972         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
2973           specifier are printed as themselves
2974         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
2975           support flags, width and precision specifiers
2976
2977 2006-06-24 Borut Razem <borut.razem AT siol.net>
2978
2979         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
2980           to the list of sdcc tagrets not supporting bit type
2981         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
2982           testfor pic16 due to bug:
2983           [ 1511794 ] pic16: regression test bug-895992.c fails
2984
2985 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
2986
2987         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
2988         * src/SDCCglue.c (initPointer), fixed bug 1496419
2989         * support/regression/tests/bug1496419.c: new, added
2990
2991 2006-06-22 Borut Razem <borut.razem AT siol.net>
2992
2993         * support/regression/ports/pic16/support.c: use gpsim usart module from
2994           libgpsim_modules library
2995
2996 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2997
2998         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
2999         IP0H to IPH0.
3000
3001 2006-06-19 Raphael Neider <rneider AT web.de>
3002
3003         * src/pic/glue.h,src/pic16/glue.h: added prototypes
3004         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
3005           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
3006           (pic14printExterns,pic14printPublics,pic16printPublics,
3007           pic16_printExterns): use new functions to emit symbols
3008           (picglue,pic16glue): emit publics before emitting externs
3009         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
3010           locally defined functions to avoid bug #1443651
3011         * support/regression/tests/bug-716242.c: removed pic16 workaround
3012         * support/regression/ports/pic16/spec.mk: ignore errors during build
3013
3014 2006-06-19 Raphael Neider <rneider AT web.de>
3015
3016         * src/pic/glue.h: added pic14aopLiteral prototype
3017         * src/pic/glue.c (pic14aopLiteral): return unsigned int
3018         * src/pic/gen.c: removed stdint.h dependency
3019           (aopGet): use Safe_strdup()
3020           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
3021           (genDataPointerSet): use pic14aopLiteral()
3022         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
3023           for pic16; thanks to Bernhard and Maarten
3024
3025 2006-06-18 Borut Razem <borut.razem AT siol.net>
3026
3027         * support/regression/tests/structflexarray.c: flexible array members
3028           not supported by gcc < 3
3029         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
3030           GUI tool by default
3031         * src/pic/gen.c: don't include [p]strdin.h on solaris
3032         * support/Util/pstdint.h: addad svn attributes
3033         * support/regression/tests/constantRange.c,
3034           support/regression/tests/rotate.c: include inttypes.h instead
3035           stdint.h on solaris, addad svn attributes
3036
3037 2006-06-18 Raphael Neider <rneider AT web.de>
3038
3039         * src/SDCCsymt.c (initCSupport): change return type of divschar to
3040           int for PIC16
3041         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
3042           (pic16_genMinusBits): simplified sign-extension
3043           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
3044             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
3045             adjusted to correctly handle mixed-signed operands, disabled
3046             now unused multiplciation routines
3047         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
3048           (assignResultValue): added argument denoting the size of the result
3049             as returned by the function (fixes upcasts in assigning from
3050             function calls: char foo(); int i = foo();)
3051           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
3052             function result to assignResultValue
3053           (genMult): disabled inlined multiplication code
3054           (genDiv): augmented to also handle the modulus operator, fixed to
3055             handle mixed-signed operands correctly
3056           (genMod): simply call genDiv, disabled unused code
3057           (genAssign): fixed missing (sign-)extension on result
3058         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
3059             valid char operands, allow signed operands for native code, added
3060             division and modulo operator handling
3061         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
3062
3063         As a consequence, onebyte.c (if split into two files) and muldiv.c
3064         pass regression tests.
3065
3066 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3067
3068         * doc/Makefile.in: two runs of makeindex seem needed to get
3069         correct page references in the index of sdccman.pdf
3070         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
3071
3072 2006-06-17 Borut Razem <borut.razem AT siol.net>
3073
3074         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
3075
3076 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3077
3078         * doc/sdccman.lyx: updated, added (porting source code, debugging),
3079         mentioned ec2drv and paulmon
3080
3081 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
3082
3083         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
3084           consecutive abs areas
3085           (find_empty_space, allocate_space): added map to handle codemap or
3086            xdatamap,
3087           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
3088            absolute idata and xdata
3089         * as/mcs51/lkmem.c (summary2): updated legend
3090
3091 2006-06-16 Raphael Neider <rneider AT web.de>
3092
3093         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
3094
3095 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
3096
3097         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
3098           1208515
3099         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
3100
3101 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
3102
3103         * src/port.h (struct PORT): added field gp_tags, to hold the tag
3104         value of generic pointers,
3105         * src/avr/main.c,
3106           src/ds390/main.c,
3107           src/hc08/main.c,
3108           src/izt/i186.c,
3109           src/izt/tlcs900h.c,
3110           src/mcs51/main.c,
3111           src/pic/main.c,
3112           src/pic16/main.c,
3113           src/xa51/main.c,
3114           src/z80/main.c: PORT structure, added elements for gp_tags field,
3115         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
3116         fields in the PORT structure of each port,
3117         * src/SDCCast.c (decorateType): allow processing of generic pointers
3118         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
3119         S_FIXED symbols
3120
3121 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
3122
3123         * link/z80/lkgb.c,
3124         * link/z80/lkgg.c,
3125         * src/pic16/gen.c,
3126         * src/pic16/main.c,
3127         * src/pic16/pcode.c,
3128         * src/pic/main.c,
3129         * src/pic/pcoderegs.c,
3130         * src/SDCCicode.c,
3131         * src/SDCCmain.c,
3132         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
3133           bug 1504689 on minGW
3134
3135 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3136
3137         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
3138
3139 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
3140
3141         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
3142
3143 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
3144
3145         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
3146           for optimization
3147
3148 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
3149
3150         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
3151         to a char variable. Fixed bug #1504211
3152         * device/include/pic16/adc.h,
3153         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
3154         and fixed bug #1364390
3155
3156 2006-06-10 Borut Razem <borut.razem AT siol.net>
3157
3158         * CVSROOT: removed the CVS left-over
3159
3160 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
3161
3162         * as/hc08/asmain.c (asexit),
3163         * as/hc08/lkmain.c (lkexit),
3164         * as/mcs51/asmain.c (asexit),
3165         * as/mcs51/lkmain.c (lkexit),
3166         * src/SDCCglue.c (DEFSETFUNC),
3167         * src/SDCCmain.c (linkEdit, assemble),
3168         * support/librarian/sdcclib.c (AddRel),
3169           replaced unlink() by standard C remove()
3170         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
3171         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
3172           gatherImplicitVariables): new, added to fix bug 608752,
3173           (createFunction): added gatherImplicitVariables()
3174         * src/SDCCast.h: added createRMW prototype
3175         * src/SDCCsymt.h (struct symbol): added infertype
3176         * support/regression/tests/bug608752.c: new, added
3177
3178 2006-06-10 Raphael Neider <rneider AT web.de>
3179
3180         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
3181           multibyte dummy reads (fixes #1503234)
3182
3183 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
3184
3185         * device/include/mcs51/compiler.h: new, added header file to enable
3186           creating common sfr definition header files for different compilers
3187
3188 2006-06-05 Raphael Neider <rneider AT web.de>
3189
3190         * src/pic16/{pcode.h,genarith.c}:
3191           introduced pCodeOp combining any two pCodeOps (previously only
3192           two register operands could be combined), removed pcop2 from
3193           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
3194         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
3195         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
3196           rewritten to use new PO_TWO_OPS
3197         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
3198         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
3199           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
3200           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
3201           (pic16_get_op): embraced return arg to allow #define return(x),
3202             added new case for combined opcodes
3203           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
3204           (pic16_pCode2str,pic16_getRegFrompCodeOp,
3205            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
3206
3207 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
3208
3209         * src/SDCCval.c (checkConstantRange): added
3210         * src/SDCCval.h: added checkConstantRange
3211         * support/Util/SDCCerr.c,
3212         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
3213         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
3214         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
3215         * src/SDCCast.c (decorateType): added checkConstantRange,
3216         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
3217         can be emitted with the correct always true/false warning,
3218         added optimization for double '!';
3219         result of decorateType() must be assigned back to the tree, because
3220         decorateType() can change the tree
3221         * src/SDCCicode.c (geniCodeLogic),
3222         (geniCodeAssign): replaced new checkConstantRange, added warnings,
3223         (checkConstantRange): removed, it was only a fragment which never
3224         emitted a warning
3225         * src/SDCCsymt.c (computeType): fixed promotion for
3226         "-1 < (unsigned bit) b"
3227         * src/pic/ralloc.c (packRegsForAssign),
3228         * src/pic16/ralloc.c (packRegsForAssign),
3229         * src/hc08/ralloc.c (packRegsForAssign),
3230         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
3231         from mcs51
3232         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
3233         * support/regression/tests/constantRange.c: added
3234         * support/valdiag/tests/constantRange.c: added
3235         * support/valdiag/valdiag.py: added -DPORT_HOST=1
3236
3237 2006-06-02 Borut Razem <borut.razem AT siol.net>
3238
3239         * support/regression/ports/pic16/support.c: increase stack size
3240           to 255 bytes
3241         * support/regression/Makefile.in: sort tests by name so that the
3242           resutlts can be compared on different machines / platforms
3243
3244 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
3245
3246         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
3247         * src/ds390/gen.c (emitLabel): new, added,
3248           (genDjnz): fixed stack overflow bug,
3249           (throughout): cosmetic changes to sync with mcs51/gen.c,
3250           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
3251         * src/mcs51/gen.c (genEndFunction): small optimization,
3252           (throughout): cosmetic changes to sync with ds390/gen.c
3253
3254 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
3255
3256         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
3257           (_print_format): fixed printing pointers
3258         * src/mcs51/gen.c (emitLabel, movb): new, added,
3259           (genAssign): small optimization,
3260           (genDjnz): fixed stack overflow bug,
3261           (throughout): replaced sprintf with SNPRINTF,
3262           replaced mcs51_regWithIdx with REG_WITH_INDEX,
3263           replaced emitcode("mov", "b,...") with MOVB(...),
3264           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
3265           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
3266         * src/mcs51/peeph.def: added rules 140 and 264
3267         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
3268           so they may get optimized into registers
3269
3270 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
3271
3272         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
3273           immediately when encountered,
3274           (printUsage): always use stderr even on windows
3275
3276 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
3277
3278         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
3279         (processParms): fixed bug #1247551
3280         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
3281         parseCmdLine, main): print '--version' to stdout,
3282         print 'help' to stdout if --help is given,
3283         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
3284         arguments are given; fixed --help
3285
3286 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
3287
3288         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
3289         * support/regression/tests/bug-1493710.c: added
3290
3291 2006-05-27 Borut Razem <borut.razem AT siol.net>
3292
3293         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
3294           static instead auto
3295         * support/regression/ports/pic16/support.c: increase stack size
3296           from default 64 bytes to 128 bytes
3297         * support/regression/tests/staticinit.c,
3298           support/regression/tests/float.c: regression tests fully enabled
3299           for pic16 port by putting the initialized data arrays into the code
3300           section
3301         * support/regression/ports/pic16/spec.mk: don't link default libraries.
3302           This was changed by mistake in the previous version.
3303
3304 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
3305
3306         * src/pic16/gen.c (genFunction, genEndFunction): some
3307         beautifications, fixed bug with falsely restoring FSR2 in large
3308         stack model, thanks to Beau E. Cox for reporting the bug
3309
3310 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
3311
3312         * debugger/mcs51/break.c,
3313         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
3314           use %p to print pointers, made address variables unsigned
3315         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
3316         * debugger/mcs51/symtab.c (parseSymbol): must return something
3317         * src/mcs51/gen.c (aopForSym): small optimization,
3318            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
3319           (freeAsmop): added missing break,
3320           (aopPut): removed parameter bvolatile, determine it inside the function,
3321           (saveRegisters, unsaveRegisters): small optimization,
3322           (genIpush): removed pointless check,
3323           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
3324           replaced sprintf with SNPRINTF,
3325           replaced strcpy with strncpyz,
3326           updated aopPut calls,
3327           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
3328         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
3329
3330 2006-05-24 Borut Razem <borut.razem AT siol.net>
3331
3332         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
3333           modification of test for the pic16 port, put the array to the code
3334           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
3335
3336 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3337
3338         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
3339         * support/Util/pstdint.h: added
3340
3341 2006-05-22 Borut Razem <borut.razem AT siol.net>
3342
3343         * src/regression/Makefile: removed bool2.c test, added -q linker option
3344         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
3345           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
3346           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
3347           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
3348           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
3349           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
3350           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
3351           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
3352           define SUPPORT_BIT_TYPES 0, removed unused bit variables
3353
3354 2006-05-22 Raphael Neider <rneider AT web.de>
3355
3356         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
3357           bug #1492360 (problematic due to generic pointers, see code)
3358
3359 2006-05-22 Borut Razem <borut.razem AT siol.net>
3360
3361         * support/regression/ports/pic16/specs.mk: removed stack size linker
3362           directive
3363         * support/regression/tests/array.c,
3364           support/regression/tests/bitopcse.c,
3365           support/regression/tests/bug-908454.c,
3366           support/regression/tests/malloc.c: modified for pic16 regression test
3367         * support/regression/tests/bitfields.c:
3368           pic16 - excluded bitfileds of size > 8
3369         * support/regression/tests/bp.c: pic16 - reduced data size
3370         * support/regression/tests/bug-221100.c: pic16 - reduced data size
3371         * support/regression/tests/bug-460010.c:
3372           pic16 - used the absolute address the fits in memory
3373         * support/regression/tests/bug-716242.c:
3374           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
3375         * support/regression/tests/float.c:
3376           pic16 - excluded - data size too big
3377         * support/regression/tests/onebyte.c:
3378           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
3379         * support/regression/tests/shifts.c:
3380           pic16 - function names probably have to differ in first X characters
3381           (gpasm limitation?)
3382         * support/regression/tests/staticinit.c:
3383           pic16 - excluded some tests due error: no target memory available for
3384           section ".idata"
3385
3386 2006-05-22 Borut Razem <borut.razem AT siol.net>
3387
3388         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
3389           second try. Thanks Stas Sergeev once more.
3390
3391 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
3392
3393         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
3394           (genLeftShift, genRightShift): fixed bug 1491627
3395         * src/hc08/peeph.def (rules 7, 8.x): added
3396         * support/regression/tests/shifts.c (ShiftLeftByParam,
3397           ShiftRightByParam, testShiftByParam): added to test variable shifting
3398
3399 2006-05-20 Raphael Neider <rneider AT web.de>
3400
3401         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
3402         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
3403           (allocReg): add only new registers to dynAllocRegs,
3404           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
3405             #1489055, #1445850, and probably #1483693
3406
3407 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
3408
3409         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
3410         bug in for-loop that didn't emit the last of CONFIG and ID registers
3411
3412 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
3413
3414         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
3415           with offset
3416         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
3417           1489016, 1434401 and 1490124
3418         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
3419           1489016, 1434401 and 1490124
3420
3421 2006-05-17 Borut Razem <borut.razem AT siol.net>
3422
3423         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
3424           thanks Stas Sergeev
3425
3426 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
3427
3428         * device/include/mcs51/P89c51RD2.h,
3429         * device/include/mcs51/P89LPC901.h,
3430         * device/include/mcs51/P89LPC922.h,
3431         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
3432
3433 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
3434
3435         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
3436         to fix missing stack pragma in compiled binary object file,
3437
3438 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
3439
3440         * support/packihx/configure.in,
3441         * support/packihx/configure: removed warning, autoconf >= 2.5x can
3442         determine sizeof basic types even while cross compiling
3443
3444 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
3445
3446         * src/avr/gen.c (aopop),
3447         * src/ds390/gen.c (aopOp),
3448         * src/hc08/gen.c (aopOp),
3449         * src/mcs51/gen.c (aopop),
3450         * src/pic16/gen.c (pic16_aopOp),
3451         * src/pic/gen.c (aopOp),
3452         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
3453         if size of operand is smaller than spill location
3454
3455 2006-05-12 Borut Razem <borut.razem AT siol.net>
3456
3457         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
3458           have to have CR/LF line endings even if they are checked out on *nix
3459           or on WIN32 in cygwin binmode
3460
3461 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
3462
3463         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
3464         * device/include/ds80c390.h: added sfr16 definitions
3465         * src/ds390/gen.c,
3466         * src/ds390/gen.h,
3467         * src/ds390/main.c,
3468         * src/ds390/ralloc.c,
3469         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
3470           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
3471           bit returning functions
3472         * support/regression/tests/sfr16.c: enabled test on ds390
3473
3474 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3475
3476         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
3477         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
3478
3479 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
3480
3481         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
3482         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
3483           (cl_address_space constructor): removed expensive initialization,
3484           (cl_address_space::get_cell): extended for late initialization,
3485           (cl_address_space::*): use late initialization,
3486           (cl_address_decoder::activate): removed expensive initialization,
3487           This reduced regression test running time by 25%
3488
3489 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
3490
3491         * packihx/,
3492         * configure.in,
3493         * configure,
3494         * sdcc.dsw,
3495         * Makefile.bcc,
3496         * Makefile.in,
3497         * support/packihx/Makefile.in,
3498         * support/packihx/clean.mk,
3499         * support/packihx/Makefile.bcc,
3500         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
3501
3502 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3503
3504         * src/SDCCval.c (valNot): fix for regression test failure
3505           of not.c on big endian hosts
3506
3507 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
3508
3509         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
3510
3511 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3512
3513         * device/lib/mcs51/Makefile.in: changed string comparison operator
3514           to = for POSIX compliance; == is bash extension
3515
3516 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
3517
3518         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
3519           kosmonaut_pirx
3520
3521 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
3522
3523         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
3524         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
3525         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
3526         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
3527         bug report #1478657,
3528
3529 2006-05-05 Borut Razem <borut.razem AT siol.net>
3530
3531         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
3532           making the html
3533
3534 2006-05-02 Borut Razem <borut.razem AT siol.net>
3535
3536         * doc/Makefile.in: removed *.ind dependency since there is no rule to
3537           create *.ind, which made make to fail if invoked with -j 2
3538
3539 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
3540
3541         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
3542           Hubert Sack for patch 1479782
3543
3544 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
3545
3546         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
3547
3548 2006-05-01 Raphael Neider <rneider AT web.de>
3549
3550         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
3551           (create_pic): store only prefix-free device name,
3552           (init_pic): check for device names with "16" prefix,
3553           (list_valid_pics),
3554         * src/pic/device.h (struct PIC_device),
3555         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
3556             stored device name,
3557         * device/include/pic/pic12f{635,675,629,683}.h,
3558         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
3559         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
3560         * device/include/pic/pic16f505.h,
3561         * device/lib/pic/libdev/pic16f505.c: removed
3562         * device/include/pic/pic14devices.txt: added support for pic12f
3563             devices, removed unsupported non 16-bit devices
3564             [above changes provided by patch from Zik Saleeba]
3565         * src/pic/*, src/pic16/*, device/include/pic16/*,
3566           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
3567
3568 2006-05-01 Borut Razem <borut.razem AT siol.net>
3569
3570         * configure.in, configure, doc/Makefile.in:
3571           sync with nightly build makefile - latex, dvipdf and dvips
3572           not needed any more
3573
3574 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
3575
3576         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
3577         in the library source
3578
3579 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
3580
3581         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
3582
3583 2006-04-28 Raphael Neider <rneider AT web.de>
3584
3585         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
3586         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
3587           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
3588         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
3589
3590 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
3591
3592         * device/lib/pic/libdev/Makefile.in,
3593         * device/lib/hc08/Makefile.in,
3594         * device/lib/gbz80/Makefile.in,
3595         * device/lib/z80/Makefile.in,
3596         * device/lib/ds390/Makefile.in,
3597         * device/lib/ds400/Makefile.in: added srcdir to include search path,
3598         thanks to Borut for the bug report
3599         * configure.in,
3600         * configure: always create doc/Makefile independent from --enable-doc
3601         * Makefile.in: always install from directory doc independent from
3602         --enable-doc
3603         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
3604         removed
3605         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
3606         * doc/Makefile.in: install *.txt if present
3607         * device/include/Makefile.in (install): added installation of pic/*.inc
3608         and pic/*.txt files again, they were erroneously removed
3609
3610 2006-04-28 Raphael Neider <rneider AT web.de>
3611
3612         * src/pic/{gen.c,main.h,pcode.c},
3613         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
3614             concerning signedness with casts
3615
3616 2006-04-28 Raphael Neider <rneider AT web.de>
3617
3618         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
3619             definition of an interrupt handler,
3620         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
3621             interrupt handler stuff from picglue() to separate routine,
3622           (picglue): enabled definition of intr handlers in files w/o main()
3623
3624 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3625
3626         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
3627           compilation with MSVC 2005 Express Edition (VC8)
3628
3629 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
3630
3631         * device/lib/Makefile: fixed build of gbz80 lib
3632
3633 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3634
3635         * support/regression/tests/bug-460010.c,
3636         * support/regression/tests/bug-524691.c,
3637         * support/regression/tests/bug-716242.c: removed conditional defines
3638           that are already in testfwk.h
3639
3640 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
3641
3642         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
3643           (AccAXRsh1): added, shift right by 1,
3644           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
3645            AccAXLrl1
3646         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
3647
3648 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
3649
3650         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
3651         remove cast to same type
3652         * src/SDCCast.c (decorateType): fix for RFE 1475742,
3653         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
3654         * as/z80/Makefile,
3655         * link/z80/Makefile: removed, they have moved to
3656         Makefile.in files
3657         * configure,
3658         * configure.in: replaced duplicate message about ucsim by missing sdcpp
3659         * install-sh: fix bug #1204398 by setting umask 0022
3660         * device/lib/Makefile: separate build of z80 and gbz80 lib
3661
3662 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
3663
3664         Enabled VPATH feature: changed nearly all Makefiles (149 files).
3665         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
3666
3667         One basic decision: e.g. src/clean.mk includes further files. In order
3668         to make this work there are two solutions:
3669         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
3670           run configure on them. This way they can use
3671           'include $(srcdir)/port-clean.mk'
3672         - always include clean.mk by the Makefile at the same level. To avoid
3673           that `make clean` tries to include and build Makefile.dep the
3674           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
3675           implemented, because now even `make uninstall` doesn't create
3676           Makefile.in. clean.mk could be eliminated by pasting it in
3677           Makefile.in.
3678
3679         * debugger/mcs51/Makefile.in: build own objects from library sources
3680         (SLIB, SDCC) in current directory
3681
3682         * configure, configure.in: renamed --disable-device-lib-build in
3683         --disable-device-lib; added --enable-doc, the required tools are
3684         searched by configure; added result message; the toolchain for the
3685         belonging ports are now only built, if the port is enabled.
3686
3687         * support/regression/*: all output is written in directory gen, because
3688         the fwk and ports directories don't livet in the build tree using vpath
3689
3690         * doc/sdccman.lyx: renamed --disable-device-lib-build to
3691         --disable-device-lib, added --enable-doc, added section VPATH
3692
3693         * sim/ucsim/configure.in,
3694         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
3695         z80 are enabled by default
3696
3697 2006-04-24 Raphael Neider <rneider AT web.de>
3698
3699         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
3700             to config word, "pic14_"-prefixed some extern functions
3701           (pic14_emitConfigWord): emit __config directive(s) if assignment to
3702             config word has been found
3703         * src/pic/device.h: added prototypes
3704         * src/pic/pcode.c: added "pic14_"-prefix where needed
3705         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
3706             fixup
3707         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
3708             words,
3709           (pic14emitRegularMap): ignore config words,
3710           (pic14createInterruptVect): moved generating __config directives away
3711           (picglue): have __config directives emitted
3712
3713 2006-04-24 Borut Razem <borut.razem AT siol.net>
3714
3715         * doc/Makefile: sync with nightly build makefile
3716
3717 2006-04-24 Raphael Neider <rneider AT web.de>
3718
3719         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
3720             registers that have not been assigned proper liveranges,
3721             fixes #1469504 and #1474602,
3722           (pCodeRegOptimizeRegUsage): fixed typo in comment
3723
3724 2006-04-24 Borut Razem <borut.razem AT siol.net>
3725
3726         * device/examples/main8051.c: deleted - it was removed from CVS
3727           24.mar.2000 and after that modified 18.feb.2001, so it reappered
3728           after the transition to Subversion
3729         * src/SDCCalloc.h: deleted - it was removed  from CVS
3730           3.feb.2001 and after that modified 18.feb.2001, so it reappered
3731           after the transition to Subversion
3732         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
3733           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
3734           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
3735           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
3736
3737 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
3738
3739         * as/asx8051.dsp: added mcs51/strcmpi.h
3740         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
3741         * as/hc08/aslink.h: updated lnksect prototype
3742         * as/hc08/asm.h,
3743         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
3744         * as/hc08/asmain.c,
3745         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
3746           (newdot): handle A_ABS
3747         * as/hc08/asout.c,
3748         * as/mcs51/asout.c (outarea): output address
3749         * as/hc08/lkaomf51.c,
3750         * as/mcs51/lkaomf51.c: disabled unused array UsageType
3751         * as/hc08/m08pst.c,
3752         * as/mcs51/i51pst.c,
3753         * as/z80/z80pst.c: "ABS" is not A_OVR
3754         * as/hc08/lkarea.c (newarea): read a_addr,
3755           (lnkarea): added codemap array, sort absolute areas to the front,
3756            combine all GSINITx/GSFINAL,
3757           (find_empty_space, allocate_space): new functions,
3758           (lnksect): return next address, handle absolute sections
3759         * as/mcs51/lkarea.c (newarea): read a_addr,
3760           lnksect2 prototype changed,
3761           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
3762           (find_empty_space, allocate_space): new, factored out of lnksect2,
3763           (lnksect2): return next address, handle absolute sections
3764         * as/hc08/lkhead.c,
3765         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
3766         * as/hc08/lklibr.c (addfile, fndsym),
3767         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
3768           index out of range and detect both '\' and '/'
3769         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
3770         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
3771           regression tests (ds390 cannot return bool yet)
3772         * doc/sdccman.lyx: changed version number, document changed --no-peep,
3773           document critical interrupts on z80, document changed SDCC define
3774         * src/asm.c (_asxxxx_mapping): fixed .org directive,
3775           (_a390_mapping): added .org directive
3776         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
3777           (genMultOneByte): fixed warnings
3778         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
3779           ones
3780         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
3781         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
3782           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
3783         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
3784         * src/pic16/main.c: removed newReg prototype
3785         * src/pic16/pcode.c,
3786         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
3787           warnings
3788         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
3789           ones
3790         * src/pic16/ralloc.c
3791         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
3792           to fix warnings
3793         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
3794           from short to PIC_OPTYPE
3795         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
3796         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
3797           optype from short to PIC_OPTYPE
3798         * src/port.h: made int_size unsigned to fix warnings
3799         * src/SDCC.y: fixed warning on MSVC
3800         * src/SDCCicode.c (getArraySizePtr): return unsigned int
3801         * src/SDCCopt.c (convertToFcall): fixed warnings
3802         * src/SDCCsymt.h: removed double prototype for genSymName
3803         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
3804           offset int to fix warnings
3805
3806 2006-04-22 Borut Razem <borut.razem AT siol.net>
3807
3808         * doc/sdccman.lyx, */Makefile, */Makefile.in:
3809           references to CVS replaced with Subversion
3810
3811 2006-04-21 Borut Razem <borut.razem AT siol.net>
3812
3813         * doc/sdccman.lyx, */Makefile, */Makefile.in:
3814           references to CVS replaced with Subversion
3815
3816 2006-04-19 Borut Razem <borut.razem AT siol.net>
3817
3818         * src/version.awk: adapted for svn
3819         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
3820           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
3821           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
3822           /binutils-avr/etc/*.vi, *.jin: removed all properties
3823           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
3824
3825 2006-04-19 Borut Razem <borut.razem AT siol.net>
3826
3827         * CVS to Subversion migration completed
3828
3829 2006-04-18 Borut Razem <borut.razem AT siol.net>
3830
3831         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
3832           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
3833
3834 2006-04-17 Borut Razem <borut.razem AT siol.net>
3835
3836         * device/include/Makefile.in: added pic/*.inc to the installation
3837
3838 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
3839
3840         * support/regression/collate-results.py: fixed output in case of
3841         a valdiag error
3842         * support/regression/generate-cases.py: fixed splitting of pathnames
3843         with dots
3844         * as/hc08/lklibr.c (addfile),
3845         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
3846
3847 2006-04-11 Raphael Neider <rneider AT web.de>
3848
3849         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
3850         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
3851         * src/pic16/pcode.c (assignValnums): fixed #1460578
3852
3853 2006-04-11 Raphael Neider <rneider AT web.de>
3854
3855         * device/lib/pic/libdev/*.c,
3856         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
3857           fixes #1468739, enables compilation in --std-c99 mode
3858         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
3859
3860 2006-04-11 Raphael Neider <rneider AT web.de>
3861
3862         * src/pic/device.c (find_device): removed debug output
3863           (list_valid_pics): enabled verbose listing of supported devices
3864         * device/include/stdbool.h: define bool as char for pic14/16 as well
3865
3866 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3867
3868         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
3869
3870 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
3871
3872         * .version: bumped version to 2.5.6
3873         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
3874
3875 2006-04-06 Raphael Neider <rneider AT web.de>
3876
3877         * .version: bumped version to 2.5.6 (pic14 ABI changed)
3878         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
3879         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
3880           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
3881             pic14_constructAbsMap
3882           (pic14printPublics): declare absolute global symbols as global
3883           (pic14createInterruptVect),
3884         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
3885           (newReg): assume new registers unused, use correct name in
3886             hashtable (reg->name instead of name), more debugLog output
3887         * src/pic/device.h (PIC_device): added fields for verbose output
3888         * src/pic/device.c: moved device definition to pic14devices.txt,
3889             added routines for runtime parsing of pic14devices.txt,
3890             added support for second config word
3891         * src/pic/main.c (_process_pragma): removed #pragma maxram,
3892           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
3893           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
3894           (_pic14_parseOptions): moved pCodeInitRegisters here
3895           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
3896         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
3897           (pCodeInitRegisters): rewrapped comments, perpared new approach to
3898             handling the pseudo stack
3899         * device/lib/Makefile.in: ignore failures in objects-pic16,
3900         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
3901         * device/lib/pic/NEWS: document new dependency on picXXX.lib
3902         * device/lib/pic/Makefile.subdir,
3903         * device/lib/pic16/Makefile.subdir: improved clean rules
3904         * device/lib/pic/libdev/: NEW, pic14 device libraries
3905         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
3906         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
3907         * device/include/Makefile.in: create subdir and install pic14 headers
3908         * device/include/pic/p16f_common.inc: removed unused declarations
3909         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
3910             PICs from inc2h.pl v1.6,
3911             replaced BIT_AT macros with struct declarations
3912         * device/include/pic/pic14devices.txt: definition of supported devices,
3913             all above improvements contributed by Zik Saleeba, thanks
3914         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
3915         * support/scripts/sdcc.nsi: also install pic14 device libraries and
3916             headers
3917
3918 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
3919
3920         * device/include/mcs51/c8051f410.h: added interrupt numbers,
3921         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
3922           thanks to Charles Olds
3923
3924 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3925
3926         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
3927
3928 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
3929
3930         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
3931         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
3932         * support/regression/bug1464657.c: added, new test
3933
3934 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
3935
3936         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
3937           version number
3938
3939 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
3940
3941         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
3942           --no-peep and --peep-file <file> are used don't use default rules but
3943           do use the <file>
3944
3945 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
3946
3947         * src/mcs51/gen.c (genCall): fixed bug 1457608
3948
3949 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3950
3951         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
3952         changes seem to cause (trigger?) problems with the build system.
3953
3954 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
3955
3956         * src/SDCCpeeph.c (operandsLiteral): new, added,
3957           (callFuncByName): inserted operandsLiteral
3958         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
3959
3960 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3961
3962         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
3963         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
3964
3965 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
3966
3967         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
3968           implemented patch 1120823 Thanks to Willy De la Court (normal
3969           interrupts need an interrupt number now if they are made critical),
3970           and enabled nesting of critical functions though not for gbz80
3971           (genCritical, genEndCritical): added functions
3972           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
3973         * src/z80/mappings.i: added "ei" to all mappings
3974
3975 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3976
3977         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
3978         submitted by the Debian SDCC maintainer Aurelien Jarno:
3979         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
3980         archive with gcc 4.1 on mips and wrote the patch"
3981
3982 2006-03-16 Raphael Neider <rneider AT web.de>
3983
3984         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
3985           the left operand is shorter than the result (c* = lit-c* + int),
3986           fixes bug #1450796
3987         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
3988           OP_SYMBOL
3989
3990 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
3991
3992         * src/.version: increased version number to 2.5.5
3993         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
3994         linking is done manually in pic16 port's _linkEdit,
3995         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
3996         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
3997         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
3998         allocate asmop as AOP_ACC,
3999         (aopForRemat): added parameter 'bool result' in function declaration,
4000         (pic16_aopGet): return AOP_ACC when accessing WREG,
4001         (pic16_popGetTempReg): minor modification,
4002         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
4003         'pic16_allocWithIdx',
4004         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
4005         calling function in absolute addresses,
4006         (genAssign): take into account AOP_ACC asmop,
4007         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
4008         * src/pic16/pcoderegs.c: some debug functions and lines added,
4009         * src/pic16/ralloc.c (decodeRegType): added but commented out,
4010         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
4011         register too,
4012         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
4013         call to allocReg, not by manually allocating a new one,
4014         (pic16_assignRegisters): now before going through the register
4015         allocating functions mark all registers as free. This eliminates some
4016         side effects resulting from peephole parser done earlier in the backbone
4017
4018 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
4019
4020         * src/SDCCicode.c (geniCodeLogic),
4021         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
4022
4023 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
4024
4025         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
4026           (genSend): bugfix, do not allocate and free twice,
4027           (shiftRLong): handle partially overlapping aops
4028         * support/regression/tests/bitopcse.c: fixed warning redefined idata
4029
4030 2006-03-08 Borut Razem <borut.razem AT siol.net>
4031
4032         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
4033           for pic16
4034
4035 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
4036
4037         * support/regression/tests/bug1409955.c: new, added
4038         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
4039         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
4040           (aopForSym, aopOp): increment asmop.allocated if reused,
4041           (freeAsmop): decrement asmop.allocated and check for zero instead of
4042           using asmop.freed,
4043           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
4044           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
4045            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
4046            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
4047            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
4048            genSignedRightShift, genRightShift, genDataPointerGet,
4049            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
4050            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
4051             in reverse order from allocation,
4052           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
4053             added swappedLR to keep track
4054         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
4055           pdata & code for GCC, z80, gbz80 & hc08
4056         * support/regression/tests/zeropad.c: moved defines to testfwk.h
4057
4058 2006-03-08 Raphael Neider <rneider AT web.de>
4059
4060         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
4061
4062 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
4063
4064         * device/include/mcs51/c8051f410.h: new SiLabs mcu
4065         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
4066         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
4067
4068 2006-03-06 Borut Razem <borut.razem AT siol.net>
4069
4070         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
4071           made the linker quiet
4072
4073 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
4074
4075         * src/pic16/gen.c (genPcall): fixed bug #1443644
4076         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
4077         which dumps before the function entry point a data byte which represents
4078         the number of the local variables used by the specified function, added
4079         'xinst' for initial support for Extended Instruction Support,
4080         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
4081         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
4082         port->fun_prefix anymore (may change later),
4083         (genFunction, genEndFunction): do not store/restore local registers for
4084         _main (this should take care the --main-return command line option in
4085         the future),
4086         (genOr): removed some legacy pic-port instructions,
4087         * src/pic16/genarith.c (genAddLit): re-enabled old code because
4088         performing operations with SFR's causes data to be written more than
4089         once to each SFR. Perhaps SFRs should be handled in special cases...
4090         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
4091         pcode.h
4092         * src/pic16/main.c (_process_pragma): stack bound checking did not take
4093         into account for stack starting position,
4094         (struct OPTIONS pic16_optionsTable): added command line argument
4095         --extended or -y for Extended Instruction Support,
4096         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
4097         (deassignLRs): *** perhaps the most important change, old 'for' code
4098         (commented out for reference), didn't account for some registers which
4099         were left marked 'not free' after a pointer operation. The change
4100         reduces register usage a lot in some cases
4101
4102 2006-03-04 Borut Razem <borut.razem AT siol.net>
4103
4104         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
4105           _clean
4106         * support/regression/tests/bug-524697.c: decreased array size for
4107           mcs51 to fit into the internal RAM
4108         * support/regression/Makefile.in: a little bit more verbose
4109
4110 2006-03-03 Borut Razem <borut.razem AT siol.net>
4111
4112         * support/regression/fwk/lib/testfwk.c,
4113           support/regression/fwk/include/testfwk.h: introduced function
4114           _prints(), nonrecursive _printn(), call _initEmu() from main()
4115         * support/regression/ports/gbz80/support.asm,
4116           support/regression/ports/ucz80/support.asm,
4117           support/regression/ports/z80/support.asm,
4118           support/regression/ports/ds390/support.c,
4119           support/regression/ports/hc08/support.c,
4120           support/regression/ports/host/support.c,
4121           support/regression/ports/mcs51/support.c,
4122           support/regression/ports/xa51/support.c: added empty _initEmu()
4123           function
4124         * support/regression/ports/pic16/gpsim.cmd,
4125           support/regression/ports/pic16/spec.mk,
4126           support/regression/ports/pic16/support.c,
4127           support/regression/Makefile.in: added pic16 regression test
4128
4129 2006-03-01 Raphael Neider <rneider AT web.de>
4130
4131         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
4132           genConstPointerGet): use safe way of generating MOVFF to cover
4133             literals as well as registers, fixes bug #1440527
4134         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
4135             dereference
4136           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
4137             more correctly, fixes bug #1232186
4138           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
4139         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
4140             gplink guess the correct processor in more cases, applied patch
4141             from Till Riedel attached to and fixing bug #1436552
4142
4143 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4144
4145         * support/regression/tests/array.c: added, contains check for #1434401
4146         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
4147
4148 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
4149
4150         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
4151         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
4152         * device/include/mcs51/c8051f326.h,
4153         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
4154         * device/include/mcs51/c8051f000.h,
4155         * device/include/mcs51/c8051f018.h,
4156         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
4157           PCON_IDLE,PCON_STOP and added sfr16 definitions
4158
4159 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
4160
4161         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
4162           genGetWord): fixed bug 1409955
4163
4164 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
4165
4166         * device/include/hc08/mc68hc908gp32.h,
4167         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
4168
4169 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
4170
4171         * src/SDCCast.c (constExprValue): return NULL if not a value
4172         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
4173         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
4174         * support/regression/tests/bitfields.c: enabled signed bitfield for all
4175
4176 2006-02-13 Borut Razem <borut.razem AT siol.net>
4177
4178         * src/regression/ptrarg.c: added, fails due to bug #1430967
4179         * src/regression/Makefile: ptrarg.c added, ...
4180
4181 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
4182
4183         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
4184         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
4185
4186 2006-02-11 Borut Razem <borut.razem AT siol.net>
4187
4188         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
4189           print "Processor: xxx" message to stdout only if --verbose
4190
4191 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
4192
4193         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
4194         * support/regression/tests/bug1426356.c: added
4195         * support/regression/tests/bitfields.c: removed 2 tests
4196
4197 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
4198
4199         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
4200         * device/include/mcs51/c8051f330.h,
4201         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
4202           PCON_IDLE,PCON_STOP and added sfr16 definitions
4203         * device/lib/_divsint.c,
4204         * device/lib/_divuint.c,
4205         * device/lib/_divulong.c,
4206         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
4207           register bank bug for small stackauto
4208
4209 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
4210
4211         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
4212
4213 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
4214
4215         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
4216         * all.dsp: corrected several bin paths
4217         * device/include/mcs51/c8051f120.h,
4218         * device/include/mcs51/c8051f300.h,
4219         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
4220           to PCON_IDLE,PCON_STOP
4221         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
4222         * device/lib/printf_large.c (output_float): fixed bug 1388703
4223         * support/regression/tests/bug1057979.c: added test for bug 1388703
4224
4225 2006-02-08 Raphael Neider <rneider AT web.de>
4226
4227         * src/pic/pcode.c (pciTRIS): fixed typo,
4228           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
4229           (LinkFlow): fixed handling of flows that end in a call,
4230           (ReuseReg): perform safety check earlier
4231         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
4232             to work with flows at the beginning of a pBlock,
4233             fixes #1426557 (Symbol not previously defined),
4234           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
4235             usage information
4236           (RemoveUnusedRegisters): update register usage info
4237         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
4238             created, reuse existing ones instead
4239         * src/pic/gen.c (genPcall): fixed #1424719
4240
4241 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
4242
4243         * link/z80/lkmain.c,
4244         * link/z80/lklex.c,
4245         * link/z80/lkdata.c,
4246         * link/z80/aslink.h: fixed build on current cygwin:
4247         replaced getline() by lk_getline()
4248
4249 2006-02-01 Borut Razem <borut.razem AT siol.net>
4250
4251         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
4252           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
4253           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
4254           src/regression/bool1.c, src/regression/bool2.c,
4255           src/regression/bool3.c, src/regression/call1.c,
4256           src/regression/compare.c, src/regression/compare10.c,
4257           src/regression/compare2.c, src/regression/compare3.c,
4258           src/regression/compare4.c, src/regression/compare5.c,
4259           src/regression/compare6.c, src/regression/compare7.c,
4260           src/regression/compare8.c, src/regression/compare9.c,
4261           src/regression/configword.c, src/regression/for.c,
4262           src/regression/inline.c, src/regression/mult1.c,
4263           src/regression/nestfor.c, src/regression/or1.c,
4264           src/regression/pointer1.c, src/regression/ptrfunc.c,
4265           src/regression/rotate1.c, src/regression/rotate2.c,
4266           src/regression/rotate3.c, src/regression/rotate4.c,
4267           src/regression/rotate5.c, src/regression/rotate6.c,
4268           src/regression/rotate7.c, src/regression/string1.c,
4269           src/regression/struct1.c, src/regression/sub.c,
4270           src/regression/sub2.c, src/regression/switch1.c,
4271           src/regression/while.c, src/regression/xor.c,
4272           src/regression/create_stc, src/regression/simulate,
4273           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
4274           regression tests
4275         * src/regression/gpsim_assert.h: added
4276
4277 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
4278
4279         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
4280         ((void (code *) (void)) 0) ();
4281         * as/hc08/aslex.c,
4282         * as/hc08/aslink.h,
4283         * as/hc08/asm.h,
4284         * as/hc08/asmain.c,
4285         * as/hc08/lkdata.c,
4286         * as/hc08/lklex.c,
4287         * as/hc08/lkmain.c,
4288         * as/mcs51/aslex.c,
4289         * as/mcs51/aslink.h,
4290         * as/mcs51/asm.h,
4291         * as/mcs51/asmain.c,
4292         * as/mcs51/lkdata.c,
4293         * as/mcs51/lklex.c,
4294         * as/mcs51/lkmain.c,
4295         * as/z80/aslex.c,
4296         * as/z80/asm.h,
4297         * as/z80/asmain.c: fixed build on current cygwin:
4298         replaced getline() by as_getline()
4299
4300 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
4301
4302         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
4303         declarator in the symbol chain
4304         * src/SDCCsymt.h,
4305         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
4306         parameter list for function pointers
4307         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
4308         * support/regression/tests/bug-716242.c: added
4309
4310 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
4311
4312         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
4313         offset if possible
4314         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
4315
4316 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
4317
4318         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
4319         inifinitely recurseable, added static
4320         * support/regression/tests/bug-1408066.c: added
4321
4322 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
4323
4324         * src/SDCCicode.h,
4325         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
4326         renamed, added possibility to create "postLoopLbl"-labels
4327         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
4328         newiTempLoopHeaderLabel
4329         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
4330         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
4331         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
4332         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
4333         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
4334         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
4335         (basicInduction): fixed bug #136564, made static,
4336         (loopInduction): changed parameter of basicInduction, made static,
4337         (addPostLoopBlock): added
4338         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
4339         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
4340         findLoopEndSeq
4341         * support/regression/tests/bug-136564.c: added
4342         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
4343         --std-sdcc99 to LIBSDCCFLAGS
4344
4345 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
4346
4347         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
4348         while loop
4349         * support/regression/tests/bug-1406131.c: added
4350
4351 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
4352
4353         * src/SDCCast.c (decorateType): fix promotion of unary minus
4354         * src/SDCCsymt.c (computeType): beautified
4355         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
4356         (valUnaryPM, valComplement): fix sign and promotion,
4357         (valNot): ANSI: result type is int (SDCC: unsigned char)
4358         * support/regression/tests/uminus.c: speedup by removing superflous
4359         test case 'int'
4360         * support/regression/tests/onebyte.c: added promotion and signedness
4361         tests for unary minus
4362         * support/regressions/tests/bug-477927.c: disable warning about
4363         uninitialized variables
4364         * support/regression/tests/not.c: added
4365
4366 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
4367
4368         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
4369         * src/mcs51/gen.c (gen51Code): show final register usage after
4370         fillGaps in asm with --i-code-in-asm
4371         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
4372         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
4373         incUsed, rliveClear, adjustIChain): made static,
4374         (setFromRange): excluded because it's unused,
4375         (findPrevUseSym, markWholeLoop): added,
4376         (findPrevUse): rewritten; fixes bug 895992; now a complete search
4377         through all branches of predecessors enables sdcc to emit the warning
4378         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
4379         (rlivePoint): made static, added parameter emitWarnings which is only
4380         true during the first run out of two,
4381         (findRecursiveSucc, findRecursivePred): removed,
4382         (computeLiveRanges): made static, added parameter emitWarnings,
4383         (dumpIcRlive): added for debugging only
4384         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
4385         removed prototype of setFromRange()
4386         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
4387         in call of computeLiveRanges()
4388         * support/regression/tests/bug-895992.c: added
4389         * support/regression/tests/bug-971834.c: added
4390         * support/valdiag/tests/bug-895992.c: added
4391         * support/valdiag/tests/bug-971834.c: added
4392
4393 2005-12-18 Raphael Neider <rneider AT web.de>
4394
4395         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
4396           (genUnpackBits): improved code for direct operands,
4397           (genPackBits): improved code for literal assignment to bitfields
4398             and for direct destination operands (no FSR indirection),
4399             prevented redundant AND, fixes #1362800,
4400           (AccLsh): added parameter to disable masking of the result
4401         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
4402           skip instructions with side-effects (like incfsz),
4403           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
4404         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
4405         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
4406           fixes #1375263
4407
4408 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
4409
4410         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
4411         volatile variables as spill location
4412
4413 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
4414
4415         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
4416         replacing literals
4417         * support/regression/tests/bug-1376320.c: added
4418
4419 2005-12-08 Raphael Neider <rneider AT web.de>
4420
4421         * src/pic/device.c: renamed is_shared to pic14_is_shared
4422         * src/pic/gen.c (genIfx): re-enabled handling of sbits
4423         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
4424           (is_valid_identifier): added for above workaround
4425
4426 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
4427
4428         * device/lib/Makefile.in: fixed to enable port-specific-objects
4429         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
4430           char, thanks Hubert Sack
4431         * doc/sdccman.lyx: documented --xstack-loc,
4432           elaborated a bit more on interrupts and pitfalls,
4433           removed "setjmp/longjmp unsupported",
4434           documented some unsupported C99 features
4435         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
4436         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
4437           if, thanks Hubert Sack
4438         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
4439         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
4440           make make_library
4441         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
4442           regression tests can report resource usage (rfe 700441)
4443         * support/regression/collate-results.py: report resource usage
4444         * support/regression/ports/ds390/spec.mk,
4445         * support/regression/ports/hc08/spec.mk,
4446         * support/regression/ports/mcs51/spec.mk,
4447         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
4448         * support/regression/ports/ds390/uCsim.cmd,
4449         * support/regression/ports/hc08/uCsim.cmd,
4450         * support/regression/ports/mcs51/uCsim.cmd,
4451         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
4452         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
4453           library, use the default one
4454         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
4455           building the library
4456
4457 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
4458
4459         * config.dsp: added dependency on .version and configure_vc.awk
4460         * device/include/setjmp.h: updated for --stack-auto and --xstack
4461         * device/include/mcs51/at89c51snd1c.h: corrected line endings
4462         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
4463         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
4464         * device/lib/libsdcc.lib: added _setjmp
4465         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
4466           (decorateType): fixed bug 1372851,
4467           (optimizeGetHbit): fixed warning
4468         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
4469           array initialisation
4470         * support/regression/tests/bug1057979.c: added test for bug 1358192
4471         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
4472
4473 2005-12-03 Borut Razem <borut.razem AT siol.net>
4474
4475         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
4476           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
4477
4478 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
4479
4480         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
4481         createIval): implement symbol independant "flexible array member",
4482         (createIvalCharPtr): implemented flexible array initialisation with a
4483         string
4484         * src/SDCCsymt.c (copyStruct): removed,
4485         (getSize): fixed misleading comment,
4486         (getAllocSize): removed, the additional allocation size is now in
4487         sym->flexArrayLength,
4488         (checkStructFlexArray): new, syntax checks for flexible array members,
4489         (compStructSize): added syntax checks for "flexible array members"
4490         (copyStruct): removed,
4491         (copyLinkChain): removed inefficient fix for bug 770487
4492         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
4493         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
4494         symbol->flexArrayLength
4495         * src/SDCCerr.c,
4496         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
4497         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
4498         * support/regression/tests/structflexarray.c: added
4499         * support/valdiag/tests/structflexiblearray.c: added
4500
4501 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
4502
4503         * src/SDCCast.c (decorateType): fixed bug 1368489
4504         * support/Util/SDCCerr.c,
4505         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
4506
4507 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4508
4509         * device/include/mcs51/at89c51snd1c.h: added file submitted by
4510           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
4511
4512 2005-11-27 Borut Razem <borut.razem AT siol.net>
4513
4514         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
4515           support/cpp2/mkdeps.h: added command line option
4516           -obj-ext=<extension> to SDCPP to define object file externion, used
4517           for generation of make dependencies (-M)
4518         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
4519
4520 2005-11-26 Borut Razem <borut.razem AT siol.net>
4521
4522         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
4523           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
4524           added pic and pic16 libraries
4525
4526 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4527
4528         * device/include/float.h: Corrected typo in prototype of __fsgt
4529
4530 2005-11-25 Borut Razem <borut.razem AT siol.net>
4531
4532         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
4533           added creation of model-mcs51-stack-auto libraries
4534
4535 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
4536
4537         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
4538         and fields-list too
4539         * src/SDCCast.c (createIvalArray): removed obsolete comment
4540
4541 2005-11-24 Borut Razem <borut.razem AT siol.net>
4542
4543         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
4544           added missing device/lib/mcs51/crt*.asm sources
4545
4546 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
4547
4548         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
4549
4550 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
4551
4552         * device/lib/_fs2schar.c,
4553         * device/lib/_fs2sint.c,
4554         * device/lib/_fs2slong.c: optimized inline asm
4555
4556 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4557
4558         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
4559           Better handling of floats between -1.0 and 0.0.
4560
4561 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4562
4563         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
4564           (the missing "if"s prohibited removal of redundant labels)
4565
4566 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4567
4568         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
4569           Properly convert floats between -1.0 and 0.0 to long, int, and char
4570           types (max integer value of negative floats tends to zero).
4571         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
4572           Removed changes made so to work properly with floats between
4573           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
4574           and _fs2char.c
4575
4576 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4577
4578         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
4579         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
4580         (genCast) cosmetic change
4581         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
4582         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
4583         from mcs51
4584         * support/regression/tests/bitfields (testSignedBitfields): added
4585
4586 2005-11-18 Borut Razem <borut.razem AT siol.net>
4587
4588         * sdcc/device/lib/Makefile.in: remove all unnecessary files
4589         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
4590           introduced SILENT option to make building of pic16 libraries less
4591
4592 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4593
4594         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
4595           Now they work properly with floats between -1.0 and 0.0
4596         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
4597
4598 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
4599
4600         * src/SDCCicode.c (printOperand): added missing else
4601
4602 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4603
4604         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
4605         reformatted for better readability
4606         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
4607         signed bitfields
4608
4609 2005-11-17 Borut Razem <borut.razem AT siol.net>
4610
4611         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
4612           introduced SILENT option to make building of pic16 libraries less
4613           verbose - used for nightly snapshot build
4614         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
4615           available on Win32 platforms.
4616         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
4617           medium, large, pic and pic16
4618
4619 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4620
4621         * device/lib/printf_large.c: Temporary patch for bug 1358192:
4622           printf("%f"...) sets fraction to zero.
4623
4624 2005-11-16 Raphael Neider <rneider AT web.de>
4625
4626         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
4627           fixes #1357221
4628         * src/pic/gen.c (genIfx): implemented for CARRY bit
4629         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
4630           to generic pointers, fixes #1357332,
4631           (pic16_movLit2f): NEW,
4632           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
4633
4634 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4635
4636         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
4637
4638 2005-11-11 Raphael Neider <rneider AT web.de>
4639
4640         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
4641         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
4642           compute pointer's type from operand,
4643           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
4644           improved single bit reads, fixes bug #1353379
4645
4646 2005-11-09 Borut Razem <borut.razem AT siol.net>
4647
4648         * support/scripts/sdcc.nsi: added lib/pic to the package
4649
4650 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
4651
4652         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
4653
4654 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
4655
4656         * support/regression/tests/bug1348008.c: added
4657         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
4658         * support/regression/tests/bug1337835.c: updated comment
4659
4660 2005-11-06 Borut Razem <borut.razem AT siol.net>
4661
4662         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
4663           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
4664           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4665           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
4666           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
4667           dynamic construction of cl_error_class and derivates - 2.nd try
4668
4669 2005-11-05 Borut Razem <borut.razem AT siol.net>
4670
4671         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
4672           bug, which caused Bus Errors on sparc solaris
4673
4674 2005-11-04 Borut Razem <borut.razem AT siol.net>
4675
4676         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
4677           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
4678           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4679           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
4680           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
4681           and derivates to resolve the initialization problem on OSX
4682
4683 2005-11-02 Borut Razem <borut.razem AT siol.net>
4684
4685         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
4686           corrected typo - #include <winsock2.h>
4687
4688 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
4689
4690         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
4691           (_asxxxx_mapping): added org directive for future enhancements
4692
4693 2005-11-01 Borut Razem <borut.razem AT siol.net>
4694
4695         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
4696           enabled sockets on WIN32
4697         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
4698
4699 2005-10-31 Borut Razem <borut.razem AT siol.net>
4700
4701         * support/regression/generate-cases.py: escape backslashes in {testcase}:
4702           WIN32 backslash path delimiters should be escaped when used in C strings
4703         * support/regression/tests/bitfields.c: exclude failing assertions for
4704           __CYGWIN32__ and __MINGW32__ hosts
4705
4706 2005-10-30 Borut Razem <borut.razem AT siol.net>
4707
4708         * src/SDCCutil.c: corrected double comparison typo
4709
4710 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
4711
4712         * device/lib/medium/Makefile: added for new memory model medium
4713         * device/include/asm/mcs51/features.h: updated for medium/pdata
4714         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
4715           added Multiply & Accumulate sbit's and MAC0_PAGE define
4716         * device/include/mcs51/c8051f300.h: added sfr16 definitions
4717         * device/include/mcs51/c8051f310.h: added sfr16 definitions
4718         * device/lib/_mullong.c: update for medium model
4719         * device/lib/incl.mk: added medium model
4720         * doc/sdccman.lyx: documented medium model
4721         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
4722         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
4723         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
4724         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
4725           (allocParms): set SCLS and OCLS to pdata for medium model
4726         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
4727           for pdata,
4728           (powof2): return <0 if not power of 2
4729         * src/avr/gen.c (genBitWise): use updated powof2
4730         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
4731           (shiftR2Left2Result): small optimization in setup, save acc when storing,
4732           (shiftLLeftOrResult): use B if necessary
4733         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
4734         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
4735         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
4736         * support/regression/Makefile.in: added test-mcs51-medium
4737         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
4738
4739 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
4740
4741         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
4742         specifier unsigned
4743         * device/lib/time.c (mktime): fixed bug 1334315
4744
4745 2005-10-28 Raphael Neider <rneider AT web.de>
4746
4747         * device/include/pic/p16f_common.inc: added common declarations
4748         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
4749
4750 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
4751
4752         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
4753           (aopPutUsesAcc): added to predict accumulator use,
4754           (assignResultValue): save acc if necessary,
4755           (genMinusDec): store result if indirectly addressed,
4756           (genDivOneByte):  save acc if necessary,
4757           (movLeft2Result): bugfix if left already in acc,
4758           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
4759             attention to accumulator use (esp. pdata),
4760           (genReceive): receive pdata correctly
4761         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
4762         * src/SDCCicode.h: added isOperandInPagedSpace prototype
4763
4764 2005-10-27 Raphael Neider <rneider AT web.de>
4765
4766         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
4767
4768 2005-10-27 Raphael Neider <rneider AT web.de>
4769
4770         * .version: changed version to 2.5.4
4771         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
4772         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
4773           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
4774             arithmetics support routines
4775         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
4776         * device/lib/Makefile.in: also create installdir for pic
4777
4778         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
4779           pic14 port as well
4780         * src/pic/device.c (dump_sfr): rewritten to delegate register
4781           placement to the linker (use `extern sym' rather than sym EQU addr),
4782           (validAddress): fixed to check last specified address
4783         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
4784           (popGetLit): truncate literal value to 8 bit,
4785           (popGet): moved assert to more appropriate place
4786           (popGetExternal): create pCode operand from and mark the according
4787             symbol as being `extern'
4788           (popGetAddr): added sanity check on immediate's offset, provide
4789             GPOINTER tag on demand
4790           (aopPut): fixed for immediates,
4791           (mov2w_op): move operand's address or contents to WREG (depending on
4792             operand type), safer variant of mov2w,
4793           (movwf,call_libraryfunc): NEW, handy abbreviations,
4794           (get_argument_pcop,get_return_val_pcop,pass_argument,
4795           get_returnvalue): interface for accessing function parameters and
4796             return values,
4797           (assignResultValuei,genRet): use new parameter/return value interface
4798           (pic14_getDataSize): back to old version handling generic pointers,
4799           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
4800             provided implementation and/or fixed old one,
4801           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
4802             calls, removed legacy 8051 reference code
4803           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
4804           (loadSignToC): NEW, move the operands sign bit to CARRY,
4805           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
4806             genRightShiftSigned, accepts negative shift counts,
4807           (setup_fsr): load FSR and adjust IRP (indirect memory access),
4808           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
4809             generic pointers, __data pointers and __code pointers,
4810           (genUnpackBits,genPackBits): rewritten to work with generic pointers
4811             and signed bitfields, limit bitfields to 8 bit,
4812           (genDataPointerGet): fixed number of bytes read,
4813           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
4814           (genPointerGet,genPointerSet): fixed handling of __code pointers,
4815             pointers to constant data are no longer assumed to point to __code
4816             space, removed invalid pointer types,
4817           (bitpatternFromVal): retrieve the PICs representation of an integer
4818             or float literal,
4819           (genDataPointerSet): fixed assigning to po_immediate operands,
4820           (genGenPointerSet): implemented as library call,
4821           (genIfx): fixed incorrect condition,
4822           (genAddrOf): limit generic pointers' addresses to 2 bytes,
4823             provide GPOINTER tag according to destination's storage class,
4824           (genCast): added code to handle casting to generic pointers, added
4825             sign-/zero extension of the result
4826           (aop_isLitLike,op_isLitLike): fixed handling of immediates
4827         * src/pic/gen.h: added macros to access IRP bit in STATUS register
4828         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
4829           extend the result
4830         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
4831           address/register resides in the shared banks
4832           (emitSymbolToFile): improved to handle global and `pinned' symbols,
4833             put all variables into separate sections (have the linker arrange
4834             them)
4835           (picglue): put init code and interrupt handlers in separate sections
4836         * src/pic/main.c: added port specific options table, modified to PORT
4837           structure to make GPOINTERs 3 byte, added pic14_options
4838           (_pic14_do_link): private linking routine (update paths to libraries,
4839             add libsdcc.lib by default)
4840         * src/pic/main.h: declare pic14_options
4841         * src/pic/pcode.c: fixed instructions i/o relations,
4842           (RegCond): reverted to correct version,
4843           (newpCodeOpLit): truncate literals to 8 bit,
4844           (genericPrint): added debug output,
4845           (getRegFromInstruction): fixed for various operand types, simplified
4846           (BuildFlow): fixed broken handling of isntructions with labels
4847           (LinkFlow): start at last instruction in flow (skip trailing comments),
4848             pass the flow on to the next instruction after CALL
4849           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
4850           (insertPCodeInstruction): fixed inserting after a skip instruction,
4851           (DoBankSelect): fixed for labeled instructions
4852           (OptimizepBlock): honor --nopeep switch
4853           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
4854         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
4855         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
4856           (pCodeOptime2pCodes): allow disabling this optimization via
4857             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
4858             but is still buggy), started implementation of a dataflow based
4859             pCode optimization (CSE + dead code elimination)
4860           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
4861         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
4862           names are independant of the stack location and therefore portable across
4863           devices
4864
4865 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
4866
4867         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
4868           (selectSpil): fixed bug 1337835 by not spilling bit variables
4869         * support/regression/tests/bug1337835.c: added test for this bug
4870         * src/mcs51/peeph.def: restart after rule 3.c,
4871           addded rules 263.x to optimize loading constants
4872
4873 2005-10-26 Raphael Neider <rneider AT web.de>
4874
4875         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
4876         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
4877           (genAssign): emit warning when casting literals to generic pointer
4878             type, also applies when taking the address of a fixed variable,
4879           (genCast): improved casting to generic pointers
4880         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
4881           extern variables, added verbose error message
4882         * device/include/pic16/{string.h,errno.h}: added #pragma library c
4883
4884 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
4885
4886         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
4887         carry must be complemented too
4888         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
4889         could be emitted by genMinus
4890         * src/SDCCval.c (constVal): fixed bug 1305065
4891
4892 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
4893
4894         * src/SDCCast.c (addCast): added promotion for bit variables
4895         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
4896         promotion casts + optimisation
4897         (optimizeGetWord): fix warning 'i' might be used uninitialized
4898         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
4899         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
4900
4901 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
4902
4903         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
4904         all chars are promoted to int; promotion should be handled in SDCCast.c
4905
4906 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4907
4908         * device/lib/_strcmp.c: Fixed bug 1326457
4909
4910 2005-10-11 Raphael Neider <rneider AT web.de>
4911
4912         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
4913         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
4914
4915 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
4916
4917         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
4918         * support/regression/tests/sfr16.c: added test for the sfr32 bug
4919
4920 2005-10-04 Raphael Neider <rneider AT web.de>
4921
4922         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
4923           device/lib/pic16/pics.all: added pic18f1320
4924         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
4925
4926 2005-09-30 Raphael Neider <rneider AT web.de>
4927
4928         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
4929         * src/pic16/devices.inc: NEW, provides device descriptions
4930         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
4931
4932 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
4933
4934         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
4935           GETHBIT
4936
4937 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
4938
4939         * doc/sdccman.lyx: updated Highest Order Bit documentation,
4940           documented Any Order Bit, Higher Order Byte and Higher Order Word
4941         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
4942         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
4943           (optimizeGetAbit): new, to get any bit, not only the high bit,
4944           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
4945           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
4946           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
4947           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
4948             RIGHT_OP: also try GETBYTE, GETWORD optimization,
4949             GETABIT, GETBYTE, GETWORD: decorate them,
4950           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
4951           (ast_print): added GETABIT, GETBYTE, GETWORD
4952         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
4953         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
4954           (geniCodeBinary): new generic binary icode,
4955           (ast2iCode): added GETABIT, GETBYTE, GETWORD
4956         * src/port.h: updated comment for PORT.hasExtBitOp
4957         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
4958           (genGetByte): new, to get a single byte,
4959           (genGetWord): new, to get a word from a long,
4960           (gen51Code): added GETABIT, GETBYTE, GETWORD
4961         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
4962
4963 2005-09-23 Raphael Neider <rneider AT web.de>
4964
4965         * configure.in, configure: have device/lib/pic configured
4966         * device/lib/Makefile.in: added model-pic14
4967         * device/lib/clean.mk: added pic/ to clean rule
4968         * device/lib/pic: added rudimentary pic14 library providing support
4969           functions for multiplication/division/generic pointer access
4970         * src/SDCCopt.c (convilong): mark support functions as extern
4971           for pic14 port as well
4972         * src/pic/gen.c (genMult): added assertions,
4973           (genpic14Code): emit warning on unhandled iCodes
4974         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
4975         * src/pic/pcode.c (pCodeOpCopy),
4976         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
4977           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
4978           SFR_REGISTER}), made safe for future extensions
4979         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
4980           instructions even if preceeded by SKIP instructions (also remove
4981           them); removed unused code
4982         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
4983           prevents leaving parts of the structure uninitialized after copying
4984
4985 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
4986
4987         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
4988           ago by me
4989         * support/regression/tests/addsub.c: added test for the bug
4990
4991 2005-09-21 Raphael Neider <rneider AT web.de>
4992
4993         * device/include/pic16/pic18f1220.h,
4994           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
4995         * device/lib/pic16/Makefile.rules: added missing opening paren
4996         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
4997           are provided in genutils.c,
4998           (genUminusFloat,genUminus,genCmpEq): added asserts on different
4999           operand/result sizes,
5000           (genCmp): assert on NULL pointers first, then check deref'ed values
5001         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
5002           result size
5003
5004 2005-09-18 Raphael Neider <rneider AT web.de>
5005
5006         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
5007           as these are now unused,
5008           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
5009         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
5010           local, avoids uninitialized pointer dereference on r->name
5011         * src/pic16/ralloc.c (newReg): fixed indentation
5012
5013 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
5014
5015         * src/SDCCval.c (constVal): fixed bug 730366
5016         * support/Util/SDCCerr.c,
5017         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
5018
5019 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
5020
5021         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
5022
5023 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
5024
5025         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
5026
5027 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
5028
5029         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
5030           (hex2dec): made hex_digit unsigned char, removed ascii dependance
5031         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
5032           (hex2dec): made hex_digit unsigned char, removed ascii dependance
5033         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
5034         * packihx/packihx.c (hexDigit): made c unsigned char
5035         * as/mcs51/lklibr.c (fndsym),
5036         * link/z80/lkgb.c (gb),
5037         * link/z80/lklibr.c (fndsym),
5038         * link/z80/lkrloc.c (relr),
5039         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
5040         * src/SDCC.lex (checkCurrFile, process_pragma),
5041         * src/SDCCglue.c (spacesToUnderscores),
5042         * src/SDCCmain.c (setParseWithComma, processFile),
5043         * src/asm.c (tvsprintf, printCLine),
5044         * src/avr/gen.c (emitcode, aopPut),
5045         * src/ds390/gen.c (emitcode),
5046         * src/hc08/gen.c (emitcode, emitinline),
5047         * src/mcs51/gen.c (emitcode, genInline),
5048         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
5049           tokenizeLineNode),
5050         * src/pic/ralloc.c (debugLog),
5051         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
5052           tokenizeLineNode),
5053         * src/pic16/ralloc.c (debugLog),
5054         * src/z80/main.c (_process_pragma):
5055            made all ctype.h function calls safe
5056         * src/SDCCopt.c: include math.h for fabs
5057         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
5058           and used them throughout the code to make ctype.h function calls safe
5059         * src/ds390/main.c (asmLineNodeFromLineNode),
5060         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
5061         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
5062            unsigned char*
5063         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
5064           (newpCodeAsmDir): made ctype.h function calls safe
5065         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
5066           pic16_emitcode):  made lbp unsigned char*
5067         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
5068           (pic16_newpCodeAsmDir): made ctype.h function calls safe
5069         * src/xa51/gen.c (emitcode),
5070         * src/z80/gen.c (_emit2): made lbp unsigned char*
5071         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
5072            char*
5073
5074 2005-09-05 Raphael Neider <rneider AT web.de>
5075
5076         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
5077           access bank splitpoint
5078
5079 2005-09-05 Raphael Neider <rneider AT web.de>
5080
5081         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
5082
5083 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
5084
5085         * .version: changed to version 2.5.3
5086         * doc/sdccman.lyx: changed version to 2.5.3,
5087           documented --codeseg and --constseg and pragma codeseg and constseg,
5088           documented bit parameters (reentrant) and bit returning
5089         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
5090            currFunc->recvSize, but is this ok for all ports?
5091           (ast2iCode): result of ~ on unsigned char must be cast to int for
5092            bool to work
5093         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
5094           function pointers in bit space
5095         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
5096           (processFuncArgs): call port.reg_parm() with reentrancy info
5097         * src/port.h,
5098         * src/avr/main.c,
5099         * src/ds390/main.c,
5100         * src/hc08/main.c,
5101         * src/pic/main.c,
5102         * src/pic16/main.c,
5103         * src/xa51/main.c,
5104         * src/z80/main.c: port.reg_parm prototype extended with
5105           "bool reentrant" parameter
5106         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
5107           options.stackAuto for allocating bit register parameters
5108         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
5109           (genSend): set BitBankUsed if it is,
5110           (selectRegBank): factored out of genCall for use in genPcall,
5111           (genCall): removed redundant dtype assignmen, use selectRegBank,
5112           (genPcall): handle returning in Carry properly, save in F0 if needed,
5113           (genReceive): handle bit register parameters
5114         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
5115           (mcs51_assignRegisters): enable bit registers for all reentrant
5116            functions and don't set BitBankUsed unconditionally
5117         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
5118         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
5119         * support/regression/tests/funptrs.c: added tests for BOOL and for return
5120
5121 2005-08-27 Borut Razem <borut.razem AT siol.net>
5122
5123         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
5124         ppc-osx (Darwin) does not support -u option. It seems that it is
5125         supported only on Linux - GNU cp
5126
5127 2005-08-25 Borut Razem <borut.razem AT siol.net>
5128
5129         * sim/ucsim/gui.src/serio.src/Makefile.in,
5130           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
5131           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5132           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
5133           install and strip, since the strip at /usr/ccs/bin should be used
5134           on solaris
5135
5136 2005-08-24 Borut Razem <borut.razem AT siol.net>
5137
5138         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
5139
5140 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
5141
5142         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
5143         ffffffffu
5144
5145 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
5146
5147         * as/mcs51/aslink.h: completed lkrloc.c prototypes
5148         * as/mcs51/lkmain.c (link_main): fixed warning
5149         * device/include/stdbool.h: ds390 has no advanced bit support yet
5150         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
5151         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
5152         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
5153           and updated their macros
5154         * src/SDCCval.c (constVal): updated comment for renamed b_long
5155
5156 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
5157
5158         * as/mcs51/asdata.c: changed ctype['['] to BINOP
5159         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
5160           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
5161           (oprio): set priority for '['
5162         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
5163            and adb_24_bit
5164         * as/mcs51/asm.h: added defines R_BIT and S_BIT
5165         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
5166         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
5167         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
5168           added overlayable BIT_BANK area
5169         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
5170           (summary2): explain 'T' in legenda
5171         * as/mcs51/lkrloc.c: replaced old K&R style,
5172           (relr): added R_BIT processing,
5173           (errmsg): added "Bit-addressable relocation error",
5174           (adb_bit): added for converting from byte- to bit-addressable space,
5175           (adb_24_bit): added for converting from byte- to bit-addressable space
5176         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
5177            used in reentrant functions now even as return value
5178         * device/lib/_gptrput.c (_gptrput): removed obsolete code
5179         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
5180           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
5181         * src/SDCCglobl.h: added indicator BitBankUsed
5182         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
5183            the bit registers b0-b7
5184         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
5185           (geniCodeCast): fixed bug 1263853,
5186           (geniCodeLogicAndOr): put result in bool or char,
5187           (geniCodeReceive): added parameter func for accessing the return type,
5188           (geniCodeFunctionBody): pass func to geniCodeReceive
5189         * src/SDCCmain.c: added indicator BitBankUsed
5190         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
5191         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
5192           (checkSClass): don't put automatic bool/bit on stack,
5193           (checkFunction): removed check on function cannot return bit
5194         * src/SDCCsymt.h: added newBoolLink prototype
5195         * src/mcs51/gen.c (rb1regs): added bit registers,
5196           (movc): created for assigning to carry,
5197           (pushReg, popReg): created for pushing registers,
5198           (sameRegs): check both AOP_REG and AOP_CRY types,
5199           (aopOp): handle bit registers,
5200           (aopPut): optimization no self-assign,
5201           (saveRegisters): push reg->base (bits) only once for bit registers,
5202            and use pushReg,
5203           (unsaveRegisters): pop reg->base only once and use popReg,
5204           (assignResultValue): added parameter func and return in carry for bits,
5205           (genIpush): optimization no reload in A if not changed,
5206           (genSend): bit parameters in reentrant functions are passed in bit
5207            registers by first assigning to bits in B, then save registers and
5208            copy B to bits,
5209           (genCall): handle returning in Carry properly, save it in F0 if needed,
5210           (genPcall): updated assignResultValue call, this is not safe yet for bit
5211            returning function !!!
5212           (genFunction): don't generate equ's for bit registers and use pushReg,
5213           (genEndFunction): take care of bit returning functions and use popReg,
5214           (genRet): return bit in Carry,
5215           (genIfx): optimize bit registers and other directly addressable bits,
5216           (genReceive): updated assignResultValue call
5217         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
5218           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
5219            registers when using stack-auto
5220         * src/mcs51/ralloc.c (_G): added allBitregs,
5221           (regs8051): added the bit registers,
5222           (createStackSpil): use macro IS_BIT,
5223           (getRegBit): added to allocate a bit register, else spill,
5224           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
5225           (updateRegUsage): factored out to ease stepping while debugging,
5226           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
5227            also allocate bit registers,
5228           (fillGaps): handle bit registers,
5229           (findAllBitregs): added to create bit vector with all bit registers,
5230           (mcs51_allBitregs): returns this bit vector,
5231           (mcs51_assignRegisters): when using stack-auto use bit registers for
5232            passing parameters and creating local variables
5233         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
5234
5235 2005-08-22 Borut Razem <borut.razem AT siol.net>
5236
5237         * device/lib/Makefile.in: replaced find option -or with -o
5238           to make it run on solaris
5239
5240 2005-08-22 Raphael Neider <rneider AT web.de>
5241
5242         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
5243           fixes #1265442 (crash on Solaris)
5244
5245 2005-08-20 Borut Razem <borut.razem AT siol.net>
5246
5247         * configure, configure.in: added tests for libsocket and libnsl libraries,
5248           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
5249           from support/regression/Makefile.in
5250         * support/regression/Makefile.in: added
5251         * device/lib/pic16/Makefile.common.in: force make to use bash shell
5252         * sim/ucsim/libtool: regenerated on sparc-solaris
5253         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5254           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
5255           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
5256           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
5257           sparc-solaris, which doesn't use GNU ld linker
5258         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
5259         * as/Makefile: find on sparc-solaris does not support -maxdepth option
5260
5261 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
5262
5263         * src/mcs51/peeph.def: updated comments
5264
5265 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5266
5267         * device/lib/_gptrget.c,
5268         * device/lib/_gptrput.c: slightly shorter
5269         * doc/sdccman.lyx: incremented version
5270         * src/mcs51/peeph.def: moved peephole comments to the line of first
5271           change to better keep line correlation, reanimated 186.e
5272         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
5273
5274 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
5275
5276         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
5277           David Saxton with quotes around file name.
5278
5279 2005-08-15 Borut Razem <borut.razem AT siol.net>
5280
5281         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
5282           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
5283           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
5284           make tests run on x86_64 platform
5285
5286 2005-08-13 Raphael Neider <rneider AT web.de>
5287
5288         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
5289           as it might be executed DURING a build (parallel make is wonderful)
5290
5291 2005-08-13 Raphael Neider <rneider AT web.de>
5292
5293         * device/lib/Makefile.in (port-specific-objects-pic16):
5294           revert to cp $(PORT)/bin/*.* $(PORTDIR)
5295         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
5296           dependency
5297         * device/lib/pic16/Makefile.rules: build subdirs before creating
5298           the library, removed builddir rule, create $(builddir) early in
5299           recurse rule, use empty recurse rule for leaf directories
5300         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
5301           mkdir errors (race condition), removed duplicate suffix "hex"
5302           from clean rules
5303         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
5304         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
5305           prevents mkdir -p from aborting on Alpha
5306
5307 2005-08-12 Raphael Neider <rneider AT web.de>
5308
5309         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
5310           db-statements in order to allow for arrays of pointers in code
5311           sections to be placed without interspersed 0-padding, fixes
5312           bug #1256215
5313         * (emitStatistics): fixed division by zero for pic18f1220
5314         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
5315           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
5316         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
5317         * (pic16_pCodeConstString): keep track of already emitted string
5318           literals to prevent "duplicate definitions of symbol _str_NR"
5319         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
5320           debug message
5321         * device/lib/Makefile.in: ignore failing PIC16 library builds
5322         * device/lib/pic16/Makefile: do not build if gputils are missing
5323         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
5324
5325 2005-08-10 Raphael Neider <rneider AT web.de>
5326
5327         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
5328           my last commit)
5329
5330 2005-08-10 Raphael Neider <rneider AT web.de>
5331
5332         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
5333           Rokas' patch to add the new fixed point type "__fixed16x16"
5334         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
5335           functions for __fixed16x16 arithmetics
5336         * device/lib/pic16: reimplemented the build system to support
5337           a separate build directory, better handling of libio (create
5338           the library in a separate subdir for each architecture) and
5339           easier configuration (centralized in Makefile.common)
5340
5341 2005-08-07 Raphael Neider <rneider AT web.de>
5342
5343         * src/pic16/gen.c (genrshTwo): fixed sign extension
5344         * src/pic16/device.c: added pic18f2320, 4220 and 4320
5345         * device/include/pic16/pic18f2220.h: changed some bit definitions,
5346           added T0CONbits
5347         * device/include/pic16/pic18f4220.h: NEW, header for
5348           pic18f4220 and pic18f4320
5349         * device/include/pic16/pic18fregs.h: added new devices,
5350           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
5351         * device/include/pic16/signal.h: resolved name clashes
5352           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
5353           to also allow testing for interrupt enable bits, added
5354           comments on how to use the macros
5355         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
5356         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
5357           register definitions for the devices
5358         * device/lib/pic16/pics.all: added new devices
5359         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
5360           allocated memory
5361         * device/lib/pic16/libc/stdlib/memfree: do not count
5362           the block header as free memory
5363         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
5364           simplified and added missing end-of-blocklist-marker
5365           (reported by Peter Onion, fixes #1252814)
5366         * (_mergeHeapBlock): fixed loop condition
5367         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
5368           len==0, restructured code
5369         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
5370           up a bit, reduced bitfield accesses, prevent endless loops
5371           in case of heap corruption
5372         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
5373           "unreferenced arguments/must return a value" warnings
5374         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
5375           replaced BAUDREG with SPBRG
5376         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
5377           device/lib/pic16/debug/gstack/gstack.c: replaced
5378           _naked, _asm, _endasm with __naked, __asm, __endasm
5379
5380 2005-08-05 Raphael Neider <rneider AT web.de>
5381
5382         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
5383           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
5384
5385 2005-08-05 Borut Razem <borut.razem AT siol.net>
5386
5387         * device/lib/Makefile.in: added missing ';'
5388         * configure: removed ^M characters
5389
5390 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5391
5392         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
5393           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
5394           License
5395
5396 2005-08-04 Borut Razem <borut.razem AT siol.net>
5397
5398         * configure.in: pic16 libraries build 2nd try - enable running
5399           configure in device/lib/pic16
5400         * configure: regenerated from configure.in
5401         * device/lib/Makefile.in: create $(PORT)/bin directory
5402
5403 2005-08-03 Raphael Neider <rneider AT web.de>
5404
5405         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
5406           to get/set values via pointers
5407         * (genUnpackBits,genPackBits): changed detection of
5408           ptr->bitfield vs. sym.bitfield, fixed access via generic
5409           pointers, removed dead (wrong) code for multibyte bitfields
5410         * (genNearPointerGet, genGenPointerGet): removed useless code,
5411           fixed bitfield detection, fixes #1250594
5412         * (genNearPointerSet): removed useless code
5413         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
5414           and introduced macro pic16_emitpcode that conditionally emits
5415           the origin of the following pCode (useful for debugging SDCC)
5416         * src/pic16/pcode.c: changed (and disabled) some debug outputs
5417         * (createDefmap): fixed handling of LFSR for --optimize-df
5418
5419 2005-08-02 Borut Razem <borut.razem AT siol.net>
5420
5421         * device/lib/Makefile.in: pic16 libraries build enabled since
5422           gputils-0.13.2 are now localy installed at sourceforge's compile farm
5423
5424 2005-08-02 Raphael Neider <rneider AT web.de>
5425
5426         * src/pic16/gen.c (genPackBits): removed deprecated warning
5427         * (genGenPointerSet): fixed bitfield detection
5428
5429 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5430
5431         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
5432
5433 2005-07-31 Raphael Neider <rneider AT web.de>
5434
5435         * device/lib/pic16/libdev/pic18f458.c,
5436           device/include/pic16/pic18f458.h: added missing T0CONbits
5437
5438 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
5439
5440         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
5441
5442 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
5443
5444         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
5445
5446 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5447
5448         * device/include/mcs51/at89c51ed2.h: added.
5449
5450 2005-07-23 Raphael Neider <rneider AT web.de>
5451
5452         * src/pic/gen.h: added emitpcode macro for debugging
5453         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
5454           and replace by macro adding debug information on demand
5455         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
5456         * (gencjne): tried to fix; replaced with correct (slower) code
5457         * (gen{Unp,P}ackBits): fixed single bit access
5458         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
5459         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
5460           previous instruction
5461         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
5462           register has to be handled with care (forbidding movement
5463           of assignments/uses, removing assignments completely, ...)
5464         * (pCodeOptime2pCodes): make use of regIsSpecial
5465         * added lots of debugging output (commented out)
5466         * src/pic/rallloc.c (deassignLRs): prevent operand registers
5467           from being reused as result UNLESS it is known to work
5468
5469 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
5470
5471         * support/Util/dbuf.h: include <stddef.h> for size_t
5472         * .version: changed to version 2.5.2
5473
5474 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5475
5476         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
5477
5478 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5479
5480         * src/hc08/gen.c (genMinus): fixed bug #1241835,
5481           (genModOneByte): removed needless psha/pula
5482
5483 2005-07-22 Raphael Neider <rneider AT web.de>
5484
5485         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
5486           have PIC14 handled like PIC16, fixes broken pic14 linker calls
5487         * src/pic/gen.c (resolveIfx): do not "invent" labels
5488         * (genSkipc): changed to positive logic
5489         * (genSkipCond): removed as no longer needed
5490         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
5491           backport from PIC16
5492         * (genLeftShift): check operands are in different registers
5493         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
5494           INCF does not update CARRY...
5495         * src/pic/main.c: fixed _linkCmd
5496         * src/pic/pcode.c (unlinkpCode): added inactive code
5497         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
5498           alive (do not assign result and operand overlapping registers)
5499
5500 2005-07-22 Raphael Neider <rneider AT web.de>
5501
5502         * src/pic/device.c (dump_sfr): replaced register declaration with
5503           call to emitSymbolToFile() to avoid duplicate symbols
5504         * (assignRelocatableRegisters): do not declare external symbols
5505         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
5506           right (take size of type, not etype)
5507         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
5508         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
5509         * (packRegsForAccUse): disabled assignment of WREG as
5510           the result reg to prevent occurence of just fixed #1235003,
5511           fixes #1242954
5512         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
5513           symbols (avoids duplicate symbols in .asm file)
5514         * (pic14emitRegularMap): use emitSymbolToFile()
5515         * src/pic/gen.c (aopOp): fixed spillLocation handling
5516         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
5517         * (genDataPointerSet): removed unneccessary variables/output
5518
5519 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
5520
5521         * as/mcs51/lkarea.c: enlarged codemap for banked memory
5522         * device/lib/mcs51/crtbank.asm: added # to 0x0F
5523
5524 2005-07-21 Raphael Neider <rneider AT web.de>
5525
5526         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
5527           architecture cannot handle them efficiently, fixes bug #1235003
5528         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
5529           check for empty sets before using them (fixes bug #1232190)
5530
5531 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
5532
5533         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
5534           (lnksect2): generate warnings for memory overlap
5535         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
5536           constseg to set the name of these segments so you can instruct the linker
5537           to place them in banks
5538         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
5539         * src/SDCCglobl.h: added MODEL_HUGE to enum,
5540           added code_seg and const_seg to options
5541         * src/SDCCglue.c (emitMaps): use options.const_seg,
5542           (createInterruptVect): put interrupt vectors in segment HOME,
5543           (glue): put HOME before static segment and put the main glue in HOME,
5544           (glue): use options.code_seg
5545         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
5546         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
5547           these segments so you can instruct the linker to place them in banks
5548           (linkEdit): use code_loc for HOME segment which should be the first
5549           segment in code memory now
5550         * src/SDCCmem.c: fixed more stuff like bug 1238386
5551         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
5552           (changePointer): don't change function pointers to code pointers for
5553           banked functions,
5554           (compareType): added exceptional check for banked function pointers
5555         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
5556         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
5557           after static in code memory
5558         * src/mcs51/gen.c: added aopLiteralLong prototype,
5559           (aopForSym): use getSize for functions,
5560           (genCall): generate banked calls over one trampoline __sdcc_banked_call
5561           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
5562           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
5563           the segment,
5564           (genPcall): use call for literal function pointers and generate banked
5565           calls over the one trampoline so there's only one place for the user to
5566           modify according to his/hers hardware,
5567           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
5568           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
5569         * src/mcs51/main.c: added keyword banked,
5570           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
5571         * support/Util/SDCCerr.c,
5572         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
5573           needed for passing the bank and address to the trampoline
5574         * device/lib/mcs51/crtbank.asm: added for bankswitching
5575         * device/lib/mcs51/Makefile: added crtbank
5576
5577 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5578
5579         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
5580           for fields at offset 0 of a struct or union as reported
5581           on 2005-07-07 in the developer mailing list.
5582
5583 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
5584
5585         * src/SDCCmem.c: fixed bug 1238386
5586
5587 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5588
5589         * src/mcs51/peeph.def: added labelrefcounting for peepholes
5590           (patch #1144962), added peephole 300, enabled 259.x
5591         * doc/sdccman.lyx: removed screenshot and provided link instead
5592
5593 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5594
5595         * doc/sdccman.lyx: added section about debugging with ddd
5596         * doc/figures/ddd_example.eps: screenshot of debugging session
5597
5598 2005-07-04 Raphael Neider <rneider AT web.de>
5599
5600         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
5601           like CODE pointers, fixes #1115683
5602         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
5603           call, fixes bugs #1232211, #1228110,
5604           fixed wrong casts to pCodeFlow from pCodeInstructions
5605
5606 2005-07-04 Raphael Neider <rneider AT web.de>
5607
5608         * src/pic/gen.c (popGet): changed assert to allow for
5609           bit operands
5610         * (popGetAddr): changed signature to provide
5611           an additional index, patched all call sites
5612         * (genCmpEq): handle literal-like operands correctly
5613         * (genAddrOf): added sanity checks on __code/__data pointers
5614         * (genAssign): added handling of symbols from __code section
5615         * (gencjne): do not generate code for comparisons whose result
5616           is neither stored nor used, fixes bug #1171114
5617         * (AccLsh, AccRsh): operate on operand instead of WREG
5618         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
5619           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
5620           by known count
5621         * rewrote complete shift-by-literal logic, commented unused
5622           functions out
5623         * (genConstPointerGet): get multiple bytes (if result size > 1),
5624           fixed handling of non-immediate addresses
5625         * (genPointerGet): handle CODE pointers like CONST pointers
5626         * (genpic14Code): insert C-SRC lines as Cource-pCodes
5627         * ({aop,op}_isLitLike): NEW, single place to decide whether an
5628           operand is to be treated as a literal or not
5629         * (mov2w,genPcall,genCmpEq),
5630           src/pic/genarith.c: use aop_isLitLike() to decide between
5631           literal/register contents
5632         * (addSign): added missing offset
5633         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
5634           only emit comment in debug-mode,
5635           use {aop,op}_isLitLike throughout the file
5636         * src/pic/glue.c: fix initializers for pointers (work in progress)
5637         * src/pic/pcode.c (get_op): honor index on _const symbols
5638         * ({reset,dump}pCodeStatistics): NEW, estimate code size
5639         * (dumppBlock): added pCode size estimation
5640         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
5641           check for IS_SYMOP before OP_SYMBOL'ing
5642         * fixed indentation, compacted switch-statements
5643         * (allocReg): find free register and allocate it instead of
5644           allocating new registers all the time
5645         * (deassignLRs): prevent POINTER_GET's from being assigned the same
5646           registers as its operands (necessary only for multibyte GETs)
5647
5648 2005-07-01 Raphael Neider <rneider AT web.de>
5649
5650         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
5651           debugging .asm-output macros FENTRY + FEXIT
5652         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
5653           way... I wonder...
5654         * (emitpComment): NEW, printf to pCode
5655         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
5656           offset handling
5657         * (popGetAddr): NEW, variant of popGet to access an immediates
5658           high(er) bytes instead of the n'th byte of memory they reference,
5659           replaced popGet with popGetAddr where neccessary
5660         * (genDataPointerGet): reactivated and fixed implementation
5661         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
5662           accesses
5663         * (genDataPointerSet): fixed multibyte assignments
5664         * (genpic14Code): fixed --i-code-in-asm handling
5665         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
5666         * (genPlus): fixed index-out-of-bounds error
5667         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
5668         * src/pic/ralloc.c: added debugging output macro FENTRY2
5669         * (spillThis): fixed indentation, enbraced for-body for clarity
5670         * (rematStr): commented out as now unused
5671         * (regTypeNum): commented out special spill case (overwrites
5672           arbitrary values)
5673         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
5674
5675 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
5676
5677         * doc/sdccman.lyx: documented sfr16/sfr32,
5678           added example for using storage class with function pointers
5679         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
5680
5681 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
5682
5683         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
5684         * device/lib/_itoa.c,
5685         * device/lib/_ltoa.c: optimized codesize
5686         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
5687           but don't know how to suppress the double warning.
5688         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
5689         * support/Util/SDCCerr.c,
5690         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
5691
5692 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
5693
5694         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
5695           fixed old K&R prototypes
5696         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
5697         * device/lib/_gptrget.c,
5698         * device/lib/_gptrgetc.c,
5699         * device/lib/_gptrput.c: changed versions for new memory indicator values,
5700           also new versions for small generic pointers and banked generic pointers
5701         * src/port.h: added const_name
5702         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
5703         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
5704         * src/SDCCcse.c (findPrevIc): check all associative operators
5705         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
5706         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
5707         * src/SDCCmem.c: updated comments,
5708           set far-space to 0 for pdata, results in optimized code
5709         * src/SDCCmem.h: added macro CONST_NAME
5710         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
5711           moving the info into the highest bits, see also gptrget/gptrput
5712         * src/src.dsp: added sdcc.ico to project files
5713         * src/avr/gen.c (genCast): fixed bug 0x%d
5714         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
5715         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
5716           relation between ptr_type and DCL_TYPE,
5717           (genCast): fixed bug 0x%d
5718         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
5719           (CODE)" for const_name
5720         * src/hc08/gen.c (genCast): fixed bug 0x%d
5721         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
5722           (hc08_port): added "CONST (CODE)" for const_name
5723         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
5724           (aopForRemat, adjustArithmeticResult): disconnected direct relation
5725           between ptr_type and DCL_TYPE,
5726           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
5727           operand* and took AOP() inside function so sfr-ness can be checked,
5728           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
5729           new prototype,
5730           (genFunction, genEndFunction): optimized stack setup,
5731           (genMinus): optimized for literals with ending zeroes (in bytes),
5732           (genCast): fixed bug 0x%d
5733         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
5734           (mcs51_port): added "CONST (CODE)" for const_name
5735         * src/mcs51/peeph.def: made rule 226 more generic
5736         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
5737         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
5738         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
5739         * src/z80/main.c (z80_port): added NULL for const_name,
5740           (gbz80_port): added NULL for const_name
5741         * support/regression/tests/bug663539.c,
5742         * support/regression/tests/sfr16.c: new tests
5743
5744 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5745
5746         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
5747
5748 2005-06-24 Raphael Neider <rneider AT web.de>
5749
5750         * device/lib/pic16/libdev/pic18f[68][567]20.c:
5751           corrected typos...
5752         * device/include/pic16/signal.h: added USBIF
5753           and SIG_USB
5754
5755 2005-06-24 Raphael Neider <rneider AT web.de>
5756
5757         * device/lib/pic16/libdev/pic18f2455.c,
5758           device/include/pic16/pic18f2455.h: NEW
5759         * device/include/pic16/pic18fregs.h,
5760           device/lib/pic16/pics.all,
5761           src/pic16/device.c: added 18f2455
5762         * device/lib/pic16/libdev/pic18f[68][567]20.c,
5763           device/include/pic16/{pic18f[68][567].h,usart.h}:
5764           replaced MULTIPLE_USARTS define with more relaible
5765           compatibility sfrs (for USART access)
5766
5767 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
5768
5769         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
5770           and the output asm file line is printed on two lines.
5771
5772 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5773
5774         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
5775           BGT, BLE, BHI, and BLS instructions
5776         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
5777           genCmpEq): removed
5778         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
5779           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
5780           fixes bug #1216342
5781         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
5782
5783 2005-06-15 Raphael Neider <rneider AT web.de>
5784
5785         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
5786         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
5787         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
5788           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
5789           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
5790
5791 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5792
5793         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
5794           Marcel Telka in bug #1215704
5795
5796 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
5797
5798         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
5799           located in shared memory bank.
5800
5801 2005-05-31 Raphael Neider <rneider AT web.de>
5802
5803         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
5804           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
5805           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
5806
5807 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
5808
5809         * device/lib/_strncpy.c: fixed the fix
5810
5811 2005-05-26 Raphael Neider <rneider AT web.de>
5812
5813         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
5814           initializers with \0, bug #1208187
5815         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
5816           intializers with \0, bug #1208187
5817
5818 2005-05-26 Raphael Neider <rneider AT web.de>
5819
5820         * src/pic16/glue.c (pic16_printIvalChar): fixed string
5821           initializers with \0, bug #1208187
5822         * src/pic16/main.c (_process_pragma): added sanity checks
5823           for stack position and size, emit warnings when appropriate
5824
5825 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
5826
5827         * device/lib/_strncpy.c: fixed not filling with \0
5828
5829 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5830
5831         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
5832           createFunction),
5833         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
5834           compound_statement),
5835         * src/SDCCsymt.h,
5836         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
5837
5838 2005-05-24 Raphael Neider <rneider AT web.de>
5839
5840         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
5841
5842 2005-05-24 Raphael Neider <rneider AT web.de>
5843
5844         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
5845           TRISE definitions, closes bug #1162453
5846
5847 2005-05-22 Raphael Neider <rneider AT web.de>
5848
5849         * src/pic16/main.c (_process_pragma): check for missing
5850           arguments to pragmas code and udata
5851         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
5852           consistency fixes to match other headers (thanks to Jim Paris)
5853         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
5854
5855 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
5856
5857         * src/SDCCicode.c (isOperandEqual): fixed missing ;
5858
5859 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
5860
5861         * support/regression/tests/bug1198642.c: new test
5862         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
5863         * src/SDCCcse.c (findPrevIc): added comment, please have a look
5864         * support/scripts/resource.h,
5865         * support/scripts/resource.rc,
5866         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
5867         * support/scripts/sdcc.ico: added 32x32 icon
5868
5869 2005-05-18 Raphael Neider <rneider AT web.de>
5870
5871         * device/lib/pic16/libdev/pic18f*.c,
5872         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
5873           keywords to "__sfr" and "__at (X)"
5874         * device/include/pic16/pic18fregs.h: added pic18f4520
5875         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
5876           #1203088 (MPLAB compatibility)
5877
5878 2005-05-17 Raphael Neider <rneider AT web.de>
5879
5880         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
5881         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
5882         * device/lib/pic16/pics.all: added new devices
5883         * src/pic16/device.c: added support for pic18f4520
5884
5885 2005-05-16 Raphael Neider <rneider AT web.de>
5886         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
5887         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
5888         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
5889           convenience function for bit access
5890
5891 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5892
5893         * device/lib/printf_large.c: fixed bug 1193299
5894         * support/regression/tests/bug1057979.c: added test %3.3s
5895
5896 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5897
5898         * device/include/mcs51/8051.h,
5899         * device/include/mcs51/8052.h: made parseable with lint
5900         * device/include/mcs51/lint.h: added include file for (sp)lint
5901         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
5902         * doc/cdbfileformat.lyx,
5903         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
5904
5905 2005-05-14 Raphael Neider <rneider AT web.de>
5906
5907         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
5908         * device/lib/pic16/libc/stdlib/itoa.c (new)
5909         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
5910         * device/lib/pic16/libio/Makefile: exclude subdir according to
5911           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
5912         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
5913         * src/pic16/gen.c (genFunction): prevent annoying warning
5914         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
5915           nameclashes on BeOS
5916         * support/cpp2/cppmain.c (cpp_output_string): new
5917         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
5918           fixes bug 1116802
5919
5920 2005-05-13 Borut Razem <borut.razem AT siol.net>
5921
5922         * src/SDCCmain.c (linkEdit): fixed bug 1195202
5923
5924 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5925
5926         * .version: changed to version 2.5.1; back to bleeding edge development
5927
5928 2005-05-11 Borut Razem <borut.razem AT siol.net>
5929
5930         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
5931           generate PDF version 1.3 documents
5932
5933 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5934
5935         * .version: changed to version 2.5.0
5936
5937 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5938
5939         * doc/sdccman.lyx: updated weblinks, index and smaller updates
5940
5941 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5942
5943         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
5944         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
5945         well as many smaller updates.
5946         * .version: changed to version 2.5.0-pre1
5947
5948 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5949
5950         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
5951
5952 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5953
5954         * support/regression/tests/bug1185672.c: added
5955         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
5956           bug 1185672
5957         * src/mcs51/gen.c (genCall): added comments, made it look safer
5958         * src/mcs51/gen.c (genEndFunction): simplified
5959
5960 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
5961
5962         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
5963
5964 2005-04-14 Borut Razem <borut.razem AT siol.net>
5965
5966         * fixed bug 1045046 - SIGSEGV with really simple code?:
5967           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
5968           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
5969
5970 2005-04-14 Borut Razem <borut.razem AT siol.net>
5971
5972         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
5973           src/pic16/device.h: temporarily disabled experimental #inline pragma
5974           for 2.5.0 release
5975
5976 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
5977
5978         * device/include/z80/stdio.h,
5979         * device/include/z80/string.h: removed these highly incomplete files so
5980           SDCC can use the default ones in device/include/
5981
5982 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5983
5984         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
5985         gcc warning.
5986         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
5987         fix sdcpp warnings.
5988
5989 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
5990
5991         * device/include/malloc.h: removed redundant __reentrant prototypes
5992         * device/lib/_mullong.c: added working xstack variant in asm (C version
5993           doesn't pass regression tests)
5994         * device/lib/bpx.c: used __data and made bpx char for mcs51
5995         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
5996           (createFunction): fixed bug with xstackPtr
5997         * src/SDCCcse.c: corrected comments
5998         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
5999           (killDeadCode, eBBlockFromiCode): removed unused code
6000         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
6001           corrected comments
6002         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
6003           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
6004           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
6005           (genModOneByte): fixed warning in MSVC
6006         * src/mcs51/main.c (): added comments
6007         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
6008
6009 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
6010
6011         * src/SDCCmain.c (linkEdit): oops, changed one line too many
6012
6013 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
6014
6015         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
6016
6017 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
6018
6019         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
6020         characters arrays of larger size than the declared one.
6021
6022 2005-04-10 Borut Razem <borut.razem AT siol.net>
6023
6024         * src/pic/gen.c (genInline),
6025           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
6026           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
6027           (findNextInstruction), (findPrevInstruction),
6028           (findInstructionUsingLabel),
6029           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
6030         * src/pic/pcode.c (findLabel): added missing '\n'
6031         * src/src.dsp: added SDCCdwarf2.c to the project
6032
6033 2005-04-09 Borut Razem <borut.razem AT siol.net>
6034
6035         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
6036
6037 2005-04-08 Raphael Neider <rneider AT web.de>
6038
6039         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
6040           into the chain after a given one) and mergeDefmapSymbols (combine
6041           defmap entries for each symbol per pcode)
6042         * (createDefmap): have defmap entries merged in the end
6043         * (defmapReplaceSymRef): split defmap entries covering two accesses to
6044           a symbol before replacing one access type's symbol, merge symbols in
6045           the end (replacement symbol might already have an entry)
6046         * (assignValnums): keep reference to written WREG intact
6047
6048 2005-04-08 Raphael Neider <rneider AT web.de>
6049
6050         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
6051           Alpha)
6052
6053 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
6054
6055         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
6056         bytes
6057
6058 2005-04-07 Raphael Neider <rneider AT web.de>
6059
6060         * device/include/pic16/usart.h: added compatibility defines for
6061           devices with more than one USART
6062         * device/include/pic16/pic18f[68][567]20.h: activated above defines
6063
6064 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6065
6066         * device/lib/Makefile.in: updated for port specific include
6067
6068 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6069
6070         * support/regression/ports/mcs51/spec.mk: added mcs51 include
6071
6072 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6073
6074         * device/include/8051.h,
6075         * device/include/8052.h,
6076         * device/include/at89S8252.h,
6077         * device/include/at89c55.h,
6078         * device/include/at89x051.h,
6079         * device/include/at89x51.h,
6080         * device/include/at89x52.h,
6081         * device/include/mcs51reg.h,
6082         * device/include/reg51.h,
6083         * device/include/reg764.h,
6084         * device/include/regc515c.h,
6085         * device/include/sab80515.h: (re)moved these 12 files
6086         * device/include/mcs51/8051.h,
6087         * device/include/mcs51/8052.h,
6088         * device/include/mcs51/at89S8252.h,
6089         * device/include/mcs51/at89c55.h,
6090         * device/include/mcs51/at89x051.h,
6091         * device/include/mcs51/at89x51.h,
6092         * device/include/mcs51/at89x52.h,
6093         * device/include/mcs51/mcs51reg.h,
6094         * device/include/mcs51/reg51.h,
6095         * device/include/mcs51/reg764.h,
6096         * device/include/mcs51/regc515c.h,
6097         * device/include/mcs51/sab80515.h: and added them here
6098
6099 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6100
6101         * device/include/stdarg.h: changed SDCC specific keywords to double
6102           underlined form.
6103         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
6104           mcs51 and ds390.
6105         * device/include/hc08/mc68hc908gp32.h,
6106         * device/include/hc08/mc68hc908jb8.h,
6107         * device/include/hc08/mc68hc908jkjl.h,
6108         * device/include/hc08/mc68hc908qy.h: fixed comments
6109         * device/include/mcs51/README: updated
6110         * device/include/mcs51/c8051f120.h: added PINRSF
6111         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
6112         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
6113           amidst code. Also inline is not supported.
6114
6115 2005-04-06 Raphael Neider <rneider AT web.de>
6116
6117         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
6118         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
6119           callers stack/frame pointers
6120
6121 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
6122
6123         * device/include/pic16/usart.h: added, missing in previous commit,
6124         * device/include/pic16/adc.h: fixed typo,
6125         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
6126         commit,
6127         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
6128         <p18fxxx.inc>
6129         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
6130         uninitialized because a bug appears with gplink
6131         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
6132         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
6133         complains for unrecognised option
6134
6135 2005-04-05 Raphael Neider <rneider AT web.de>
6136
6137         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
6138           structs as well (using memcpy)
6139         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
6140           on ISRs (GOTO has no label)
6141         * src/pic16/device.h: added OF_OPTIMIZE_DF
6142         * src/pic16/main.c: added compiler switch --optimize-df to enable the
6143           new data flow analysis/optimization
6144         * src/pic16/pcode.c: added (prototypes for and implementation of)
6145           dataflow analysis functions, fixed pCodeInstructions' inCond and
6146           outCond values, made RCALL a branch instruction
6147         * (pic16_unlinkpCode): keep C line if possible
6148         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
6149           C line moved if possible
6150         * (pic16_getRegFrompCodeOp): NEW, improved version of...
6151         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
6152           to use new pic16_getRegFrompCodeOp (works for more SFRs)
6153         * (pic16_BuildFlow): fixed skip instructions with label (did not start
6154           new flow)
6155         * (pic16_getJumptabpCode): NEW, needed in...
6156         * (LinkFlow): fixed handling of jumptables, calls and conditional
6157           branches
6158         * (pic16_InsertCommentAfter): NEW
6159         * (pic16_pCodeReplace): made verbose and flow preserving
6160         * (AnalyzeFlow): added call to data flow analysis
6161         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
6162         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
6163         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
6164
6165 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6166
6167         * src/SDCCast.c (decorateType): fixed bug #1105626
6168
6169 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
6170
6171         * device/include/asm/pic16/features.h,
6172         * pic18f*.h headers,
6173         * device/include/pic16/adc.h,
6174         * device/include/pic16/delay.h,
6175         * device/include/pic16/i2c.h,
6176         * device/include/pic16/malloc.h,
6177         * device/include/pic16/stdio.h,
6178         * device/include/pic16/stdlib.h,
6179         * device/include/pic16/string.h,
6180         * device/lib/pic16/libc/stdio/printf_tiny.c,
6181         * device/lib/pic16/libc/stdio/printf_small.c,
6182         * device/lib/pic16/libc/stdio/strmgpsim.c,
6183         * device/lib/pic16/libc/stdio/strmmssp.c,
6184         * device/lib/pic16/libc/stdio/strmusart.c,
6185         * device/lib/pic16/libc/stdio/vfprintf.c,
6186         * device/lib/pic16/libc/stdlib/ltoa.c,
6187         * device/lib/pic16/libc/stdlib/putchar.c,
6188         * device/lib/pic16/libc/stdlib/x_ftoa.c,
6189         * device/lib/pic16/libc/stdlib/memchrpgm.c,
6190         * device/lib/pic16/libc/stdlib/memchrram.c,
6191         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
6192         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
6193         * device/lib/pic16/libio/adc/adcbusy.c,
6194         * device/lib/pic16/libio/adc/adcread.c,
6195         * device/lib/pic16/libio/adc/adcsetch.c,
6196         * device/lib/pic16/libio/usart/ubaud.c,
6197         * device/lib/pic16/libio/usart/ubusy.c,
6198         * device/lib/pic16/libio/usart/udrdy.c,
6199         * device/lib/pic16/libio/usart/uopen.c,
6200         * device/lib/pic16/libio/usart/uputc.c,
6201         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
6202         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
6203         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
6204         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
6205         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
6206         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
6207         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
6208         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
6209         specific keywords to double underlined form,
6210         * device/lib/pic16/libc/Makefile.rules,
6211         * device/lib/pic16/libsdcc/Makefile.rules,
6212         * device/lib/pic16/libm/Makefile,
6213         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
6214         to compile with C standard set in Makefile.common
6215         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
6216         rand.c and crc.c in compilation process,
6217         * device/lib/pic16/libsdcc/int/divuint.c,
6218         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
6219         `c' from signed to unsigned,
6220         * device/lib/pic16/startup/crt0.c,
6221         * device/lib/pic16/startup/crt0i.c,
6222         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
6223         keywords to double underlined form, bug fixes in _do_cinit function
6224         which prevented the correct initialization of the .idata segment,
6225         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
6226         core to enter a infinite loop
6227         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
6228
6229 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6230
6231         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
6232
6233 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6234
6235         * device/include/Makefile.in: add support for hc08 subdirectory
6236         * device/include/hc08/: new subdirectory
6237         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
6238         Lucas Loizaga, thanks!
6239         * device/include/hc08/mc68hc908qy.h,
6240         * device/include/hc08/mc68hc908gp32.h,
6241         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
6242         their own directory. Changed internal macro names to use the compiler
6243         reserved namespace. Changed SDCC specific keywords to double
6244         underlined form.
6245         * device/include/math.h,
6246         * device/include/malloc.h,
6247         * device/include/stdarg.h,
6248         * device/include/stdbool.h
6249         * device/include/string.h,
6250         * device/include/tinibios.h,
6251         * device/include/ds400rom.h,
6252         * device/include/8051.h,
6253         * device/include/8052.h,
6254         * device/include/80c51xa.h,
6255         * device/include/at89c55.h,
6256         * device/include/at89S8252.h,
6257         * device/include/at89x51.h,
6258         * device/include/at89x52.h,
6259         * device/include/ds80c390.h,
6260         * device/include/reg764.h,
6261         * device/include/regc515c.h,
6262         * device/include/sab80515.h,
6263         * device/include/mcs51/c8051f000.h,
6264         * device/include/mcs51/c8051f018.h,
6265         * device/include/mcs51/c8051f020.h,
6266         * device/include/mcs51/c8051f040.h,
6267         * device/include/mcs51/c8051f060.h,
6268         * device/include/mcs51/c8051f120.h,
6269         * device/include/mcs51/c8051f300.h,
6270         * device/include/mcs51/c8051f310.h,
6271         * device/include/mcs51/c8051f320.h,
6272         * device/include/mcs51/c8051f330.h,
6273         * device/include/mcs51/c8051f350.h,
6274         * device/include/z180.h: Changed SDCC specific keywords to double
6275         underlined form.
6276
6277 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
6278
6279         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
6280         18F4455,
6281         * (pic16_assignConfigWordValue): disable testing of configuration
6282         register value with config mask,
6283         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
6284         function with port->fun_prefix,
6285         * (genFunction): when generating a naked interrupt function never
6286         create an absolute segment placed in interrupt vector address, place
6287         the actual interrupt function at IVA instead, when an interrupt
6288         function is generated with unspecified interrupt then do not create
6289         the absolute section,
6290         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
6291         code for generating a call to generic pointer get/put function with
6292         a call to function pic16_callGenericPointer(),
6293         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
6294         the call to the generic pointer get/put functions with prefixing the
6295         function name with port->fun_prefix,
6296         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
6297         * src/pic16/main.c (_process_pragma): prefix function with
6298         port->fun_prefix,
6299         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
6300         calling assembler, old 18Fxxxx macro is deprecated,
6301         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
6302         PC_ASMDIR in while condition,
6303         * (findInstruction): add PC_ASMDIR in while condition,
6304         * (buildCallTree): prefix main with port->fun_prefix,
6305         * (pic16_pCode2str): fixed bug that didn't emit the memory access
6306         identifier for variable with banked access in instructions BTFSS,
6307         BTFSC, BCF, BSF, BTG
6308         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
6309         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
6310         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
6311         perform optimization when enviroment variable NO_REG_OPT is set,
6312         * (insideLRBlock): NEW, return 1 if register is inside an
6313         INF_LOCALREGS block,
6314         * (RemoveRegFromLRBlock): remove a register that is completely
6315         eliminated by register optimization, but it is still left in local
6316         register store/restore in/from stack block,
6317         * (Remove2pcodes): after removing register, check to see if it
6318         should be removed from local register store/restore in/from stack
6319         block,
6320         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
6321         DUMMY_READ_VOLATILE,
6322
6323         * device/include/pic16/adc.h: minor prototype modifications and
6324         update,
6325         * device/include/pic16/malloc.h: added GPL notice various
6326         modifications,
6327         * device/include/pic16/stdint.h: NEW, standard header for ints
6328         * device/include/pic16/delay.h: NEW, header for delay functions,
6329         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
6330         delay1mtcy,
6331         * device/include/pic16/signal.h: NEW, header providing helper macros
6332         for implementing signal handlers,
6333         * device/include/pic16/stdio.h: added prototypes for functions,
6334         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
6335         prototypes for stdin and stdout, added macro PUTCHAR to
6336         automatically implement putchar function prototype,
6337         * device/include/pic16/usart.h: modified and updated USART library,
6338         * device/lib/pic16/libio/adc/,
6339         * device/lib/pic16/libio/i2c: some modifications to improve library
6340         performance,
6341         * device/lib/pic16/libc/stdio/: modifications for the new printf*
6342         family of functions,
6343         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
6344         family of functions and other sources,
6345         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
6346         of the PIC18Fxx[28] devices,
6347         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
6348         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
6349         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
6350         _do_cinit function, because the previous failed when local variables
6351         where not placed in the same memory bank,
6352         * device/lib/pic16/libsdcc/char/: various modifications to improve
6353         library performance,
6354         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
6355         information on the new functions of the c library and more...
6356
6357 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6358
6359         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
6360
6361 2005-03-26 Raphael Neider <rneider AT web.de>
6362
6363         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
6364           if condition == CARRY)
6365         * (genCmp): adapted to new genSkipc semantics
6366         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
6367           on rIfx (genCmp was broken)
6368
6369 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6370
6371         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
6372         * src/z80/main.c (_keywords[]),
6373         * src/SDCCglobal.h (struct options),
6374         * src/SDCC.y,
6375         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
6376         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
6377         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
6378         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
6379         always available in leading double underscore form. The C99 support is
6380         mostly missing, but it's a start.
6381         * support/regression/tests/bug-227710.c: fixed nonconforming use of
6382         reserved identifier "__data".
6383
6384 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
6385
6386         * src/mcs51/peeph.def: fixed bug 1170013
6387
6388 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
6389
6390         * device/include/mcs51reg.h: fixed bug 842007
6391
6392 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6393
6394         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
6395         last time.
6396
6397 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6398
6399         * src/port.h (struct PORT),
6400         * src/avr/ralloc.c (avr_assignRegisters),
6401         * src/avr/main.c,
6402         * src/ds390/ralloc.c (ds390_assignRegisters),
6403         * src/ds390/main.c,
6404         * src/hc08/ralloc.c (hc08_assignRegisters),
6405         * src/hc08/main.c,
6406         * src/mcs51/ralloc.c (mcs51_assignRegisters),
6407         * src/mcs51/main.c,
6408         * src/pic/ralloc.c (pic14_assignRegisters),
6409         * src/pic/main.c,
6410         * src/pic16/ralloc.c (pic16_assignRegisters),
6411         * src/pic16/main.c,
6412         * src/xa51/ralloc.c (xa51_assignRegisters),
6413         * src/xa51/main.c,
6414         * src/z80/ralloc.c (z80_assignRegisters),
6415         * src/z80/ralloc.h,
6416         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
6417         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
6418         * src/SDCCcse.h,
6419         * src/SDCCdflow.c (computeDataFlow),
6420         * src/SDCCdflow.h,
6421         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
6422         * src/SDCCloop.h,
6423         * src/SDCCcflow.c (*),
6424         * src/SDCCcflow.h,
6425         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
6426         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
6427         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
6428         immedDom() returning wrong block; probably fixes bug #1160833)
6429
6430 2005-03-20 Borut Razem <borut.razem AT siol.net>
6431
6432         * support/scripts/inc2h.pl: WIN32 port
6433
6434 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
6435
6436         * device/lib/makefile.in: added abs.c and labs.c
6437
6438 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
6439
6440         * device/include/stdint.h: added
6441         * device/lib/abs.c: added
6442         * device/lib/labs.c: added
6443         * device/include/stdlib.h: added abs() and labs() prototypes
6444         * device/lib/libsdcc.lib: added abs and labs
6445         * device/include/float.h,
6446         * device/lib/_fsmul.c,
6447         * device/lib/printf_fast.c,
6448         * device/lib/printf_tiny.c: updated comments
6449
6450 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6451
6452         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
6453         bug #1164313
6454
6455 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6456
6457         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
6458         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
6459
6460 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
6461
6462         * device/lib/printf_large.c: removed inline assembly for portability and
6463           readability. Use printf_fast if speed or size are more important.
6464         * src/pic16/gen.c: removed conditions around use of DEBUGpc
6465         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
6466
6467 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
6468
6469         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
6470         prevent compiler warning
6471
6472 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6473
6474         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
6475         moved to level 0 and declared as static. Also they are explicit
6476         placed in access bank. This was necessery because some times they
6477         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
6478         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
6479         optimizations. Currently only compare to unsigned char is implemented,
6480         * src/pic16/gen.c: added fReturnIdx array,
6481         * (struct resolvedIfx) is moved to gen.h and made public,
6482         * (struct _G): added sregsAlloc and sregsAllocSet fields,
6483         * (aopForSym): added an optimization to directly store in stack of
6484         the operand of a SEND iCode,
6485         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
6486         but as registers instead (AOP_REG) using the fReturnIdx array,
6487         * (pic16_freeAsmop): remove the freed register from the
6488         _G.sregsAlloc field,
6489         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
6490         a compare of 'WREG',
6491         * (pic16_popGetTempRegCond): changed function prototype, now
6492         function takes also a bitVector argument v which holds the current
6493         set of registers that are allocated for stack access by aopForSym,
6494         registers allocated in aopForSym for accessing stack symbols are not
6495         any more part of the functions usedRegs field,
6496         * (genCall): some times aopOp is called for a stack variable to be
6497         send, aopForSym might perform the push, if this is true make sure
6498         that genCall doesn't push the variable twice by testing _G.resDirect,
6499         * (genFunction): changed testing for unspecified interrupt number
6500         from 256 to INTNO_UNSPEC,
6501         * modified selection scheme of frame pointer generation. Previously
6502         if function did use local registers a frame pointer was generated,
6503         now a frame pointer is generated only if function has arguments
6504         (that need PLUSW2 register access), or has stack arguments, or the
6505         compiler is not instructed to omit the frame pointer,
6506         * (genEndFunction): before restoring local registers that were saved
6507         in the function preamble, also restore the registers that *might*
6508         have been allocated for stack access,
6509         * (genRet): removed some old comments,
6510         * (genCmp, the active (RN's) version): added a call to the
6511         pic16_genCmp_special function to perform the compare with a more
6512         robust and optimized way,
6513         * (genInline): a feature has been added in inline code generation,
6514         which allows a wildcard variable substitution when writing inline
6515         assembly. Code is incomplete and experimental therefore undocumented,
6516         * (genCast): changed order of aopOp for result and right to allow
6517         aopForSym to directly load the result if possible,
6518         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
6519         perform an optimized compare on some selected special occasions,
6520         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
6521         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
6522         generate an IVT any more,
6523         * src/pic16/main.c (pic16_optionsTable): added command line option
6524         --optimize-cmp,
6525         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
6526         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
6527         macros,
6528         * src/pic16/NOTES: Raphael Neider added in list of active developers
6529         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
6530         jumptable_end to prevent bug #,
6531         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
6532         inCond and outCond fields,
6533         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
6534         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
6535         turn off register spilling,
6536         * (packRegsForOneUse): synced with other ports' versions although it
6537         is not used currently,
6538         * (pic16_packRegisters): added an optimization while reading
6539         structure bitfields, some registers may be saved (malloc code is
6540         decreased by 80 bytes)
6541
6542 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
6543
6544         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
6545         left is a bitfield, if yes, then don't optimize assignment. Perhaps
6546         this can be optimized more?
6547
6548 2005-03-10 Raphael Neider <rneider AT web.de>
6549
6550         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
6551           genNearPointerGet): (hopefully) fixed access to bitfields via
6552           pointers (p->bitN = x; and x = p->bitN; failed)
6553
6554 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
6555
6556         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
6557
6558 2005-03-09 Raphael Neider <rneider AT web.de>
6559
6560         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
6561
6562 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
6563
6564         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
6565         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
6566           (regTypeNum): set REG_BIT type if necessary
6567         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
6568         * support/regression/tests/critical.c: check bug 1144613
6569
6570 2005-03-02 Raphael Neider <rneider AT web.de>
6571
6572         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
6573
6574 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6575
6576         * src/avr/ralloc.c (serialRegAssign),
6577         * src/ds390/ralloc.c (serialRegAssign),
6578         * src/hc08/ralloc.c (serialRegAssign),
6579         * src/mcs51/ralloc.c (serialRegAssign),
6580         * src/pic/ralloc.c (serialRegAssign),
6581         * src/pic16/ralloc.c (serialRegAssign),
6582         * src/xa51/ralloc.c (serialRegAssign),
6583         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
6584
6585 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
6586
6587         * src/SDCCast.c (decorateType): fixed bug 1124787
6588
6589 2005-02-20 Hubert Sack <sack AT digiplan.de>
6590         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6591
6592         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
6593         patch #1121755
6594
6595 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6596
6597         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
6598         to keep the correct label reference count when adding/removing references
6599         to labels. A peephole file using this is appended to patch #1144962.
6600
6601 2005-02-14 Raphael Neider <rneider AT web.de>
6602
6603         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
6604         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
6605         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
6606           retrievals of result operand's value on assignment
6607
6608 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
6609
6610         * device/include/pic16/string.h: modified prototype for memccpy()
6611         to memccpy(void *, void *, char, size_t)
6612         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
6613         check whether to omit frame pointer or not,
6614         * (genInline): convert all occurences of "\n" to LF in inline
6615         assembler blocks, this helps formatting the inline text,
6616         * (pic16_loadFSR0): modified prototype,
6617         * (genNearPointerGet, genNearPointerSet): reorganization of code,
6618         removed some 8051 legacy code,
6619         * (genPackBits): enabled handling bitfields exceeding one byte in size,
6620         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
6621         before allocating temporary registers in functions,
6622
6623 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
6624
6625         * support/regression/tests/bitvars.c: corrected the "fix"
6626
6627 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
6628
6629         * support/regression/tests/bitvars.c,
6630         * support/regression/tests/bitwise.c,
6631         * support/regression/tests/rotate.c: "fixed" problems on Alpha
6632
6633 2005-02-10 Raphael Neider <rneider AT web.de>
6634
6635         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
6636           different size for Alpha
6637         * src/pic16/gen.c (genCmpEq) : improved compare with 0
6638
6639 2005-02-09 Raphael Neider <rneider AT web.de>
6640
6641         * src/SDCC.lex(doPragma) : save and restore warning options as well
6642           (also added new stack plus clone- and copyAndFreeSDCCERRG())
6643         * have #pragma less_pedantic set the errorlevel to WARNING
6644           (fixes #1117001)
6645         * (cloneOptimize) : fixed wrong malloc's size
6646         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
6647           facilitate correct handling of #pragma (save|restore)
6648
6649 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
6650
6651         * src/mcs51/gen.c: removed non-standard C nameless struct/union
6652
6653 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
6654
6655         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
6656
6657 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
6658
6659         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
6660
6661 2005-02-02 Raphael Neider <rneider AT web.de>
6662
6663         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
6664         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
6665         * (pic16_storeForReturn): fixed to allow returning function pointers
6666         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
6667         * device/include/pic16/{stddef.h,stdbool.h}: added
6668
6669 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
6670
6671         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
6672
6673 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
6674
6675         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
6676         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
6677          appeared to be required
6678
6679 2005-01-31 Borut Razem <borut.razem AT siol.net>
6680
6681         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
6682           include/mcs51 and include/z80 directories to the package
6683
6684 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6685
6686         * src/hc08/gen.c (genFunction): fixed bug #1112752
6687
6688 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6689
6690         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
6691
6692 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6693
6694         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
6695
6696 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
6697
6698         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
6699
6700 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
6701
6702         * device/include/c8051fxxx.h: removed these 6 files
6703         * device/include/mcs51/c8051fxxx.h: added these 11 new files
6704
6705 2005-01-26 Raphael Neider <rneider AT web.de>
6706
6707         * src/pic16/gen.c (genAssign): fixed assignment from longs
6708           in codespace (were cut to three bytes)
6709         * (genDummyRead): implemented (except for CODESPACE...),
6710           fixed bug #1108575
6711         * src/pic16/glue.c (emitStatistics): beautified
6712         * device/lib/pic16/libm/Makefile: added include path
6713
6714 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6715
6716         * src/z80/gen.c (aopPut): fixed bug #1103902
6717
6718 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6719
6720         * device/lib/expf.c: fixed bug #1095792
6721
6722 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
6723
6724         * device/lib/pic16/libm: added Math library sources
6725
6726 2005-01-24 Raphael Neider <rneider AT web.de>
6727
6728         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
6729           to enable upcast to pCodeOpReg2 (there is no type tag to
6730           differenciate the two and pic16_popGet2p cast into PCOR2)
6731         * src/pic16/main.c (_process_pragma): fixed another malloc bug
6732           (sizeof(sectNames) changed to sizeof(sectName))
6733           Both patches fix segfaults under MinGW.
6734
6735 2005-01-23 Raphael Neider <rneider AT web.de>
6736
6737         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
6738           Safe_[mc]?alloc()'ed variables
6739         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
6740           of (byte sized) temporaries (assign them to WREG for now)
6741         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
6742           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
6743           this might fix SIGSEGVs on MinGW...
6744         * src/SDCCopt.c (killDeadCode): restored original behaviour
6745           (volatile operands might get thrown away though)
6746
6747 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
6748
6749         * src/pic16/gen.c: fixed bug #1106975,
6750         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
6751         pointer update, INTCON is saved, global interrupts are disabled and
6752         restored after updateing TOS.
6753         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
6754         * added function attribute 'shadowregs' to take advantage of shadow
6755         registers,
6756         * added function attribute 'wparam' as an alternative to the wparam
6757         pragma,
6758         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
6759         user declares a non-ISR function as 'shadowregs',
6760         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
6761
6762 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
6763
6764         * .version: bumped version number to 2.4.8
6765         * device/lib/pic16/pics.all: list of PIC18F devices supported by
6766         pic16 port,
6767         * device/lib/pic16/libio/i2c/: I2C module support library,
6768         * device/include/pic16/i2c.h: I2C support library header,
6769         * device/lib/pic16/libc/stdio/: standard IO support sources,
6770         * (printf_small.c): printf_small() source, supports float print,
6771         * (printf_tiny.c): printf_tiny() source, does not support floats,
6772         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
6773         enable global optimizations for entire library source, other
6774         Makefiles in the source tree are also modified to reflect this,
6775         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
6776         function,
6777         * doc/sdccman.lyx: updated to reflect new changes,
6778         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
6779         sym->onStack if-case,
6780         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
6781         sbit, idata, _idata, xdata, _xdata,
6782         * added pragma library, to link an external library, (see doc),
6783         * removed command line options, --pomit-config-words, --pomit-ivt,
6784         --pleave-reset-vector,
6785         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
6786         when calling assembler to reflect memory model used, also define
6787         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
6788         reflect stack model used,
6789         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
6790         on stack return NULL,
6791
6792 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
6793
6794         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
6795           of the operands is volatile. Fixes #1020220
6796
6797 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
6798
6799         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
6800         * (OptimizeRegUsage): make sure that there is really no other flow where
6801           the first pCode is used
6802
6803 2005-01-22 Raphael Neider <rneider AT web.de>
6804
6805         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
6806           to fix #1106967 (pCode->seq are not set up correctly)
6807
6808 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6809
6810         * src/SDCCglue.c (glue): make sure code area is declared before the
6811         static initialization area.
6812
6813 2005-01-21 Raphael Neider <rneider AT web.de>
6814
6815         * device/lib/Makefile.in: fixed test for pic16 install dir
6816         * device/lib/pic16/*/Makefile*: modified compile flags to enable
6817           optimizations
6818         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
6819           added --optimize-goto compiler switch and pragma wparam documentation
6820         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
6821         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
6822           and PRODH closing bug #1071770 (peephole optimizer)
6823
6824 2005-01-19 Raphael Neider <rneider AT web.de>
6825
6826         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
6827           cmdLine buffers (used when calling sdcpp...) are large enough
6828           (MAX_PATH=256 truncates arguments leading to system halts when
6829           used in MinGW...)
6830         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
6831         * (genUminus): rewritten to for efficiency
6832         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
6833           used uninitialized in some cases)
6834         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
6835           copy the third byte from the int -- now assumes 0x80 (data memory)
6836         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
6837           operands (genAddLit expects the iCode's operands to swapped as
6838           well), fixed leftover bytes (crashed for short left operands)
6839         * (pic16_genMinusDec): performance improvements, removed false
6840           PIC14 emitSKPNCs
6841         * (pic16_genMinus): fixed to cope with differently sized operands
6842         * src/pic16/glue.c (pic16_glue): added new banksel optimization
6843           for --obanksel > 1
6844         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
6845         * src/pic16/graph.[ch]: implementation of directed graphs, used by
6846           new banksel optimization
6847         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
6848           analysis for temporary registers (segfaults...)
6849         * src/pic16/peeph.def: added rule
6850
6851 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
6852
6853         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
6854         which converts a float number to its ASCII representation
6855         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
6856         functions to convert the fractional and integer part of a float to ASCII,
6857         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
6858         realloc.c): added _MALLOC_SPEC to explicit place variables in data
6859         ram
6860         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
6861         _STATMEM macros,
6862         * device/include/pic16/adc.h: added GPL info,
6863         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
6864         a pCodeOp as tested operand,
6865         * (genNearPointerGet): optimized bit testing, does not use
6866         intermediate register for bit value, test directly instead with
6867         BTFSS, BTFSC, works only for single bits,
6868         * (genpic16Code): dump the name of the iCode in the asm,
6869         * src/pic16/ralloc.c (decodeOp): removed static declaration and
6870         renamed to pic16_decodeOp,
6871         * (serialRegAssign): do not allocate a temporary register for iCode
6872         sequences that test a single bit for 1/0
6873
6874 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
6875
6876         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
6877         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
6878         access stack and frame pointers. They are initially assigned to
6879         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
6880         accessing SFRs. Updated all occurences of modification of stack or
6881         frame pointer in gen.c and pcode.c,
6882         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
6883         assigning of a literal value to pointers,
6884         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
6885         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
6886         selected
6887
6888 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
6889
6890         * doc/sdccman.lyx: update documentation about stack pragma, added
6891         some info for stack memory models
6892
6893 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6894
6895         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
6896
6897 2005-01-08 Raphael Neider <rneider AT web.de>
6898
6899         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
6900           udata sections to fix bug #1097823
6901
6902 2005-01-05 Raphael Neider <rneider AT web.de>
6903
6904         * src/pic16/gen.c (genGenericShift): added handling of differently
6905           sized left operand and result
6906
6907 2005-01-04 Raphael Neider <rneider AT web.de>
6908
6909         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
6910         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
6911           to hold the condition bit)
6912         * added new version of genCmp (old code available via #define)
6913         * added new version of genShiftLeft/genShiftRight in a generic
6914           way, now supports shifting by negative values
6915         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
6916           shiftCount (expected by genGenericShift)
6917         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
6918         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
6919           dump
6920         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
6921           is an invalid literal too...)
6922
6923 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
6924
6925         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
6926         from Raphael Neider,
6927         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
6928         for 8-bit literals. This fixes some literal operands which are sign
6929         extended to 16-bits ints when instruction needs only 8-bits.
6930
6931 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
6932
6933         * device/lib/logf.c: added mcs51 assembly version
6934         * device/lib/expf.c: added mcs51 assembly version
6935         * device/lib/_logexpf.c: new shared asm code for expf and logf
6936         * device/include/math.h: add defines for assembly math library
6937         * device/lib/Makefile.in: build new _logexpf.c
6938         * device/lib/libfloat.lib: use new _logexpf.c
6939
6940 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
6941
6942         * src/pic/device.c
6943         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
6944           device types which have less than 0x7f registers.
6945
6946 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
6947
6948         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
6949
6950 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
6951
6952         * device/lib/printf_fast.c: only build on supported arch.
6953         * device/lib/printf_tiny.c: only build on supported arch.
6954         * device/lib/printf_fast_f.c: only build if asm float lib
6955         * device/lib/_fsget1arg.c: only build if asm float lib
6956         * device/lib/_fsget2args.c: only build if asm float lib
6957         * device/lib/_fsnormalize.c: only build if asm float lib
6958         * device/lib/_fsreturnval.c: only build if asm float lib
6959         * device/lib/_fsrshift.c: only build if asm float lib
6960         * device/lib/_fsswapargs.c: only build if asm float lib
6961         * device/include/stdio.h: don't provide print_fast,
6962           print_fast_f, print_tiny prototypes if --xstack used
6963
6964 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
6965
6966         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
6967         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
6968           to the SOURCES
6969
6970 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
6971
6972         * device/lib/printf_fast_f.c: same as printf_fast, but
6973           with floating point enabled
6974         * device/lib/printf_fast.c: minor tweaks
6975         * device/include/stdio.h: add printf_fast_f
6976
6977 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
6978
6979         * src/SDCCmain.c: make --float-reent default for mcs51
6980         * device/lib/_fsadd.c: added mcs51 assembly version
6981         * device/lib/_fssub.c: added mcs51 assembly version
6982         * device/lib/_fsmul.c: added mcs51 assembly version
6983         * device/lib/_fsdiv.c: added mcs51 assembly version
6984         * device/lib/_fseq.c: added mcs51 assembly version
6985         * device/lib/_fsneq.c: added mcs51 assembly version
6986         * device/lib/_fsgt.c: added mcs51 assembly version
6987         * device/lib/_fslt.c: added mcs51 assembly version
6988         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
6989         * device/lib/Makefile.in: add _fscmp to build
6990         * device/lib/libfloat.lib: add _fscmp to build
6991
6992 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
6993
6994         * device/lib/_fs2slong.c: added mcs51 assembly version
6995         * device/lib/_fs2sint.c: added mcs51 assembly version
6996         * device/lib/_fs2schar.c: added mcs51 assembly version
6997         * device/lib/_fs2ulong.c: added mcs51 assembly version
6998         * device/lib/_fs2uint.c: added mcs51 assembly version
6999         * device/lib/_fs2uchar.c: added mcs51 assembly version
7000         * device/lib/_slong2fs.c: added mcs51 assembly version
7001         * device/lib/_sint2fs.c: added mcs51 assembly version
7002         * device/lib/_schar2fs.c: added mcs51 assembly version
7003         * device/lib/_ulong2fs.c: added mcs51 assembly version
7004         * device/lib/_uint2fs.c: added mcs51 assembly version
7005         * device/lib/_uchar2fs.c: added mcs51 assembly version
7006         * device/include/float.h: added #define to select asm vs c
7007
7008 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
7009
7010         * device/lib/printf_fast.c: improvements to float output
7011         * device/include/float.h: add defines for assembly float library
7012         * device/lib/_fsget1arg.c: receive 1 float arg
7013         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
7014         * device/lib/_fsnormalize.c: normalize a float
7015         * device/lib/_fsreturnval.c: return float, various helper routines
7016         * device/lib/_fsrshift.c: right shift a float's mantissa
7017         * device/lib/_fsswapargs.c: swap 2 floats
7018         * device/lib/Makefile.in: build these 6 new files for mcs51
7019         * device/lib/libfloat.lib: add these 6 files to the library
7020
7021 2004-12-26 Borut Razem <borut.razem AT siol.net>
7022
7023         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
7024           built by gcc 3.4.2
7025
7026 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
7027
7028         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
7029           and fully reentrant and register bank neutral.
7030         * device/lib/printf_fast.c: added float (not enabled by default),
7031           added compact/slower integer (also not enabled by default),
7032           improved size/speed of fast integer code, other minor changes
7033         * device/include/stdio.h, device/lib/Makefile.in,
7034           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
7035
7036 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
7037
7038         * src/pic16/pcode.c: declaring variables other than at the start of a
7039           block is not supported in C by VC6.
7040
7041 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
7042
7043         * applied a previous patch from Raphael Neider that wasn't included
7044         in the previous commits, which fixes infinite loops within jumptable
7045         improvements,
7046         * made some fixes that previous patches introduced
7047
7048 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
7049
7050         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
7051         that fixes an issue with AOP_PCODE asmop's offset,
7052         * (pic16_popCopyReg): update instance field too,
7053         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
7054         function of pic port,
7055         * (genCmp, genAnd, genAssign),
7056         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
7057
7058 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
7059
7060         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
7061         variables initial values to idata section,
7062         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
7063         variables in some functions. This utilizes parmBytes field of iCode
7064         structure to hold the offset of the variable in stack. (might be
7065         able to use the stack field too?)
7066         * applied patch from Raphael Neider # ### , # ###
7067         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
7068         variable initial values in idata section,
7069         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
7070         for static variables with initial value
7071         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
7072         applied fix in while loop from Raphael Neider.
7073
7074 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
7075
7076         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
7077         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
7078         * src/ds390/ralloc.c (serialRegAssign): spill bits
7079         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
7080         * support/Util/SDCCerr.c,
7081         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
7082         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
7083         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
7084
7085 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
7086
7087         * device/include/sdcc-lib.h: inserted LGPL, added includes
7088           asm/ds390/features.h and asm/mcs51/features.h
7089         * device/include/asm/default/features.h,
7090         * device/include/asm/gbz80/features.h,
7091         * device/include/asm/z80/features.h: added empty _AUTOMEM
7092           and _STATMEM
7093         * device/include/asm/ds390/features.h,
7094         * device/include/asm/mcs51/features.h: added files with defines for
7095           _AUTOMEM and _STATMEM indicating automatic and static storage class
7096         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
7097         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
7098         * src/SDCCicode.c (geniCodeCast),
7099         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
7100         * src/SDCCloop.c (loopInduction): removed unused variable lr
7101         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
7102           to convertToFcall to include char modulo (RFE 1065037), added check
7103           if left operand is unsigned and use abs of literal value
7104         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
7105           as it doesn't work after conversion from peephole.def to peephole.rul
7106         * src/mcs51/gen.c (toBoolean): added check for size,
7107           (genModOneByte): optimized code for signed char modulo a literal
7108           power of 2 (thanks to Hubert Sack),
7109           (genRRC): removed unnecessary "clr c",
7110           (genRLC): replaced "add a,acc" with cheaper "rlc a"
7111         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
7112           jump optimization,
7113           swapped rules 256.c and 256.d,
7114           extended 256.d by using new multiple checks (thanks Erik),
7115           added rules 256.e and 256.f,
7116           updated rule 261.a and 261.b to new generated code
7117         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
7118
7119 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7120
7121         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
7122           induction related bugs, including first part of bug #1074377
7123
7124 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
7125
7126         * applied patch from bug-report #1076292,
7127         * applied patches for genAnd and Goto-optimizations for Raphael
7128         Neider,
7129         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
7130         dump a less iCode information,
7131         * src/pic16/device.h (pic16_options_t): added field debgen,
7132         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
7133         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
7134         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
7135         puclic,
7136         * (various functions): added macros FENTRY and FENTRY2 to functions,
7137         to emit function prologue,
7138         * (various functions): fixed indentation,
7139         * (genNearPointerGet): fixed loading of FSR0,
7140         * (genPackBits): applied patch from Raphael Neider to fix updating
7141         of FSR0 and touching only the modified bits,
7142         * src/pic16/genarith.c (various functions): added macros FENTRY to
7143         emit function prologue in comments,
7144         * src/pic16/pcode.h: added functions debugf2, debugf3,
7145         * src/pic16/ralloc.c: partial fix for packForPush caused
7146         segmentation fault,
7147
7148 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7149
7150         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
7151           <stsp AT users.sourceforge.net> with reversed byte order
7152         * support/regression/tests/rotate.c: added (ds390 skips some tests)
7153
7154 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7155
7156         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
7157           bug #1074377
7158         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
7159         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
7160
7161 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
7162
7163         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
7164
7165 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7166
7167         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
7168           conditions,
7169           (setFromConditionArgs): friendly operand parser for peephole rules,
7170           (operandBaseName, operandsNotRelated): new peephole condition
7171           "operandsNotRelated" -- similar to "operandsNotSame", but takes
7172           architecture specific register naming into account, handles n-way
7173           comparisons, and supports quoted literals
7174         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
7175
7176 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7177
7178         * src/mcs51/peeph.def: fixed bug #1076940
7179
7180 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
7181
7182         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
7183
7184 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7185
7186         Adding support for replacing ljmps with sjmps in jumptables
7187         generated for switch statements. For now you need to set the
7188         environment variable SDCC_SJMP_JUMPTABLE to enable this.
7189         Now 4 algorithms for mcs51 jumptable generation are used:
7190         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
7191         addresses loaded pc-relative for up to 112 cases and stack-pushing
7192         target addresses loaded with offset from dptr for up to 256 cases.
7193
7194         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
7195         * src/mcs51/main.c: adapted constants for switch table generation
7196         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
7197
7198 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
7199
7200         * device/lib/printf_large.c (_print_format): fixed bug 1073386
7201         * support/regression/tests/bug1057979.c: added test for bug 1073386
7202
7203 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
7204
7205         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
7206         compilers
7207
7208 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
7209
7210         * src/pic16/device.h,
7211         * src/pic16/genarith.c,
7212         * src/pic16/glue.c,
7213         * src/pic16/main.c,
7214         * src/pic16/pcode.c: applied patches #1068154 and #1070213
7215
7216 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
7217
7218         Large cummulative patch for pic16 port.
7219         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
7220         to call when a stack overflow occurs,
7221         * (malloc.h): added CVS Id tag,
7222         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
7223         variable,
7224         * added libc directory. The current version of LibC contains string
7225         functions, ctype functions and macros and some functions of the
7226         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
7227         be extensively tested in the future. Standard disclaimer here.
7228         Library is not automatically build yet. But one can build it by
7229         invoking 'make' inside the libc directory.
7230         * added ADC library under libio. Preliminary version yet.
7231
7232         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
7233         * src/pic16/gen.c (aopForRemat): asmop size is filled by
7234         aopForRemat() now and not by pic16_aopOp(),
7235         * (pic16_popGetTempReg): removed warning messgae when allocating
7236         temporary registers, its a buggy feature and will be removed,
7237         * (pic16_popGet): set register instance field in AOP_CRY,
7238         * (pic16_outBitC): fixed for results in size greater than 1,
7239         * (genUminusFloat): fixed for pic16, ported code from mcs51,
7240         * (pic16_storeForReturn): optimized return of 0,
7241         * (genCmp): experimental code for new genCmp which uses PIC18's
7242         special compare&skip instructions. Initial tests fail some times
7243         with variables grater than 1 byte in size, so new code is disabled,
7244         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
7245         a single bit,
7246         * (genCast): began a fix to optimize the casting of a bit to another
7247         bit, now assigning a bitfield to another bitfield will fail, sorry,
7248         * src/pic16/main.c: disabled the use of lr-support feature,
7249         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
7250         * added some function prototypes, added function _debugf prototype,
7251         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
7252         bits with offset (case PO_GPR_BIT),
7253         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
7254         command line,
7255         * (isBankInstruction): modified to return 0 for no banking instruction,
7256         and 1 for banking instruction,
7257         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
7258         caused stop processing pCodes after a inline assembly block,
7259         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
7260         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
7261         registers when it shouldn't,
7262         * src/pic16/ralloc.c (allocReg): add preliminary support for
7263         supporting a limited set of temporary registers,
7264
7265 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7266
7267         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
7268           genDataPointerSet): ensure assignments always copy in MSB to LSB
7269           order,
7270           (loadRegFromAop): recognize CLRH optimization,
7271           (genFunction): optimize RECEIVE iCodes in reentrant functions
7272
7273 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7274
7275         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
7276           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
7277           selected.
7278         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
7279         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
7280           contiguous with data
7281
7282 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7283
7284         * device/lib/_gptrget.c (_gptrget),
7285         * device/lib/_gptrgetc.c (_gptrgetc),
7286         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
7287           instead of sjmp to ret
7288         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
7289           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
7290
7291 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
7292
7293         * .version: bumped version to 2.4.7
7294         * device/lib/_gptrget.c (_gptrget): is now _naked
7295         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
7296         * device/lib/_gptrput.c (_gptrput): is now _naked
7297         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
7298           (createFunction): fixed xstack
7299         * src/SDCCglue.c (emitMaps): set allocation required for bit area
7300         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
7301           or bit either,
7302           (geniCodeCritical): store original interrupt state in an iTemp bit
7303           var unless stack-auto
7304         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
7305         * src/SDCCmain.c (setIncludePath): added include/target to search path
7306         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
7307         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
7308           prototype,
7309           (processFuncArgs): put bit vars in bit area
7310         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
7311           unsaveRBank): fixed xstack,
7312           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
7313           (genFunction, genEndFunction): fixed xstack,
7314           (genAssign): optimization don't walk backwards through mem
7315         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
7316         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
7317         * support/regression/Makefile: also make library (for stack-auto) when
7318           making "all" and added "test-mcs51-xstack-auto"
7319         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
7320         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
7321         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
7322         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
7323         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
7324           make-library by MAKE_LIBRARY
7325         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
7326           regression tests for xstack
7327         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
7328         * support/regression/tests/critical.c: test for critical on mcs51
7329
7330 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7331
7332         * support/regression/ports/ucz80/spec.mk: use include and lib files from
7333           built version of sdcc instead of installed version
7334
7335 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
7336
7337         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
7338         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
7339           vprintf.c now
7340         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
7341         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
7342           WARNING: remove device/lib/build/z80/printf.o by hand when
7343           updating from previous build!
7344         * device/lib/z80/printf.c: updated comment
7345         * support/regression/tests/bug1057979.c: test all ports now
7346         * support/regression/tests/bug1065458.c: file added
7347
7348 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7349
7350         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
7351           *_start and *_end symbols for static functions
7352
7353 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
7354
7355         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
7356           and search crt0.o in all library paths,
7357           (setIncludePath): proper handling of --nostdinc,
7358           (setLibPath): proper handling of --nostdlib
7359         * support/regression/Makefile,
7360         * support/regression/ports/ds390/spec.mk,
7361         * support/regression/ports/gbz80/spec.mk,
7362         * support/regression/ports/hc08/spec.mk,
7363         * support/regression/ports/mcs51/spec.mk,
7364         * support/regression/ports/mcs51-large/spec.mk,
7365         * support/regression/ports/mcs51-stack-auto/spec.mk,
7366         * support/regression/ports/z80/spec.mk: use include and lib files from
7367           built version of sdcc instead of installed version
7368         * doc/sdccman.lyx: fixed typo in --nostdinc
7369
7370 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
7371
7372         * src/pic/pcode.c,
7373         * src/pic/device.c,
7374         * src/pic/ralloc.c,
7375         * src/pic/gen.c : added support to generate code for struct bit fields.
7376
7377 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
7378
7379         * as/xa51/xa_version.h,
7380         * device/include/errno.h,
7381         * device/include/regc515c.h,
7382         * device/lib/_itoa.c,
7383         * device/lib/_ltoa.c,
7384         * device/lib/ser_ir_cts_rts.c,
7385         * sim/ucsim/xa.src/glob.cc,
7386         * sim/ucsim/xa.src/inst_gen.cc,
7387         * sim/ucsim/xa.src/xa_bit.cc,
7388         * sim/ucsim/xa.src/xa_sfr.cc,
7389         * sim/ucsim/z80.src/inst_dd.cc,
7390         * sim/ucsim/z80.src/inst_fdcb.cc,
7391         * support/scripts/keil2sdcc.pl,
7392         * src/pic16/pic16.dsp,
7393         * src/pic16/pic16a.dsp: corrected cvs line endings
7394         * device/lib/printf_large.c: fixed bug 1057979
7395         * src/pic16/gen.c: fixed non-C standard code
7396         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
7397         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
7398         * support/regression/ports/mcs51/support.c: reload T1 asap
7399         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
7400           pdata use and clear idata startup behaviour
7401         * support/regression/tests/bug1057979.c: added
7402
7403 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
7404
7405         * device/examples/ds390/ow390/ad26.h,
7406         * device/examples/ds390/ow390/cnt1d.h,
7407         * device/examples/ds390/ow390/crcutil.c,
7408         * device/examples/ds390/ow390/ownet.h,
7409         * device/examples/ds390/ow390/owsesu.c,
7410         * device/examples/ds390/ow390/swt12.h,
7411         * device/examples/ds390/ow390/swtoper.c,
7412         * device/examples/ds390/ow390/temp10.h,
7413         * device/examples/ds390/ow390/thermodl.c,
7414         * device/examples/ds390/tinitalk/tinitalk.dsp,
7415         * device/examples/ds390/tinitalk/tinitalk.dsw,
7416         * device/examples/mcs51/clock/hw.h,
7417         * device/examples/mcs51/simple2/go.bat,
7418         * device/examples/serialcomm/windows/serial.h,
7419         * device/examples/xa51/dummy.c,
7420         * device/examples/xa51/hello.c,
7421         * device/include/80c51xa.h,
7422         * device/include/at89x051.h: corrected cvs line endings
7423
7424 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
7425
7426         * src/pic16/main.c (options): added command line --gstack, to trace
7427         stack over/under flows,
7428         * added pragma 'wparam' to allow passing first byte of function
7429         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
7430         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
7431         call to __gstack_test function and sets up the symbol as extern,
7432         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
7433         * popaop): added call to pic16_testStackOverflow,
7434         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
7435         wparamList list,
7436         * (genCall, genPcall): now all parameters are passed via stack
7437         except in functions that are pass to wparam pragma in which WREG is
7438         used too,
7439         * (genPcall): REENTRANT flag is checked to see if variable prototype
7440         contains reentrant keyword, don't call a non-reentrant function, via
7441         a reentrant function pointer or vice versa, functions are never
7442         passed via WREG,
7443         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
7444         D.Winkler,
7445         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
7446         SIGSEGV when accessing a NULL register stucture,
7447         * (pic16_printGPointerType): modified to handle UPPER modifier for
7448         function initializers, changed prototype of function to simpler one,
7449         * (pic16_printIvalFuncPtr): check to see if function is already
7450         added in externs list,
7451         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
7452         optimized a move from W to SFR with a move to the same register
7453         later after a CALL,
7454         * device/lib/pic16/debug: NEW directory, contains debug features
7455         which are enabled when linking with libdebug.lib, currently command
7456         line option --gstack enables stack pointer tracing for over/under
7457         flow, corresponding sources are in debug/gstack
7458
7459 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
7460
7461         * doc/sdccman.lyx: updated SDCC version,
7462         * (PIC16 port): update list of command line options,
7463         * src/pic16/device.h (structure pic16_options_t): added field gstack
7464         to enable stack overflow tracing on push/pops,
7465         * src/pic16/device.c (statistics structure): added statistics
7466         structure,
7467         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
7468         pic16_dump_int_registers): increase statistics counters for each
7469         * variable which is encountered
7470         * (pic16_dump_usection): emit each .udata variable to its own udata
7471         section,
7472         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
7473         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
7474         parameters via stack, otherwise use old scheme,
7475         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
7476         assembler output file,
7477         * src/pic16/main.c: added command line options --gstack to enable
7478         push/pop tracing for stack overflow,
7479         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
7480         instructions): added size of each instruction,
7481         * (pic16_countInstruction): estimate size of instructions in
7482         the_pFile list, inline assembly blocks are not counted,
7483         * (pic16_FixRegisterBanking): trace previous register usage, when
7484         banksel optimizations is greater than 0, don't emit a redudant
7485         banksel directive,
7486
7487 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
7488
7489         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
7490         * src/pic16/ralloc.c : applied same fix for pic16.
7491         * src/pic/gen.c : tidied it up a little.
7492
7493 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7494
7495         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
7496         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
7497
7498 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7499
7500         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
7501
7502 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7503
7504         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
7505         non-reentrant function __modsint in the interrupt function (thus
7506         corrupting math operations during serial I/O)
7507         * device/lib/ser_ir.c: as above, changed buffersize
7508         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
7509         256.c,d for zeroing
7510         * doc/Makefile: added option -t for rsync
7511
7512 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7513
7514         * src/SDCCast.h (struct ast),
7515         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
7516
7517 2004-10-20 Borut Razem <borut.razem AT siol.net>
7518
7519         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
7520         package
7521
7522 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
7523
7524         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
7525         makefile targets,
7526         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
7527         support functions to replace long sequences of MOVFF's from access
7528         bank registers to stack and vice versa,
7529         * src/pic16/device.h: added new field opt_flags, where optimization
7530         flags can be set to enable certain features,
7531         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
7532         * pBlock, (genFunction, genEndFunction): surroung loop for
7533         saving/loading used registers in stack with PC_INFO pCodes,
7534         INF_LREGS. Code in between can then be optimized by pCode optimizer
7535         to support function calls,
7536         * (genDataPointerSet): fixed bug which loaded float fields in
7537         structures with corrupt data,
7538         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
7539         in a standard way debug info on stderr. Feature used for developing
7540         and debugging only,
7541         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
7542         obsolete chunks of code,
7543         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
7544         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
7545         * pic16/src/pcode.c (pic16_newpCodeInfo,
7546         * (pic16_newpCodeOpLocalRegs),
7547         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
7548         feature,
7549         * (pic16_pCodeConstString): printing of the initial value of a
7550         symbol as a comment is inhibited since parsing was already done by
7551         copyStr and output is corrupt,
7552         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
7553
7554 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7555
7556         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
7557
7558 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
7559
7560         * as/mcs51/lkarea.c: removed old K&R style,
7561           (lnksect): changed check on boundary error,
7562           (lnksect2): changed check on boundary error,
7563           (lnksect2): extend XSTK to end of page if size = 1
7564         * as/mcs51/lkmain.c: removed old K&R style,
7565           (Areas51): create l_IRAM symbol
7566         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
7567         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
7568           model-mcs51-stack-auto, added model-mcs51-xstack-auto
7569         * device/lib/_mullong.c: added version to be compiled with xstack
7570         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
7571         * device/lib/mcs51/crtxclear.asm: clear pdata as well
7572         * device/lib/mcs51/crtxstack.asm: fixed comment
7573         * src/SDCCglue.c: maxInterrupts defaults to 0,
7574           (emitMaps): added pdata,
7575           (createInterruptVect): (re)moved default,
7576           (glue): added pdata,
7577           (glue): moved __start__xstack to XSTK with default size 1
7578         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
7579           and options.float_rent when options.stackAuto is set,
7580           (linkEdit): only write XDATA_NAME if provided on command line
7581         * src/SDCCmem.h,
7582         * src/SDCCmem.c: added pdata
7583         * src/port.h: added pdata_name to PORT
7584         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
7585           (saveRegisters, unsaveRegisters): removed usage of B,
7586           (genMinus): fixed accumulator clash,
7587           (genJumpTab): added comment, this needs another look
7588         * src/mcs51/gen.c: added check for "B in use" paranoia,
7589           added pushB() and popB()
7590         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
7591           chance
7592         * src/avr/main.c,
7593         * src/ds390/main.c,
7594         * src/hc08/main.c,
7595         * src/mcs51/main.c,
7596         * src/pic/main.c,
7597         * src/pic16/main.c,
7598         * src/xa51/main.c,
7599         * src/z80/main.c: (reset_regparms) made void parameter explicit and
7600           added PSEG (PAG,XDATA) or NULL to port specifier
7601         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
7602         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
7603           (_mcs51_genInitStartup): removed __start__xstack equ,
7604           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
7605         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
7606         * src/z80/gen.c (_rleAppend): fixed warnings
7607         * support/regression/tests/zeropad.c: added pdata test
7608         * .version: bumped to 2.4.6
7609
7610 2004-10-17 Borut Razem <borut.razem AT siol.net>
7611
7612         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
7613         as a part of nightly build
7614
7615 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
7616
7617         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
7618         WREG holds the first byte function parameters,
7619         * (aopForSym): take special case for symbols which are in FARSPACE
7620         but in CODESPACE too,
7621         * (assignResultValue): modified to take into account _G.useWreg,
7622         * (genCall): don't use wreg for parameter passing when function is
7623         declared as reentrant, too, added optimization INCF to stack
7624         pointer when stack parameter count is 1,
7625         * (genFunction, genEndFunction): refurnished and fixed to not using
7626         wreg for passing parameters when function has varargs or is
7627         reentrant, fixed bug with symbol name compare for generating
7628         functions in absolute address,
7629         * (pic16_storeForReturn): refurnished,
7630         * (genCmp): began writing a new version of the function, not ready
7631         yet, therefore it is disabled,
7632         * (genAssign): do not read code memory when assigning a function to
7633         a pointer function,
7634         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
7635         array of characters, not pointer,
7636         * (pic16initialComments): in debug mode emit an .ident directive for
7637         the assembler,
7638         * (_process_pragma): emit a new warning type (internal to pic16)
7639         when setting stack to default length, emit a similar warning when
7640         placing a function at absolute address and address is not word aligned
7641         * (_pic16_parseOptions): added 'return TRUE' statement,
7642         * (_pic16_linkEdit): if compiling a source, then add the source's
7643         file object, first in the list of objects to link,
7644
7645 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
7646
7647         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
7648         * src/pic/main.c : removed VC warning.
7649         * src/pic/gen.c : changed comment.
7650
7651 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
7652
7653         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
7654         reference to a deprecated symbol _GPTRREG was causing failure to
7655         link. Thanks G. M. Gallant for the info.
7656
7657 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
7658
7659         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
7660         comments for Bugs item #954788.
7661
7662 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
7663
7664         * src/pic16/device.c (pic16_dump_gsection,
7665         * pic16_groupRegistersInSection): handle symbols declared to be in
7666         access bank differently,
7667         * src/pic16/gen.c (struct _G): added field resDirect,
7668         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
7669         send values read from stack directly to result and don't allocate
7670         temporary values,
7671         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
7672         same registers,
7673         * (pic16_sameRegsOfs): NEW,
7674         * (freeAsmop): if _G.resDirect is set then do not mark registers as
7675         free because they were not allocated from temporary pool,
7676         * pic16_popRegFromString): workaround to fix a problem with
7677         allocating variables twice or never,
7678         * (genGenPointerGet): using PRODL instead of FSR0H,
7679         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
7680         instead of FSR0H,
7681         * (genAssign): take advantage of the _G.resDirect flag,
7682         * (genCast): around line 11844, use mov2f instead of directly
7683         MOVFF'ing between operands to account for literal values,
7684         * src/pic16/genutils.c: some new debug functions for gpsim have been
7685         added,
7686         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
7687         float with integer part only,
7688         * src/pic16/main.c (_process_pragma): handle pragma udata access to
7689         place variables in access bank
7690         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
7691         updated sources to reflect recent changes in gen.c
7692
7693 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
7694
7695         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
7696         sources that searched for headers in installation path, now the
7697         device/include/pic16 is used,
7698         * src/pic16/glue.c (pic16glue),
7699         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
7700         .line directives if not in debug mode, this suppresses assembler's
7701         warnings for ignored directives
7702
7703 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
7704
7705         * src/port.h: made reset_regparms prototype void parameter explicit.
7706         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
7707         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
7708         * doc/sdccman.lyx: documented warning disabling and how to use
7709           printf_large to make it print floats.
7710         * device/include/stdbool.h: NEW
7711         * device/lib/_atof.c,
7712         * device/lib/_divuint.c,
7713         * device/lib/_divulong.c,
7714         * device/lib/expf.c,
7715         * device/lib/printf_large.c,
7716         * device/lib/sincosf.c,
7717         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
7718         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
7719           a completely reentrant lib.
7720
7721 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
7722
7723         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
7724         * device/include/pic16/stdio.h: fixed bug with colon
7725
7726 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
7727
7728         * device/include/pic16/stdio.h,
7729         * device/include/pic16/stdlib.h,
7730         * device/include/pic16/math.h: NEW
7731         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
7732         declared as _naked to reduce overhead
7733         * device/lib/Makefile.in (target port-specific-objects-pic16):
7734         changed * to *.* so to ignore the CVS directory,
7735         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
7736         stacked variables back in stack,
7737         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
7738         corruption
7739
7740 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
7741
7742         * .version: bumped version number to 2.4.5
7743         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
7744         * support/Util/SDCCerr.c (messages structure): added entry for
7745         W_POSSBUG2
7746
7747         Large cumulative patch for pic16 port and libraries.
7748         * device/include/pic16/sdcc-lib.h,
7749         * device/include/pic16/stdarg.h,
7750         * device/include/asm/pic16/features.h,
7751         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
7752         * device/include/pic16/float.h: changes reentrant keyword with
7753         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
7754         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
7755         updated target build-libraries to include objects from gptr,
7756         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
7757         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
7758         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
7759         all function headings,
7760         * src/SDCCmain.c: added global parameter userIncDirsSet,
7761         * (parseCmdLine): when option -I is encountered add directory to
7762         userIncDirsSet too,
7763         * src/version.awk: added space between control and long,
7764         * src/pic16/NOTES: added some notes for the port,
7765         * src/pic16/gen.c: added prototype for mov2fp function,
7766         * (fReturnpic16[]): properly named return value registers,
7767         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
7768         * (aopForSym): added code to handle symbols with onStack flag set,
7769         symbols onStack are allocated PTRSIZE bytes,
7770         * (aopFreeAsmop): handles special case where asmops are stack objects,
7771         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
7772         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
7773         added argument lock to trace flaws in allocating temporary registers
7774         when developing port,
7775         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
7776         * (pic16_popRegFromString): reenabled allocating a direct register
7777         from string,
7778         * (assignResultValue): various beautifications,
7779         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
7780         referenced function argument,
7781         * (genIpush): reenabled to allow stacked arguments, handles only
7782         ic->parmPush iCodes,
7783         * (genCall, genPcall): major changes to allow for variable argument
7784         functions, fixed a bug with falsely restoring stack pointer after
7785         returning from call,
7786         * (genFunction): pending code for critical function,
7787         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
7788         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
7789         * (genNearPointerGet): fixed bug with indirect reading, was always
7790         reading from INDF0
7791         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
7792         pointers,
7793         * (genAddrOf): rewrote code to take address of a stacked function parameter
7794         * (genCast): fixed casting to generic pointer type,
7795         * src/pic16/gen.h: added AOP_STA,
7796         * (struct asmop): added field stk,
7797         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
7798         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
7799         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
7800         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
7801         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
7802         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
7803         generic pointers,
7804         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
7805         and library paths,
7806         * (pic16_port structure): generic pointer size is set to 3,
7807         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
7808         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
7809         compiler warning,
7810         * src/pic16/ralloc.c (allocReg): prevent allocating register when
7811         operand is an iTemp,
7812
7813 2004-09-24 Martin Helmling <mh AT octo-soft.de>
7814
7815         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
7816         * debugger/mcs51/simi.c: addapt new syntax of s51
7817
7818 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
7819
7820         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
7821         * src/pic16/pcode.c: commented out some calls to free() in order to
7822         fix bug #989576,
7823
7824 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7825
7826         * src/SDCCicode.h,
7827         * src/SDCCicode.c (isiCodeInFunctionCall),
7828         * src/avr/ralloc.c (selectSpil),
7829         * src/pic/ralloc.c (selectSpil),
7830         * src/pic16/ralloc.c (selectSpil),
7831         * src/ds390/ralloc.c (selectSpil),
7832         * src/hc08/ralloc.c (selectSpil),
7833         * src/xa51/ralloc.c (selectSpil),
7834         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
7835         stack in the middle of a function call sequence (fixes bug #1020268)
7836         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
7837         costs associated with the minimum switch case.
7838
7839 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7840
7841         * src/SDCC.lex: fixed bug #1030549
7842
7843 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7844
7845         * src/SDCCcse.h (struct cseDef),
7846         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
7847         over a function call if the CSE is derived from a symbol whose
7848         address has been taken (fixes bug #1029883)
7849         * support/regression/tests/bug-1029883: a new regression test for
7850         this bug
7851
7852 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7853
7854         * src/hc08/gen.c (emitinline): fixed bug #1029778
7855         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
7856         to a cast object is no longer a syntax error ("fixes" bug #1030006,
7857         and starts toward RFE #905167)
7858
7859 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
7860
7861         * src/pic16/gen.c (mov2f): New function to move an operand to
7862         another without considering if it is a literal or a register,
7863         * (pic16_sameRegs): don't check if they are both AOP_REG,
7864         * (AccRsh): removed andmask=0 lines,
7865         * (genLeftShift): duplicated to be improved in future versions,
7866         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
7867         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
7868         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
7869         * (pic16initMnemonics): added initialization for POC_INFSNZW,
7870         * (insertBankSwitch): fixed inserting banksel directives algorithm
7871         for instructions that follow a skip instruction, this fixes a report
7872         for broken subtraction code generation,
7873         * src/pic16/ralloc.c (deassignLRs): do not free register if current
7874         iCode is a left op, just in case result and right share the same
7875         registers
7876
7877 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7878
7879         * src/hc08/main.c,
7880         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
7881         preservation of HX
7882         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
7883         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
7884         on 2004-09-12; it was buggy
7885
7886 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
7887
7888         * src/SDCCsymt.h: removed RESULT_CHECK
7889         * src/SDCCast.c,
7890         * src/SDCCglue.c,
7891         * src/SDCCval.c,
7892         * src/pic/glue.c,
7893         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
7894
7895 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
7896
7897         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
7898         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
7899         configuration values no more rejected by compiler, they are assigned
7900         to configuration registers with a warning message instead,
7901         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
7902         the for-loop so last conf register is emitted too,
7903         * (_pic16_initPaths): link library libsdcc.lib by default,
7904         * (_hasNativeMulFor): modified test for multiplication according to
7905         Raphael Neider's remarks. Integer multiplication is also done with
7906         support functions,
7907         * device/include/pic16/pic18fregs.h: corrected type error in while
7908         testing and including 18f6720 header file
7909
7910 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
7911
7912         * src/pic16/device.h (pic16_options): removed field use_crt,
7913         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
7914         until an optimization to handle single bits is added,
7915         * (pic16_loadFSR0): moved before genUnpackBits,
7916         * (genAnd): some white lines removed,
7917         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
7918         leave_reset flags in pic16_options when using crt modules,
7919
7920 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
7921
7922         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
7923           for bugs 898889 & 979599. Also used some safer print instructions.
7924
7925 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
7926
7927         * src/pic16/device.h (pic16_options_t): added field use_crt,
7928         crt_name, no_crt,
7929         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
7930         catch a probable future bug,
7931         * src/pic16/gen.c: aopIdx function commented out,
7932         * (genAssign): commented out old code which used aopIdx,
7933         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
7934         code, added if conditionals to take into account the --use-crt
7935         command line options,
7936         * src/pic16/main.c (pic16_optionsTable): added new command line
7937         options, --use-crt= and --no-crt,
7938         * (_pic16_linkEdit): now the proper crt object is added in the
7939         linker command line except than when --no-crt is specified,
7940         * src/pic16/pcode.c,
7941         * src/pic16/pcode.h: added some structures and functions for a new
7942         optimization scheme to compansate for instruction overhead between
7943         same iCodes, this scheme is currently under development and is not
7944         working in any way,
7945         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
7946         to && operator,
7947         * device/lib/pic16/startup/crt0i.c,
7948         * device/lib/pic16/startup/crt0iz.c: added global char variable
7949         __uflags to force the generation of an idata section
7950
7951 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
7952
7953         * doc/Makefile,
7954         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
7955         * doc/sdccman.lyx: updated sdcc version to 2.4.4
7956
7957 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7958
7959         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
7960         Frieder) and clarified the default code optimization mode
7961
7962 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7963
7964         * src/SDCC.lex (doPragma, process_pragma),
7965         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
7966         "opt_code_size", and "opt_code_balanced"
7967         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
7968         regrouped options by category, added support for category headers
7969         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
7970         and "--opt-code-size"
7971         * doc/sdccman.lyx: documented these new options and pragmas
7972         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
7973         preference into account
7974
7975 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7976
7977         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
7978           geniCodePreDec): Fixed bug 904237 by generating a warning
7979         * src/SDCCerr.h,
7980         * src/SDCCerr.c: added warning W_SIZEOF_VOID
7981
7982 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
7983
7984         * src/pic/device.c : When no max ram set validate full memory range.
7985         * src/pic/pcode.c,
7986         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
7987
7988 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7989
7990         * device/lib/_gptrget.c,
7991         * device/lib/_gptrput.c: updated comment
7992         * device/lib/calloc.c,
7993         * device/lib/free.c,
7994         * device/lib/malloc.c,
7995         * device/lib/realloc.c: added LGPL, made them reentrant-safe
7996         * src/SDCCcse.c (cseBBlock),
7997         * src/SDCCicode.c (printOperand, geniCodeArray),
7998         * src/SDCCicode.h (struct operand): fixed bug 868103
7999         * support/regression/tests/bug-868103.c: added
8000         * src/SDCCast.c (searchLitOp),
8001         * src/SDCCcse.h (struct cseDef),
8002         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
8003         * src/SDCCicode.h (struct operand),
8004         * src/SDCCsymt.h (struct sym_link),
8005         * src/avr/gen.c (hasInc),
8006         * src/ds390/gen.c (hasInc),
8007         * src/hc08/gen.c (genPlusIncr, hasInc),
8008         * src/mcs51/gen.c (hasInc),
8009         * src/pic16/glue.c (pic16_printIvalChar),
8010         * src/pic16/ralloc.c (regWithIdx),
8011         * src/xa51/gen.c (hasInc) : removed warnings
8012         * src/SDCCast.c (createBlock): added comment ???
8013         * src/hc08/ralloc.c: updated comments
8014
8015 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8016
8017         * doc/sdccman.lyx: updated section on switch statements, added
8018         section about semaphore locking
8019         * doc/Makefile: added option -info for latex2html
8020         * device/lib/_gptrget.c,
8021         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
8022
8023 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
8024
8025         * src/pic/device.h,
8026         * src/pic/device.c,
8027         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
8028          maxram is less than 0x100.
8029
8030 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
8031
8032         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
8033
8034 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8035
8036         * src/port.h,
8037         * src/mcs51/main.c,
8038         * src/ds390/main.c,
8039         * src/z80/main.c,
8040         * src/hc08/main.c,
8041         * src/pic/main.c,
8042         * src/pic16/main.c,
8043         * src/avr/main.c,
8044         * src/xa51/main.c
8045         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
8046         a jump table is the best form for a switch statement, including
8047         automatic insertion of missing cases to make the case range
8048         continuous. Developed in collaboration with Frieder Ferlemann.
8049
8050 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8051
8052         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
8053         accumulator result if it needs sign extension
8054
8055 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
8056
8057         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
8058
8059 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
8060
8061         * device/lib/gbz80/printf.c,
8062         * device/lib/z80/printf.c: removed define for NULL
8063
8064 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
8065
8066         * as/xa51/xa_link.c,
8067         * device/examples/ds390/ow390/ad26.c,
8068         * device/examples/ds390/ow390/cnt1d.c,
8069         * device/examples/ds390/ow390/counter.c,
8070         * device/examples/ds390/ow390/ds2480.h,
8071         * device/examples/ds390/ow390/ds2480ut.c,
8072         * device/examples/ds390/ow390/findtype.c,
8073         * device/examples/ds390/ow390/gethumd.c,
8074         * device/examples/ds390/ow390/owllu.c,
8075         * device/examples/ds390/ow390/ownetu.c,
8076         * device/examples/ds390/ow390/swt12.c,
8077         * device/examples/ds390/ow390/swtloop.c,
8078         * device/examples/ds390/ow390/temp.c,
8079         * device/examples/ds390/ow390/temp10.c,
8080         * device/examples/ds390/ow390/thermo21.c,
8081         * device/examples/ds390/ow390/tinilnk.c,
8082         * device/examples/ds390/ow390/tstfind.c,
8083         * device/examples/serialcomm/windows/serial.cpp,
8084         * device/examples/serialcomm/windows/test_serialcomm.cpp,
8085         * device/include/reg51.h: fixed line endings for cvs
8086
8087 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8088
8089         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
8090         packRegsForAccUse, packRegisters): new accumulator register
8091         packing algorithm
8092         * support/regression/ports/hc08/support.c (_putchar): suppress
8093         warning of unused variable
8094         * src/SDCCicode.c: added SWAP entry to codeTable
8095
8096 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
8097
8098         * device/lib/sprintf.c: forgot to add this file before previous commit
8099
8100 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
8101
8102         * src/pic16/gen.c (genPackBits): added operand right in function
8103         parameters, load result directly if p_type is POINTER (that is
8104         called by genNearPointerSet)
8105         * (genUnPackBits): added operand left in function parameters,
8106         * (genNearPointerGet, genNearPointerSet): prevent the loading of
8107         FSR0 if accessing bitfields,
8108
8109 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
8110
8111         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
8112           _print_format; updated printf, sprintf, vsprintf
8113         * device/include/asm/default/features.h: corrected comment/define
8114         * device/lib/Makefile.in: added sprintf.c
8115         * device/lib/libsdcc.lib: added sprintf module
8116         * device/lib/printf_large.c,
8117         * device/lib/vprintf.c,
8118         * device/lib/sprintf.c: totally refactored printf_large and vprintf
8119           into these 3 files
8120         * support/regression/Makefile: changed ALL_PORTS into a usefull default
8121         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
8122         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
8123           hc08 test
8124         * support/regression/tests/zeropad.c: define idata as data for hc08
8125
8126 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8127
8128         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
8129         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
8130         labels are referenced at least once (even if a reference is not found)
8131         * src/hc08/gen.c (emitcode): set isComment flag for comments
8132         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
8133         loads), rules 6a..6b (optimize jumps to return)
8134
8135 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8136
8137         * device/lib/acosf.c (acosf),
8138         * device/lib/asinf.c (asinf),
8139         * device/lib/atanf.c (atanf),
8140         * device/lib/ceilf.c (ceilf),
8141         * device/lib/cosf.c (cosf),
8142         * device/lib/coshf.c (coshf),
8143         * device/lib/cotf.c (cotf),
8144         * device/lib/fabsf.c (fabsf),
8145         * device/lib/floorf.c (floorf),
8146         * device/lib/log10f.c (log10f),
8147         * device/lib/logf.c (logf),
8148         * device/lib/sinf.c (sinf),
8149         * device/lib/sinhf.c (sinhf),
8150         * device/lib/sqrtf.c (sqrtf),
8151         * device/lib/tanf.c (tanf),
8152         * device/lib/tanhf.c (tanhf),
8153         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
8154         replaced all instances of "reentrant" in the library functions
8155         defined in math.h with this macro.
8156         * support/regression/tests/float_trans.c: reenabled test for hc08
8157
8158 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
8159
8160         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
8161         erroneously deleted
8162
8163 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8164
8165         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
8166         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
8167         multi-byte volatile operands are used
8168         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
8169         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
8170         initialization to area GSINIT0 so that it would always precede
8171         any static initializers in GSINIT
8172         * support/regression/tests/zeropad.c: fixed idata define for hc08
8173         * support/regression/tests/bug-927659.c,
8174         * support/regression/tests/float_trans.c: disabled tests for hc08
8175         pending missing library routines
8176         * .version: increased version number to 2.4.4 - hc08 port now passes
8177         regression tests
8178
8179
8180 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
8181
8182         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
8183         * Makefile.common.in,
8184         * as/Makefile,
8185         * as/hc08/Makefile.in,
8186         * as/mcs51/Makefile.in,
8187         * as/z80/Makefile.in,
8188         * debugger/mcs51/Makefile.in,
8189         * device/include/Makefile.in,
8190         * device/lib/Makefile.in,
8191         * doc/Makefile,
8192         * link/Makefile,
8193         * link/z80/Makefile.in,
8194         * packihx/Makefile.in,
8195         * sim/ucsim/main_in.mk,
8196         * sim/ucsim/avr.src/Makefile.in,
8197         * sim/ucsim/doc/Makefile.in,
8198         * sim/ucsim/gui.src/serio.src/Makefile.in,
8199         * sim/ucsim/hc08.src/Makefile.in,
8200         * sim/ucsim/s51.src/Makefile.in,
8201         * sim/ucsim/xa.src/Makefile.in,
8202         * sim/ucsim/z80.src/Makefile.in,
8203         * src/Makefile.in,
8204         * support/cpp2/Makefile.in,
8205         * support/librarian/Makefile,
8206         * support/makebin/Makefile: added DESTDIR to the install path proposed
8207         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
8208         * doc/sdccman.lyx: added DESTDIR documentation
8209
8210 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
8211
8212         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
8213         instruction for interrupt handlers, use fast returns when returning
8214         from high priority interrupts
8215
8216 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8217
8218         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
8219         code generation
8220         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
8221         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
8222         bugs, ported much of Bernhard's code from mcs51
8223         * src/mcs51/gen.c (genSend),
8224         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
8225         than one when calling a reentrant function
8226         * device/lib/_mullong.c: defined an alternate struct layout for big
8227         endian ports (hc08)
8228
8229 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8230
8231         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
8232         test
8233
8234 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8235
8236         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
8237         are sane and complete before asking the port its prefered parameter
8238         passing method (fixes bug #1017633)
8239         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
8240         and _ret3
8241
8242 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8243
8244         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
8245         problem in bitfields >= 8 bits.
8246
8247 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8248
8249         * src/SDCCsymt.c: undid changes that were not meant to be committed
8250
8251 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8252
8253         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
8254
8255 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8256
8257         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
8258           copied and wrong bit got inverted
8259
8260 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8261
8262         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
8263         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
8264         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
8265         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
8266         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
8267         assignments to bitfields at known addresses
8268         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
8269         reads from bitfields at known addresses
8270         * src/hc08/ralloc.c (packRegisters),
8271         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
8272         genhc08Code): optimize pointer get values used as conditionals
8273         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
8274         and branch
8275
8276 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8277
8278         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
8279         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
8280         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
8281         as conditionals
8282
8283 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8284
8285         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
8286
8287 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8288
8289         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
8290         related problems
8291
8292 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
8293
8294         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
8295
8296 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8297
8298         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
8299         mcs51 port
8300
8301 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
8302
8303         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
8304
8305 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8306
8307         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
8308         cases use more compact code.
8309
8310 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
8311
8312         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
8313
8314 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8315
8316         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
8317
8318 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8319
8320         * src/SDCCsymt.h,
8321         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
8322         parameter of changePointer() from symbol* to sym_link*
8323         * src/SDCCast.c (decorateType): call changePointer() for CAST op
8324         * src/SDCCsymt.c (compareType): void* type is castable to other
8325         pointers, but not necesarily an exact match.
8326         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
8327         is no longer blindly treated as an exact match.
8328         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
8329
8330 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
8331
8332         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
8333
8334 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
8335
8336         * src/pic/gen.c,
8337         * src/pic/pcode.c,
8338         * src/pic/ralloc.h,
8339         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
8340
8341 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
8342
8343         * src/pic/device.c,
8344         * src/pic/device.h,
8345         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
8346
8347 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8348
8349         * src/mcs51/gen.c (emitcode): fixed bug #992819
8350
8351 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
8352
8353         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
8354           there's no need to make it worse
8355
8356 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8357
8358         * src/mcs51/ralloc.c (deassignLR),
8359         * src/ds390/ralloc.c (deassignLR),
8360         * src/hc08/ralloc.c (deassignLR),
8361         * src/z80/ralloc.c (deassignLR),
8362         * src/pic/ralloc.c (deassignLR),
8363         * src/pic16/ralloc.c (deassignLR),
8364         * src/avr/ralloc.c (deassignLR),
8365         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
8366         rlivePoint): fixed another part of bug #971834
8367
8368 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8369
8370         * src/z80/main.c: enabled "critical" keyword
8371         * src/z80/mappings.i,
8372         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
8373         functions (fixes bug #979646)
8374         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
8375
8376 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8377
8378         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
8379           such as c:\mydir.
8380
8381 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
8382
8383         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
8384           doesn't disable too much optimizations
8385
8386 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
8387
8388         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
8389
8390 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
8391
8392         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
8393
8394 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
8395
8396         * src/pic/gen.c tidied up tabs
8397         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
8398         * src/pic/main.c tidied up tabs
8399         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
8400         * src/pic/pcoderegs.c tidied up tabs
8401         * src/pic/ralloc.c tidied up tabs
8402
8403 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
8404
8405         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
8406         to S_FIXED for pic16 port and when symbol is not in level 0,
8407         allocate for S_REGISTER storage class and pic16 port, too,
8408         * src/pic16/device.h: prototype for checkSym,
8409         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
8410         * (pic16_assignConfigWordValue): test the value and the mask to
8411         validate that the value is suitable for the configuration word,
8412         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
8413         collect extern declared symbols, don't emit symbol twice, check
8414         first if symbol is in publics set first,
8415         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
8416         * added command line '--fstack' which enables an experimental
8417         feature for stack access, too buggy to be used yet...
8418         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
8419         * (pic16_allocDirReg): when register has storage class S_REGISTER
8420         allocate in pic16_dynAccessRegs,
8421         * device/include/pic16/pic18f????.h: modified configuration word
8422         naming convention, words started as CONFIG0H but should be CONFIG1H
8423
8424 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
8425
8426         * device/include/mcs51reg.h: fixed bug 970993
8427
8428 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
8429
8430         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
8431         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
8432         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
8433         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
8434         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
8435         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
8436           error/warning numbers,
8437           added function setWarningDisabled()
8438         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
8439         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
8440           _memcmp.c _memmove.c calloc.c realloc.c free.c
8441         * support/regression/tests/malloc.c: added tests for new functionality
8442         * support/regression/tests/zeropad.c: added tests for truncated initializers
8443           and initialized char arrays starting with '\x0'
8444         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
8445
8446 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
8447
8448         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
8449
8450 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8451
8452         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
8453         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
8454         peephole 177.e. Thanks to anonymous
8455
8456 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
8457
8458         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
8459         function isn't used in the source but referenced as a
8460         variable initializer then declare it as extern in .asm file
8461
8462 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
8463
8464         * .version: increased version number to 2.4.3
8465
8466         Adding version extension according to ChangeLog CVS revision
8467         * src/Makefile.in (target all): added dependency 'version.h'
8468         * (rule version.h): added rule to create version.h from ChangeLog,
8469         * (rule dep): added dependency version.h,
8470         * src/version.awk: AWK script to create version.h
8471         * src/SDCCdwarf2.c (dwWriteModule),
8472         * src/SDCCglue.c (initialComments),
8473         * src/SDCCmain.c (printVersionInfo): modified to write after
8474         version string the version extension number,
8475         * src/SDCCutil.c: included "version.h"
8476         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
8477         number,
8478         * src/SDCCutil.h: added prototype for getBuildNumber
8479
8480         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
8481         includeDirsSet, too,
8482         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
8483         const char [] is found in function prototype...
8484
8485         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
8486         moving to WREG with source is already in WREG,
8487         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
8488         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
8489         * (aopForSym): stack'ed symbols are partially supported, added
8490         if-clause to support symbols in FARSPACE,
8491         * (sameRegs): added test for AOP_ACC to see if registers are same,
8492         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
8493         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
8494         * (pic16_popRegFromString): will not allocate a new register if it
8495         doesn't find one by name, bug may have introduced...
8496         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
8497         * (genIpush): revived to use pic16 port's stack,
8498         * (genAddrOf): added incomplete case for stack'ed operand,
8499         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
8500         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
8501         can handle multibyte operands,
8502         * src/pic16/glue.c (pic16_printIval*): some debug info added,
8503         * (pic16initialComments): added message for MPLAB compatibility
8504         mode enabled,
8505         * src/pic16/main.h: prototype for pic16_mplab_comp,
8506         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
8507         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
8508         * (_pic16_linkEdit): NEW, handles link stage, transferred here
8509         because of increased complexity of procedure,
8510         * (_process_pragma): stack pragma changed to format 'stack pos len',
8511         emit symbol '_stack_end' to conform with gplink,
8512         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
8513         to search for register,
8514         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
8515         PO_GPR_REGISTER,
8516         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
8517         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
8518         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
8519         case for PO_GPR_REGISTER,
8520         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
8521         dies, the new era is ahead !...
8522         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
8523         pic16_dynInternalRegs,
8524         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
8525         * (pic16_allocDirReg): minor optimizations and bug fixes,
8526         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
8527
8528         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
8529         load stack and frame pointer with address of 'stack_end' symbol
8530
8531 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
8532
8533         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
8534         without source code but only variable initializers
8535
8536 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
8537
8538         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
8539         external are not declared as extern to reduce overhead while linking
8540
8541 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
8542
8543         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
8544
8545 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
8546
8547         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
8548           Yee Keat for the patch
8549         * src/SDCCast.c (decorateType): fixed bug #979599
8550         * src/ds390/gen.h: removed local fReturnSizeDS390
8551         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
8552         * src/ds390/gen.c (genAnd, genOr, genXor),
8553         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
8554
8555 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
8556
8557         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
8558         add relFilesSet to $3, manipulate $2 to handle linking of object
8559         files without source files in command line,
8560         * device/include/pic16 (all headers): added ID location macros,
8561         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
8562         entries for ID location bytes,
8563         * (pic16_assignIdByteValue): NEW,
8564         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
8565         added field dumpcalltree to pic16_options_t,
8566         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
8567         is used instead of pic16_Gstack_base_addr, check if (ifx) before
8568         emitting rFalseIfx label after check_carry label,
8569         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
8570         pic16_emitDIRegs), NEW
8571         * (pic16glue): dump .calltree file when option --calltree found,
8572         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
8573         * (_pic16_genAssemblerPreamble): emit ID locations after
8574         configuration registers,
8575         * (pic16_linkCmd): modifications of the link command,
8576         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
8577         * (pic16_pCodeInitRegisters): don't init stack registers,
8578         * (pic16_findPrevInstruction): fixed bug,
8579         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
8580         bug with immediate registers,
8581         * (buildCallTree): traces stack push and pop,
8582         * (pct2): dump also stack usage for each function,
8583         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
8584         * (pic16_allocDirReg): various modifications,
8585         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
8586         fixed to 1,
8587
8588 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
8589
8590         * src/pic16/pcode.c: removed buggy double colon
8591
8592 2004-07-01 Borut Razem <borut.razem AT siol.net>
8593
8594         * support/scripts/sdcc.nsi: added include/pic16 to setup
8595
8596 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
8597
8598         * device/lib/Makefile.in: fixed bug in target objects-pic16,
8599         * device/lib/pic16/Makefile: prefixed with dash (-) command under
8600         target 'clean',
8601         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
8602         specific command line arguments. Also added sample lkr script
8603         for placing a variable at a specific memory bank.
8604         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
8605         at a specific memory bank,
8606         * (pic16_dump_isection): fixed bug which caused string literals to
8607         be omitted when dumping idata section,
8608         * (pic16_groupRegistersInSection): added code to handle registers
8609         in specific memory banks,
8610         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
8611         public, all references are renamed too,
8612         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
8613         AOP_DPTR2,
8614         * (pic16_storeForReturn): added case to handle when dest is WREG,
8615         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
8616         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
8617         pic16_rel_udata, check to see if that register is marked as being
8618         a member of a specific memory bank,
8619         * (pic16_printIvalCharPtr): added code to add string literals either
8620         to code or the idata sections,
8621         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
8622         also accept the 'udata' pragma,
8623         * src/pic16/main.h: new structure types sectName and sectSym
8624         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
8625         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
8626         * (pic16_findPrevInstruction): fixed, it returned nothing,
8627         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
8628         instruction combinations,
8629         * (pic16_FixRegisterBanking): heavily reorganised,
8630         * (pic16_AnalyzeBanking): if generating banksel directives is
8631         disabled, then don't call FixRegisterBanking at all,
8632         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
8633         completely removed,
8634         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
8635
8636 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
8637
8638         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
8639         Phuah Yee Keat <yk.phuah AT nestac.com>
8640
8641 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
8642
8643         * src/pic16/glue.c (pic16createInterruptVect): function now emits
8644         correctly the IVT even if it is relocated to some other location
8645
8646 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
8647
8648         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
8649         * device/include/pic16/pic18f2220.h: NEW,
8650         * device/lib/pic16/libdev/pic18f2220.c: NEW,
8651         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
8652         * src/pic16/device.c (struct Pics16): added info for 18f2220,
8653         * src/pic16/device.h (struct pic16_options): added ivt_loc and
8654         nodefaultlibs, ivt_loc is the location of the interrupt vector
8655         table, and nodefaultlibs signs that default libraries should not be
8656         linked in link stage,
8657         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
8658         according to --ivt-loc argument,
8659         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
8660         when pragma stack is found,
8661
8662 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8663
8664         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
8665         256 (range check), 257 (do while), 258.a-f (bit banging
8666         f.e. on 3-wire SPI bus)
8667
8668 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8669
8670         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
8671         variables used exclusively within a loop
8672
8673 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
8674
8675         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
8676
8677 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8678
8679         * src/SDCClrange.c (computeClash): fixed bug #971834
8680
8681 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8682
8683         * src/mcs51/gen.c (genCmp): fixed bug #975903
8684         * src/hc08/gen.c (operandsEqu),
8685         * src/ds390/gen.c (operandsEqu),
8686         * src/z80/gen.c (operandsEqu),
8687         * src/pic/gen.c (operandsEqu),
8688         * src/pic16/gen.c (operandsEqu),
8689         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
8690         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
8691
8692 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8693
8694         * src/SDCCcse.c (cseBBlock): fixed bug #966963
8695
8696 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
8697
8698         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
8699         default case in switch statement,
8700         * glue.c (pic16_initPointer): expr is initialised via decoarteType
8701         to eliminate problem with initialisation of pointers, but problem
8702         still exists,
8703         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
8704         * (emitStaticSegment): removed various lines emitting debug info,
8705         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
8706         added processor registers for utilizing EEPROM,
8707         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
8708         configurable and set 8
8709
8710 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
8711
8712         * .version: increased version number to 2.4.2,
8713
8714         Cumulative patch for pic16 port
8715         * src/pic16/device.c: changed scheme to dump initial values for
8716         variables in idata segment, all print_idata* functions were removed,
8717         now the pic16_printIval* will be called,
8718         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
8719         * _pic16_printPointerType, pic16_printPointerType,
8720         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
8721         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
8722         NEW, similar to the respective functions in SDCCglue.c,
8723         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
8724         way, emitting hex bytes,
8725         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
8726
8727 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8728
8729         * src/avr/ralloc.c (serialRegAssign),
8730         * src/xa51/ralloc.c (serialRegAssign),
8731         * src/pic/ralloc.c (serialRegAssign),
8732         * src/pic16/ralloc.c (serialRegAssign),
8733         * src/hc08/ralloc.c (serialRegAssign),
8734         * src/z80/ralloc.c (serialRegAssign),
8735         * src/ds390/ralloc.c (serialRegAssign),
8736         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
8737
8738 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8739
8740         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
8741         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
8742
8743 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
8744
8745         Cumulative patch for pic16 port:
8746         * src/pic16/device.h (typedef PIC16_device) modified fields for
8747         defining microcontrollers,
8748         * src/pic16/device.c: added new info for all devices in Pics16 array,
8749         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
8750         to be optimised out by the pCode optimiser,
8751         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
8752         specially, bug reported by G.M. Gallant,
8753         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
8754         as force'd so that cannot be optimised out by pCode optimiser,
8755         * src/pic16/pcode.c,
8756         * src/pic16/pcodepeeph.c,
8757         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
8758         they are disabled by default, but can be enabled explicit with
8759         command argument --denable-peeps, for testing,
8760         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
8761         --pomit-ivt in COMPILE_FLAGS
8762
8763 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
8764
8765         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
8766           compilation on MSVC
8767
8768 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
8769
8770         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
8771
8772 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8773
8774         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
8775         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
8776
8777 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
8778
8779         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
8780         would only assign 0x300001 register.
8781
8782 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
8783
8784         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
8785         in COMPILE_FLAGS. Thanks to G. Gallant for report.
8786
8787 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8788
8789         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
8790         for ds80c400
8791         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
8792         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
8793         added peephole 254 (left shift), 255 (jump table)
8794
8795 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
8796
8797         * device/lib/Makefile.in: removed comment line with model-pic16,
8798         * (target port-specific-objects-pic16): the libraries and objects
8799         are copied to the build directory form the device/lib/pic16/bin
8800         directory
8801
8802         Cumulative patch concerning pic16 port:
8803         * library directory has been re-organized,
8804         * added support for PIC18F1220,
8805         * added headers and library sources for chips 18f1220,18f6520,
8806         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
8807
8808         * configuration registers setting has changed, now each supported
8809         device has a complete description of the registers it uses,
8810         * all initialisations are moved to idata sections, these section
8811         can be absolute or relocatable,
8812         * fixed initialisation of codespace variables,
8813         * fixed warning about PCLATU and gpsim,
8814         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
8815         * (genAssign): use table reads when assigning from variables in codespace,
8816         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
8817         char/int variables placed in codespace,
8818         * (pic16_emitConfigRegs): NEW, emits a list with configuration
8819         registers set in .asm file, no need for --pomit-config-words anymore,
8820         * (pic16glue): some 8051 legacy segments are commented out
8821         (to be removed completely),
8822         * added support for alternative assembler and linker with --asm=
8823         and --link= command line arguments,
8824         * peepholes are disabled automatically in the port, no need to
8825         specify on command line,
8826         * port supports natively char/int/long multiplication, but converts
8827         all divisions to support functions,
8828         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
8829         to the file set in variable $2,
8830         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
8831         strings in ASCII format and not in hex,
8832         * ralloc.c (serialRegAssign): added a triplet of conditional calls
8833         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
8834         allocate proper register if iCodes aren't temporary,
8835
8836 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
8837
8838         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
8839
8840 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
8841
8842         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
8843         is commented out
8844
8845 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8846
8847         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
8848         computed address is reused
8849         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
8850         multi-byte bitfields
8851
8852 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
8853
8854         * src/z80/gen.c: (genArrayInit): must check for pointers too
8855
8856 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
8857
8858         * support/regression/tests/zeropad.c: never meant to commit the
8859           nestedstruct test: removed, added check for GCC version
8860
8861 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
8862
8863         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
8864         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
8865         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
8866           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
8867           bugs 928906 and 954082 half-empty initializers
8868         * src/SDCCsymt.h,
8869         * src/SDCCsymt.c (getAllocSize): added for above fix
8870         * src/z80/gen.c (genArrayInit): fixed bug 741044
8871         * support/regression/tests/zeropad.c: added tests
8872
8873 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
8874
8875         * src/pic16/device.c (pic16_dump_section): corrected bug which
8876         caused some symbols of the libraries to be misplaced
8877
8878 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
8879
8880         * src/pic16/glue.c,
8881         * src/pic16/ralloc.h,
8882         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
8883         to fix conflict with pic port
8884
8885 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
8886
8887         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
8888         externs configuration variables,
8889         * src/pic16/ralloc.h,
8890         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
8891         prototype in header, commented out some debug messages
8892
8893 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
8894
8895         * src/pic16/glue.c,
8896         * src/pic16/main.c,
8897         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
8898         for gpasm COFF object generation. Thanks to D. Hawkins for
8899         his patch info
8900
8901 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8902
8903         * src/ds390/main.c,
8904         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
8905         Brock for spotting this)
8906         * src/ds390/gen.c (genEndFunction),
8907         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
8908         interrupt handler and critical. Disable push/pop optimizations when
8909         peephole optimizations disabled.
8910
8911 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
8912
8913         Updated pic16 library sources and headers.
8914         * device/lib/pic16/pic18f*/ ,
8915         * device/include/pic16/*.h: modified to handle structured SFR
8916         definitions
8917
8918 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
8919
8920         * src/port.h (PORT structure): added hook initPaths, now each
8921         port can declare its own default search paths,
8922         which can been seen with the --print-search-dirs option,
8923         see pic16 port for example,
8924         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
8925         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
8926         * (doPrintSearchDirs): NEW, replaces in a central manner the
8927         printing of search dirs which was split in set*Paths functions,
8928         * (main): added call to port->initPaths and doPrintSearchDirs,
8929         * src/avr/main.c,
8930         * src/ds390/main.c,
8931         * src/hc08/main.c,
8932         * src/izt/i186.c,
8933         * src/izt/tlcs900h.c,
8934         * src/mcs51/main.c,
8935         * src/pic/main.c,
8936         * src/pic16/main.c: modified port structures to reflect addition of
8937         initPaths hook,
8938
8939         * src/pic16/device.c (regCompare): registers are finally sorted by name,
8940         * (pic16_dump_section): for registers in same address reserve memory once,
8941         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
8942         to no_banksel,
8943         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
8944         result is greater in size than right or left,
8945         * (pic16_genUMult8X8_8): there are some cases where the result can
8946         be 16 bits size, so handle these,
8947         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
8948         * (pic16_outBitC): modified to emit pcodes,
8949         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
8950         or not,
8951         * (genDivOneByte): implemented algorithm to divide 8-bits,
8952         * (genCmp): uncommented goto, but issues still exist,
8953         * (genAnd): fixed a bug with variables >8bits,
8954         * (genPackBits): optimization added that uses BCF/BSF to change a
8955         single bit,
8956         * (genAssign): fixed bug when assigning floating point literals,
8957         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
8958         __sdcc_gsinit_startup label,
8959         * src/pic16/main.c (_pic16_init): removed search directory
8960         initialisations,
8961         * (_pic16_initPaths): NEW, used to initialise search directories,
8962         * (_hasNativeMulFor): support functions for all except char/int
8963         multiplication, and char division,
8964         * (PIC16_port struct): modified entry for native mul support,
8965         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
8966         no_banksel option,
8967         * (buildCallTree): call to register_usage is ifdef'ed out,
8968
8969 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8970
8971         * device/include/string.h: applied Stas Sergeev's patch to make this
8972         header file compatible with the preprocessor -Wundef option
8973         * src/SDCCmain.c (main): abort compilation if preprocessor reports
8974         failure (fixes bug #941458)
8975
8976 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8977
8978         * src/SDCCopt.c (killDeadCode): fixed bug #907733
8979         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
8980         that the variable, not the function, should be static
8981         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
8982         to be consistent with non-literal case
8983
8984 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8985
8986         * src/SDCCast.c (isConformingBody): fixed bug #949967
8987         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
8988         convilong): fixed bug #952086
8989
8990 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8991
8992         * src/SDCCmem.c (allocVariables): fixed bug #955321
8993
8994 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8995
8996         * src/hc08/main.c (_hc08_genAssemblerEnd),
8997         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
8998         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
8999         completely eliminated the use of a temporary file
9000         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
9001         when more than one file linked
9002         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
9003
9004 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9005
9006         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
9007         which fixes bug #543481
9008         * support/regression/tests/bug-751703.c: fixed comments left from a
9009         cut and paste error
9010         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
9011         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
9012         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
9013         scopes
9014         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
9015         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
9016         are now changed to underscores in moduleName
9017
9018 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9019
9020         * as/mcs51/lkmem.c: better fix for bug #954173
9021
9022 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
9023         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9024
9025         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
9026         * device/include/c8051f000.h,
9027         * device/include/c8051f120.h,
9028         * device/include/c8051f300.h,
9029         * device/include/c8051f310.h,
9030         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
9031         PWM16) and detab'ed
9032
9033 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9034
9035         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
9036         and mailing lists, doc'ed --no-peep-comments, removed reference
9037         to knoppix (newest version has no LyX/LaTeX), other minor changes
9038         * src/SDCCglue.c (glue): save 2 bytes stack space with
9039         option --main-return. The ljmp could probably be avoided too
9040
9041 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9042
9043         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
9044
9045 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9046
9047         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
9048         * src/SDCCopt.c (isLocalWithoutDef),
9049         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
9050         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
9051         (credit to Maarten Brock for patch #949363, on which this is based)
9052         * support/regression/tests/bug-751703.c: some test cases of extern used
9053         within inner scopes.
9054
9055 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9056
9057         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
9058         SPEC_STRUCT
9059         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
9060         struct definitions
9061         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
9062         dwWriteLabel): fix to create valid debugger symbols even when
9063         the module name has non-alphanumeric symbols in it
9064         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
9065         when a variable's allocation has been optimized away
9066
9067
9068 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9069
9070         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
9071         * src/hc08/main.c,
9072         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
9073         * src/mcs51/main.c,
9074         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
9075         * src/ds390/main.c,
9076         * src/z80/gen.c (z80_emitDebuggerSymbol),
9077         * src/z80/main.c,
9078         * src/pic/gen.c (pic14_emitDebuggerSymbol),
9079         * src/pic/main.c,
9080         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
9081         * src/pic16/main.c,
9082         * src/avr/gen.c (avr_emitDebuggerSymbol),
9083         * src/avr/main.c,
9084         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
9085         * src/xa51/main.c,
9086         * src/SDCCdebug.c (emitDebuggerSymbol),
9087         * src/SDCCdebug.h,
9088         * src/port.h: added a debugger struct to the port struct. Added a
9089         callback for defining debugger symbols
9090
9091         * src/SDCCast.c (createLabel),
9092         * src/SDCC.y (labeled_statement): mark all compiler generated labels
9093         with isitmp = 1
9094         * src/SDCCicode.h,
9095         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
9096         iCode back to the ast for the function
9097
9098         * src/hc08/ralloc.c (hc08_assignRegisters),
9099         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
9100         unneeded fields from the regs struct.
9101         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
9102         pushReg() & pullReg() functions instead of emitcode()
9103
9104         * src/hc08/gen.c (genLabel, genhc08Code),
9105         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
9106
9107         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
9108         debugger hooks
9109
9110         * src/hc08/gen.c (genEndFunction, genhc08Code),
9111         * src/hc08/gen.h,
9112         * src/mcs51/gen.c (genEndFunction, gen51Code),
9113         * src/mcs51/gen.h,
9114         * src/ds390/gen.c (genEndFunction, gen390Code),
9115         * src/ds390/gen.h,
9116         * src/z80/gen.c (genEndFunction, genZ80Code),
9117         * src/z80/gen.h,
9118         * src/z80/z80.h,
9119         * src/pic/gen.c (genEndFunction, genpic14Code),
9120         * src/pic/gen.h,
9121         * src/pic16/gen.c (genEndFunction, genpic16Code),
9122         * src/pic16/gen.h,
9123         * src/avr/gen.c (genEndFunction, genAVRCode),
9124         * src/avr/gen.h,
9125         * src/xa51/gen.c (genEndFunction, genXA51Code),
9126         * src/xa51/gen.h,
9127         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
9128         specific code to cdbFile.c and out of the backend code generators
9129
9130         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
9131         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
9132         starting address is now 0
9133
9134         * as/hc08/asm.h,
9135         * as/hc08/m08pst.c,
9136         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
9137         assembler directive for DWARF support
9138         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
9139
9140         * src/src.dsp,
9141         * src/Makefile.in,
9142         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
9143
9144 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9145
9146         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
9147         and inappropriate peephole optimization in jump tables
9148
9149 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9150
9151         * as/hc08/m08pst.c,
9152         * src/SDCCglue.c: sdccopt works for the hc08 port now
9153
9154 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
9155
9156         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
9157
9158 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9159
9160         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
9161
9162 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9163
9164         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
9165         rules
9166         * src/SDCCmain.c,
9167         * src/SDCCglobl.h,
9168         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
9169         comments from the peephole optimizer replacement rules
9170         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
9171         symbols
9172         * src/SDCCcse.c (updateSpillLocation),
9173         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
9174         equivalents
9175         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
9176         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
9177         objects far pointers
9178
9179 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9180
9181         * src/SDCCsymt.h: a missing part of my last change
9182         * src/pic/ralloc.c (regTypeNum),
9183         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
9184
9185 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9186
9187         * src/SDCCicode.h,
9188         * src/SDCCicode.c (aggrToPtrDclType),
9189         * src/SDCCptropt.h,
9190         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
9191         ptrPseudoSymConvert),
9192         * src/pic/ralloc.c (regTypeNum),
9193         * src/pic16/ralloc.c (regTypeNum),
9194         * src/hc08/ralloc.c (regTypeNum),
9195         * src/ds390/ralloc.c (regTypeNum),
9196         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
9197         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
9198
9199 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9200
9201         * link/z80/lkmain.c (afile),
9202         * as/hc08/lkmain.c (afile),
9203         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
9204         prevent a pointer problem when a filename has no directory and
9205         no extension specified.
9206
9207 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9208
9209         * link/z80/lkmain.c (afile): allow periods in directory names
9210         * link/z80/lkmain.c (afile),
9211         * as/mcs51/lkmain.c (afile),
9212         * as/hc08/lkmain.c (afile): allow linker script file to have an
9213         extension other than ".lnk"
9214         * link/z80/lklex.c (getfid),
9215         * link/z80/lkmain.c (parse),
9216         * as/mcs51/lklex.c (getfid),
9217         * as/mcs51/lkmain.c (parse),
9218         * as/hc08/lklex.c (getfid),
9219         * as/hc08/lkmain.c (parse): Support comments in the linker script
9220         file on lines by themselves and after filenames
9221
9222 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9223
9224         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
9225
9226 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9227
9228         * src/z80/peeph-z80.def: removed some peephole rules that don't
9229         work with multibyte arithmetic (fixed bug #937126)
9230         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
9231         to registers and not global variables
9232         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
9233         geniCodePreInc, geniCodePostDec, geniCodePreDec,
9234         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
9235         checking for assignments not internally generated (fixed bug #931895)
9236         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
9237         structure member (fixed bug #930072)
9238
9239 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9240
9241         * src/SDCCmain.c (linkEdit),
9242         * src/hc08/main.c (_hc08_parseOptions),
9243         * as/hc08/Makefile.in,
9244         * as/hc08/aslink.h,
9245         * as/hc08/asm.h,
9246         * as/hc08/m08pst.c,
9247         * as/hc08/lkrloc.c (relr, rele),
9248         * as/hc08/lkarea.c (lnkarea)
9249         * as/hc08/lkmain.c (afile, parse),
9250         * as/hc08/lkelf.c: support for ELF output
9251         * as/hc08/lks19.c (s19),
9252         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
9253
9254 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9255
9256         * as/mcs51/lkihx.c: Fixed bug #899105.
9257
9258 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9259
9260         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
9261         .dsp files from Unix to DOS.
9262
9263 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9264
9265         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
9266         function pointers; we have been compliant for several months now.
9267         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
9268         change that was accidently commented out
9269         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
9270         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
9271         bug #922319
9272
9273 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9274
9275         * src/hc08/gen.c: output of all of the internal debugging information
9276         is now controlled by the D() macro; it is disabled by default
9277
9278 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9279
9280         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
9281         harder to keep the same registers during a CAST iCode
9282         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
9283         long via int can be done in a single cast, if the signedness is
9284         correct.
9285         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
9286         putchar() in tinibios.c in ds390's library
9287
9288 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
9289
9290         * src/SDCCast.c (decorateType): fixed bug #898889,
9291         cast result of a literal complement too
9292         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
9293         fixed check for bitfields
9294
9295 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
9296
9297         * src/SDCCicode.c (geniCodeLogic): made it static,
9298         (geniCodeLogicAndOr): added in order to fix bug #905492,
9299         (ast2iCode): fixed bug #905492
9300         * support/regression/tests/bug-905492.c: added
9301         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
9302         (processParms): fixed bug #927659: don't copy parms, this will clear
9303         decorated flag
9304         * support/regression/tests/bug-927659.c: added
9305
9306 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
9307
9308         * src/SDCCast.c (addCast): don't cast float to char
9309         * device/lib/libsdcc.lib: added _memmove
9310
9311 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
9312
9313         * device/lib/large/Makefile: fixed parallel execution by
9314         replacing `make` by `$(MAKE)`
9315
9316 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9317
9318         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
9319         offsets (fixes bug #923936)
9320
9321 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
9322
9323         * device/lib/small/Makefile: fixed parallel execution by
9324         replacing `make` by `$(MAKE)`
9325
9326 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
9327
9328         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
9329
9330 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
9331
9332         * src/pic/gen.c (genCpl): multi-byte complements were not working.
9333         * src/regression/Makefile: Regression test was not running.
9334
9335 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
9336
9337         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
9338         complement if possible
9339         * src/SDCCval.c (valComplement),
9340         * src/SDCCicode.c (operandOperation): fixed complement of literal
9341         * support/regression/tests/onebyte.c (testComplement): added
9342
9343 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
9344
9345         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
9346         return an optimized tree; actually replace actParm with the new tree
9347         * src/SDCCast.h: added some parantheses to remove side effects
9348         * support/regression/tests/bug-920866.c
9349
9350 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
9351         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
9352         Bit operands were not being handled properly in the pic14 port.
9353         (now src/regression/add.c passes again).
9354
9355 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9356
9357         * src/SDCC.y (labeled_statement): case and default no longer require
9358         a following statement (RFE #893037)
9359
9360 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9361
9362         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
9363         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
9364         disabled (fixes bug #916294)
9365         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
9366         "mov a,acc"; patch provided by Lenny Story
9367         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
9368
9369 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9370
9371         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
9372         functions
9373         * src/ds390/gen.c (genFunction, genEndFunction),
9374         * src/ds390/ralloc.c (ds390_assignRegisters),
9375         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
9376         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
9377         pushed if there are parameters passed on the stack. Also, a cleaner
9378         way to decide if r0/r1 should be pushed/popped. (Together they fix
9379         bug #918693)
9380
9381 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9382
9383         * doc/sdccman.lyx,
9384         * device/lib/mcs51/crtpagesfr.asm,
9385         * device/lib/mcs51/crtxinit.asm,
9386         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
9387         to avoid confusion with Si Lab's SFRPAGE register.
9388
9389 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9390
9391         * src/SDCCglue.c (emitMaps): allow public sfr variables
9392         * src/SDCCglue.c (initialComments): include compiler build date
9393         with compiler version and put the timestamp of the generated
9394         assembly file on a serperate line to be less confusing.
9395         * src/port.h: added genInitStartup hook
9396         * src/avr/main.c,
9397         * src/ds390/main.c,
9398         * src/hc08/main.c,
9399         * src/pic/main.c,
9400         * src/pic16/main.c,
9401         * src/xa51/main.c,
9402         * src/z80/main.c: genInitStartup initialize as NULL (default to
9403         historical behaviour)
9404         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
9405         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
9406         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
9407         library instead of hard coding it into the compiler.
9408         * support/regression/ports/mcs51-stack-auto/spec.mk,
9409         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
9410         * device/lib/mcs51/Makefile,
9411         * device/lib/small/Makefile,
9412         * device/lib/large/Makefile,
9413         * device/lib/mcs51/crtpagesfr.asm,
9414         * device/lib/mcs51/crtstart.asm,
9415         * device/lib/mcs51/crtxclear.asm,
9416         * device/lib/mcs51/crtxinit.asm,
9417         * device/lib/mcs51/crtclear.asm,
9418         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
9419         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
9420         and into user configurable files.
9421         * device/lib/clean.mk: clean mcs51 directory too
9422         * support/regression/tests/longlit.c: added static to T1 declaration
9423         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
9424         accesses in the initialization code
9425
9426 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9427
9428         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
9429         OSCTRIMVAL as noted in bug #916008
9430
9431 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9432
9433         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
9434         in loops with multiple exits (reported as incorrect registers
9435         used by Martin Helmling in Sdcc-user list)
9436
9437 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9438
9439         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
9440         made ds390 register extensions look less like error messages
9441
9442 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9443
9444         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
9445         reported by Adam Wozniak in Sdcc-user list
9446
9447 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
9448
9449         * src/SDCCast.c (decorateType): fixed with bug and promotion in
9450         arithmetic optimizations, added debug output
9451
9452 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
9453
9454         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
9455         * sdcc.spec: updated and split sdcc into 3 rpms
9456         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
9457         needed for literals of LEFT_OP and '+'
9458         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
9459         introduced RESULT_TYPE_NOPROM
9460         (geniCodeMultiply): fixed logic for decision if mul is optimized to
9461         left shift
9462         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
9463         limited promotion to int only for '*'
9464         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
9465
9466 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
9467
9468         * src/pic16/gen.c (genSkip),
9469         (genc16bit2lit), (gencjneshort): commented out
9470         (is_LitOp): new helper function, checks operand type
9471         (genCmpEq): rewritten
9472
9473 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
9474
9475         * support/regression/tests/bug-908454.c: added
9476
9477 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
9478
9479         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
9480         * src/SDCCicode.c (usualBinaryConversions): op needs int type
9481         (geniCodeCast): cosmetic, don't preserve bit storage class
9482         (geniCodeLeftShift): added promotion
9483         (geniCodeLogic): fixed regression
9484         * src/SDCCsymt.c (computeTypeOr): accept bits too
9485         (compareType): 2nd part of fix for bug #908454, needed for bitfields
9486
9487 2004-03-07  Borut Razem <borut.razem AT siol.net>
9488
9489         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
9490
9491 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
9492
9493         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
9494         version of pic16_genPackRegisters which does not check if ic is a
9495         CAST operator,
9496         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
9497         function cause string1.c regression test fails
9498
9499 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
9500
9501         * sim/ucsim/configure.in,
9502         * sim/ucsim/configure,
9503         * sim/ucsim/doc/Makefile.in: use docdir
9504         * src/SDCC.y: fixed sbit atrributes
9505         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
9506         * src/SDCCast.c (decorateType): |^& need special promotion handling
9507         * src/SDCCast.h,
9508         * src/SDCCsymt.h: moved definition of RESULT_TYPE
9509         * src/SDCCsymt.h (computeType),
9510         * src/SDCCicode.c: computeType() needs op
9511         * src/SDCCsymt.c (checkTypeSanity),
9512         * doc/sddman.lyx: "plain" bitfields are unsigned
9513         * src/SDCCsymt.c (computeTypeOr): added
9514         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
9515         |^& ops
9516         * src/SDCCval.c (val*): computeType() needs op
9517         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
9518         * support/regression/tests/onebyte.c: added tests for |^&
9519
9520 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
9521
9522         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
9523         for writing icode into asm output.
9524
9525 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
9526
9527         * src/pic16/device.c: added some debug lines enabled
9528         with macro DEBUG_CHECK,
9529         * src/pic16/genarith.c: more debug in genPlus,
9530         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
9531         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
9532         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
9533         * (aopForSym): onStack symbols are re-placed in data memspace,
9534         and onStack flag is cleared,
9535         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
9536         copy temporary pcodeop,
9537         * (genPcall): added warning for not updating PCLATU,
9538         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
9539         always true for pic16 port,
9540         * (genMultOneWord): NEW, supports integer multiplication,
9541         * (genMult): modified to call genMultOneWord,
9542         * (ifxForOp): added warning when return NULL,
9543         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
9544         flag is set before call to operandFromSymbol for implicit
9545         added structures,
9546         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
9547         options.intlong_rent are set by default,
9548         * (_hasNativeMulFor): modified to allow port generation of integer
9549         multiplication,
9550         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
9551         set regtype to REG_SFR for all registers, restricting seting the
9552         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
9553
9554 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9555
9556         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
9557         more than 500 times in the regression tests
9558
9559 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9560
9561         * support/Util/SDCCerr.h,
9562         * support/Util/SDCCerr.c,
9563         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
9564         enumerator_list),
9565         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
9566         for symbol conflicts.
9567         * support/valdiags/tests/enum.c,
9568         * support/valdiags/tests/tentdecl.c,
9569         * support/valdiags/tests/struct.c: expect possible error messages
9570         referring to original symbol definitions.
9571         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
9572         * src/SDCCsymt.h,
9573         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
9574
9575 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
9576
9577         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
9578
9579 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
9580
9581         * src/pic16/ralloc.c (newReg): fixed bug #908929
9582
9583 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9584
9585         * src/ds390/gen.c: added missing #include "main.h"
9586
9587 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
9588
9589         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
9590         checking if symbol is already in set,
9591         * src/pic16/device.h: prototype for checkAddSym,
9592         * src/pic16/gen.c: (_G): added entry interruptvector,
9593         * (assignResultValue): removed some commented out lines,
9594         * (genFunction): check for ISR via sym->type, absolute section for
9595         interrupt code is created via a new pBlock, the goto instruction is
9596         placed now correctly at the interrupt vector position, changed all
9597         references from ivec to _G.interruptvector,
9598         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
9599         is the interrupt is a high priority one, same for return from ISR,
9600         * src/pic16/glue.c: changed all calls of addSetHead for publics and
9601         externs to calls of checkAddSym,
9602         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
9603         pic16_pcode_verbose flag is set,
9604         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
9605         * src/pic16/pcoderegs.c: message about how many registers are saved
9606         will only be emitted if pic16_pcode_verbose flag is set,
9607
9608 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9609
9610         * src/ds390/ralloc.h,
9611         * src/ds390/ralloc.c (ds390_regWithIdx),
9612         * src/ds390/gen.c (emitcode),
9613         * src/ds390/main.h,
9614         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
9615         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
9616         ds390operandCompare, getRegsRead, getRegsWritten,
9617         initializeAsmLineNode): customized instruction size calculation for
9618         ds390, started basis for some register optimizations
9619         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
9620         corresponding assembly output
9621         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
9622         missing push/pop of r0/r1. Optimized push/pops
9623
9624 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9625
9626         * src/mcs51/main.c (instructionSize): fixed ACALL size
9627         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
9628
9629 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
9630
9631         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
9632         the sorting of rlist with NULL elements
9633         * (print_idataType, print_idata): NEW to create idata sections
9634         * src/pic16/device.h: idataSymSet new variable
9635         * src/pic16/gen.c (genFunction): fixed some bugs in string
9636         comparing, improved the absolute section creation for ISRs,
9637         added FSR0L/FSR0H in registers that are saved in an ISR,
9638         * (genInline): fixed the processing of inline snippets,
9639         now they undergo no process by the peephole optimizer
9640         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
9641         are placed in idataSymSet,
9642         * (pic16emitStaticSeg): extern symbols are added in externs,
9643         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
9644         switching when aboslute variables are placed in access bank memory
9645         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
9646         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
9647         commented out with #if,
9648         * (pic16_packRegisters): reintroduce the check for CAST because some
9649         symbols are not correctly handled,
9650         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
9651         pCodeInstruction instead of pCode,
9652         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
9653         pCodeAsmDir definition,
9654         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
9655         directive, then the argument directive is emitted without the leading
9656         tab, hack for inline labels which must be in the first column,
9657         * (compareLabel,pic16_findNextInstruction),
9658         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
9659         * (insertBankSwitch): modified for the new pCodeAsmDir,
9660
9661 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9662         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
9663
9664         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
9665         instance,
9666         * (pushSide): commented out with #if,
9667         * (assignResultValue): fixed some typos in saving
9668         registers,
9669         * (genPcall): FIXED and sync'ed with genCall,
9670         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
9671         * (genNearPointerGet): fixed to handle some more cases,
9672         implementation scheme via table reads,
9673         * (genConstPointerGet): modified to access code memory correct,
9674         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
9675         and improved to handle some cases
9676         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
9677         instead of "RETLW" for init data
9678         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
9679         not IN_DIRSPACE, work around to reduce bank switching when aboslute
9680         variables are placed in access bank memory (<0x80 and >=0xf80),
9681         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
9682         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
9683         TBLWT_POSTDEC,TBLWT_PREINC
9684         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
9685         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
9686         directives
9687         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
9688         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
9689         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
9690         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
9691
9692 2004-02-29  Borut Razem <borut.razem AT siol.net>
9693
9694         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
9695         support/Util/findme.h, support/Util/system.h: enhance binary relative
9696         search for lib and include by using findProgramPath()
9697
9698 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9699
9700         * src/SDCCpeeph.h,
9701         * src/SDCCpeeph.c (pcDistance),
9702         * src/port.h,
9703         * src/mcs51/ralloc.h,
9704         * src/mcs51/ralloc.c (mcs51_regWithIdx),
9705         * src/mcs51/main.h,
9706         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
9707         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
9708         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
9709         size calculation port specific, started basis for some register
9710         optimizations
9711         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
9712         missing push/pop of r0/r1. Optimized push/pops
9713         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
9714         * device/lib/_modsint.c (_modsint),
9715         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
9716         and stack version so regression tests pass
9717
9718 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
9719
9720         * src/Makefile.in (dep): include SLIBOBJS in dependency check
9721         * src/SDCCast.c (decorateType): catch another small optimization
9722         with '?' operator
9723         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
9724         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
9725         modified to finally use computeType() all over SDCC,
9726         see Feature Request #877103
9727         * src/SDCCval.h: cosmetic
9728         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
9729         valCompare(); regression tested in muldiv.c
9730         * support/regression/tests/muldiv.c (testMod): mod sign follows
9731         dividend only
9732
9733 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
9734
9735         * src/SDCCast.c (decorateType): fixed bug #902362
9736         * doc/INSTALL.txt: fixed install instructions for win32
9737
9738 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
9739
9740         * device/include/Makefile.in (install): fixed by replacing spaces
9741         by tabs
9742         * doc/README.txt,
9743         * doc/INSTALL.txt: updated for release
9744         * doc/sdccman.lyx: added warning for --xstack being buggy
9745
9746 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
9747
9748         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
9749         to eliminate build warnings.
9750         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
9751
9752 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
9753            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9754
9755         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
9756         removed -penable-stack, added comment for stack pragma, added
9757         warning for not initializing the stack/frame registers, removed
9758         comment at interrupts section
9759
9760         Stack is made permanent, there is no ability to disable stack usage.
9761         * src/pic16/device.h,
9762         * src/pic16/device.c: removed all references to USE_STACK macro,
9763         * src/pic16/device.c (pic16_dump_section): when no elements in
9764         rlist, free rlist before return,
9765         * (pic16_dump_int_registers): NEW, internal registers are a new set
9766         of general purpose registers reused by each function,
9767         * (checkAddReg): returns 1 if registers is added to set,
9768         * (pic16_groupRegistersInSection): when a registers is of type
9769         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
9770         * src/pic16/device.h: memRange and Assigned Memory are deleted,
9771         SRCASECMP macro is moved here from device.c
9772         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
9773         PO_PCLATU, PO_PRODL, PO_PRODH,
9774         * (pic16_pCodeOpType, genMinus,
9775         changed compares to "a" register, with AOP_ACC,
9776         * (pic16_genPlus): fixed some bugs and indented properly,
9777         * (pic16_addSign): changed size to size+offset in the MOVWF
9778         instruction,
9779         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
9780         multiply 8-bit operand by literal, result is 8-bit,
9781         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
9782         multiply 2 8-bit operand, result is 8-bit,
9783         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
9784         genUMult8X*_16,
9785         * src/pic16/gen.c: changed accUse to contain WREG only,
9786         * (pic16_emitcomment): renamed to pic16_emitpcomment,
9787         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
9788         true, do not use immediate addressing any more unless sym is a
9789         pointer in codespace,
9790         * (aopForRemat): do not use immediate addressing when symbol not in
9791         codespace and when symbol's address is requested,
9792         * (aopOp): for-loop in if(sym->accUse) is modified for the new
9793         accUse size (= 1),
9794         * (aopGet): added case for AOP_ACC and don't return "accumulator
9795         bug" but WREG instead,
9796         * (popGetTempReg): pushes contents of temporary register in stack,
9797         * (popReleaseTempReg): pops contents of temporary register from
9798         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
9799         * (pic16_popGet): separated case AOP_ACC to return register WREG
9800         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
9801         or PO_IMMEDIATE and initializes their instance/offset appropriately,
9802         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
9803         the use of immediate pointers to certain cases only.
9804
9805         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
9806         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
9807         * (assignResultValue, genCall, genRet): modified to use the new
9808         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
9809         genPcall is still broken,
9810         * (genFunction): added code to create 'A' type pBlocks when
9811         interrupt functions are generated, code not extensively tested yet,
9812         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
9813         * (genEndFunction): modified so ISRs pop stored registers from stack,
9814         * (genMultOneByte): cleanup,
9815         * (AccRsh): added flag andmask, to and result with appropriate mask,
9816         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
9817         * (genDataPointerGet): fixed and reenabled its use,
9818         * (genNearDataPointerGet): bugs fixed,
9819         * (genDataPointerSet): bugs fixed,
9820         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
9821         pic16_DumpSymbol, pic16_DumpOp,
9822         * src/pic16/genutils.h: function prototypes for the above functions,
9823         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
9824         pointers,
9825         * (pic16emitRegularMap): many many many improvements, but needs a
9826         major cleanup,
9827         * src/pic16/main.c: enable_stack in pic16_options is removed,
9828         * (_pic16_parseOptions): removed command line options -penable-stack,
9829         * (_process_pragma): emit stack symbol only when stack pragma is
9830         processed,
9831         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
9832         redirected to FSR0L/FSR0H pair,
9833         * (pic16_get_op, pic16_get_op2): modifications and improvements,
9834         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
9835         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
9836         for immediates,
9837         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
9838         * (dumpPicOptype): NEW,
9839         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
9840         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
9841         with movff instruction,
9842         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
9843         added pic16_int_regs, some packRegsFor* functions are commented out,
9844         because produce errors,
9845         * src/pic16/NOTES: minor modifications
9846
9847 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9848
9849         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
9850         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
9851         --pack-iram.
9852         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
9853         * as/mcs51/lkaomf51.c: fixed bug #895763
9854
9855 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
9856
9857         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
9858
9859 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9860
9861         * doc/sdccman.lyx: added details about the HC08 storage classes and
9862         interrupts, fixed the register usage info for z80 & gbz80
9863
9864 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
9865
9866         * doc/sdccman.lyx: added more pic16 port documentation
9867         * device/include/pic16/: added header pic18fregs.h
9868
9869 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
9870
9871         * doc/sdccman.lyx: added Vangelis' contribution
9872
9873 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9874
9875         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
9876         extend to the next CALL or PCALL, not just to the next CALL.
9877
9878 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
9879
9880         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
9881
9882 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9883
9884         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
9885         bug #895752 and a better fix for bug #716790
9886
9887 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9888
9889         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
9890
9891 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9892
9893         * doc/sdccman.lyx: minor changes, minor changed
9894
9895 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
9896
9897         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
9898         which can't handle SDCC_NEWONEBYTEOPS,
9899         (geniCodeMultiply): removed conversion from mult to shift for pic14
9900         and pic16
9901
9902 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9903
9904         * src/hc08/gen.h,
9905         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
9906         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
9907         thus fixing bug #895406
9908
9909 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
9910
9911         * device/lib/_modsint.c,
9912         * device/lib/_modslong.c: sign follows divisor only
9913         * src/hc08/gen.c (genMultOneByte): if result size is 1,
9914         signs or signedness can be ignored
9915         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
9916         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
9917         added optimization for IFX,
9918         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
9919         arguments;
9920         reenabled optimization for IFX, which was removed on 2004-01-11
9921         * src/SDCCast.h: added return type IFX
9922         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
9923         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
9924         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
9925         SDCC_OLDONEBYTEOPS selects the old behaviour
9926         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
9927         changed again and commented promotion rule
9928         * src/SDCCval.c (valDiv): promotion no longer necessary
9929         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
9930         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
9931         rewritten
9932         * support/regression/tests/onebyte.c: added
9933
9934 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
9935
9936         * gen.c (genInline): reverted to old code for assemnling inline
9937         code because of bug reported James Chadd
9938
9939 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
9940
9941         * ralloc.h: missing declarations from previous patch,
9942         seems that patch for ralloc.h was never applied, fixed
9943
9944 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9945            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
9946
9947         * pcode.c,
9948         * pcode.h,
9949         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
9950         indirect addressing. Marked FSR0 as deprecated
9951         * gen.c (pointerCode): commented out, not needed now
9952         (pic16_popGet2p): new MOVFF helper function
9953         (genGenPointerGet),
9954         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
9955         (shiftRLong): removed duplicate debugging info
9956
9957 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9958
9959         * src/ds390/gen.c (genNearPointerGet),
9960         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
9961         optimization with bits, but not bitfields.
9962         * src/ds390/ralloc.c (packRegisters),
9963         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
9964
9965 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
9966
9967         * src/SDCCcse.c (algebraicOpts): copy operands before modification
9968
9969 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9970
9971         * src/SDCCsymt.h,
9972         * src/SDCCicode.c (operandFromSymbol),
9973         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
9974         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
9975         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
9976         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
9977         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
9978         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
9979         bug #892038
9980         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
9981         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
9982         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
9983         * src/SDCCsymt.c (newSymbol),
9984         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
9985         enumerator_list),
9986         * src/SDCCval.h,
9987         * src/SDCCval.c (newiList): fixed bug #885705
9988
9989 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9990
9991         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
9992         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
9993
9994 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9995
9996         * device/include/c8051f120.h,
9997         * device/include/c8051f300.h,
9998         * device/include/c8051f310.h: added/updated header files for Silicon
9999         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
10000         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
10001         in new section Submitting patches
10002
10003 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10004
10005         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
10006         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10007         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10008         genGenPointerSet),
10009         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
10010         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10011         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10012         genGenPointerSet),
10013         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
10014         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10015         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10016         genGenPointerSet),
10017         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
10018         genFarPointerGet, genCodePointerGet, genGenPointerGet,
10019         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
10020         genGenPointerSet): fixed bug #892400
10021         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
10022         to eliminate build warnings.
10023         * src/SDCCast.c (processParms),
10024         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
10025         fixed bug 751859
10026         * support/valdiag/valdiag.py: added GCC to the list of defines active
10027         when compiling with gcc
10028
10029 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10030
10031         * support/Util/SDCCerr.h,
10032         * support/Util/SDCCerr.c,
10033         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
10034         with an incomplete type (fixed bug #883734)
10035         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
10036
10037 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10038
10039         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
10040
10041 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10042
10043         * src/SDCCast.c (decorateType),
10044         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
10045         function pointer implementation
10046         * support/regression/tests/funptrs.c: added tests to verify both forms
10047         of function pointers work correctly. Added tests to verify parameters
10048         are passed in the correct order.
10049
10050 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
10051
10052         * device.c (regCompare): registers are sorted by ascending
10053         address and increasing size,
10054         * main.c (_pic16_finaliseOptions): removed the declaration
10055         of compiler macro MCU. Now a macro of the format pic18fxxxx
10056         will be defined from the command line
10057
10058 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
10059             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
10060
10061         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
10062         PCOP_RLCF was overwritten!
10063         * gen.c (genSkip): commented out calls to pic16_emitcode,
10064         * (genCmpEQ): fixed "long" compares, only high word did get compared,
10065         * (genlshTwo),
10066         * (genRRC): added debugging info,
10067         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
10068         overwritten while shifting,
10069         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
10070         overwritten while shifting,
10071         * (AccLsh),
10072         * (AccRsh),
10073         * (shiftLLeftOrResult),
10074         * (shiftRLeftOrResult),
10075         * (shiftRLong),
10076         * (shiftLLong): Implemented with pic16_emitpcode
10077         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
10078         * (genLeftShift): Fixed bug, operand for shift by variable always
10079         was "and"ed with 0x0f,
10080         * (genLeftShiftLiteral),
10081         * (genrshTwo),
10082         * (genRightShiftLiteral): added debugging info,
10083         * (genrshFour): added comment,
10084         * (genRightShift): determined signedness from operand "left"
10085         instead of "result"
10086
10087 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10088
10089         * src/SDCCicode.c (geniCodeParms),
10090         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
10091         function pointers, fixed function pointer bugs #861242 and #861896
10092
10093 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10094
10095         * device/include/c8051f000.h,
10096         * device/include/c8051f120.h,
10097         * device/include/c8051f300.h: added header files for Silicon
10098         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
10099
10100 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
10101
10102         * src/SDCCast.c (processParams): added new type flow and restructured
10103         (gatherAutoInit): added new type flow
10104         (addCast): cosmetic changes
10105         (getLeftResultType): added new type flow for array indices, patch
10106         provided by Stas, see FR #877103
10107         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
10108         array index patch by Stas
10109         * src/SDCCast.h: added prototype getResultTypeFromType()
10110         * src/SDCCval.h,
10111         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
10112         * src/pic/glue.c (pic14emitStaticSeg),
10113         * src/pic16/glue.c (pic16emitStaticSeg),
10114         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
10115         for initialization of symbols
10116         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
10117         * support/Util/SDCCerr.h:
10118         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
10119         * .version: bumped version number to 2.3.8
10120         * device/include/Makefile.in (install),
10121         * doc/Makefile (install): changed to 'rm `find ...`' construct to
10122         avoid warnings
10123
10124 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
10125
10126         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
10127         Slade Rich fixed an optimization bug
10128         * src/pic/pcodepeep.c,
10129         * src/pic/pcoderegs.c
10130         * doc/Makefile (install): added test for directory
10131
10132 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10133
10134         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
10135         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
10136         * src/pic/ralloc.c (getRegPtr, getRegGpr),
10137         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
10138         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
10139         * as/mcs51/asexpr.c (term),
10140         * as/hc08/asexpr.c (term): fixed bug #887146
10141
10142 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10143
10144         * src/z80/gen.c (genMult): handle single byte result product
10145         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
10146         DUMMY_READ_VOLATILE (fixed bug #886367)
10147
10148 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
10149
10150         * support/regression/tests/libmullong.c: fixed logic, on little endian
10151         hosts we ended without a mullong_wrapper()
10152
10153 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10154
10155         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
10156         virus/worm forged address usage.
10157
10158 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
10159
10160         Fixed promotion, it should be done on AST level:
10161         * src/SDCCast.c (addCast): added promotion to int
10162         (decorateType): updated call to upCast()
10163         * src/SDCCicode.c (geniCodeLeftShift): removed call to
10164         usualUnaryConversions()
10165
10166 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
10167
10168         * support/regression/tests/literalop.c (mulWrapper): Added a
10169         wrapper to remove integer overflow warnings.
10170
10171         * support/regression/tests/float_trans.c: Made work on host.
10172
10173         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
10174         location of sz80.
10175
10176         * support/regression/generate-cases.py (main): Changed from inline
10177         to a main method.
10178
10179         * doc/Makefile (install): Changed to depth first to get rid of
10180         missing directory install warning.
10181
10182         * as/Makefile (install-doc): Made work on Mac.
10183
10184 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
10185
10186         * src/SDCCast.c: added an additional type flow in decorateType() of
10187         opposite direction, see feature request #860006; it's enabled at runtime
10188         by setting the environment variable SDCC_NEWTYPEFLOW
10189         * src/SDCCast.h: changed prototype of decorateType()
10190         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
10191         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
10192         'char' to 'int' can be omitted, if both operands are 'unsigned char';
10193         see feature request #877103
10194         * src/SDCCval.c: updated call of decorateType()
10195         (valBitwise): fixed bug #882876
10196         (valMinus): added promotion
10197         (valLogicAndOr): result is unsigned
10198         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
10199         * src/SDCCsymt.c (computeType),
10200         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
10201         must not cause an unsigned operation
10202         * src/pic/glue (pic14emitRegularMap),
10203         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
10204
10205 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
10206
10207         * src/pic/pcode.c (PCodeID): commented out left over debug code
10208
10209 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
10210
10211         * support/valdiag/tests/overflow.c: added shift tests
10212         * src/pic/device.c,
10213         * src/pic/gen.c,
10214         * src/pic/gen.h,
10215         * src/pic/glue.c,
10216         * src/pic/main.c,
10217         * src/pic/pcode.c,
10218         * src/pic/pcode.h,
10219         * src/pic/pcodepeep.c,
10220         * src/pic/pcoderegs.c,
10221         * src/pic/ralloc.c,
10222         * src/pic/ralloc.h: applied patch from Slade Rich;
10223         added support for multiple code pages and multiple RAM banks on the
10224         PIC 14 port. The ASM files now no longer simply assume all the
10225         code / RAM are in the same page / bank. This means the linker can
10226         safely allocate code/RAM of separate ASM files to different pages/banks.
10227         * doc/sdccman.lyx: added Slade's tips
10228         * src/mcs51/peeph.def: fixed bug #880768
10229
10230 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10231
10232         * src/hc08/ralloc.c (rematStr): fixed bug #879282
10233         * src/SDCCast.c (decorateType): fixed bug #880197
10234
10235 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
10236
10237         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
10238         getopt.h.
10239
10240         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
10241         strtof is not part of C89 and isn't included with Mac OS X.
10242
10243 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10244
10245         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
10246         shiftL2Left2Result): fixed bug #879326
10247         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
10248         (genMultOneByte): fixed bug in signed vs unsigned multiplication
10249         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
10250         address fetch for clr instruction
10251         * device/lib/hc08/_mulint.c: created optimized assembly version
10252         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
10253
10254 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
10255
10256         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
10257         proposed in FR #877103
10258
10259 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
10260
10261         * src/SDCCval.c (cheapestVal): added missing checks
10262         * src/SDCCicode.c (usualBinaryConversions): fixed condition
10263         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
10264
10265 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
10266
10267         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
10268         equal operands
10269
10270 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
10271
10272         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
10273         loaded with the linker search paths (-L arguments) and the libraries
10274         to be linked with the current source (-l arguments). Changes
10275         currently will affect only the pic16 port.
10276         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
10277         include path the port specific paths and port specific libraries,
10278         * gplink command now contains the $3 argument,
10279         * src/pic16/device.h,
10280         * src/pic16/device.c,: structure PIC_device is made public and
10281         renamed to PIC16_device, the same for variable Pics which is renamed
10282         to Pics16. Updated all references to them.
10283         * src/pic16/glue.c (pic16glue): corrected bug with code
10284         initialization which bypassed the variable initializations block.
10285
10286         * device/lib/pic16/Makefile.rules: removed --penable-stack from
10287         COMPILE_FLAGS and added the --nostdinc option
10288
10289 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10290
10291         * device/include/mc68hc908jb8.h: Register defs for another member
10292         of the hc08 family. Contributed by Bjorn Bringert - thanks!
10293
10294 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
10295
10296         Documenting changes from previous commits.
10297         * configure.in (version 1.56),
10298         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
10299         when generating output files to configure the pic16 library,
10300         but now I've commented it out, since gputils aren't installed in the
10301         SF compile farm, so library won't compile
10302
10303         * device/lib/Makefile.in (version 1.56): initially I've added in
10304         target 'all' the prerequestive 'model-pic16' so it compiled the
10305         pic16 library, but now I've commented it out for the same reasons
10306         above,
10307         * added targets 'model-pic16' and 'objects-pic16' to compile the
10308         library
10309         * added target 'port-specific-objects-pic16' to handle the
10310         generated libraries and copy them into the build/ directory
10311         * added target 'clean-intermediate-pic16' to clean intermediate
10312         files into pic16 directory
10313         * in target 'installdirs' added line to create directory pic16 in
10314         the installation path
10315
10316         * device/include/Makefile.in (version 1.11): in target 'install'
10317         added lines to copy all header files to installation path,
10318         * in target 'installdirs' added line create directory for pic16
10319         headers in the installation path
10320
10321 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
10322
10323         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
10324          a function call
10325
10326 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
10327
10328         * configure,
10329         * device/lib/configure.in,
10330         * device/lib/configure: fixed for autoconf 2.57
10331
10332 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10333
10334         * src/z80/main.c (_parseOptions): fixed the portmode= command line
10335         option so that it actually works. Made it specific to the z80, since
10336         the gbz80 doesn't have these kinds of I/O ports.
10337
10338 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10339
10340         * device/include/z180.h,
10341         * device/lib/_memcpy.c,
10342         * device/lib/_memmove.c,
10343         * device/lib/_mulint.c,
10344         * device/lib/ser_ir.c,
10345         * device/lib/ser_ir_cts_rts.c,
10346         * device/lib/_strcmp.c,
10347         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
10348         * src/z80/main.c (_process_pragma): add support for pragmas bank and
10349         portmode; added deprecation warning for bank= and protmode= forms.
10350         Also, guard against buffer overflow.
10351         * src/z80/gen.c (aopGet): generate better code for sfr banked read
10352
10353 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10354
10355         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
10356         changed interrupt vector table generation to only emit declared vectors.
10357         * device/include/Makefile.in: added missing backslash
10358         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
10359
10360 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
10361
10362         Mainly changes to support compilation of the device libraries
10363         * src/pic16/device.c: stack is allocated via symbol and not
10364         via literal number. The symbol is placed in the corresponding
10365         position of the data ram
10366         * (pic16_dump_section): relocatable and absolute uninitialized
10367         data are now emitted in sorted order to reduce section naming,
10368         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
10369         weren't marked as being in the access bank,
10370
10371 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
10372
10373         Added portion of GNU PIC Library under the directory
10374         device/include/pic16 and device/lib/pic16. These files
10375         contain the declarations of SFRs for the PIC18Fxx2 devices.
10376         The directory is initialized via configure from toplevel.
10377
10378 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
10379
10380         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
10381         the spilllocations to be compared correctly
10382
10383 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
10384
10385         * src/SDCCast.c (decorateType): fixed bug introduced today
10386
10387 2004-01-12  Borut Razem <borut.razem AT siol.net>
10388
10389         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
10390         doc/sdccman.lyx: upper case pragmas are deprecated
10391
10392 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
10393
10394         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
10395         in simpler and even better code
10396
10397 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
10398
10399         * src/SDCCicode.c (operandOperation): fixed bug #874819
10400         * src/SDCCast.c (decorateType): fixed
10401         char foo (unsigned long ul) { return ul > 0; }
10402
10403 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10404
10405         * doc/sdccman.lyx: Moved and added some sections, small changes
10406         all over. Telling LaTeX to be less strict with word spacing
10407         to better keep the right margin. Changed some notes about
10408         maintainance of the ports in section 3.2.1 - is it OK like this?
10409
10410 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
10411
10412         SDCC source changes:
10413         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
10414         convilong): modified to inform the pic16 port that builtin functions
10415         are external
10416
10417         PIC16 PORT specific changes:
10418         * src/pic16/device.c pic16_dump_equates() added,
10419         processor registers declared internally by the port are emitted in
10420         the translation as equates,
10421         * src/pic16/gen.c: inline code is passed unprocessed to the
10422         translation,
10423         * (pic16_popGetLit2): fnuction modified to take second operand as
10424         pCodeOp pointer and not as literal,
10425         * (popRegFromIdx): prefixed with pic16_,
10426         * (pic16_popCombine2): modified to receive already allocated pCode
10427         operands,
10428         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
10429         * (genFunction): initializes local stack frame and pushes on stack
10430         all the registers used by this function,
10431         * (genEndFunction): restores all registers from stack and restores
10432         stack frame,
10433         * src/pic16/glue.c (pic16emitRegularMap): various changes and
10434         improvements,
10435         * (pic16glue): changed the program startup sequence,
10436         * added new dbName code 'A' for functions placed in absolute section
10437         * src/pic16/main.c: added function attribute _naked,
10438         * added pragma 'code' to place a fnuction at an absolute address,
10439         * added command line arguments --debug-ralloc and --pcode-verbose,
10440         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
10441         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
10442         * (pic16_newpCodeOpLit2): modified to take the second operand as
10443         pCodeOp pointer,
10444         * (pic16_printpBlock): modified to emit each function in a separate
10445         section,
10446         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
10447         UPPER for immediate operands,
10448         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
10449         instruction,
10450         * src/pic16/peeph.def: all peepholes with movff are commented out,
10451         because there is a problem in the pcode peep optimizer,
10452         * src/pic16/ralloc.c: the register allocator can now reuse local
10453         function symbols for another function. This saves register usage.
10454         * src/pic16/ralloc.h: added flag isLocal in structure regs,
10455
10456         Added file src/pic16/NOTES with information about program writing on
10457         the current port version.
10458
10459 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10460
10461         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
10462         and peephole 252 (array access)
10463
10464 2004-01-09  Borut Razem <borut.razem AT siol.net>
10465
10466         * src/SDCCmain.c : fixed #872250: -l command line defined library
10467           files are scanned before standard library files
10468
10469 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10470
10471         * src/SDCCast.c (decorateType): fixed bug #874046
10472
10473 2004-01-09  Borut Razem <borut.razem AT siol.net>
10474
10475         * support/scripts/sdcc.nsi: remove previous installation
10476
10477 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10478
10479         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
10480         bytes for last interrupt vector (mcs51)
10481         * sdcc.spec: fixed typo
10482
10483 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10484
10485         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
10486         gen51Code): more efficient parameter receive for --model-large
10487         ("bug" #845294)
10488
10489 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10490
10491         * src/ds390/main.c,
10492         * src/z80/main.c: added missed needLinkerScript flags (more than
10493         one port structure defined in these file)
10494         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
10495         bug #795325
10496
10497 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
10498
10499         * src/SDCCmain.c: removed various references to DEFAULT_PORT
10500         * src/port.h: added flag needLinkerScript in port->linker
10501         structure to inform whether to create a .lnk file or not,
10502         * src/avr/main.c,
10503         * src/ds390/main.c,
10504         * src/hc08/main.c,
10505         * src/mcs51/main.c,
10506         * src/pic/main.c,
10507         * src/pic16/main.c,
10508         * src/xa51/main.c,
10509         * src/z80/main.c: changed appropriately to configure
10510         needLinkerScript flag
10511         * src/pic/gen.c,
10512         * src/pic16/gen.c (genAddrOf): fixed bug #863624
10513         * src/pic/glue.c: added variable udata_section_name to
10514         override default uninitialized data segment definition for
10515         devices only with SHAREBANK memory (reported from Erik Epetrich)
10516         * (pic14emitOverlay): modified to emit a commented overlay segment
10517         directive when no overlay data exist
10518         * (picglue): modified to emit uninitialized data segment
10519         according to udata_section_name
10520         * src/pic/main.c (_pic14_parseOptions): added command line
10521         options --udata-section-name=[name] to override default
10522         udata definition name
10523         * modified _linkCmd and _asmCmd to include compiler passed
10524         arguments via -W option
10525         * src/pic16/main.c: added $l in _asmCmd, changed extension for
10526         object file from '.rel' to '.o' in port->linker structure,
10527         changed size of fptr from 2 to 3 in port structure
10528
10529 2004-01-07  Borut Razem <borut.razem AT siol.net>
10530
10531         * support/scripts/sdcc.nsi: update PATH
10532         * support/scripts/sdcc.ico: craeted
10533
10534 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
10535
10536         * device/include/Makefile.in: fix install
10537         * doc/Makefile: fix install
10538
10539 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10540
10541         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
10542         in bug #860505
10543         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
10544         how the function variable allocation summary is displayed; also
10545         include information about variables allocated to the overlay
10546         segment
10547
10548 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10549
10550         * as/mcs51/lkmain.c: Help about -Y option
10551         * as/mcs51/lkarea.c: Fixed gcc warnings
10552
10553 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
10554
10555         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
10556         fixed warning
10557         * support/valdiag/tests/overflow.c: added
10558         * src/SDCCast.c (decorateType),
10559         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
10560         LEFT_OP (left shift)
10561
10562 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10563
10564         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
10565         (default behaviour).
10566
10567 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10568
10569         A python script to validate compiler diagnostic messages. It can be
10570         used to verify that sdcc complains about bad c source code and
10571         gives a good location of the error.
10572         * support/valdiag/Makefile,
10573         * support/valdiag/valdiag.py,
10574         * support/valdiag/tests/*
10575
10576 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10577
10578         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
10579         * src/SDCCsymt.c (newEnumType),
10580         * src/SDCCsymt.h
10581         * support/Util/SDCCerr.c,
10582         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
10583         enum related bugs.
10584         * support/regression/tests/enum.c: added test for enum values that
10585         require at least 2 bytes of storage.
10586
10587 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
10588
10589         * src/common.h: added ifndef/define/endif macros
10590         around the header file.
10591         Bug reported from Jesus Calvino-Fraga
10592
10593 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
10594
10595         * sdcc.spec: updated
10596         * device/include/Makefile.in: don't install CVS directories
10597         * device/lib/Makefile.in: added removal of CVS directories after install
10598         * doc/Makefile: fixed install, added local_icons
10599         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
10600         * src/mcs51/gen.c (genRightShift): fixed bug #870788
10601         * src/ds390/gen.c (genRightShift): fixed bug #870788
10602         * src/SDCCast.c (decorateType): fixed bug #870781
10603
10604 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
10605
10606         PIC16 port related changes:
10607         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
10608         added variable stackPos,
10609
10610         * gen.c: genCall, assignResultValue: added support for
10611         pushing/retrieving function parameters to/from stack,
10612         genFunction,genEndFunction: setup stack frame for the
10613         generated function,
10614         genAddrOf: will be changed according to bug 863624
10615
10616         * added files genutils.c and genutils.h which contain gen*
10617         debugged and optimised functions extracted from gen.c
10618
10619         * glue.c: added variable 'externs' which holds extern symbols,
10620         pic16emitRegularMap: is modified to properly handle relocatable
10621          symbols under the new scheme,
10622         pic16createInterruptVect: is modified
10623         pic16printPublics: is modified to emit 'global' assembler directives,
10624         added pic16_printExterns to print extern symbols,
10625         pic16glue: initializes stack/frame pointer in the beginning of
10626         the assembly output. Temporary hack, will be corrected later,
10627         because gplink yet does not support stack and SDCC does not
10628         yet support a type of crt0.o object to create the final binary.
10629
10630         * Removed many lines that contain 8051 legacy code.
10631         * The code is finally placed under a 'code' directive.
10632         * Added port specific options.
10633
10634         * _process_pragma: simplified since now we do not need *special*
10635         include file to define SFR registers. But a separate header
10636         will be needed. This will be developed later.
10637         * _pic16_parseOptions: added, parses port specific options:
10638         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
10639         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
10640         --preplace-udata-with=
10641
10642         * _pic16_setDefaultOptions: modified to initialize section names,
10643         but hack is temporarly out of order since it needs improvement.
10644         * _pic16_genAssemblerPreamble: configuration words are emitted by
10645         their address instead of their name. This part is incomplete and
10646         supports only the 18Fxx2 devices. Other devices will emit an error
10647         during assembly since they do not contain the same set of config
10648         registers
10649         * _pic16_genIVT: is modified,
10650
10651         * pcode.c: added definitions for some hardware registers that are needed
10652         for stack support
10653         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
10654         All PCI entries are updated. Now LFSR is supported.
10655         * Removed pic16_pciTRIS is mentioned by mdubuc in source
10656         * added pic16_newpCodeOpLit2 to support instructions with
10657         two literal arguments
10658         * pic16_pCode2str: corrected code that emits assembler instructions
10659         with two literal operands and those that have an access bit modifier
10660         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
10661         this fixes a bug which caused some labels to be lost, when an
10662         assembler directive was added, i.e. banksel,
10663         * pic16_FixRegisterBanking: improved logic that causes the insertion
10664         of bank switching,
10665         * InlineFunction: functions that are called once, are not any more
10666         inlined. This can be a port option in the future,
10667
10668         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
10669
10670         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
10671         hold the corresponding uninitialized symbols,
10672         * pic16_allocProcessorRegister: registers have explicit marked the
10673         accessBank field,
10674         * pic16_allocInternalRegister: registers are explicit marked as
10675         not used,
10676         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
10677         processing list, so bit registers were lost,
10678         *
10679
10680         * ralloc.h: added field 'accessBank' and original symbol operand
10681         in register definition,
10682         * removed the field isMapped from register definition,
10683
10684         ** Several functions have been removed from various sources:
10685         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
10686         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
10687         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
10688         pic16_assignRelocatableRegisters
10689
10690         ** others have been introduced:
10691         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
10692         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
10693
10694 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
10695
10696         * support/scripts/inc2h.pl: changed definition of BIT_AT
10697         to emit 'sbit at' instead of 'bit at'. This was a request.
10698
10699         PIC16 port related preliminary changes:
10700         * gen.c: prefixed function popRegFromString with
10701         pic16_ and all references to it corrected
10702         * pcode.c: all pic16_pc_* hardware registers prefixed
10703         with underscore (_),
10704         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
10705         * ralloc.c: newReg(): when register is REG_SFR then
10706         set address to rIdx,
10707         pic16_allocProcessorRegister(): marks register wasUsed=0
10708         pic16_writeUsedRegs(): added a call to assign processor
10709         registers via pic16_assignFixedRegisters
10710
10711 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10712
10713         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
10714         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
10715         variables in unused register banks.  Also the SSEG is placed
10716         wherever there is enough space for it, and IDATA can be anywhere
10717         in internal RAM.  For now compile using -Wl-Y[stack_size].
10718         The mem file is different for this option as well, since it
10719         makes no sense of talking about DSEG lenght.
10720
10721 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
10722
10723         * src/SDCClrange.c: fixed bug 869095 that caused segfault
10724         in certain cases, e.g. when ROM assignment, patch provided
10725         from Albert den Haan.
10726
10727 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
10728
10729         Many signedness and type propagation fixes:
10730         * src/SDCCicode.c: made geniCodeCast() static
10731         replaced SPEC_ by IS_ (cosmetic)
10732         (operandOperation): fixed div and mod operation
10733         (usualBinaryConversions): added support for promotion of char
10734         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
10735         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
10736         (geniCodeAdd): an array index will stay unsigned, even if promoted
10737         from char to int
10738         (geniCodeArray): ditto
10739         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
10740         * src/SDCCsymt.c (computeType): added more support for char;
10741         promotion of char is selectable by promoteCharToInt, fixed signedness
10742         for all cases
10743         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
10744         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
10745         * src/SDCCval (val*): replaced signedness calculation by
10746         computeType()
10747         rearranged if-branches (cosmetic)
10748         (valShift): added warning W_SHIFT_CHANGED
10749         (valCompare): fixed problem with different types
10750         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
10751         * support/regression/tests/literalop.c: added many cases
10752         * support/regression/tests/ast_constant_folding.c: changed finally to
10753         'unsigned int'
10754         * .version: new year, new version: 2.3.7
10755         * src/SDCCmain.c (main): applied patch #866468
10756         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
10757         provided by Scott Bronson
10758         * doc/sdccman.lyx: updated documentation for sdcdb
10759         updated and added chapter tips
10760
10761 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10762
10763         * src/SDCCsymt.h: missing from yesterday's commits
10764
10765 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10766
10767         * src/SDCC.y (struct_or_union_specifier),
10768         * support/Util/SDCCerr.c,
10769         * support/Util/SDCCerr.h: verify that struct & union tags are used
10770         as declared.
10771
10772 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10773
10774         * src/SDCCglobl.h: missing from yesterday's commits
10775
10776 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10777
10778         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
10779         sft_attributes, struct_declaration, parameter_declaration,
10780         type_name, start_block, declaration_list),
10781         * src/SDCC.lex (check_type): support redefinition of typedef names
10782
10783 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10784
10785         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
10786         aligned xdata arrays. Erik helped me with the if clause.
10787
10788 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10789
10790         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
10791         warning
10792
10793 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10794
10795         * src/SDCCast.h,
10796         * src/SDCCast.c (newAst_),
10797         * src/SDCCicode.h,
10798         * src/SDCCicode.c (ast2iCode, newiCode),
10799         * src/SDCCglobl.h,
10800         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
10801         expr, statement, expression_statement, selection_statement,
10802         iteration_statement, expr_opt, jump_statement): foundation for tracking
10803         sequence points
10804         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
10805         point code too)
10806
10807 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10808
10809         * support/Util/SDCCerr.c,
10810         * src/SDCCast.h,
10811         * src/SDCCast.c (createCase, createDefault, decorateType),
10812         * src/SDCClabel.c (labelUnreach),
10813         * src/SDCC.y (labeled_statement, jump_statement): More improvements
10814         to error messages.
10815         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
10816         (with thanks to Stas Sergeev)
10817         * device/include/time.h,
10818         * device/lib/time.c (CheckTime): suppress unreachable code warning
10819
10820 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10821
10822         * src/SDCCast.c (createIvalCharPtr),
10823         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
10824         bug #753752)
10825         * support/regression/tests/nullstring.c: tests for these two bugs
10826
10827 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10828
10829         * support/Util/SDCCerr.h,
10830         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
10831         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
10832         about storage class and 'at' used inside struct or union
10833         * src/SDCCBBlock.c (iCodeFromeBBlock),
10834         * src/SDCCcse.c (ifxOptimize),
10835         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
10836         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
10837         printIval, emitStaticSeg, emitOverlay),
10838         * src/SDCClabel.c (deleteIfx),
10839         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
10840         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
10841         gatherAutoInit, processParms),
10842         * support/Util/SDCCerr.h,
10843         * support/Util/SDCCerr.c (werrorfl): Support for better error location
10844         reporting for post-parse errors.
10845
10846 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10847
10848         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
10849         implicit casts via union; they don't work on big endian systems
10850         (possible fix for bug #861138)
10851
10852 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10853
10854         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
10855         * src/mcs51/main.c: fixed the fix for bug #737001
10856
10857 2003-12-15  Borut Razem <borut.razem AT siol.net>
10858
10859         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
10860
10861 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10862
10863         * support/makebin/makebin.c: put output in binary mode
10864
10865 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10866
10867         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
10868         xdata and data memory on startup. Set the environment variable
10869         SDCC_NOGENRAMCLEAR to disable this.
10870         * src/mcs51/peephole.def,
10871         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
10872         (allows non-interrupt and interrupt code to safely compete for a resource
10873         without the non-interrupt code having to disable interrupts)
10874
10875 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10876
10877         * src/SDCCicode.c (geniCodeAdd),
10878         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
10879         with valFromType if type might be a pointer and host is big endian).
10880         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
10881         types, not just integer types.
10882         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
10883         multiply defined with mismatching "at" address.
10884
10885 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10886
10887         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
10888         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
10889         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
10890         with embedded nulls (fixed bug #753752)
10891
10892 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10893
10894         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
10895         Apparently this did not see much testing (endless loop)
10896
10897 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10898
10899         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
10900
10901 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10902
10903         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
10904         gracefully handle NULL memmap pointers
10905
10906 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10907
10908         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
10909         instead of deleting the iCode when an operand is volatile
10910         * src/z80/gen.c (genDummyRead),
10911         * src/mcs51/gen.c (genDummyRead),
10912         * src/ds390/gen.c (genDummyRead),
10913         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
10914         not just IC_RIGHT
10915         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
10916         * src/SDCC.y: fixed bug #850420
10917
10918 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10919
10920         Applied z80 i/o port patch from Peter Townson and fixed some operators
10921         to better handle operands in A register.
10922         * device/include/z180.h
10923         * src/SDCC.y
10924         * src/SDCCglue.c
10925         * src/z80/gen.c
10926         * src/z80/gen.h
10927         * src/z80/main.c
10928         * src/z80/peeph-z80.def
10929         * src/z80/peeph.def
10930         * src/z80/z80.h
10931
10932 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10933
10934         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
10935
10936 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10937
10938         * device/lib/hc08/_mullong.c: Removed extra #endif
10939
10940 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10941
10942         * sim/ucsim/hc08.src/inst.cc,
10943         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
10944         carries from x to h
10945         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
10946         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
10947         * device/include/stdarg.h: fixed varargs for hc08
10948         * device/lib/Makefile.in,
10949         * device/lib/hc08/Makefile,
10950         * device/lib/hc08/_mulint.c,
10951         * device/lib/hc08/_mullong.c: fixed some endian problems
10952
10953 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10954
10955         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
10956         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
10957         * device/lib/_gptrget.c,
10958         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
10959
10960 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10961
10962         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
10963         * src/SDCCast.c (astErrors): fixed bug #846007
10964         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
10965
10966 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10967
10968         * src/SDCCast.c (decorateType): disabled a transformation I added in
10969         revision 1.188 (access to fields of a structure at an absolute address);
10970         it breaks with bitfields, extern declarations, and gcse analysis.
10971         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
10972         could be assigned through a pointer, so don't complain.
10973         * src/SDCCast.c (astErrors),
10974         * src/SDCCast.h,
10975         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
10976
10977 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
10978
10979         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
10980         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
10981         output of __config directives, since gpasm now supports them
10982         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
10983         pre-processor macro, i.e. -DMCU=p18f452
10984         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
10985         and modified to handle 'cast' icode similarly to '=' icode
10986         * src/pic16/device.h (typedef struct PIC_device): added field
10987         'extMIface' to indicate that chip has external memory interface
10988         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
10989         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
10990         18F8720
10991
10992 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10993
10994         * src/SDCC.y (pointer): fixed bug #846006
10995         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
10996         * src/SDCCast.c (decorateType): fixed bug #846009
10997         * src/ds390/peeph.def,
10998         * src/ds390/gen.c (genAnd, genOr),
10999         * src/mcs51/peeph.def,
11000         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
11001
11002 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11003
11004         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
11005         * src/SDCCdflow.c
11006         * src/SDCCcse.c
11007         * src/SDCCcse.h
11008         * src/SDCCBBlock.h
11009         * src/SDCCBBlock.c
11010
11011 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
11012
11013         fixed bug #845089
11014         * src/SDCCbitv.h,
11015         * src/SDCCbitv.c: added function to free a bitvector
11016         * src/SDCClrange.h,
11017         * src/SDCClrange.c: added function to recompute the liveranges
11018         * src/avr/ralloc.c,
11019         * src/ds390/ralloc.c,
11020         * src/hc08/ralloc.c,
11021         * src/mcs51/ralloc.c,
11022         * src/pic/ralloc.c,
11023         * src/pic16/ralloc.c,
11024         * src/xa51/ralloc.c,
11025         * src/z80/ralloc.c: recompute the liveranges after register packing
11026
11027 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
11028
11029         * src/SDCCloop.c (newInduction): fixed bug #845630
11030
11031 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11032
11033         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
11034         inadvertantly left behind from my 2003-11-12 change
11035
11036 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11037
11038         Updated headers I neglected to commit yesterday.
11039         * src/SDCClrange.h,
11040         * src/SDCCicode.h
11041
11042 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11043
11044         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
11045         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
11046         * src/SDCCopt.c (eBBlockFromiCode),
11047         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
11048         the creation of the key hash table from the sequencing so it can be used
11049         earlier (for some GCSE bug fixes still pending)
11050
11051 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11052
11053         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
11054         * support/regression/tests/addsub.c: testing genPlus shortcut
11055
11056 2003-11-15  Borut Razem <borut.razem AT siol.net>
11057
11058         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
11059
11060 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11061
11062         * src/SDCCcse.c (cseBBlock): fixed bug #527779
11063         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
11064         ordering is immaterial.
11065         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
11066
11067 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11068
11069         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
11070         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
11071         (SIGSEV) of bug #840381
11072         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
11073         unlink new file before rename if new and old filenames are the same)
11074
11075 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11076
11077         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
11078         uninitialized variables) for the mcs51. Set environment variable
11079         SDCC_GENRAMCLEAR to test.
11080         xdata initialization slightly shorter
11081
11082 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11083
11084         * src/SDCCsymt.h,
11085         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
11086         #838241 & 780691 (basicly the same bug)
11087         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
11088         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
11089
11090 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
11091
11092         * src/SDCCmain.c (linkEdit): "fix" #834252
11093
11094 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11095
11096         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
11097         * src/SDCCast.h,
11098         * src/SDCC.y: fixed bug #819403
11099
11100 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11101
11102         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
11103         the reentrant attribute.
11104         * src/hc08/gen.c (genPackBits): added missing stack readjustment
11105         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
11106         simulation
11107         * src/SDCCast.c (decorateType): fixed bug with storage class not being
11108         updated during pointer dereference; f.e. ~(((char *)1)*) was being
11109         erroneously reduced to a literal.
11110         * src/hc08/ralloc.c (packRegisters, rematStr),
11111         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
11112         some cases
11113
11114 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11115
11116         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
11117         * doc/sdccman.lyx: changed from 'article' to 'book'
11118         * doc/Makefile: readded test_suite_spec and cdbfileformat
11119
11120 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
11121
11122         * device/include/stdlib.h: include malloc.h to comply with ANSI
11123         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
11124
11125 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11126
11127         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
11128         * doc/clean.mk: also remove *.out files
11129         * doc/sdccman.lyx: some additions, larger top/bottom margins
11130
11131 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11132
11133         * src/SDCC.y: fixed bug #837365
11134         * support/regression/tests/bitopcse.c
11135         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
11136         a symbol (might be valop instead)
11137         * device/lib/Makefile.in: added errno.c to HC08SOURCES
11138         * device/lib/clean.mk: added hc08 to the cleaning list
11139
11140 2003-11-04  Borut Razem <borut.razem AT siol.net>
11141
11142         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
11143           made 2003-11-04
11144         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
11145           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
11146           malloc is declared in standard stdlib.h
11147
11148 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11149
11150         * device/lib/hc08/Makefile: need to clean .rel not .o files
11151         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
11152
11153 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11154
11155         * src/port.h,
11156         * src/hc08/main.c,
11157         * src/mcs51/main.c,
11158         * src/ds390/main.c,
11159         * src/z80/main.c,
11160         * src/avr/main.c,
11161         * src/pic/main.c,
11162         * src/pic16/main.c,
11163         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
11164         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
11165         tests (which uses the port's oclsExpense function)
11166         * src/SDCC.y,
11167         * src/SDCCast.c,
11168         * src/SDCCicode.c,
11169         * src/hc08/gen.c,
11170         * src/ds390/gen.c,
11171         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
11172
11173 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11174
11175         * src/SDCCcse.c (ifxOptimize),
11176         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
11177         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
11178         deleting the IFX iCode.
11179         * src/hc08/ralloc.c: reduced unneeded slocs
11180         * src/hc08/gen.c: fixed bug in asmopToBoolean
11181
11182 2003-11-04  Borut Razem <borut.razem AT siol.net>
11183
11184         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
11185           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
11186           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
11187           transferred to configure
11188
11189 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
11190
11191         Use headers defined in the C[++] standards:
11192         * sim/ucsim/gui.src/serio.src/fileio.cc
11193         * sim/ucsim/gui.src/serio.src/frontend.cc
11194         * sim/ucsim/gui.src/serio.src/main.cc
11195         * sim/ucsim/gui.src/serio.src/posix_signal.cc
11196         * support/Util/NewAlloc.c
11197         * as/hc08/lklibr.c
11198         * as/mcs51/lklibr.c
11199         * as/z80/aslist.c
11200         * as/z80/assym.c
11201
11202 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11203
11204         * Added MSVC projects for hc08 assembler and linker:
11205         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
11206         /as/hc08/link_hc08.dsp
11207
11208 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
11209
11210         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
11211
11212 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
11213
11214         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
11215
11216 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11217
11218         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
11219
11220 2003-10-31  Borut Razem <borut.razem AT siol.net>
11221
11222         * support/cpp2/cpplib.h,
11223           support/cpp2/cpplib.c,
11224           support/cpp2/cpplex.c,
11225           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
11226           to switch _asm block preprocessing on / off. Default is
11227           #pragma preproc_asm +
11228
11229 2003-10-31  Borut Razem <borut.razem AT siol.net>
11230
11231         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
11232           when outputting comment blocks (when executed with -C option) and
11233           _asm (SDCPP specific) blocks
11234
11235 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11236
11237         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
11238
11239 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
11240
11241         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
11242
11243 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
11244
11245         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
11246         * src/SDCCast.c (decorateType): fixed bug #832664
11247
11248 2003-10-31  Borut Razem <borut.razem AT siol.net>
11249
11250         * support/cpp2/cpplex.c: fixed for SDCPP:
11251           comments(when executed with -C option) and _asm blocks
11252           were included even if they where in skipped #if block.
11253           Applied solution from GCC cpp 3.3.2
11254
11255 2003-10-31  Borut Razem <borut.razem AT siol.net>
11256
11257         * src/SDCC.lex: sdcc now understands both formats:
11258           '# <line_number> <file_name>' and
11259           '#line <line_number> <file_name>'
11260         * support/cpp2/cppmain.c: sdcpp now generates the standard
11261           '# <line_number> <file_name>' instead of former
11262           '#line <line_number> <file_name>'
11263
11264 2003-10-30  Borut Razem <borut.razem AT siol.net>
11265
11266         * support/cpp2/cpphash.h,
11267         * support/cpp2/cpplib.h
11268         * support/cpp2/cpplex.c,
11269         * support/cpp2/cppmain.c,
11270         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
11271
11272 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11273
11274         Fixed a number of problems revealed by bug #827883.
11275         * src/SDCCloop.c (loopInvariants): Spill location of the
11276         result operand should be recomputed if extracted from
11277         a loop. Also, don't extract assignments of an iTemp
11278         from a literal.
11279         * src/SDCCast.c (isConformingBody): loop reversal should
11280         not occur if the control variable is involved with a
11281         relational operator.
11282
11283 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
11284
11285         * .version: bumped to 2.3.6 to reflect the big improvements
11286         made by Erik and Klaus. Thanks!
11287
11288 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
11289
11290         Replaced the livrange code.
11291         * src/SDCClrange.c: added new LR code
11292         * src/SDCCloop.c,
11293         * src/SDCCBBlock.h: removed remainig parts from old LR code
11294         * src/ds390/ralloc.c,
11295         * src/ds390/gen.c: minor fixes to make it work with new code
11296
11297 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11298
11299         * as/hc08/asm.h,
11300         * as/hc08/lkrloc.c,
11301         * src/hc08/gen.c,
11302         * src/hc08/ralloc.c: Fix various warnings related to the hc08
11303         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
11304         (tweaked fix for bug #818696)
11305
11306 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11307
11308         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
11309
11310 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11311
11312         * src/SDCCmain.c,
11313         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
11314         * src/mcs51/gen.c (gencjneshort),
11315         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
11316         more efficient (per Scott Bronson's suggestion)
11317
11318 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11319
11320         Extended the semantics of the critical keyword to include
11321         individual statements. See RFE #827755 and #799831
11322         * src/SDCC.y
11323         * src/SDCCicode.c
11324         * src/SDCCopt.c
11325         * src/SDCCast.c
11326         * support/Util/SDCCerr.c
11327         * support/Util/SDCCerr.h
11328         * src/mcs51/gen.c
11329         * src/ds390/gen.c
11330         * src/hc08/gen.c
11331
11332 2003-10-19  Borut Razem <borut.razem AT siol.net>
11333
11334         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
11335
11336 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11337
11338         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
11339         Fixed bug #818696
11340         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
11341         and predecrement operand is displayed
11342
11343 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
11344
11345         * src/SDCCval.c (valMinus): fixed bug #826041
11346
11347 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11348
11349         Some hc08 related updates that I missed earlier
11350         * sim/ucsim/stypes.h
11351         * support/regression/ports/hc08/spec.mk
11352
11353 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11354
11355         New target "hc08" for the Motorola 68hc08 family of micros
11356
11357         * configure
11358         * configure.in
11359         * Makefile
11360         * src/hc08/*
11361         * src/SDCCmain.c
11362         * src/port.h
11363         * sim/ucsim/hc08.src/*
11364         * sim/ucsim/configure.in
11365         * src/ucsim/configure
11366         * sim/ucsim/packages_in.mk
11367         * as/hc08/*
11368         * as/Makefile
11369         * device/include/mc68hc908qy.h
11370         * device/lib/hc08/*
11371         * device/lib/Makefile.in
11372         * support/regression/ports/hc08/*
11373         * support/regression/Makefile
11374
11375 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11376
11377         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
11378         regression test
11379         * src/ds390/gen.c (genCast): fixed bug #821957
11380
11381 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
11382
11383         * device/lib/logf.c: "fixed" overlay bug
11384         * support/regression/ports/host/spec.mk: added m library
11385         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
11386         * support/regression/tests/float_trans: added (for Eric)
11387
11388 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
11389
11390         * src/mcs51/gen.c (genCpl): fixed bug
11391         http://sf.net/mailarchive/message.php?msg_id=6263915
11392
11393 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
11394
11395         * src/SDCCast.c (decorateType): added extended constant folding
11396         * src/SDCCsymt.c (computeType): cleanup
11397         * src/SDCCval.c (valShift): minor optimization
11398         * support/regression/tests/ast_constant_folding.c: added
11399
11400 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11401
11402         * src/SDCCmain.c: removed some unintended changes
11403
11404 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11405
11406         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
11407         * src/z80/gen.c: fixed part of bug #817589
11408         * src/SDCCsymt.c (checkFunction): fixed bug #817895
11409
11410 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
11411
11412         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
11413         * src/SDCCcflow.c
11414         * src/SDCCcse.c
11415         * src/SDCCdflow.c
11416         * src/SDCClabel.c
11417         * src/SDCClrange.c
11418         * src/SDCCmem.c
11419         * src/SDCCopt.c
11420         * src/SDCCpeeph.c
11421         * src/SDCCset.c
11422         * src/avr/ralloc.c
11423         * src/ds390/ralloc.c
11424         * src/izt/ralloc.c
11425         * src/mcs51/ralloc.c
11426         * src/pic/ralloc.c
11427         * src/pic16/ralloc.c
11428         * src/xa51/ralloc.c
11429         * src/z80/ralloc.c
11430         * src/z80/gen.c: removed unused label "release:"
11431
11432 2003-10-06  Borut Razem <borut.razem AT siol.net>
11433
11434         * src/SDCC.lex: removed definition of unused variables
11435           save_optimize and save_options
11436
11437 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
11438
11439         * clean.mk: removed '=' in "-maxdepth=1"
11440         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
11441         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
11442
11443 2003-10-06  Borut Razem <borut.razem AT siol.net>
11444
11445         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
11446           my_unput() replaced by unput()
11447
11448 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
11449
11450         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
11451         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
11452         type-punned pointer will break strict-aliasing rules"
11453         Old LR behaviour is again default; Klaus' LR can be choosen by
11454         defining the environment variable LRKLAUS
11455         * src/SDCCBBlock.h
11456         * src/SDCCloop.c
11457         * src/SDCClrange.c
11458         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
11459         * clean.mk: fixed removal of files in bin/CVS/
11460         * device/lib/clean.mk: fixed removal of directories small and large
11461         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
11462         * src/SDCCicode.c,
11463         * src/SDCCval.c: removed superflous test for pedantic
11464
11465 2003-10-05  Borut Razem <borut.razem AT siol.net>
11466
11467         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
11468           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
11469           message "unmatched #pragma SAVE and #pragma RESTORE"
11470
11471 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11472
11473         * doc/sdccman.lyx: various additions and updates (interrupts, inline
11474           assembly, critical functions, atomic, nojtbound)
11475
11476 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
11477
11478         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
11479         * src/SDCCBBlock.h
11480         * src/SDCCloop.c
11481         * src/SDCCloop.h
11482         * src/SDCClrange.c
11483
11484 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11485
11486         * src/z80/gen.h,
11487         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11488         * src/mcs51/gen.h
11489         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11490         * src/ds390/gen.h
11491         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11492         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
11493         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
11494
11495 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11496
11497         * src/z80/gen.c (genRet): fixed bug #524753
11498         * src/z80/gen.c (genCast): fixed internal error on cast from
11499         pointer to long
11500         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
11501         fix for bug #477835 to the z80
11502         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
11503         for tracking iCodes in the peephole optimizer for z80
11504
11505 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11506
11507         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
11508         the other part of bug #814548
11509         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
11510
11511 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
11512
11513         * src/SDCCcse.c: fixed part of bug #814548
11514
11515 2003-09-28  Borut Razem <borut.razem AT siol.net>
11516
11517         * src/asm.c: rewrite of printILine() to use temporary file instead
11518           a pipe
11519         * src/xa51/main.c: commented out declaration of int rewinds
11520
11521 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11522
11523         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
11524
11525 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11526
11527         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
11528         * src/asm.c (printILine): Fixed bug #811015
11529
11530 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11531
11532         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
11533         freeing.
11534
11535 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11536
11537         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
11538         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
11539         to correctly handle general case of AOP_PAIRPTR
11540         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
11541
11542 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11543
11544         * src/mcs51/ralloc.c (fillGaps),
11545         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
11546         register positioning bug)
11547
11548 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
11549
11550         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
11551
11552 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11553
11554         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
11555         genCodePointerGet, genGenPointerGet, genFarPointerSet,
11556         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
11557         (ralloc doesn't intentionally do this now, but perhaps later)
11558         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
11559         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
11560         register positioning bugs (Fixed bug #762602 and #795325)
11561         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
11562         (Fixed bug #808779)
11563         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
11564         lines that --i-code-in-asm generates
11565
11566 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11567
11568         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
11569         trying to fclose a FILE* that was already closed.
11570
11571 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11572
11573         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
11574         of const struct should be treated as if const themselves)
11575
11576 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
11577
11578         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
11579
11580 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11581
11582         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
11583         Unix (/n) and DOS (/r/n) line terminations.
11584
11585 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11586
11587         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
11588         bug #613775
11589
11590 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11591
11592         * src/mcs51/gen.c (genFunction, genEndFunction),
11593         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
11594         and restore of EA so that stack offsets to parameters are
11595         correct when using both critical and reentrant/stack-auto.
11596         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
11597         size (can be triggered in error if sloc is shared between
11598         different sized objects)
11599         * device/include/float.h: fixed macros to explicitly use
11600         unsigned long where needed
11601
11602 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
11603
11604         Feature req. 799831: added code to allow nesting of critical functions
11605         * src/mcs51/gen.c (genFunction, genEndFunction)
11606         * src/ds390/gen.c (genFunction, genEndFunction)
11607
11608 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11609
11610         * src/SDCCsymt.c (sclsFromPtr),
11611         * src/SDCCsymt.h,
11612         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
11613         support for standard C idiom of memory mapped variables; for
11614         example, *((xdata int*)0x1234) = 1 is now internally equivalent
11615         to xdata int at 0x1234 tempvar = 1.
11616         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
11617         provided by Akiya ISHIDA
11618
11619 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
11620
11621         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
11622         * src/SDCCval.c (constVal): added reduction from int to char
11623         * src/SDCCval.c (valMult, valDiv): fixed sign handling
11624         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
11625         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
11626         to ignore the sign
11627         * support/regression/tests/shifts.c: fixed
11628
11629 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11630
11631         * src/z80/gen.c (genXor): Fixed bug #805445
11632
11633 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11634
11635         Fixed bug #621531 (const & volatile confusion in the type chain).
11636         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
11637         refer to the const or volatile state of the pointer itself.
11638
11639         * src/SDCCast.c
11640         * src/SDCCglue.c
11641         * src/SDCCicode.c
11642         * src/SDCCsymt.c
11643         * src/SDCCval.c
11644         * src/SDCC.y
11645         * src/SDCCsymt.h
11646         * src/pic/gen.c
11647         * src/pic/ralloc.c
11648         * src/pic16/gen.c
11649         * src/pic16/ralloc.c
11650         * support/regression/tests/const.c
11651
11652 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11653
11654         When checking for duplicated modules, use absolute paths
11655         instead of relative paths.  Files changed:
11656
11657         * as/mcs51/lklib.c
11658         * link/z80/lklib.c
11659
11660 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11661
11662         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
11663
11664 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11665
11666         * device/include/string.h: added size_t typedef, changed
11667         prototypes to use size_t, eliminated separate reentrant and
11668         non-reentrant declarations, added _memmove declaration
11669         * device/lib/_memcpy.c: changed to use size_t instead of int,
11670         changed /4 to >>2 to avoid division library call
11671         * device/lib/_memcmp.c,
11672         * device/lib/_memset.c,
11673         * device/lib/_strncat.c,
11674         * device/lib/_strncpy.c,
11675         * device/lib/_strncmp.c: changed to use size_t instead of int
11676         * device/lib/_memmove.c: new file (fixed bug #772294)
11677         * device/lib/Makefile.in: added _memmove.c
11678         * device/lib/z80/asm_strings.s: fixed bug #772290
11679         * support/regression/tests/bitfields.c: attempt to fix host assertion
11680         failure on amd64-unknown-linux2.2
11681
11682 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11683
11684         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
11685         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
11686         * as/z80/asmain.c (main): fixed bug #801766
11687
11688 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
11689
11690         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
11691         compilers
11692
11693 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11694
11695         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
11696         reported in bug #800609
11697
11698 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
11699
11700         * Top header beautifications in src/pic16 directory:
11701           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
11702           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
11703           pcoderegs.h, ralloc.c, ralloc.h
11704         * main.c: added top header and GPL license notice
11705         * pcode.c: fixed the if-conditional warning
11706
11707 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
11708
11709         * device/lib/_mullong.c: replaced int by short for gcc
11710
11711 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11712
11713         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
11714         and JUMPTABLE iCodes properly now (worked by accident before)
11715         * src/mcs51/gen.c (leftRightUseAcc),
11716         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
11717         iCode properly now. Use getSize instead of nRegs since a & b
11718         aren't part of the nRegs tally.
11719
11720 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
11721
11722         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
11723         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
11724           before instructions that use the _STATUS register
11725
11726 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
11727
11728         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
11729         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
11730         fetching of the pointer
11731         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
11732         copied from genNearPointerSet()
11733         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
11734         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
11735         If they pop r0/r1 they must be called in the opposite order than aopOp().
11736         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
11737         (resp. --stack-auto), prepared for --xstack
11738
11739 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11740
11741         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
11742
11743 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
11744
11745         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
11746         these ports have their own __sdcc_external_start()
11747
11748 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
11749
11750         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
11751         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
11752         type for bits was changed. It resulted in bit variables becoming
11753         global, which is not permitted in PIC 14 assembly output.
11754
11755 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11756
11757         * doc/sdccman.lyx: various additions and updates. Rearranged sections
11758
11759 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11760
11761         Z80 and MCS51 linkers complaint if a public symbol is defined
11762         in more than one library module:
11763
11764         * as/mcs51/lklib.c
11765         * link/z80/lklib.c
11766         * as/mcs51/Makefile.in
11767
11768 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11769
11770         A few small changes that speed up the peephole optimizer.
11771
11772         * src/SDCCpeeph.c
11773
11774 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11775
11776         Try to make the peephole optimizer smarter by maintaining
11777         an association between the assembly source code and the
11778         iCodes that originated them. Put this information to use
11779         with a new peephole rule condition "notVolatile" so that
11780         the rules can be aggressive yet still safe.
11781
11782         * src/SDCCpeeph.c
11783         * src/SDCCpeeph.h
11784         * src/mcs51/gen.c
11785         * src/mcs51/peeph.def
11786
11787 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11788
11789         Fixed bug #741761
11790
11791         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
11792         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
11793         if the left or right operand symbols have the accuse flag set.
11794
11795 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11796
11797         Changed the type of the result of the ! (NOT) operator to char;
11798         previously it returned the same type as the source. This allows
11799         us to eliminate all the genFloatNot functions (all of its target
11800         implementations were very buggy) since !float can use the same
11801         code as !long now.
11802
11803         * src/SDCCicode.c (ast2iCode): ! returns char
11804         * src/mcs51/gen.c (genNot, genNotFloat),
11805         * src/ds390/gen.c (genNot, genNotFloat),
11806         * src/z80/gen.c (genNot, genNotFloat),
11807         * src/pic/gen.c (genNot, genNotFloat),
11808         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
11809
11810 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
11811
11812         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
11813         1. Interrupt would not compile properly. Ensure PCLATH register is saved
11814            during interrupts. Ensure WSAVE is located at a shared bank address.
11815         2. Fixed page selection in some places
11816         3. Fixed BTFSS/C to where necessary use registers directly and not simply
11817            the registers name strings.
11818         4. Fixed "signed / unsigned compare" compiler warnings.
11819         5. The PIC port manages its own allocation of the general purpose
11820            registers, but makes no attempt to reuse them. As a result when
11821            compiling it soon runs out of general purpose registers. Some
11822            additional code was added to the files pcode.c and device.c to walk
11823            through the function call tree and rename the registers so that they
11824            get reused.
11825
11826         * src/pic/device.c
11827         * src/pic/gen.c
11828         * src/pic/glue.c
11829         * src/pic/pcode.c
11830         * src/pic/pcode.h
11831         * src/pic/ralloc.c
11832         * src/pic/ralloc.h
11833         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
11834         genPlus() & genMinus() when the result is the same as left or right
11835
11836 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11837
11838         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
11839
11840 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11841
11842         Made bitfield a distinct type from bit so that bitfields
11843         convert as per ANSI C and bits retain their traditional
11844         boolean style behaviour. Implemented bitfield support in
11845         the z80 port.
11846
11847         * src/SDCCsymt.h,
11848         * src/SDCCsymt.c,
11849         * src/SDCCast.c,
11850         * src/cdbFile.c,
11851         * src/mcs51/gen.c,
11852         * src/ds390/gen.c: bit v bitfield split
11853         * src/z80/gen.c: New support for bitfields
11854         * support/regression/tests/bitfields.c: reenabled z80,
11855         added more tests
11856
11857 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11858
11859         Rules 246.x, 247.x relate to bitfields, the others speed up
11860         access to xdata mapped I/O devices.
11861
11862         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
11863
11864 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11865
11866         Cleaned up genPackBits and genUnpackBits and added two helper
11867         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
11868         for literal assignments in genPackBits (thanks to Frieder for
11869         reminding me).
11870
11871         * src/mcs51/gen.c
11872         * src/ds390/gen.c
11873
11874 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11875
11876         Fixed bug #748310 (pointer to function type mishandled when the
11877         function name is omitted). Also fixed a SIGSEGV when a function
11878         attribute (reentrant, etc) is used on a non-function or on a
11879         function but misplaced before the parameter list.
11880
11881         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
11882         bug #748310
11883         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
11884         * support/Util/SDCCerr.h,
11885         * support/Util/SDCCerr.c: Added func attr misuse error msg
11886
11887 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
11888
11889         Fixed bug #787649 by anonymous
11890         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
11891         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
11892
11893 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11894
11895         Fixed numerous bitfield problems.
11896
11897         * src/SDCC.y: More bitfield related error checking
11898         * src/SDCCsymt.h,
11899         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
11900         * support/Util/SDCCerr.h,
11901         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
11902         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
11903         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
11904         * support/regression/tests/bitfields.c: tests added
11905
11906 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11907
11908         Made the constant following the "interrupt" keyword optional. If
11909         omitted, the function will not automatically be given an entry
11910         in the interrupt vector table (similar to #pragma NOIV, but
11911         less syntacticly kludgy). The interrupt number is also now
11912         range checked. Also fixed a bug in the high order bit example
11913         in the manual.
11914
11915         * src/SDCC.y
11916         * src/SDCCmem.c
11917         * src/SDCCglue.c
11918         * src/SDCCsymt.h
11919         * support/Util/SDCCerr.c
11920         * support/Util/SDCCerr.h
11921         * doc/sdccman.lyx
11922
11923 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
11924
11925         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
11926         * src/SDCCicode.c (operandOperation): rewritten some ops
11927         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
11928         * src/SDCCsymt.c (computeType): literals are handled the same way as any
11929         other type
11930         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
11931         be re-activated by defining REDUCE_LITERALS)
11932         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
11933         unsigned, but are signed by default
11934         * src/SDCCval.c (constVal): rearranged
11935         * src/SDCCval.c (valMod): preliminary fix
11936         * src/SDCCval.c (valCastLiteral): use TYPE_* types
11937         * support/regression/literalop.c: added, work in progress
11938
11939 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11940
11941         Generate warnings for useless declarations like "char data;"
11942         that don't do what new users expect.
11943
11944         * src/SDCC.y
11945         * support/Util/SDCCerr.h
11946         * support/Util/SDCCerr.c
11947
11948 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
11949
11950         * src/SDCCval.c (valMult): fix overflow detection of negative int
11951
11952 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11953
11954         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
11955
11956         Changes to support big endian targets:
11957
11958         * src/ports.h
11959         * src/SDCCglue.c
11960         * src/avr/main.c
11961         * src/ds390/main.c
11962         * src/izt/i186.c
11963         * src/mcs51/main.c
11964         * src/pic/main.c
11965         * src/pic16/main.c
11966         * src/xa51/main.c
11967         * src/z80/main.c
11968
11969 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
11970
11971         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
11972         * device/lib/time.c: fixed warning "integer overflow in expression"
11973
11974 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
11975
11976         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
11977         * src/SDCCval.c (constVal): changed default to signed; hex and octal
11978         constants are unsigned; added recognition of "u" flag for unsigned
11979         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
11980         * src/SDCCval.c (valDiv, valMod): fixed signdness
11981         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
11982         signedness of modulo, left and right shift
11983         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
11984         * support/Util/SDCCerr.h: added warning W_INT_OVL
11985         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
11986         * src/SDCCast.c (ast_print): improved output of constants
11987
11988 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11989
11990         Fixed some warnings when building with MSVC:
11991
11992         * as/mcs51/asdata.c
11993         * as/z80/asdata.c
11994         * as/mcs51/asm.h
11995         * as/z80/asm.h
11996         * link/z80/aslink.h
11997         * link/z80/lkdata.c
11998         * link/z80/lkeval.c
11999         * link/z80/lkgb.c
12000         * link/z80/lkihx.c
12001         * link/z80/lks19.c
12002         * link/z80/lksym.c
12003         * support/cpp2/cpplib.c
12004         * src/ds390/gen.c
12005         * src/mcs51/gen.c
12006
12007 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
12008
12009         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
12010
12011 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12012
12013         * support/librarian/clean.mk: Do not remove Makefile.
12014         * support/librarian/Makefile: added.
12015
12016 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12017
12018         Added librarian to MSVC build:
12019         * all.dsp
12020         * sdcc.dsw
12021         * support/librarian/librarian.dsp
12022
12023         'configure' not needed for librarian, removed:
12024         * support/librarian/configure
12025         * support/librarian/configure.in
12026         * support/librarian/config_in.h
12027         * support/librarian/Makefile.in
12028
12029         Hopefully these ones built the librarian and the rest of sdcc properly:
12030         * Makefile
12031         * Makefile.common.in
12032
12033         Messed up 'configure', so revert to previous version:
12034         * configure
12035         * configure.in
12036
12037 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
12038
12039         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
12040         there, while the mantissa of a double is "only" 53 bits wide.
12041
12042 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12043
12044         Adding sdcclib to the build.  MSVC project coming soon.
12045         Files added/changed:
12046
12047         * support/librarian/clean.mk
12048         * support/librarian/configure
12049         * support/librarian/configure.in
12050         * support/librarian/config_in.h
12051         * support/librarian/Makefile.bcc
12052         * support/librarian/Makefile.in
12053         * support/librarian/sdcclib.c
12054         * Makefile.bcc
12055         * Makefile
12056         * Makefile.common.in
12057         * configure
12058         * configure.in
12059
12060 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12061
12062         Linker now complaints if linked modules have conflicting options, for
12063         example, one compiled using --model-large and another one compiled with
12064         --model-small.  The following files were modified:
12065
12066         * as/mcs51/asdata.c
12067         * as/mcs51/aslink.h
12068         * as/mcs51/asm.h
12069         * as/mcs51/asmain.c
12070         * as/mcs51/asout.c
12071         * as/mcs51/i51pst.c
12072         * as/mcs51/lkdata.c
12073         * as/mcs51/lklibr.c
12074         * as/mcs51/lkmain.c
12075         * as/z80/asdata.c
12076         * as/z80/asm.h
12077         * as/z80/asmain.c
12078         * as/z80/asout.c
12079         * as/z80/z80pst.c
12080         * link/z80/aslink.h
12081         * link/z80/lkdata.c
12082         * link/z80/lklibr.c
12083         * link/z80/lkmain.c
12084         * src/SDCCglue.c
12085
12086 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12087
12088         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
12089         as/mcs51/lklibr.c: Generate a warning when a library is not found.
12090
12091 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
12092
12093         * src/z80/mappings.i: fix _mul[us][int,long] entries
12094
12095 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12096
12097         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
12098
12099 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
12100
12101         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
12102         * support/regression/tests/bitopcse.c: added
12103         fixed warning:
12104         * src/avr/gen.c:
12105         * src/pic/gen.c:
12106         * src/pic16/gen.c:
12107         * src/z80/gen.c:
12108         * src/xa51/gen.c:
12109
12110 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12111
12112         added support for new library format to z80, gbz80 linkers:
12113         *link/z80/aslink.h
12114         *link/z80/lklex.c
12115         *link/z80/lklib.c
12116         *link/z80/lklist.c
12117
12118 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
12119
12120         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
12121         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
12122
12123 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
12124
12125         added DUMMY_READ_VOLATILE:
12126         * src/SDCC.y:
12127         * src/avr/gen.c:
12128         * src/xa51/gen.c:
12129         * src/z80/gen.c:
12130         * src/pic/gen.c:
12131         * src/pic16/gen.c:
12132         * src/mcs51/gen.c:
12133         * src/ds390/gen.c:
12134         * src/SDCCcse.c (algebraicOpts): many improvements
12135         * src/SDCCcse.h: removed algebraicOpts()
12136         * src/SDCCicode.c (picDummyRead): added
12137
12138 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12139
12140         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
12141         "Insufficient space in data memory".
12142
12143 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12144
12145         * src/mcs51/gen.c: fixed bug #771358
12146         * src/z80/gen.c: fixed bug #759087
12147
12148 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
12149
12150         * src/pic16/glue.c: minor cleanup by Vangelis
12151
12152 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12153
12154         * device/include/regc515c.h: fixed #758477
12155         * device/lib/_gptrget.c: saving some cycles in generic pointer get
12156         * device/lib/_gptrput.c: saved a few bytes
12157         * my tab spacing is 8, yours too?)
12158         * device/lib/_ser.c: process RX bytes earlier than TX bytes
12159         * device/lib/serial.c: process RX bytes earlier than TX bytes
12160         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
12161
12162 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12163
12164         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
12165
12166 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12167
12168     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
12169
12170 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
12171
12172         * device/lib/Makefile.in: bad fix, reverted to 1.43
12173
12174 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
12175
12176         * device/lib/Makefile.in: added missing z80 object files
12177
12178 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
12179
12180         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
12181         pic16 progress by Vangelis:
12182         * src/SDCCglobl.h:
12183         * src/SDCCmain.c:
12184         * src/pic/Makefile:
12185         * src/pic:
12186         * pic/Makefile:
12187         * pic16/device.c:
12188         * pic16/device.h:
12189         * pic16/gen.c:
12190         * pic16/gen.h:
12191         * pic16/genarith.c:
12192         * pic16/glue.c:
12193         * pic16/main.c:
12194         * pic16/pcode.c:
12195         * pic16/pcode.h:
12196         * pic16/pcodepeep.c:
12197         * pic16/peeph.def:
12198
12199 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12200
12201     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
12202
12203 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12204
12205     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
12206     added gbz80 build to MSVC project.
12207     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
12208     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
12209     from 8051 stuff and setup so it links using a .lnk file.
12210
12211 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12212
12213     * support/librarian/sdcclib.c: sdcc librarian.
12214     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
12215     with sdcclib.
12216
12217 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12218
12219     * as/mcs51/lkmain.c: properly handle extensions in function afile.
12220
12221 2003-07-02  Borut Razem <borut.razem AT siol.net>
12222
12223         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
12224         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
12225         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
12226         src/xa51/main.c, src/z80/main.c:
12227         virtualization of glue() function: each port has it's own glue function,
12228         which is accessed by do_glue function pointer in PORT.general structure
12229
12230 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
12231
12232         * DS800C400 fun, improved ROM interface and tinibios.
12233
12234 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
12235
12236         * More support for DS80C400. Now includes beginning of interface to ROM.
12237
12238 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
12239
12240         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
12241
12242 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12243
12244         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
12245
12246 2003-06-19  Borut Razem <borut.razem AT siol.net>
12247
12248         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
12249
12250 2003-06-19  Borut Razem <borut.razem AT siol.net>
12251
12252         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
12253         fixed Z80 port - crt0.o: cannot open.
12254
12255 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
12256
12257         * support/Util/MySystem.c (merge_command): revert bad fix
12258
12259 2003-06-18  Borut Razem <borut.razem AT siol.net>
12260
12261         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
12262
12263 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12264
12265         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
12266         option --use-stdout sends errors to stdout instead of stderr.
12267
12268 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
12269
12270         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
12271
12272 2003-06-15  Borut Razem <borut.razem AT siol.net>
12273
12274         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
12275         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
12276         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
12277         fixed width array of pointers replaced with sets;
12278         multiple include and lib paths ared transferred to preprocessor and linker
12279         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
12280         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
12281         fixed width array of pointers
12282         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
12283         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
12284         fixupPath(), getPathDifference()
12285         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
12286         fixed width array of pointers
12287
12288 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
12289
12290         * src/pic16/ralloc.c: fix warnings
12291         * src/pic16/pcode.c: fix warning
12292
12293 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
12294
12295          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
12296         know all the details, but essentially this set of changes enable
12297         the pic16 port to generate movff instructions and generate assembler
12298         directives,
12299         * src/SDCCmain.c:
12300         * src/pic16/gen.c:
12301         * src/pic16/glue.c:
12302         * src/pic16/pcode.c:
12303         * src/pic16/device.c:
12304         * src/pic16/main.c:
12305         * src/pic16/pcode.h:
12306         * src/pic16/pcoderegs.c:
12307         * src/pic16/ralloc.c:
12308         * src/pic16/ralloc.h:
12309
12310 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12311
12312         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
12313         added option --vc, so sdcc errors and warnings are compatible with
12314         Microsoft Visual Studio.
12315
12316 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12317
12318         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
12319           device/lib/libfloat.lib: added atof function.
12320
12321 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
12322
12323         * doc/sdccman.lyx: updated to Lyx 1.3
12324         * doc/cdbfileformat.lyx: updated to Lyx 1.3
12325         * doc/test_suite_spec.lyx: updated to Lyx 1.3
12326         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
12327
12328 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
12329
12330         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
12331
12332 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12333
12334         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
12335           additions to the "related tools/documentation" section
12336
12337 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
12338
12339         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
12340
12341 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
12342
12343         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
12344         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
12345
12346 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
12347
12348         * doc/sdccman.lyx: fix double dash and other minor things
12349         * doc/Makefile: fix double dash
12350
12351 2003-05-28  Karl Bongers(patches from Martin Helmling)
12352         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
12353           condition and ignore commands.
12354
12355 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12356
12357         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
12358           is in parts still quite out of date, I did changes as far as I felt makes sense
12359           for a non-native english speaker.
12360           Please feel free to add to the manual or to correct my changes.
12361         * doc/Makefile: undid touching the date of intermediate tex files.
12362
12363 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12364
12365         * doc/sdccman.lyx: Manual has an index now
12366
12367 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
12368
12369         Finalize muluint/mulsint and mululong/mulslong merging:
12370         * device/lib/_mulint.c
12371         * device/lib/_mullong.c
12372         * device/lib/gbz80/mul.s
12373         * device/lib/gbz80/stubs.s
12374         * device/lib/z80/mul.s
12375         * device/lib/z80/stubs.s
12376         * src/SDCCsymt.c (initCSupport)
12377
12378 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12379
12380         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
12381         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
12382           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
12383           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
12384           instead of /Zm500.
12385
12386 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12387
12388         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
12389           the regression tests I'm not brave enough to enable 245.b, 245.c
12390         * doc/sdccman.lyx: added latex preamble for hyperref package.
12391           Using pdflatex this will give you a hyperlinked pdf file with
12392           bookmarks. (prepend '%' before /usepackage if this breaks something)
12393
12394 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12395
12396          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
12397
12398 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
12399
12400         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
12401
12402 2003-05-21    <johan AT balder>
12403
12404         * src/SDCCglue.c (printIval): fixed bug #739934
12405
12406 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
12407
12408         Applied patch from bug 737905 (renamed yylineo to mylineno):
12409         * src/altlex.c
12410         * src/SDCCast.c
12411         * src/SDCglobl.h
12412         * src/SDCC.lex
12413         * src/SDCCsymt.c
12414         * src/SDCCval.c
12415         * src/pic16/pcode.c: Cleaned warnings
12416         * src/pic16/pcodeflow.c: Cleaned warnings
12417         * src/pic16/pcoderegs.c: Cleaned warnings
12418
12419 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
12420
12421         * src/pic16/pcode.c: Cleaned warnings
12422         * src/pic16/pcodepeep.c: Cleaned warnings
12423         * src/pic16/ralloc.c: Cleaned warnings
12424
12425 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
12426
12427         * doc/sdccman.lyx: fixed bug 739745
12428         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
12429
12430 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
12431
12432         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
12433         it can be defined with CFLAGS when running configure
12434         * src/SDCCmain.c: fixed compiling + linking with object files
12435
12436 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
12437
12438         * configure.in: configure for pic16 port,
12439             added --disable-pic16-port
12440         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
12441         * src/SDCCmain.c: linkOptions is changed to set *,
12442             added if/endif conditional macros to remove options help
12443             messages from optionsTable when a port is not configured, added
12444             support for the PIc16 port in the ports table, when executing
12445             the compiler with no port specified on command line, a default
12446             port is selected with the new macro DEFAULT_PORT which is
12447             defined in port.h, in setDefaultOptions() linkOptions is removed
12448             from initialization assignment, since now it is a set,
12449             parseCmdLine uses setParseWithComma for linkOptions, in
12450             linkEdit() linkOptions are accessed with new function indexSet()
12451             which returns the i'th item of a set variable. See SDCCset.c, in
12452             linkEdit() when calling buildCmdLine(), added linkOptions as
12453             last argument. Now users can pass arguments to gplink via the
12454             -Wl option, main() uses pic16glue() to glue up pic16 programs
12455         * src/SDCCpeeph.c: various changes to support pic16
12456         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
12457             return the i'th item of the set
12458         * src/SDCCset.h: added function prototype for indexSet()
12459         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
12460         * src/clean.mk: added pic16 in CLEANALLPORTS variable
12461         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
12462             added macro DEFAULT_PORT
12463         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
12464         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
12465             generated
12466         * src/pic16/glue.c: commented out some error producing lines
12467         * src/pic16/main.c: __config directives are commented out to stop
12468             gpasm complaining and test the linkage with gplink, _linkCmd and
12469             _asmCmd changed to be more gplink and gpasm friendly
12470         * src/pic16/peeph.def: peep rule 3 is commented out, since it
12471             produced an error when parsed, peep rule 12 is added to utilize
12472             movff, but it is commented out since the pCode does not support
12473             yet a command with 2 address arguments
12474
12475 2003-05-18    <johan AT balder>
12476
12477         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
12478         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
12479 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
12480
12481         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
12482   Added feature to script commands from file.
12483
12484 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
12485
12486         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
12487         * src/SDCCutil.c: include ctype.h for win32
12488
12489 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
12490
12491         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
12492
12493 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
12494
12495         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
12496   Fixed so you can set breakpoints prior to run, run does not stop
12497   on entry now.  Add tbreak.  Other enhancements and fixes for use
12498   with ddd.
12499
12500 2003-05-12  Borut Razem <borut.razem AT siol.net>
12501
12502         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
12503
12504 2003-05-11  Borut Razem <borut.razem AT siol.net>
12505
12506         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
12507         the path of bin directory, so that PATH is the only env. variable, which has to be set
12508         in case of standard installation.
12509         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
12510         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
12511         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
12512
12513 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
12514
12515         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
12516         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
12517         temp files are in the port dir; clean the gen/test directory when
12518         generating new test.c
12519         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
12520         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
12521         * support/regression/tests/zeropad.c: added
12522
12523 2003-05-09    <johan AT balder>
12524
12525         * src/SDCCglue.c: fixed bug #597940
12526
12527 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
12528
12529         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
12530   cache sfr, optimize next,step, fix off by one sourceline,
12531   support ddd list function.
12532         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
12533
12534 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
12535
12536         * support/regression/HTMLgen.py: added compare_s2f()
12537         * support/regression/Makefile: redo 1.27
12538         * support/regression/generate-cases.py: redo 1.5
12539
12540 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
12541
12542         * support/regression/tests/float.c: workaround 33 bit hex constant
12543         * support/regression/tests/simplefloat.c: fix division for host
12544
12545 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
12546
12547         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
12548         that tame's the PIC's over-aggressive optimizer.
12549
12550 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12551
12552          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
12553          support for MSVC.
12554
12555 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
12556
12557         Initial support for DS80C400. "Hello world" runs on TINIm400
12558         (with polled I/O).
12559
12560 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
12561
12562          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
12563          * Some notes on ddd usage added in debugger/README
12564          Martin Helmling adding more features and fixes for ddd GUI debugger.
12565          Code added for nexti, stepi, up, down, and other adjustments.
12566
12567 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
12568
12569         * src/pic/pCodepeep.c non-wildcard asmops are now handled
12570         * src/pic/peeph.def Added two rules to optimize carry manipulation
12571         * src/pic/* removed debug printfs
12572
12573 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
12574
12575         * debugger/mcs51/cmd.c: added header newalloc.h
12576
12577 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
12578
12579         * as/Makefile: new EXEEXT
12580         * as/z80/Makefile: remove trailing slash of BUILDIR
12581         * as/z80/clean.mk: new EXEEXT
12582         * Makefile.common.in: add to CFLAGS (and others), don't replace it
12583         * support/cpp2/Makefile.in: new EXEEXT
12584         * src/pic/glue.c (pic14emitRegularMap): fixed warning
12585
12586 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
12587
12588         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
12589         EXEEXT was introduced to fix all related problems with targets
12590         "clean", "install" and "uninstall"; a couple of further flaws
12591         especially with "clean" have been fixed too
12592         * as/mcs51/Makefile.in
12593         * as/mcs51/clean.mk
12594         * as/z80/Makefile
12595         * Makefile
12596         * clean.mk
12597         * debugger/mcs51/Makefile.in
12598         * debugger/mcs51/clean.mk
12599         * link/z80/Makefile
12600         * link/z80/Makefile.in
12601         * link/z80/clean.mk
12602         * link/Makefile
12603         * packihx/Makefile.in
12604         * packihx/clean.mk
12605         * sim/ucsim/Makefile
12606         * sim/ucsim/clean.mk
12607         * sim/ucsim/avr.src/Makefile.in
12608         * sim/ucsim/avr.src/clean.mk
12609         * sim/ucsim/s51.src/Makefile.in
12610         * sim/ucsim/s51.src/clean.mk
12611         * sim/ucsim/xa.src/Makefile.in
12612         * sim/ucsim/xa.src/clean.mk
12613         * sim/ucsim/z80.src/Makefile.in
12614         * sim/ucsim/z80.src/clean.mk
12615         * sim/ucsim/main_in.mk
12616         * sim/ucsim/packages_in.mk
12617         * sim/ucsim/gui.src/Makefile.in
12618         * sim/ucsim/gui.src/serio.src/Makefile.in
12619         * sim/ucsim/gui.src/serio.src/clean.mk
12620         * src/Makefile.in
12621         * src/clean.mk
12622         * support/cpp2/Makefile.in
12623         * support/cpp2/clean.mk
12624         * support/makebin/Makefile
12625         * support/makebin/clean.mk
12626         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
12627         * doc/sdccman.lyx: --program-suffix no longer needed
12628
12629 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
12630
12631          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
12632          Martin Helmling added support for ddd GUI debugger.
12633          Code added to display assembly, set variables, and other commands
12634          to interface to ddd.
12635
12636 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
12637
12638         * as/Makefile: fix target clean
12639         * as/clean.mk: fix target clean
12640         * as/z80/clean.mk: fix target clean
12641
12642 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
12643
12644         * Makefile.common.in: added  AT EXEEXT AT
12645         * configure.in: removed all mingw32 stuff
12646         * configure: rebuilt from configure.in
12647         * doc/sdccman.lyx: updated section "installation"
12648         * support/scripts/sdcc_mingw32: adapted to configure
12649         * support/scripts/sdcc_cygwin_mingw32: added
12650
12651 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
12652
12653         * src/pic Added object file support for the PIC port
12654         * src/pic Applied patch from Craig Franklin (this started the object file support)
12655         * src/regression Updated the PIC regression tests for object files
12656
12657 2003-04-20  Borut Razem <borut.razem AT siol.net>
12658
12659         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
12660           lklex.c: In function `getfid':
12661           lklex.c:203: warning: array subscript has type `char'
12662         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
12663           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
12664         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
12665           stack handling macros
12666
12667 2003-04-19  Borut Razem <borut.razem AT siol.net>
12668
12669         * "handling space characters in file path" task:
12670         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
12671         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
12672         * support/Util/MySystem.h: make it self-sufficient
12673         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
12674           src/z80/main.c, sdcc/as/mcs51/lklex.c:
12675           handling space characters in file path
12676         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
12677           (it will be used by assemblers, which have their own includes, e.g. gpasm)
12678         * support/Util/MySystem.c: handling space characters in executable's path
12679
12680 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
12681
12682         * as/z80/Makefile: fix permanent rebuild of z80
12683         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
12684         * support/regression/tests/bitfields.c: added Johan's bitfields.c
12685
12686 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
12687
12688         * src/SDCCopt.c: add special case optimization to replace modulo by
12689           a power of two with a bitwise AND.
12690
12691 2003-04-18    <johan AT balder>
12692
12693         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
12694
12695 2003-04-17    <johan AT balder>
12696
12697         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
12698         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
12699
12700 2003-04-13  Borut Razem <borut.razem AT siol.net>
12701
12702         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
12703         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
12704           fixed mingw problem in adl_NORMALIZE_PATH
12705
12706 2003-04-12  Borut Razem <borut.razem AT siol.net>
12707
12708         * fixed "#pragma SAVE/RESTORE can not be nested":
12709         * src/SDCC.lex: reworked pragma handling functions
12710         * sdcc/src/SDCCglobl.h: reworked stack handling macros
12711         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
12712
12713 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
12714
12715         * src/SDCCutil.c (pathEquivalent): defined but not used
12716         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
12717         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
12718         * configure: rebuilt from configure.in
12719         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
12720         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
12721         * device/include/Makefile.in: replace sdcc_datadir
12722         * device/lib/Makefile.in: replace sdcc_datadir
12723         * Makefile.common.in: add LDFLAGS from configure
12724         * packihx/Makefile.in: use LDFLAGS
12725         * src/Makefile.in: use LDFLAGS
12726         * support/cpp2/Makefile.in: add LDFLAGS from configure
12727         * support/makebin/Makefile: use LDFLAGS
12728         * .version: bumped version number to 2.3.5
12729
12730 2003-04-12  Borut Razem <borut.razem AT siol.net>
12731
12732         * completed "different paths" task:
12733         * src/SDCCmacro.c: fixed bug in handling quotes
12734         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
12735         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
12736
12737 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
12738
12739         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
12740
12741 2003-04-11 kevin Vigor <kevin AT vigor.nu>
12742
12743         * ds390/gen.c ds390/peeph.def: fix bug 706781
12744
12745 2003-04-11  Borut Razem <borut.razem AT siol.net>
12746
12747         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
12748
12749 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
12750
12751         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
12752         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
12753          set - this bit used to not be set...).
12754         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
12755           bad code in PIC Port
12756         * src/regression/and2.c added to test bug 609268
12757         * src/regression/Makefile added and2.c to regression test
12758
12759
12760 2003-04-08    <johan AT CP255758-A>
12761
12762         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
12763         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
12764         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
12765
12766 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
12767
12768         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
12769         fix bug #487815
12770         * support/cpp2/Makefile.in: fix bug #487815
12771         * configure: rebuilt from configure.in
12772         * Makefile.common.in: docdir changed, new path suffixes
12773         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
12774         * sdcc_vc_in.h: reflect changes from sdccconf.h
12775         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
12776         * src/SDCCutil.h: remove BINDIR hack
12777         * doc/sdccman.lyx: update new path hierarchy
12778
12779 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12780
12781         * src/SDCCpeeph.c: added okToRemoveSLOC test
12782
12783 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12784
12785         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
12786
12787 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12788
12789         * src/SDCCpeeph.c: added labelIsReturnOnly test
12790         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
12791
12792 2003-04-05    <johan AT balder>
12793
12794         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
12795         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
12796         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
12797         * src/SDCCast.c: fixed a warning
12798         * src/SDCCast.h: fixed a warning
12799         * src/SDCCicode.c (operandFromAst): fixed a warning
12800
12801 2003-04-04    <johan AT balder>
12802
12803         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
12804         * src/SDCCast.c (decorateType): fixed bug #715076
12805         * src/SDCC.y: fixed bug #702907
12806
12807 2003-04-03    <johan AT balder>
12808
12809         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
12810         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
12811         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
12812         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
12813         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
12814
12815 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
12816
12817         * _decdptr.c: fix return values
12818         * _gptrget.c: fix return values
12819         * _gptrgetc.c: fix return values
12820         * _gptrput.c: fix return values
12821         * _mulint.c: fix return values
12822         * as/z80/Makefile: fix 'make -j' problem
12823
12824 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
12825
12826         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
12827         * configure.in: big cleanup, updated to autoconf 2.5x
12828         * configure: rebuilt from configure.in
12829         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
12830         * sdcc_vc_in.h: reflect changes from sdccconf.h
12831         * doc/Makefile: fixed a flaw in "make install"
12832
12833 2003-04-02    <johan AT balder>
12834
12835         * src/ds390/gen.c (genCmp): no comments
12836         * src/mcs51/gen.c (genCmp): no comments
12837         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
12838         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
12839
12840 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
12841
12842         * support/regression/generate-cases.py: place generated file in given sub directory
12843         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
12844         * support/regression/Makefile: improvements for 'make -j';
12845         side effect: it's simpler and faster now
12846
12847 2003-03-31  Borut Razem <borut.razem AT siol.net>
12848
12849         * src/z80/main.c: link-{port} and as-{port} defined without path
12850         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
12851
12852 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
12853
12854         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
12855
12856 2003-03-30  Borut Razem <borut.razem AT siol.net>
12857
12858         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
12859           changed type of list parameter to set
12860         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
12861         * src/port.h: changed type of do_assemble() parameter to set
12862         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
12863           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
12864           definition of "cppoutfilename" macro with NULL value in preProcess()
12865         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
12866         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
12867         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
12868           replaced with set *binPathSet
12869         * shash_add() deallocates the item, if allready exsists, before adding the new one
12870         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
12871
12872 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
12873
12874         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
12875           a nested for loop bug in the PIC port
12876         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
12877           for loops
12878
12879 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
12880
12881         * support/Util/dbuf.h: remove C++ stuff to make it portable
12882
12883 2003-03-28  Borut Razem <borut.razem AT siol.net>
12884
12885         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
12886           literal strings in stringLiteral()
12887         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
12888         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
12889           to the project
12890
12891 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
12892
12893         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
12894
12895 2003-03-26    <johan AT balder>
12896
12897         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
12898         * src/ds390/gen.c (saveRegisters): catched symbol abuse
12899         * src/SDCCast.c (decorateType): fixed " -v < 3"
12900
12901 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
12902
12903         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
12904         Added Lenny Story's debug infrastructure changes:
12905         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
12906         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
12907         * src/cdbFile.c: added
12908         * src/SDCCdebug.c: added
12909         * src/SDCCdebug.h: added
12910         * src/SDCCast.c (createFunction)
12911         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
12912         * src/SDCCmain.c (parseCmdLine, main)
12913         * src/SDCCmem.c (redoStackOffsets)
12914         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
12915         * src/SDCCsymt.h
12916         * src/common.h
12917         * src/avr/gen.c (genAVRCode)
12918         * src/ds390/gen.c (gen390Code)
12919         * src/mcs51/gen.c (gen51Code)
12920         * src/pic/gen.c (genpic14Code)
12921         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
12922         * src/xa51/gen.c (genXA51Code)
12923         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
12924
12925 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12926
12927         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
12928         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
12929
12930 2003-03-22    <johan AT balder>
12931
12932         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
12933
12934 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
12935
12936         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
12937         * doc/cdbfileformat.lyx: added, written by Lenny Story
12938         * doc/Makefile: added cdbfileformat.lyx
12939         * doc/clean.mk: added cdbfileformat.lyx
12940
12941 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
12942
12943         * src/mcs51/peeph.def: fix bug #705773
12944
12945 2003-03-20    <johan AT balder>
12946
12947         An sfr/sbit can have an "at #" AND an initializer
12948         * src/SDCCsymt.c (checkSClass):
12949         * src/SDCCmem.c (allocGlobal):
12950         * src/SDCCmem.c (allocLocal):
12951         * src/SDCCast.c (createBlock):
12952
12953 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
12954
12955         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
12956
12957 2003-03-16    <johan AT balder>
12958
12959         Undid the hackup of const and volatile, the problem is much bigger
12960         * src/SDCC.y:1.65
12961         * src/SDCCast.c:1.171
12962         * src/SDCCglue.c:1.138
12963         * src/SDCCicode.c:1.146
12964         * src/SDCCsymt.c:1.150
12965         * src/SDCCval.c:1.65
12966
12967 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
12968
12969         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
12970         * src/ds390/gen.c (genAddrOf): fixed bug #704087
12971
12972 2003-03-13    <johan AT balder>
12973
12974         Hackup const and volatile modifiers in type chains a bit:
12975         * src/SDCC.y:1.63
12976         * src/SDCCast.c:1.169
12977         * src/SDCCglue.c:1.136
12978         * src/SDCCicode.c:1.143
12979         * src/SDCCsymt.c1.146
12980         * src/SDCCsymt.h1.59
12981         * src/SDCCval.c:1.63
12982
12983 2003-03-12    <johan AT balder>
12984
12985         * src/SDCCBBlock.h: more LRH debugging junk
12986         * src/SDCCcflow.h: more LRH debugging junk
12987         * src/SDCCloop.c: more LRH debugging junk
12988         * src/SDCC.y (struct_declaration): fixed bug #697590
12989         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
12990         * src/ds390/gen.c (aopForRemat): fixed bug #700031
12991         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
12992
12993 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
12994         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
12995         test function names must now match exactly).
12996         * src/SDCCcse.c: added special case in findCheaperOp to allow
12997         extending a short integer. Makes less awful code for bug 700121 test case.
12998
12999 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13000
13001         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
13002         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
13003
13004 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
13005
13006         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
13007         actually called (operandsNotEqual() was called for all
13008         operandsNotEqualX tests).
13009
13010 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
13011
13012         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
13013         with shorter literals. Fixes bug 700121.
13014
13015 2003-03-11    <johan AT balder>
13016
13017         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
13018
13019 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
13020
13021         * src/SDCCloop.c (mergeRegions): an evil beast is dead
13022         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
13023
13024 2003-03-10  Borut Razem <borut.razem AT siol.net>
13025
13026         * src/SDCCmain.c: pipe preprocessor's output
13027         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
13028         * sdcc_vc_in.h: define pclose as _pclose for WIN32
13029         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
13030         which closes all pipes in pipeSet set
13031         * src/SDCCset.c: free deleted item in function deleteSetItem()
13032         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
13033         moved from z80 to src subproject
13034         * .version: increased version number to 2.3.4
13035
13036 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
13037
13038         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
13039         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
13040         * support/regression/ports/xa51/spec.mk: fix typo
13041
13042 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
13043
13044         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
13045
13046 2003-03-09  Borut Razem <borut.razem AT siol.net>
13047
13048         * src/SDCCmain.c: pipe preprocessor's output
13049         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
13050         * sdcc_vc_in.h: define pclose as _pclose for WIN32
13051         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
13052         which closes all pipes in pipeSet set
13053         * src/SDCCset.c: free deleted item in function deleteSetItem()
13054         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
13055         moved from z80 to src subproject
13056
13057 2003-03-09  Borut Razem <borut.razem AT siol.net>
13058
13059         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
13060         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
13061         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
13062         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
13063         * src/SDCCglobl.h: unification of WIN32 native definitions
13064
13065 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13066
13067         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
13068
13069 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
13070
13071         * src/configure.in:   check for endianess (even while cross-compiling)
13072         * src/configure:      check for endianess (even while cross-compiling)
13073         * src/configure_in.h: check for endianess (even while cross-compiling)
13074         * src/avr/gen.c:        remove old endianess stuff
13075         * src/mcs51/gen.c:      remove old endianess stuff
13076         * src/ds390/gen.c:      remove old endianess stuff
13077         * src/pic/gen.c:        remove old endianess stuff
13078         * src/pic/genarith.c:   remove old endianess stuff
13079         * src/pic/glue.c:       fix endianess check
13080         * src/pic16/gen.c:      remove old endianess stuff
13081         * src/pic16/genarith.c: remove old endianess stuff
13082         * src/pic16/glue.c:     fix endianess check
13083         * src/xa51/gen.c:       remove old endianess stuff
13084         * src/z80/gen.c:        fix endianess check
13085         * src/SDCCglue.c:       fix endianess check
13086         * src/ds390/peeph.def: fix bug 700036
13087
13088 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
13089
13090         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
13091         * src/configure: find appropriate data-types on host for SDCC's int and long
13092         * src/configure.in: find appropriate data-types on host for SDCC's int and long
13093         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
13094         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
13095
13096 2003-03-07    <johan AT balder>
13097
13098         Just a big NOOP:
13099                 some minor cleanups before the big shot
13100                 OP_DEFS and OP_USES now use Kevin's protection
13101                 new option --nolabelopt
13102
13103         * src/SDCCBBlock.c:
13104         * src/SDCCast.c,:
13105         * src/SDCCcflow.c:
13106         * src/SDCCcse.c:
13107         * src/SDCCicode.c:
13108         * src/SDCCicode.h:
13109         * src/SDCClabel.c:
13110         * src/SDCCloop.c:
13111         * src/SDCCmain.c:
13112         * src/ds390/ralloc.c:
13113         * src/mcs51/ralloc.c:
13114         * src/pic/ralloc.c:
13115         * src/xa51/ralloc.c:
13116         * src/z80/ralloc.c:
13117
13118 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
13119
13120         * src/pic/pcode.c (get_op): fix 64 bit warnings
13121         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
13122         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
13123         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
13124         * support/regression/tests/malloc.c: fix 64 bit warnings
13125
13126 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
13127
13128         * src/mcs51/gen.c (genMinus): fixed bug 696436
13129
13130 2003-03-02  Borut Razem <borut.razem AT siol.net>
13131
13132         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
13133
13134 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
13135
13136         * configure.in: test for mkstemp
13137         * sdccconf_in.h: add HAVE_MKSTEMP
13138
13139 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
13140
13141         * device/include/ctype.h: removed warning while using --stack-auto
13142         * device/include/malloc.h: removed warning while using --stack-auto
13143         * device/include/string.h: removed warning while using --stack-auto
13144
13145 2003-02-23  Borut Razem <borut.razem AT siol.net>
13146
13147         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
13148         because NDEBUG is defined (see man assert)
13149         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
13150
13151 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13152
13153         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
13154         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
13155
13156 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13157
13158         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
13159         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
13160
13161 2003-02-18    <johan AT balder>
13162
13163         * as/mcs51/asmain.c (asmbl): module can start with a digit
13164         * as/z80/asmain.c (asmbl): module can start with a digit
13165
13166 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
13167
13168         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
13169         * src/asm.c: fix pipe() for Mingw32
13170
13171 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
13172
13173         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
13174         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
13175         make -V work again; --c1mode reads now from stdin
13176         * doc/sdccman.lyx: added --c1mode
13177         * support/Util/SDCCerr.c: new messages for c1 mode
13178         * support/Util/SDCCerr.h: new messages for c1 mode
13179         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
13180
13181 2003-02-15    <johan AT balder>
13182
13183         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
13184
13185 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
13186
13187         * doc/sdccman.lyx: Environment variables, -o and other minor things
13188
13189 2003-02-14    <johan AT balder>
13190
13191         * src/xa51/main.c: before anyone really tries to use it :)
13192
13193         * Install doc's in share/sdcc/doc
13194         * removed some obsolete files
13195         * Do a proper make distclean and uninstall
13196         M Makefile.common.in
13197         R sdccbuild.sh
13198         M as/Makefile
13199         M device/include/Makefile.in
13200         M device/lib/Makefile.in
13201         M doc/sdccman.lyx
13202         M link/Makefile
13203         M sim/ucsim/doc/Makefile.in
13204         M src/clean.mk
13205         R src/avr/peeph.rul
13206         R src/xa51/peeph.rul
13207         M support/cpp2/Makefile.in
13208         M support/makebin/Makefile
13209
13210
13211 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
13212
13213         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
13214
13215 2003-02-10  Borut Razem <borut.razem AT siol.net>
13216
13217         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
13218         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
13219         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
13220         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
13221         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
13222         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
13223         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
13224         src/z80/Makefile.bcc: Borland Makefile cleanup
13225         * as/z80/Makefile.bcc: Added Borland Makefile
13226         * support/cpp2/borland.h: Removed
13227
13228 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
13229
13230         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
13231         * src/SDCC.lex: new pragma NOIV
13232         * src/SDCCglobl.h: new pragma NOIV
13233         * src/SDCCmem.c: new pragma NOIV
13234
13235 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
13236
13237         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
13238
13239 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
13240
13241         * src/SDCCmain.c: signal handling is switched off by --debug
13242         * doc/Makefile: small fix for install; use clean.mk again
13243         * doc/clean.mk: clean *.pdf and *.html too
13244
13245 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
13246
13247         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
13248         * device/lib/printfl.c: fix a ds390 bug by making it portable
13249         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
13250         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
13251         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
13252         * debugger/mcs51/cmd.c: converted multi-line string literals
13253         * sim/ucsim/globals.cc: converted multi-line string literals
13254         * src/SDCCmain.c: introduced signal handler to remove temp files
13255         * doc/Makefile: small tweaks, implement clean
13256         * doc: removed generated files
13257
13258 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13259
13260         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
13261         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
13262         Address Record is not correctly generated for DS390."
13263
13264 2003-02-02  Borut Razem <borut.razem AT siol.net>
13265
13266         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
13267         * as/mcs51/asm.h: fixed compilation with Borland C
13268         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
13269         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
13270         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
13271         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
13272         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
13273         src/z80/Makefile.bcc: delete $(LIB) only if exist
13274         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
13275
13276 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
13277
13278         * device/include/malloc.h: introduced NULL
13279         * device/include/string.h: introduced NULL
13280         * device/include/stdlib.h: introduced NULL
13281         * device/lib/_memcpy.c: removed NULL
13282         * device/lib/_strcat.c: removed NULL
13283         * device/lib/_strchr.c: removed NULL
13284         * device/lib/_strcmp.c: removed NULL
13285         * device/lib/_strcpy.c: removed NULL
13286         * device/lib/_strcspn.c: removed NULL
13287         * device/lib/_strlen.c: removed NULL
13288         * device/lib/_strncat.c: removed NULL
13289         * device/lib/_strncmp.c: removed NULL
13290         * device/lib/_strncpy.c: removed NULL
13291         * device/lib/_strpbrk.c: removed NULL
13292         * device/lib/_strrchr.c: removed NULL
13293         * device/lib/_strspn.c: removed NULL
13294         * device/lib/_strstr.c: removed NULL
13295         * device/lib/_strtok.c: removed NULL
13296         * device/lib/malloc.c: removed NULL, include own header
13297
13298 2003-02-02    <johan AT balder>
13299
13300         * 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
13301         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
13302         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
13303         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
13304         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
13305         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
13306
13307 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13308
13309         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
13310         area 'DATA'"
13311
13312 2003-02-01    <johan AT balder>
13313
13314         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
13315
13316 2003-01-31    <johan AT CP255758-A>
13317
13318         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
13319
13320 2003-01-30    <johan AT balder>
13321
13322         * src/SDCCBBlock.c: automatic bug detection
13323         * src/SDCCicode.c: automatic bug detection
13324
13325 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13326
13327         * src/SDCCglobl.h:   now --xram-size 0 works
13328         * src/SDCCmain.c:    now --xram-size 0 works
13329
13330 2003-01-29    <johan AT balder>
13331
13332         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
13333
13334 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13335
13336         * as/mcs51/aslink.h: Added options --xram-size and --code-size
13337         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
13338         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
13339         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
13340         * src/SDCCglobl.h:   Added options --xram-size and --code-size
13341         * src/SDCCmain.c:    Added options --xram-size and --code-size
13342
13343 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
13344
13345         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
13346         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
13347
13348 2003-01-27    <johan AT balder>
13349
13350         * src/SDCC.y: fixed bug #613764
13351
13352 2003-01-26    <johan AT balder>
13353
13354         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
13355         * src/SDCCsymt.h: fixed bug #673374
13356         * src/SDCCglue.c: fixed bug #661910
13357         * src/SDCCast.c: fixed bug #458099 and 673374
13358
13359 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
13360
13361         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
13362         * as/mcs51/strcmpi.h: added
13363         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
13364         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
13365         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
13366         * as/mcs51/assym.c: strcmpi -> as_strcmpi
13367         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
13368         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
13369         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
13370         * as/mcs51/Makefile.aslink: new module strcmpi
13371         * as/mcs51/Makefile.asx8051: new module strcmpi
13372         * as/mcs51/Makefil.bcc: new module strcmpi
13373         * as/mcs51/Makefile.in: new module strcmpi
13374         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
13375
13376 2003-01-26    <johan AT balder>
13377
13378         * src/SDCCglue.c: reverted back to 1.124
13379         * src/SDCCast.c: reverted back to 1.156
13380         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
13381
13382 2003-01-25    <johan AT balder>
13383
13384         * src/SDCCglue.c: A better fix for bug #661910
13385         * src/SDCCast.c: A better fix for bug #661910
13386         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
13387
13388 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
13389
13390         * src/Makefile.in: remove spawn.o
13391         * src/SDCCmain.c: remove spawn.h
13392         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
13393         * src/spawn.c: removed
13394         * src/spawn.h: removed
13395         * support/regression/ports/ds390/spec.mk: link with -r
13396
13397 2003-01-24    <johan AT CP255758-A>
13398
13399         * src/ds390/gen.c (aopOp): fixed bug #667458
13400         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
13401         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
13402         (createIvalCharPtr): an ival doesn't always have a storage class anymore
13403
13404 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
13405
13406         * src/mcs51/peeph.def: better assembler identation by Frieder
13407         * src/mcs51/gen.c: better assembler identation by Frieder
13408
13409 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
13410
13411         * as/z80/string.h: removed for gcc 3.2
13412         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
13413         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
13414
13415 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
13416
13417         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
13418         * src/SDCCpeeph.c (replaceRule): fix bug #663503
13419         * support/regression/Makefile: separate temp files for ports
13420         * support/regression/generate-cases.py: separate temp files for ports
13421         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
13422         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
13423
13424 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
13425
13426         * moved tinitalk to device/examples/ds390
13427
13428 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
13429
13430         * as/mcs51/lkmem.c: rflag is for DS390
13431         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
13432         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
13433                          (linkEdit): move mem- and map-files the same way as ihx-files
13434         * src/z80/main.c (_setDefaultOptions): removed --generic
13435         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
13436         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
13437         * src/pic/glue.c (picglue): --c1mode works again
13438         * src/pic16/glue.c (pic16glue): --c1mode works again
13439         * src/asm.c (printCLine): fix #660034
13440
13441 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
13442
13443         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
13444         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
13445         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
13446         * as/mcs51/lkmem (summary): better fix for sp problem
13447         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
13448         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
13449         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
13450                                               remove --stack-after-data
13451
13452 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
13453
13454         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
13455         * src/SDCCutil.c (join): ugly bug: missing '\0'
13456         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
13457
13458 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
13459
13460         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
13461         * src/port.h: typo
13462         * src/pic/main.c (_asmCmd): gpasm supports -o
13463         * src/z80/main.c: more general macros
13464         * device/lib/Makefile.in: remove intermediate files
13465
13466 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
13467
13468         * .version: Bumped version number to 2.3.3
13469         * src/SDCCBBlock.c: new option -o
13470         * src/SDCCglobl.h: new option -o
13471         * src/SDCCglue.c: new option -o
13472         * src/SDCCmain.c: new option -o
13473         * src/asm.c: new option -o
13474         * src/ds390/main.c: new option -o
13475         * src/pic/glue.c: new option -o
13476         * src/pic/pcode.c: new option -o
13477         * src/pic/ralloc.c: new option -o
13478         * src/pic16/glue.c: new option -o
13479         * src/pic16/pcode.c: new option -o
13480         * src/pic16/ralloc.c: new option -o
13481         * src/z80/main.c: new option -o
13482         * device/lib/Makefile.in: use -o
13483         * support/regression/ports/ds390/spec.mk: use -o
13484         * support/regression/ports/gbz80/spec.mk: use -o
13485         * support/regression/ports/mcs51/spec.mk: use -o
13486         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
13487         * support/regression/ports/z80/spec.mk: use -o
13488         * support/regression/ports/ucz80/spec.mk: use -o
13489         * support/regression/ports/xa51/spec.mk: use -o
13490         * support/regression/fwk/lib/timeout.c: fix usage string
13491
13492 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
13493         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
13494
13495 2003-01-07    <johan AT balder>
13496
13497         * src/SDCCast.c (decorateType): fixed bug #600035
13498
13499 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
13500         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
13501         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
13502         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
13503         * src/pic/pcode.c: outcommented unused variable to remove warnings
13504         * src/pic/ralloc.c: outcommented unused variable to remove warnings
13505
13506 2003-01-06    <karl AT turbobit.com>
13507         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
13508    regression tests.
13509
13510 2003-01-06    <johan AT balder>
13511
13512         * src/SDCCicode.c: fixed array add
13513
13514 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
13515         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
13516         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
13517
13518 2003-01-04    <johan AT balder>
13519
13520         * src/SDCCval.c (getNelements): fixed the initialized array of structures
13521
13522 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13523         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
13524
13525 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
13526         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
13527         * support/regression/tests/bug-524697.c: fit mem usage into 8032
13528
13529 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
13530         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
13531
13532 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
13533         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
13534
13535 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
13536         * src/mcs51/main.c: removed {bindir}{sep} from aslink
13537
13538 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13539
13540     * in /sdcc/as/mcs51/ changed these files in order to create an
13541     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
13542     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
13543     following files to include the previous two files: aslink.dsp,
13544     Makefile.aslink, Makefile.bcc, and Makefile.in.
13545
13546     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
13547     .adb instead of .cdb
13548
13549 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13550
13551         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
13552         value from option --iram-size.
13553
13554 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13555
13556         * /sdcc/as/mcs51/lklist.c: added boundary check before using
13557         dram[] array.
13558
13559 2002-09-18    <wiml AT hhhh.org>
13560
13561         * SDCClrange.h: exposed setFromRange() and setToRange()
13562         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
13563           packRegsForAccUse() (bug 542397)
13564         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
13565           multiple times and emitting the fetch operations more than once
13566           added aopGetUsesAcc() function to allow binary operators to
13567           fetch their operands in the correct order; made genMinus() emit
13568           compact code for X = LITERAL - Y
13569
13570 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13571         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
13572         sprintf() in line 1267.
13573
13574 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13575         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
13576         like ports.
13577
13578 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13579         Changes to aslink (All the changes are marked with 'JCF'):
13580
13581         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
13582         summary().
13583
13584         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
13585         area BSEG.  Also moves, if possible, the DATA area down into the internal
13586         ram so more space is available.
13587
13588         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
13589         sflag.
13590
13591         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
13592         not bytes.  Function summary() which creates a memory usage summary
13593         file with extension .mem.  Reports of overlaping stack and small stack
13594         size.  If the space for the stack is less than 16 bytes aslink trows a
13595         warning.
13596
13597         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
13598         the 8051.  Option 'y' for memory summary output file.
13599
13600         Changes to sdcc (All the changes are marked with 'JCF'):
13601
13602         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
13603
13604         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
13605         overlaying area for it (uses RegBankUsed[4]).
13606
13607         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
13608         bank zero as used by default.  By default aslink locates the stack
13609         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
13610         the creation of the .mem file.  Delegates the allocation of data area
13611         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
13612         the begining of the stack area to aslink.
13613
13614         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
13615         glue() in SDCCglue.c creates an area for it.
13616
13617 2002-09-03  Borut Razem <borut.razem AT siol.net>
13618         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
13619         sdcc/src/pic/glue.c:
13620         introduced atexit() handler for teporay files removal in case of
13621         errors, assertions, ...
13622
13623 2002-08-29  Borut Razem <borut.razem AT siol.net>
13624         * sdcc/support/cpp2/auto-host_vc_in.h:
13625         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
13626         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
13627         Maybe there is a similar problem with BORLANDC? It should be checked!
13628
13629         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
13630         corrected improper use of assert: the assignment to clr variable was done inside the assert.
13631         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
13632         was not executed, and the compiler (cl) launched a warning:
13633         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
13634
13635 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
13636         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
13637
13638 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
13639         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
13640
13641         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
13642           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
13643           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
13644           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
13645           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
13646           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
13647           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
13648         - added Release configuration in VS projects
13649         - review of compiler an linker options
13650         - VC .exe files are generated in bin_vc directory, not to interfere
13651           with binaries generated from other projects (cygwin, mingw, bcc ...)
13652
13653         * sdcc/src/yacc.dsp: added
13654
13655         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
13656         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
13657         and insert the version number definitions from .version
13658
13659         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
13660
13661         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
13662         added - genarate auto-host.h using auto-host_vc_in.h as template
13663
13664         * sdcc/sdcc_vc.h,
13665         removed from CVS, generated automatically
13666
13667 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
13668         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
13669
13670 2002-08-11  Borut Razem <borut.razem AT siol.net>
13671         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
13672
13673 2002-08-10  Borut Razem <borut.razem AT siol.net>
13674         * src/SDCCmain.c (main):
13675         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
13676         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
13677         The consequence was that some temporary files were not removed.
13678
13679         * src/SDCCglue.c:
13680         unification of code in functions tempfilename() and tempfile():
13681         function tempnam() is defined in Visual Studio 6.0 and .NET
13682
13683         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
13684
13685         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
13686           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
13687         - removed compiler command line option /WX: Treats all warnings as errors
13688         - update a list of source files, included into the project
13689
13690         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
13691           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
13692         changed project type to Generic Project so that can be correcly converted to VS.NET project
13693
13694         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
13695
13696         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
13697
13698         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
13699
13700         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
13701         added return 0 statements after assert() to make compiler happy
13702
13703         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
13704         added newline in the def file to keep MSC compiler satisfied
13705
13706         * sdcc/src/z80/gen.c:
13707         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
13708           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
13709         - solved MSC error in function aopDump()
13710
13711         * sdcc_vc.h: define PREFIX as "\\sdcc"
13712
13713 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
13714         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
13715
13716 2002-06-22  Scott Dattalo <scott AT dattalo.com>
13717         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
13718         - Rewrote the register banking algorithm.
13719         - Added pCode live-range analysis to registers (for now, only non-used and
13720         singly-used registers optimized away)
13721
13722         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
13723
13724         * 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.
13725
13726 2002-05-10  Scott Dattalo <scott AT dattalo.com>
13727         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
13728
13729 2002-04-22  Michael Hope  <michaelh AT vroom>
13730
13731         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
13732
13733         * configure.in (DD_COPT): Added include support required for gbdk.
13734
13735         * .version: Bumped version number just to increase it.
13736
13737         * src/SDCCmain.c: Added -nostdinc to the default options.
13738
13739 2002-04-15  Michael Hope  <michaelh AT vroom>
13740
13741         * device/lib/z80/printf.c (sprintf): Added.
13742
13743         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
13744
13745         * src/z80/peeph.def: Added transpose redundent load rule.
13746
13747         * src/z80/main.c: Added force callee saves for jaune.
13748
13749         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
13750
13751         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
13752
13753 2002-03-28  Johan Knol  <johan AT balder>
13754
13755         * src/SDCCval.c: fixed bug #532436
13756
13757 2002-03-14  Scott Dattalo <scott AT dattalo.com>
13758         * /src/port.h:
13759         Added "char *Processor" field to the port structure.
13760
13761         * /src/SDCCmain.c:
13762         Added -p option. Allows port dependent processor to be specified.
13763
13764         * all ports:
13765         Initialized the new field char *Processor field to NULL in all ports
13766
13767         * /src/pic/*:
13768         Compiler generated registers for interrupt context saving
13769         were not getting allocated.
13770
13771 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
13772
13773         * /src/SDCCast.c:
13774         Fixed left shift. Will promote the left side of a left shift
13775         if a) left shifting more than size of operand or b) when assigned
13776         to something size > size of left side
13777
13778 2002-03-14  Scott Dattalo <scott AT dattalo.com>
13779         * src/pic/*
13780         tons of changes. Register allocation has been
13781         rewritten. Added customization for the various PICs. Flow
13782         analysis is restructured. ...
13783
13784         * src/pic/device.h:
13785         Added
13786
13787         * src/pic/device.c:
13788         Added. device.c is a PIC port hack to accomodate variations
13789         in PIC devices.
13790
13791 2002-03-13  Michael Hope  <michaelh AT vroom>
13792
13793         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
13794
13795 2002-03-04  johanknol  <johanknol AT manik>
13796
13797         * /src/SDCCval.c: fixed
13798
13799         const unsigned char arr[][2] = { { 0, 1 } };
13800         t18.c:1: error: Initializer element is not constant
13801
13802 2002-03-04  bela  <bela AT manik>
13803
13804         * /device/include/mcs51reg.h:
13805         ds89c420 register definition update
13806
13807 2002-03-03    <johan AT FRIJA>
13808
13809         * support/Util/SDCCerr.c: did something, but don't no why anymore
13810
13811         * support/regression/tests/bug-524691.c: made it a little less shy
13812
13813         * src/SDCCast.c (decorateType): fixed bug #524697
13814
13815         * src/SDCCast.c: made some lineno improvements
13816
13817         * src/SDCCval.c (getNelements): changed warning to error
13818
13819         * src/SDCCglue.c (printIvalArray): changed warning to error
13820
13821         * src/SDCCicode.c: fixed a warning for mingw
13822
13823         * src/SDCCast.c (decorateType): fixed the << promotion for ops
13824
13825         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
13826
13827 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
13828
13829         * src/ds390/peeph.def:
13830         Added some more peephole rules
13831
13832         * src/ds390/gen.c: Various fixes & enhancements
13833
13834         * src/SDCClrange.c, src/SDCClrange.h:
13835         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
13836
13837         * src/ds390/ralloc.c:
13838         various fixes & enhancements (ds390) specific
13839
13840         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
13841         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
13842         from rallocs.
13843
13844         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
13845
13846 2002-03-02    <johan AT FRIJA>
13847
13848         * src/SDCCast.c (decorateType): fixed bug #524708
13849
13850         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
13851
13852         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
13853
13854 2002-03-01  Michael Hope  <michaelh AT vroom>
13855
13856         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
13857
13858         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
13859
13860 2002-03-01    <johan AT FRIJA>
13861
13862         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
13863
13864         * src/SDCCast.c (decorateType): fixed bug #524209
13865
13866         * src/SDCCval.c (valNot): fixed bug #524195
13867
13868 2002-02-26    <johan AT balder>
13869
13870         * src/xa51/gen.c: fixed a warning
13871
13872         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
13873
13874         * src/SDCCast.c (decorateType): fixed bug #522534
13875
13876 2002-02-23    <johan AT balder>
13877
13878         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
13879
13880 2002-02-22    <johan AT balder>
13881
13882         * src/SDCCast.c: fixed bug #514865
13883
13884         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
13885
13886 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
13887
13888         * sdcc/src/SDCCloop.c:
13889         Previous fix was not good. basic blocks that have "break" or "return" are
13890         not really partof a loop , but live ranges used in these blocks should
13891         be live thru the entire loop, so set partOfLoop but don't add them to
13892         loop region
13893
13894 2002-02-21    <johan AT FRIJA>
13895
13896         * src/SDCCcse.c: fixed bug #514308
13897
13898 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
13899
13900         * src/SDCCloop.c:
13901         Fixed BUG #519583. If a conditional block ended in a return/break
13902         statement inside a loop, it was not being considered part of the loop.
13903
13904         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
13905
13906 2002-02-10  Karl Bongers <karl AT turbobit.com>
13907
13908         * debugger/*:
13909         Fixed up SDCDB debugger somewhat.  Updated debugger/README
13910         with lots of comments and notes.
13911
13912         * device/examples/test2.c:
13913         Fix bug, "red" variable not being initialized(compiler complained).
13914
13915         * device/examples/Makefile, examples/test3.c:
13916         Add Makefile in device/examples folder, compiles test3.c
13917         for use as a multiple module SDCDB test case.
13918
13919         * sim/ucsim/cmd.src/cmdset.cc:
13920         Took out debug printfs in ucsim "next" command.
13921
13922         * sim/ucsim/xa.src:
13923         Karl and Johan start ucsim XA support.  Most dissassembly working,
13924         about 75% emulation done(plenty of work remaining).
13925
13926         * sim/ucsim/z80.src:
13927         Add Z80 support to ucsim, add test-ucz80 regression test,
13928         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
13929         Notice z80 compiler fails on examples/test3.c/crc code.
13930
13931 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
13932
13933         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
13934         Added support for --parms-in-bank1
13935
13936         * src/ds390/peeph.def:
13937         added a few more peephole optimzations
13938
13939         * src/ds390/main.c:
13940         1) added __builtin_inp & __builtin_outp used to read in data of given length
13941            from a memory mapped port
13942         2) added __builtin_memcmp
13943         3) added __builtin_swapw swap bytes of a short
13944
13945         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
13946         1) handle multiple send & receives from register bank1
13947         2) ralloc can now allocate DPTR1 to some liveRanges
13948
13949         * src/SDCCsymt.c, src/SDCCsymt.h:
13950         changes to handle multiple sends & receives
13951
13952         * src/SDCCptropt.h:
13953         added some pointer arithmetic optimization
13954
13955         * src/SDCCptropt.c:
13956         added some pointer arithmetic optimizations but not stable yet so not
13957         called from anywhere (will get this working shortly)
13958
13959         * src/SDCCopt.c: fixed for multiple sends & receives
13960
13961         * src/SDCCmain.c:
13962         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
13963         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
13964            set preprocessor defines (depending on options)
13965
13966         * src/SDCCicode.c, src/SDCCicode.h:
13967         changes made to handle multiple sends & receives
13968
13969         * src/SDCCglobl.h:
13970         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
13971
13972         * src/SDCCcse.c, src/SDCCcse.h:
13973         added function findbackward def (to be used in upcoming optimization)
13974
13975         * src/SDCCcflow.c, src/SDCCcflow.h:
13976         added function returnAtEnd - to determine if a basic block terminates with
13977         a RETURN iCode
13978
13979         * src/SDCCast.c, src/SDCCast.h:
13980         added option parms-in-bank1
13981
13982         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
13983         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
13984         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
13985         adjusted for --parms-in-bank1 option
13986
13987         * device/include/string.h:
13988         donot redefine "reentrant" keyword
13989
13990         * device/include/ds80c390.h: Added some more SFRs
13991
13992 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
13993
13994         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
13995
13996 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
13997
13998         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
13999
14000 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
14001
14002         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
14003
14004 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
14005
14006         * Added --xram-movc option
14007
14008 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
14009
14010         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
14011
14012 2002-01-11  Johan Knol
14013
14014         * Added math lib of Jesus Calvino-Fraga
14015
14016 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
14017
14018         * src/SDCCmain.c (processFile): fix processing of ../../src.c
14019         * support/regression/Makefile: new target test-mcs51-stack-auto
14020         * support/regression/ports/mcs51-stack-auto/spec.mk: added
14021
14022 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
14023
14024         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
14025
14026 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
14027
14028         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
14029
14030 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
14031
14032         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
14033
14034         * src/SDCCglue.h: add definition for printIvalChar()
14035
14036 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
14037
14038         * src/SDCCast.c: fix #498138 by Johan
14039
14040         * src/SDCCglue.c: fix #498138 by Johan
14041
14042 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
14043
14044         * support/regression/Makefile: fix clean
14045
14046         * support/regression/ports/ds390/support.c: fix transmission of last character
14047
14048 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
14049
14050         * /sdcc/src/ds390/gen.c:
14051         a) improved computing address of stack variable
14052         b) took out some #if 0 code
14053         c) improved parmBytes adjustment
14054         d) improved genPlusIncr & genMinusIncr
14055         e) genCmp could generate bad code (when left assigned to DPTR)
14056         f) Fixed bug in hasInc
14057
14058         * /sdcc/src/ds390/ralloc.c:
14059         a) packRegsForSupport could mess up live information (Fixed)
14060         b) packRegsDPTRuse could be incorrect for left & right shift
14061
14062         * /sdcc/src/mcs51/ralloc.c:
14063         packRegsForSupport could mess up the live information (Fixed)
14064
14065         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
14066
14067         * /sdcc/src/SDCCast.c:
14068         can reverse a loop even if function call is present as long
14069         as the loop control variable is local & is not passed as parameter
14070
14071 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
14072
14073         * /sdcc/ChangeLog: *** empty log message ***
14074
14075         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
14076         More builtin function additions for TININative
14077
14078         * /sdcc/src/ds390/ralloc.c:
14079         Had broken the regression testsuite
14080
14081         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
14082
14083         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
14084         Added funcattr hasStackParms will be set for reentrant functions when there
14085         are paramteres on the stack, this helps in minimizing frame pointer generation
14086         typeFromStr can handle function pointers now
14087
14088         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
14089         *** empty log message ***
14090
14091 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
14092
14093         * /src/ds390/gen.c, /src/ds390/main.c:
14094         More builtin function additions for TININative
14095
14096         * /src/ds390/ralloc.c:
14097         Had broken the regression testsuite
14098
14099         * /src/SDCCast.c: Fixed a bug in dumptree
14100
14101         * /src/SDCCsymt.c, /src/SDCCsymt.h:
14102         Added funcattr hasStackParms will be set for reentrant functions when there
14103         are paramteres on the stack, this helps in minimizing frame pointer generation
14104         typeFromStr can handle function pointers now
14105
14106         * /doc/builtins.txt, /doc/TININative.txt:
14107         *** empty log message ***
14108
14109
14110 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
14111
14112         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
14113         ALPHA version for -mTININative
14114
14115         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
14116         updated to reflect changes in the port structure
14117
14118         * /src/port.h:
14119         added function do_assemble (similar to do_link) if non-null this function
14120         will be called to do assembly (-mTININative) requires a multi command
14121         assembly
14122         added function genAssemblerEnd will be called to generate assembler Epilogue
14123
14124         * /src/SDCCsymt.c:
14125         added _JavaNative to debug info printing
14126
14127         * /src/SDCCmain.c: added option --tini-libid
14128         added port->do_assemble function (-mTININative) has a multi command assemble
14129
14130         * /src/SDCCglue.c: Disabled "constExpr" check
14131         added port->genAssemblerEnd function
14132
14133         * /src/SDCCglobl.h: Added option --tini-libid value
14134
14135         * /src/SDCCast.h:
14136         tookout optimizeCompare from the header (has no external references)
14137
14138         * /src/SDCCast.c: made one more function "static"
14139
14140 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
14141
14142         * src/z80/mappings.i: Added z80asm support.
14143
14144         * src/z80/main.c: Added z80asm support on --asm=z80asm
14145
14146         * src/z80/gen.c: Fixed asm portability issues.
14147
14148         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
14149
14150         * src/SDCCglue.c (printExterns): Added global/extern split.
14151
14152 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
14153
14154         * support/regression/Makefile: added test for mcs51 model large
14155
14156         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
14157
14158         * support/regression/ports/gbz80/spec.mk: added -mgbz80
14159
14160 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
14161
14162         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
14163
14164 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
14165
14166         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
14167
14168         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
14169
14170 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
14171
14172         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
14173
14174         * support/regression/tests/simplefloat.c: Port to mcs51.
14175
14176 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
14177         * support/regression/tests/bug-485362.c: Added.
14178
14179         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
14180
14181         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
14182
14183         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
14184
14185         * src/z80/gen.c (aopDump): Added a dump function.
14186
14187 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
14188         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
14189
14190         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
14191
14192         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
14193
14194         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
14195
14196         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
14197
14198         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
14199
14200         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
14201
14202         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
14203
14204         * support/regression/ports/ds390/support.c: Use tinibios.
14205
14206         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
14207
14208 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
14209
14210         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
14211         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
14212
14213         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
14214
14215         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
14216
14217 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
14218
14219         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
14220
14221         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
14222         (packRegsForIYUse): Created and optimised.
14223
14224 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
14225
14226         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
14227 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
14228
14229         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
14230
14231         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
14232
14233         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
14234
14235 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14236
14237         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
14238
14239         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
14240
14241 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14242
14243         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
14244
14245         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
14246
14247         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
14248
14249 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
14250
14251         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
14252         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
14253         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
14254
14255         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
14256
14257         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
14258         (genNotFloat): Added.
14259         (genUminusFloat): Added.
14260
14261         * device/lib/z80/Makefile: Added floating pt stubs.
14262
14263         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
14264
14265         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
14266
14267         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
14268
14269 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14270
14271         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
14272
14273         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
14274
14275         * sdcc/support/regression/Makefile: Add port ds390.
14276
14277         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
14278
14279         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
14280
14281         * sdcc/support/regression/ports/ds390/spec.mk: Added.
14282
14283         * sdcc/support/regression/ports/ds390/support.c: Added.
14284
14285         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
14286
14287         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
14288
14289         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
14290
14291 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
14292
14293         * device/include/malloc.h: Added z80 and gbz80 support.
14294
14295         * device/lib/gbz80/heap.s: Added.
14296
14297         * device/lib/z80/heap.s: Added.
14298
14299         * device/lib/malloc.c: Added z80 and gbz80 support.
14300
14301         * support/regression/tests/malloc.c (testMalloc): Added.
14302
14303         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
14304
14305         * support/regression/tests/bug-478094.c: Added.
14306
14307         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
14308
14309 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
14310
14311         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
14312
14313         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
14314
14315         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
14316
14317         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
14318
14319         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
14320
14321 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
14322
14323         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
14324
14325 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
14326
14327         * support/regression/tests/bug-477927.c: Added.
14328
14329         * src/z80/peeph.def: Added minor rules.
14330
14331         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
14332
14333         * src/z80/peeph.def: Added jump optimisation modification.
14334
14335 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
14336
14337         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
14338
14339 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
14340
14341         * support/regression/tests/funptrs.c: Added.
14342
14343 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
14344
14345         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
14346
14347 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
14348
14349         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
14350
14351         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
14352
14353         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
14354         (movLeft2ResultLong): Created.
14355
14356         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
14357         (joinPushes): Added.  Joins two char pushes into a word push.
14358
14359 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
14360
14361         * support/cpp2/Makefile.in (install): Added creation of dest dir.
14362
14363         * support/makebin/Makefile (install): Added creation of dest dir.
14364
14365 2001-10-24 Karl Bongers <karl AT turbobit.com>
14366
14367         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
14368
14369 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
14370
14371         * src/z80/ralloc.c: Turned off faulty pack for one use.
14372
14373         * src/z80/peeph-gbz80.def: Removed redundent restart options.
14374
14375         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
14376
14377 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
14378
14379         * support/regression/Makefile: Improved clean
14380
14381         * support/regression/ports/gbz80/spec.mk: Added clean
14382
14383         * support/regression/ports/host/spec.mk: Added clean
14384
14385         * support/regression/ports/z80/spec.mk: Added clean
14386
14387         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
14388
14389         * support/regression/ports/mcs51/timeout.c: little improvements
14390
14391 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
14392
14393         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
14394
14395         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
14396
14397         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
14398
14399 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
14400
14401         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
14402
14403         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
14404
14405 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
14406         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
14407
14408         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
14409
14410         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
14411
14412         * src/mcs51/main.c (_linkCmd): Added bin path to command.
14413
14414         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
14415
14416         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
14417
14418         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
14419
14420         * support/regression/tests/longor.c: Added.
14421
14422 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
14423
14424         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
14425
14426         * as/mcs51/aslink.h: define PATH_MAX
14427
14428         * as/mcs51/asm.h: define PATH_MAX
14429
14430         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
14431
14432         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
14433
14434         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
14435
14436         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
14437
14438         * src/SDCCglobl.h: define PATH_MAX
14439
14440         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
14441
14442         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
14443
14444 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
14445
14446         * src/z80/gen.c (gencjneshort): Fixed
14447
14448         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
14449
14450 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
14451
14452         * support/regression/tests/bug-469671.c: Added.
14453
14454         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
14455
14456 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
14457
14458         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
14459
14460         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
14461
14462 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
14463
14464         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
14465
14466         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
14467
14468         * src/device/lib/_mullong.c : removed hint: nooverlay bug
14469
14470         * src/device/lib/_divuint.c : removed hint: nooverlay bug
14471
14472         * src/device/lib/_divulong.c: removed hint: nooverlay bug
14473
14474         * src/device/lib/_moduint.c : removed hint: nooverlay bug
14475
14476         * src/device/lib/_modulong.c: removed hint: nooverlay bug
14477
14478 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
14479
14480         * 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.
14481
14482         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
14483
14484         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
14485
14486 2001-10-07    <johan AT FRIJA>
14487
14488         * device/lib/gets.c (gets): fixed the return value.
14489
14490 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
14491         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
14492
14493         * 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.
14494
14495         * 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.
14496
14497         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
14498
14499         * src/pic/gen.c: Removed Safe_strdup.
14500
14501         * configure.in: Added option to enable libgc support.
14502
14503         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
14504         (bitVectUnion): Optimised.
14505         (bitVectIntersect): Optimised.
14506         (bitVectBitsInCommon): Optimised.
14507         (bitVectCplAnd): Optimised.
14508
14509         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
14510
14511 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14512
14513         * src/SDCCmain.c: distinguish between assembler debug and plain options
14514
14515         * src/avr/main.c:   remove standard assembler options
14516
14517         * src/ds390/main.c: remove standard assembler options
14518
14519         * src/mcs51/main.c: remove standard assembler options
14520
14521         * src/port.h: removed "PENDING" comment
14522
14523 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14524
14525         * src/device/lib/_mulint.c  : new, with assember functions
14526
14527         * src/device/lib/_mullong.c : new, with assember functions
14528
14529         * src/device/lib/_divuint.c : with assember functions
14530
14531         * src/device/lib/_divsint.c : with assember functions
14532
14533         * src/device/lib/_divulong.c: with assember functions
14534
14535         * src/device/lib/_divslong.c: with assember functions
14536
14537         * src/device/lib/_moduint.c : with assember functions
14538
14539         * src/device/lib/_modsint.c : with assember functions
14540
14541         * src/device/lib/_modulong.c: with assember functions
14542
14543         * src/device/lib/_modslong.c: with assember functions
14544
14545         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
14546
14547         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
14548
14549         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
14550                                       replaced _mululong.c and _mulslong.c by _mullong.c
14551
14552 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14553
14554         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
14555
14556 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
14557
14558         * src/SDCCglue.c: test, if win32api is available for MINGW
14559
14560 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
14561
14562         * src/SDCCsymt.c: no more _modifier in printTypeChain()
14563         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
14564         * support/regression/ports/gbz80/spec.mk: removed GENERIC
14565         * support/regression/ports/host/spec.mk: removed GENERIC
14566         * support/regression/ports/mcs51/spec.mk: removed GENERIC
14567         * support/regression/ports/z80/spec.mk: removed GENERIC
14568
14569 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
14570
14571         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
14572
14573         * support/regression/tests/bug-467035.c: Created.
14574
14575 2001-10-01    <johan AT FRIJA>
14576
14577         * src/SDCC.y: fixed bug #466586 part 1
14578
14579 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
14580
14581         * SDCCicode.c: z80 has no generic pointers
14582         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
14583
14584 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
14585
14586         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
14587
14588 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
14589
14590         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
14591
14592         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
14593
14594 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
14595
14596         * configure.in: Fixed up so that ucsim is only configured once.
14597
14598         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
14599
14600         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
14601         (getPathDifference): As above.
14602
14603         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
14604
14605         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
14606
14607 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
14608         * .version: Updated to 2.3.1
14609
14610         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
14611         Added copyright header.
14612
14613         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
14614         (assemble): Added support for macro based assembler commands.
14615         (linkEdit): Added support for macro based linker commands.
14616         (preProcess): Changed the pre-processor to use macros.
14617         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
14618         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
14619
14620         * device/lib/z80/crt0.s: Added module name for debugging.
14621
14622 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
14623
14624         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
14625
14626         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
14627
14628         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
14629
14630         * src/Makefile.in: Added SDCCmacro and SDCCutil
14631
14632 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
14633
14634         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
14635
14636 2001-09-16    <johan AT FRIJA>
14637
14638         * 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.
14639
14640 2001-09-15    <johan AT FRIJA>
14641
14642         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
14643         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
14644
14645 2001-09-11    <johan AT FRIJA>
14646
14647         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
14648
14649 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
14650
14651         * support/regression/tests/bug-460444.c: Added test case.
14652
14653         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
14654         (genCast): Added justification for all of the asserts.
14655
14656 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
14657
14658         * support/regression/support.c: _xdata replaced by xdata
14659
14660         * support/regression/spec.mk: removed _generic
14661
14662 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
14663
14664         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
14665
14666         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
14667         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
14668
14669         * src/z80/peeph.def: Added a rule to optimise shift then compare.
14670
14671         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
14672
14673         * support/regression/tests/bug-460010.c: Added test case.
14674
14675         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
14676
14677 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
14678
14679         * support/regression/Makefile: inter-port-clean adjusted for mcs51
14680
14681         * support/regression/testfwk.c: removed workaround for bug #436344
14682
14683         * support/regression/tests/bp.c: use less memory with mcs51
14684
14685         * support/regression/tests/bug-441448.c: use less memory
14686
14687         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
14688
14689         * support/regression/collate-results.py: typo
14690
14691 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
14692
14693         * support/regression/tests/fetchoverlap.c: Added new test case.
14694
14695         * support/regression/tests/bp.c: Added new test case.
14696
14697         * support/regression/tests/bug-448984.c: Added new test case.
14698
14699         * support/regression/tests/pow2shifts.c: Added new test case.
14700
14701         * src/z80/gen.c: Turned off the noise it normally generates for the release.
14702         (genlshTwo): Fixed right shift for count > 8.
14703
14704         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
14705
14706 2001-09-08    <johan AT FRIJA>
14707
14708         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
14709
14710 2001-09-07    <johan AT FRIJA>
14711
14712         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
14713
14714         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
14715
14716 2001-09-06    <johan AT FRIJA>
14717
14718         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
14719         * bernhard noted me at this: "() equals to (void)" (1.38)
14720
14721 2001-09-05    <johan AT FRIJA>
14722
14723         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
14724
14725 2001-09-04    <johan AT FRIJA>
14726
14727         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
14728
14729
14730 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
14731
14732         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
14733
14734 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
14735
14736         * link/z80/aslink.h: Fixed path for PATH_MAX
14737
14738 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
14739
14740         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
14741
14742         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
14743
14744         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
14745
14746         * 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.
14747
14748 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
14749
14750         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
14751         (genCmp): Fixed up genCmp for the GB with longs.
14752
14753         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
14754
14755         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
14756
14757         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
14758
14759         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
14760
14761 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
14762
14763         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
14764
14765 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
14766
14767         * 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.
14768
14769         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
14770
14771 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
14772
14773         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
14774
14775         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
14776
14777 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
14778
14779   * sim/ucsim/configure:    little improvement of Cygwin-detection
14780   * sim/ucsim/configure.in: little improvement of Cygwin-detection
14781   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
14782   * support/regression/tests/bug-221100.c: small changes for mcs51
14783   * support/regression/tests/bug-221168.c: small changes for mcs51
14784   * support/regression/tests/bug-227710.c: small changes for mcs51
14785   * support/regression/tests/staticinit.c: small changes for mcs51
14786   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
14787   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
14788   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
14789
14790 $Revision$