* device/lib/Makefile.in: remove abspath for PORTDIR, introduced in
[fw/sdcc] / ChangeLog
1 2009-04-13 Borut Razem <borut.razem AT siol.net>
2
3         * device/lib/Makefile.in: remove abspath for PORTDIR, introduced in
4           svn revision #5341, since it makes asranlib to fail on cygming and
5           mingw builds: win32 native asranlib doesn't understand cygwin paths.
6
7 2009-04-10 Raphael Neider <rneider AT web.de>
8
9         * device/lib/pic/libsdcc/fs2ulong.c, device/lib/pic/libsdcc/fsadd.c,
10           device/lib/pic/libsdcc/fsdiv.c, device/lib/pic/libsdcc/fseq.c,
11           device/lib/pic/libsdcc/fsgt.c, device/lib/pic/libsdcc/fslt.c,
12           device/lib/pic/libsdcc/fsmul.c, device/lib/pic/libsdcc/fsneq.c,
13           device/lib/pic/libsdcc/fssub.c, device/lib/pic/libsdcc/ulong2fs.c,
14           device/lib/pic16/libsdcc/float/fs2ulong.c,
15           device/lib/pic16/libsdcc/float/fsadd.c,
16           device/lib/pic16/libsdcc/float/fsdiv.c,
17           device/lib/pic16/libsdcc/float/fsmul.c: fixed pic14 libraries, merge
18           changes from the pic16 port, minor code cleanup
19         * src/pic/gen.c: implemented genUminusFloat(), fixed warning and style
20
21 2009-04-09 Philipp Klaus Krause <pkk AT spth.de>
22
23         * device/lib/z80/mod.s,
24           device/lib/z80/Makefile.in,
25           device/lib/z80/div.s,
26           device/lib/z80/modsigned.s,
27           device/lib/z80/divsigned.s:
28           Applied patch #2741451 from Marco Bodrato
29           and moved functions for signed modulo into
30           separate file.
31
32 2009-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
33
34         * src/mcs51/peeph.def: disabled rule 270, fixing bug #2736282
35
36 2009-04-04 Philipp Klaus Krause <pkk AT spth.de>
37
38         * src/z80/gen.c,
39           src/z80/peeph-z80.def:
40           Improved caching of pointers in hl and iy.
41           device/lib/z80/div.s:
42           Applied patch #2727917 from Marco Bodrato.
43
44 2009-04-03 Philipp Klaus Krause <pkk AT spth.de>
45
46         * src/z80/ralloc.c:
47           Enabled use of hl as inter-i-code temporary.
48
49 2009-04-03 Philipp Klaus Krause <pkk AT spth.de>
50
51         * src/z80/peeph-z80.def:
52           Reenabled peephole 0t.
53
54 2009-04-03 Philipp Klaus Krause <pkk AT spth.de>
55
56         * src/z80/gen.c:
57           Fixed bugs #2728224, #2728218.
58           src/z80/peeph-z80.def:
59           Workaround for bug #2728445.
60           support/regression/tests/memory.c:
61           Added test for memcmp().
62
63 2009-04-03 Philipp Klaus Krause <pkk AT spth.de>
64
65         * device/lib/z80/mul.s,
66           device/lib/z80/memmove.s,
67           device/lib/z80/strlen.s:
68           Minor improvements, code cleanup and license clarification.
69
70 2009-04-01 Philipp Klaus Krause <pkk AT spth.de>
71
72         * device/lib/z80/mul.s: 
73           Minor improvement in Z80 16x16 bit multiplication.
74
75 2009-03-23 Borut Razem <borut.razem AT siol.net>
76
77         * src/SDCCval.c, src/SDCCmain.c, device/include/limits.h,
78           device/include/pic/limits.h, device/include/pic16/limits.h,
79           device/lib/_fs2schar.c, device/lib/pic/libsdcc/fs2schar.c,
80           device/lib/pic16/libsdcc/float/fs2schar.c, doc/sdccman.lyx,
81           support/regression/tests/funsigned-char.c:
82           applied patch 2704189: character constant sign fix
83           thanks to Robert Larice
84
85 2009-03-22 Borut Razem <borut.razem AT siol.net>
86
87         * Small Device C Compiler 2.9.0 released
88         * .version, doc/sdccman.lyx: changed sdcc version to 2.9.1
89
90 2009-03-15 Borut Razem <borut.razem AT siol.net>
91
92         * support/scripts/repack_release.sh: added
93
94 2009-03-13 Borut Razem <borut.razem AT siol.net>
95
96         * doc/sdccman.lyx: "freeware" replaced with "free open source"
97
98 2009-03-12 Borut Razem <borut.razem AT siol.net>
99
100         * src/z80/peep.c: #2652979: --debug crashes sdcc
101
102 2009-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
103
104         * src/SDCCglue.c,
105           support/regression/tests/bug2655200.c:
106           applied modified patch from Robert Larice <larice AT vidisys.de>
107           fixing original report of bug #2655200: pointer to pdata memory
108           not correctly initialized
109
110 2009-03-11 Borut Razem <borut.razem AT siol.net>
111
112         * as/asranlib/asranlib.c: retain the original file mode
113
114 2009-03-10 Borut Razem <borut.razem AT siol.net>
115
116         * src/mcs51/gen.c, src/z80/gen.c, src/hc08/gen.c, src/ds390/gen.c,
117           support/regression/tests/bug1875933.c:
118           fixed bug #1875933: Evelyn jumps into the void
119           thanks to Robert Larice
120
121 2009-03-10 Raphael Neider <rneider AT web.de>
122
123         * src/pic16/pcode.c (LinkFlow): fix invalid cast from pCodeLabel
124           to pCodeInstruction to avoid a segmentation fault
125
126 2009-03-03 Borut Razem <borut.razem AT siol.net>
127
128         * device/lib/printf_large.c: fixed bug #2656821: bug in printf
129
130 2009-03-03 Raphael Neider <rneider AT web.de>
131
132         * device/lib/pic/libdev/Makefile.in: build device-specific
133           libraries for the correct processor, fixes #2654585
134
135 2009-03-01 Raphael Neider <rneider AT web.de>
136
137         * device/lib/Makefile.in: fixed parallel builds (i.e., make -jN, N>1)
138
139 2009-03-01 Borut Razem <borut.razem AT siol.net>
140
141         * src/z80/peep.c: fixed bug #2648964: --i-code-in-asm crashes sdcc
142         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
143           changed sdcc version to 2.9.0
144
145 2009-03-01 Maarten Brock <sourceforge.brock AT dse.nl>
146
147         * src/mcs51/ralloc.c (spillThis, spilSomething): fixed bug 2435941
148           (serialRegAssign): do not spil bit registers
149           throughout cosmetic changes
150         * support/regression/tests/bug2435941.c: new, added
151
152 2009-02-28 Raphael Neider <rneider AT web.de>
153
154         * src/regression/compare10.c,
155           src/regression/compare7.c,
156           src/regression/compare8.c,
157           src/regression/compare9.c: reset watchdog timer in time
158         * src/regression/configword.c: apply patch from #2488150
159         * src/pic/glue.c (pic14createInterruptVect): pin RESET vector
160           handler to 0x0000 as the linker no longer knows STARTUP sections
161         * src/pic/pcode.c (register_reassign, ReuseReg): applied modified
162           patch #2512926 to (mostly) fix #1762626, cosmetic changes
163         * src/pic/pcodepeep.c: remove reference to nonexisting function
164
165 2009-02-28 Raphael Neider <rneider AT web.de>
166
167         * device/include/pic16/signal.h: avoid multiline inline
168           assembler statements in macros, addresses #2644965
169
170 2009-02-27 Raphael Neider <rneider AT web.de>
171
172         * device/include/pic16/pic18f[24][3456]k20.h,
173           device/include/pic16/pic18f[68][567]j50.h,
174           device/include/pic16/pic18f[68]6j55.h,
175           device/lib/pic16/libdev/pic18f[24][3456]k20.c,
176           device/lib/pic16/libdev/pic18f[68][567]j50.c,
177           device/lib/pic16/libdev/pic18f[68]6j55.c,
178           device/include/pic16/pic18fregs.h,
179           device/include/pic16/pic16devices.txt,
180           device/lib/pic16/pics.all,
181           device/lib/pic16/libdev/Makefile.am,
182           device/lib/pic16/libio/Makefile.am: added/re-enabled many device
183           families (87j50 family contributed by Robert Wuest)
184
185         * device/include/pic16/adc.h,
186           device/lib/pic16/libio/adc/adcbusy.c,
187           device/lib/pic16/libio/adc/adcclose.c,
188           device/lib/pic16/libio/adc/adcconv.c,
189           device/lib/pic16/libio/adc/adcopen.c,
190           device/lib/pic16/libio/adc/adcsetch.c: added 65j50-style ADC
191
192         * doc/sdccman.lyx: updated list of supported devices, fixed typo
193         * device/lib/pic16/Makefile.common: do not suppress assembler warnings
194
195         * device/lib/pic16/Makefile.in,
196           device/lib/pic16/libm/Makefile.in,
197           device/lib/pic16/debug/Makefile.in,
198           device/lib/pic16/libio/Makefile.in,
199           device/lib/pic16/startup/Makefile.in,
200           device/lib/pic16/libsdcc/Makefile.in,
201           device/lib/pic16/libdev/Makefile.in,
202           device/lib/pic16/libc/Makefile.in: regenerated
203
204 2009-02-27 Borut Razem <borut.razem AT siol.net>
205
206         * as/z80/asexpr.c, as/z80/z80mch.c: re-fixed bugs
207           #1829678 and #1704376 in the way proposed by Alan Baldwin
208
209 2009-02-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
210
211         * device/include/mcs51/at89c51ed2.h: Fixed address of SFR P5. Thanks
212           to Steve Qu for the fix.
213
214 2009-02-23 Borut Razem <borut.razem AT siol.net>
215
216         * as/z80/asexpr.c: fixed bug #1829678: Z-80 CP A,<xxx> assembly
217           it is already fixed for mcs51 and hc08 targets
218         * as/z80/z80mch.c: fixed bug #1704376: missing as-z80 errors
219
220 2009-02-22 Borut Razem <borut.razem AT siol.net>
221
222         * device/lib/Makefile.in: fixed parenthesis error
223         * doc/sdccman.lyx: fixed webdocs bug #2071421: error in the manual,
224           fixed webdocs bug #1967920: --version
225
226 2009-02-18 Maarten Brock <sourceforge.brock AT dse.nl>
227
228         * device/include/mcs51/at89c51ed2.h: fixed bug #2071949 bitmask RBCK wrong
229
230 2009-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
231
232         * as/link/mcs51/lkihx.c (hexRecord): bugfix do not insert extended address
233           when addresses are unsorted
234
235 2009-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
236
237         * device/include/mcs51/p89v66x.h: added ENBOOT thanks
238           Gudjon Gudjonsson <gudjon AT gudjon.org>
239         * device/include/mcs51/p89c66x.h: fixed some defines
240         * device/include/mcs51/p89v66x.h: fixed some sbit addresses
241         * doc/sdccman.lyx: added <NO FLOAT> to index, try to reanimate
242           svn keywords
243
244 2009-02-14 Borut Razem <borut.razem AT siol.net>
245
246         * doc/sdccman.lyx: corrected cpp info
247
248 2009-02-13 Borut Razem <borut.razem AT siol.net>
249
250         * as/Makefile.in: *.doc renamed to *.txt
251
252 2009-02-11 Borut Razem <borut.razem AT siol.net>
253
254         * as/doc/aslnk.doc, as/doc/abstra.doc: renamed to *.txt
255         * as/doc/aslnk.txt, as/doc/asxhtml.html: changed licens to GPLv3
256
257 2009-02-11 Borut Razem <borut.razem AT siol.net>
258
259         * doc/sdccman.lyx: documented ar format libraries
260
261 2009-02-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
262
263         * support/regression/tests/float_single.c: added regression
264           test. Some testpoints for probably rarely used functions
265           (acosf, sinhf, tanf, expf) disabled for some targets
266
267 2009-02-10 Raphael Neider <rneider AT web.de>
268
269         * src/pic16/gen.c (pic16_freeAsmop): avoid NULL pointer dereference,
270           (genAssign): fixed for operands on the stack
271
272         * device/lib/pic16/libc/stdio/vfprintf.c,
273           device/lib/pic16/configure.ac,
274           device/lib/pic16/Makefile.common: add configurable support for
275           printing floats via ./configure --enable-floats
276         * device/lib/pic16/configure,
277           device/lib/pic16/Makefile.in,
278           device/lib/pic16/libm/Makefile.in,
279           device/lib/pic16/debug/Makefile.in,
280           device/lib/pic16/libio/Makefile.in,
281           device/lib/pic16/startup/Makefile.in,
282           device/lib/pic16/libsdcc/Makefile.in,
283           device/lib/pic16/libdev/Makefile.in,
284           device/lib/pic16/libc/Makefile.in: regenerated
285         * doc/sdccman.lyx: documented float support and how to get it
286         * doc/Makefile.in: fixed race condition on parallel builds
287
288         * device/lib/pic16/libc/stdio/sprintf.c,
289           device/lib/pic16/libc/stdio/vsprintf.c: do not mess up the user's
290           pointer to the string buffer, enlarge buffer for x_ftoa()
291
292 2009-02-10 Borut Razem <borut.razem AT siol.net>
293
294         * device/lib/printf_tiny.c: replaced non-C89 comments '//' with '/* */'
295
296 2009-02-10 Raphael Neider <rneider AT web.de>
297
298         * device/include/pic16/pic18f*.h: add bit aliases in INTCONbits_t
299
300 2009-02-09 Raphael Neider <rneider AT web.de>
301
302         * src/pic16/pcode.c (assignToSameBank): add force argument to ignore
303           artificial bank size limits for compound data (structs, arrays),
304           avoids assert if --obanksel=N, N > 1, is given
305
306 2009-02-09 Borut Razem <borut.razem AT siol.net>
307
308         * as/asranlib/asranlib.c, link/lkar.c: don't check the padding bytes since
309           the openSUSE GNU ar (GNU Binutils; openSUSE 11.0) 2.18.50.20080409-11.1
310           uses '`' character instead '\n' for padding
311         * as/asranlib/asranlib.c: made it more robust
312
313 2009-02-08 Borut Razem <borut.razem AT siol.net>
314
315         * as/COPYING3: added
316         * support/scripts/sdcc.nsi: added COPYING3.txt to the package
317         * device/lib/Makefile.in: reenable floating point in model-xstack-auto
318           libraries
319
320 2009-02-07 Borut Razem <borut.razem AT siol.net>
321
322         * as/asranlib/asranlib.c: fixed BSD header length calculation
323         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.9
324           due sdcc asxxxx license change to GPLv3
325
326 2009-02-05 Borut Razem <borut.razem AT siol.net>
327
328         * as/asranlib/asranlib.c, link/lkar.h, link/lkar.c:
329           added support for BSD (Mac OS X) ar format
330         * as/asxxsrc/aslex.c, as/as/asxxsrc/asnoice.c, as/as/asxxsrc/assym.c,
331           as/as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/aslist.c,
332           as/hc08/asm.h, as/hc08/asmain.c, as/hc08/asout.c, as/hc08/assubr.c,
333           as/hc08/m08adr.c, as/hc08/m08ext.c, as/hc08/m08mch.c,
334           as/hc08/m08pst.c, as/hc08/m6808.h, as/link/aslink.h,
335           as/link/hc08/lkarea.c, as/link/hc08/lkelf.c, as/link/hc08/lkihx.c,
336           as/link/hc08/lkmain.c, as/link/hc08/lkmem.c, as/link/hc08/lkrloc.c,
337           as/link/hc08/lks19.c, as/link/lkaomf51.c, as/link/lkdata.c,
338           as/link/lkeval.c, as/link/lkhead.c, as/link/lklex.c, as/link/lklib.c,
339           as/link/lklibr.c, as/link/lklibr.h, as/link/lklist.c,
340           as/link/lknoice.c, as/link/lkrel.c, as/link/lkrel.h,
341           as/link/lksdcclib.c, as/link/lkstore.c, as/link/lksym.c,
342           as/link/mcs51/lkarea.c, as/link/mcs51/lkihx.c,
343           as/link/mcs51/lkmain.c, as/link/mcs51/lkmem.c,
344           as/link/mcs51/lkrloc.c, as/link/mcs51/lks19.c, as/link/z80/lkarea.c,
345           as/link/z80/lkgb.c, as/link/z80/lkgg.c, as/link/z80/lkihx.c,
346           as/link/z80/lkmain.c, as/link/z80/lkrloc.c, as/link/z80/lks19.c,
347           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/aslist.c,
348           as/mcs51/asm.h, as/mcs51/asmain.c, as/mcs51/asout.c,
349           as/mcs51/assubr.c, as/mcs51/i51adr.c, as/mcs51/i51ext.c,
350           as/mcs51/i51mch.c, as/mcs51/i51pst.c, as/mcs51/i8051.h,
351           as/xa51/xa_link.c, as/xa51/xa_main.c, as/xa51/xa_main.h,
352           as/xa51/xa_rasm.l, as/xa51/xa_rasm.y, as/xa51/xa_version.h,
353           as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c, as/z80/asm.h,
354           as/z80/asmain.c, as/z80/asout.c, as/z80/assubr.c, as/z80/z80.h,
355           as/z80/z80adr.c, as/z80/z80ext.c, as/z80/z80mch.c, as/z80/z80pst.c:
356           changed license to GPL either version 3, or (at your option) any
357           later version
358
359 2009-02-05 Borut Razem <borut.razem AT siol.net>
360
361         * as/asranlib/asranlib.c, link/lkar.h, link/lkar.c:
362           added support for BSD (Mac OS X) ar format
363
364 2009-02-02 Borut Razem <borut.razem AT siol.net>
365
366         * device/lib/gbz80/Makefile.in, device/lib/hc08/Makefile.in,
367           device/lib/z80/Makefile.in:
368           chose source files in the PORT directory if they are available
369
370 2009-02-01 Raphael Neider <rneider AT web.de>
371
372         * device/lib/pic16/libdev/pic18f1220.c,
373         * device/lib/pic16/libdev/pic18f4450.c:
374           define SSPBUF to allow use of printf
375
376 2009-02-01 Borut Razem <borut.razem AT siol.net>
377
378         * device/lib/Makefile.in, device/lib/gbz80/Makefile.in,
379           device/lib/hc08/Makefile.in, device/lib/incl.mk,
380           device/lib/z80/Makefile.in:
381           don't remake libraries
382         * support/regression/tests/snprintf.c:
383           reenable floating point in small-xstack-auto library
384
385 2009-01-26 Raphael Neider <rneider AT web.de>
386
387         * src/pic16/ralloc.c (packForPush): disabled to fix #2496919
388
389 2009-01-25 Raphael Neider <rneider AT web.de>
390
391         * src/pic16/main.c (_pic16_linkEdit): prepend -L paths to linker
392           search path instead of appending them
393
394 2009-01-24 Borut Razem <borut.razem AT siol.net>
395
396         * as/asranlib/asranlib.h: changed type of offset to unsigned int to
397           make it work on ppc Mac OS X (off_t is 64 bit and is not converted
398           to 32 bit unsigned int when calling sputl() since it is a macro
399         * as/link/lkar.c: changed the initialization of This->loaded
400
401 2009-01-23 Borut Razem <borut.razem AT siol.net>
402
403         * as/link/lkar.h: changed type of ar_size to size_t to make it work on
404           ppc Mac OS X (off_t is 64 bit and is not converted to 32 bit
405           unsigned int when calling new(), since asxxxx doesn't use function
406           prototypes)
407
408 2009-01-21 Borut Razem <borut.razem AT siol.net>
409
410         * as/link/lkar.h: sgetl and sputl are independent of endianness
411         * as/link/sdxxxx_config.h.in: removed endianness detection
412
413 2009-01-20 Borut Razem <borut.razem AT siol.net>
414
415         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.8
416           due creation of ar format libraries
417         * support/scripts/sdcc.nsi:
418           don't add nonexistent object files to the package
419
420 2009-01-19 Borut Razem <borut.razem AT siol.net>
421
422         * Makefile.in, configure.in, configure,
423           device/lib/Makefile.in, device/lib/ds390/Makefile.in,
424           device/lib/ds400/Makefile.in, device/lib/gbz80/Makefile.in,
425           device/lib/hc08/Makefile.in, device/lib/large/Makefile.in,
426           device/lib/mcs51/Makefile.in, device/lib/medium/Makefile.in,
427           device/lib/small/Makefile.in,
428           device/lib/z80/Makefile.in: create ar format libraries
429         * support/regression/ports/mcs51-xstack-auto/spec.mk:
430           use device/lib/Makefile to create library
431         * support/regression/tests/snprintf.c:
432           floating point is not enabled in small-xstack-auto library
433         * device/lib/libfloat.lib, device/lib/libint.lib,
434           device/lib/liblong.lib, device/lib/libsdcc.lib: removed
435
436 2009-01-18 Borut Razem <borut.razem AT siol.net>
437
438         * support/cpp/auto-host.h: fixed warning: "__STDC__" redefined,
439           warning: extra tokens at end of #endif directive
440
441 2009-01-11 Borut Razem <borut.razem AT siol.net>
442
443         * Makefile.in: added SDCC_ASRANLIB to PKGS
444
445 2009-01-10 Borut Razem <borut.razem AT siol.net>
446
447         * support/scripts/sdcc.nsi: added asranlib.exe to the install package
448         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.7
449           due added support for ar format libraries
450
451 2009-01-09 Borut Razem <borut.razem AT siol.net>
452
453         * as/asranlib/Makefile.in, as/asranlib/asranlib.dsp,
454           as/asranlib/asranlib.c: added asranlib
455         * as/link/lkar.c, as/link/lkar.h: added support for ar format libraries
456         * Makefile.in, as/link/hc08/Makefile.in,
457           as/link/hc08/link_hc08.dsp, as/link/lklib.c, as/link/lklibr.c,
458           as/link/lklibr.h, as/link/lkrel.c, as/link/lkrel.h,
459           as/link/lksdcclib.c, as/link/mcs51/Makefile.in,
460           as/link/mcs51/aslink.dsp, as/link/z80/Makefile.in,
461           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp, configure,
462           configure.in, sdcc.dsw: modified to support ar format libraries
463
464 2009-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
465
466         * src/SDCCast.c (decorateType RETURN): use RESULT_TYPE_GPTR for generic
467           pointer return
468
469 2009-01-05 Philipp Klaus Krause <pkk AT spth.de>
470
471         * sim/ucsim/z80.src/inst_ed.cc:
472           Fixed bug #2488074, which made regression tests fail.
473
474 2009-01-05 Philipp Klaus Krause <pkk AT spth.de>
475
476         * device/lib/z80/mod.s,
477           device/lib/z80/div.s,
478           device/lib/z80/mulchar.s,
479           device/lib/z80/mul.s,
480           device/lib/z80/divsigned.s,
481           device/lib/z80/Makefile.in:
482           Implemented RFE #1702376.
483
484 2009-01-05 Borut Razem <borut.razem AT siol.net>
485
486         * as/link/lksdcclib.c:
487           fixed linker hanging in INDEXLIB is not defined (hc08)
488
489 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
490
491         * src/z80/gen.c:
492           Implemented RFE #2485684, and some further improvements of HL caching
493           including a bugfix.
494         * src/z80/peeph-z80.def:
495           Fixed a bug exposed by implementing RFE #2485684.
496
497 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
498
499         * src/z80/peeph-z80.def:
500           Peephole improvements.
501         * src/z80/gen.c,
502           src/z80/main.c,
503           device/include/string.h,
504           device/lib/z80/memmove.s:
505           Minor code cleanup.
506         * device/lib/z80/Makefile.in,
507           device/lib/Makefile.in,
508           support/regression/tests/memory.c,
509           device/lib/z80/strlen.s:
510           Partially implemented RFE #2471534.
511
512 2009-01-04 Borut Razem <borut.razem AT siol.net>
513
514         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.6
515           due changes in sdcc asxxxx linkers - it sholud be done 2 days ago :(
516         * doc/README.txt: updated John Hartman's e-mail address
517         * as/link/lkrel.c, as/link/lksdcclib.c:
518           fixed bug #2484677: Linker hangs
519         * src/z80/peep.c: fixed msvc warning C4047:
520           'return' : 'int ' differs in levels of indirection from 'char *'
521         * config.dsp: as/lib corrected to as/link
522
523 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
524
525         * src/z80/peep.c:
526           Implemented RFE #2484693.
527         * src/z80/peeph-z80.def:
528           Some peephole improvements.
529
530 2009-01-03 Borut Razem <borut.razem AT siol.net>
531
532         * as/link/lklibr.c:
533           fixed warning: 'ret' may be used uninitialized in this function
534
535 2009-01-02 Borut Razem <borut.razem AT siol.net>
536
537         * as/link/lklib.c, as/link/lksdcclib.c, as/link/lklibr.h,
538           as/link/getline.[ch], as/link/lkrel.[ch]: added,
539           made support for differnet library formats more flexible,
540           preparation for support of ar format
541         * as/link/lklibr.c, as/link/z80/Makefile.in,
542           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
543           as/link/hc08/link_hc08.dsp, as/link/hc08/Makefile.in,
544           as/link/mcs51/aslink.dsp, as/link/mcs51/Makefile.in,
545           as/link/hc08/lkelf.c, as/link/aslink.h:
546           made support for differnet library formats more flexible,
547           preparation for support of ar format
548
549 2009-01-01 Borut Razem <borut.razem AT siol.net>
550
551         * as/link/asxxxx_config.h.in:
552           fixed warning: extra tokens at end of #endif directive
553         * src/z80/peep.c:
554           fixed warning: suggest parentheses around && within ||
555         * device/lib/Makefile.in: allow whitespaces at the end of lines in
556           ports.build, in order to make it work on cygwin - it seems to be a
557           bug in cygwin grep: CR is not treated as part of end-of-line
558
559 2008-12-31 Borut Razem <borut.razem AT siol.net>
560
561         * configure, configure.in, config.dsp, config_vc.awk,
562           as/link/asxxxx_config.h.in, as/link/hc08/lkelf.c, as/link/aslink.h,
563           as/link/hc08/Makefile.in, as/link/mcs51/Makefile.in:
564           introduced asxxxx_config.h.in
565
566 2008-12-30 Philipp Klaus Krause <pkk AT spth.de>
567
568         * src/z80/gen.c,
569           src/z80/peeph-z80.def:
570           Minor addition improvement.
571
572 2008-12-30 Raphael Neider <rneider AT web.de>
573
574         * as/link/hc08/lkelf.c, as/link/lkaomf51.c, as/link/lklibr.c,
575           as/link/z80/lkgb.c, debugger/mcs51/cmd.c, sim/ucsim/utils.cc,
576           src/SDCCasm.c, support/Util/dbuf_string.c, support/cpp/c-ppoutput.c,
577           support/cpp/libcpp/lex.c, support/cpp/libcpp/macro.c,
578           support/librarian/sdcclib.c, support/makebin/makebin.c:
579           partially revert changes from r5293..r5295
580
581 2008-12-29 Philipp Klaus Krause <pkk AT spth.de>
582
583         * src/z80/peeph-z80.def:
584           Minor peephole improvement.
585
586 2008-12-29 Raphael Neider <rneider AT web.de>
587
588         * src/pic/pcode.c (insertBankSel, FixRegisterBanking): emit
589           incorrectly discarded BANKSELs
590
591 2008-12-29 Philipp Klaus Krause <pkk AT spth.de>
592
593         * support/regression/tests/memory.c:
594           Added simple test for memset(), memcpy() and memmove()
595
596 2008-12-29 Borut Razem <borut.razem AT siol.net>
597
598         * sdcc/support/scripts/sdcc.nsi: removed $INSTDIR\lib\src\z80\*.c
599
600 2008-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
601
602         * src/mcs51/peeph.def (177.e): replaced notVolatile(%3) with
603           operandsNotRelated(%1 %3), had to change (a)r%1 to (a)%1 for this to work
604           (177.j): added new rule
605         * src/SDCCsymt.h: added RESULT_TYPE_GPTR
606         * src/SDCCast.c (processParms): use RESULT_TYPE_GPTR for generic ptr parms,
607           (decorateType CAST): propagate storage class to generic pointer results
608
609 2008-12-27 Philipp Klaus Krause <pkk AT spth.de>
610
611         * device/lib/z80/string.c,
612           device/lib/z80/printf.c,
613           device/lib/z80/mul.s:
614           z80 library cleanup
615         * src/z80/gen.c:
616           Fixed code generation bug exposed by builtin memcpy().
617
618 2008-12-27 Philipp Klaus Krause <pkk AT spth.de>
619
620         * device/lib/_memcpy.c:
621           fixed conflict with builtin memcpy()
622
623 2008-12-26 Borut Razem <borut.razem AT siol.net>
624
625         * support/librarian/sdcclib.c:
626           fixed bug 2466950: "sdcclib broken"
627           by removing fgets return value check
628
629 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
630         * src/z80/main.c,
631           src/z80/gen.c,
632           device/include/string.h: Implemented RFE #1914254
633
634 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
635         * device/lib/z80/Makefile.in,
636           device/lib/Makefile.in,
637           device/lib/z80/memmove.s: Implemented RFE #1914256
638
639 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
640
641         * src/z80/peeph-z80.def: fixed a bug in peephole 0zf
642         * src/z80/peep.c: improved checks for unused data
643         * src/z80/gen.c,
644           src/z80/main.c: Implemented RFE #1899189
645
646 2008-12-25 Borut Razem <borut.razem AT siol.net>
647
648         * support/regression/Makefile.in:
649           add -I$(INC_DIR) to SDCCFLAGS only if INC_DIR is defined
650
651 2008-12-25 Philipp Klaus Krause <pkk AT spth.de>
652
653         * src/z80/peeph-z80.def: minor peephole improvements
654
655 2008-12-21 Borut Razem <borut.razem AT siol.net>
656
657         * support/librarian/sdcclib.c: fixed build failure on Mac OS X
658           due to redefinition of symbol __assert
659           sdcclib.c:53:1:warning: "__assert" redefined
660           /Xcode2.5/SDKs/MacOSX10.4u.sdk/usr/include/assert.h:80:1:
661           warning: this is the location of the previous definition
662
663 2008-12-20 Raphael Neider <rneider AT web.de>
664
665         * debugger/mcs51/break.c, debugger/mcs51/cmd.c,
666           debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
667           support/cpp/libcpp/macro.c: fix format string errors
668
669         * sim/ucsim/s51.src/timer2.cc: add clarifying parens
670
671         * src/pic/device.c: partial rewrite using strtok,
672           quieten compiler warnings, adopt SDCC coding style
673
674         * as/link/hc08/lkelf.c, as/link/lkaomf51.c, as/link/lklibr.c,
675           as/link/z80/lkgb.c, as/z80/asout.c, debugger/mcs51/cmd.c,
676           sim/ucsim/utils.cc, src/SDCCasm.c, support/Util/dbuf_string.c,
677           support/cpp/c-ppoutput.c, support/cpp/libcpp/lex.c,
678           support/librarian/sdcclib.c, support/makebin/makebin.c:
679           quieten most compiler warnings
680
681         * sim/ucsim/avr.src/arith_inst.cc: quieten compiler warnings,
682           probably fix operator precedence bug
683
684         * doc/clean.mk: quieten rm if no .lyx is present
685
686 2008-12-19 Borut Razem <borut.razem AT siol.net>
687
688         * doc/sdccman.lyx, doc/random-notes.txt, doc/avr/avr_design.txt,
689           doc/TININative.txt, doc/macro-sys-design.txt, doc/libdoc.txt,
690           doc/README.txt, doc/test_suite_spec.lyx:
691           applied patch 2446381: Dcoumentation spelling correcitons
692           thanks to Steven Borley
693
694 2008-12-16 Raphael Neider <rneider AT web.de>
695
696         * device/include/pic/pic12f629.h,
697           device/include/pic/pic12f675.h,
698           device/lib/pic/libdev/pic12f629.c,
699           device/lib/pic/libdev/pic12f675.c: consolidated, added TRISIO bits
700
701 2008-12-14 Borut Razem <borut.razem AT siol.net>
702
703         * doc/sdccman.lyx, cdbfileformat.lyx, test_suite_spec.lyx:
704           converted to LyX 1.5.7 (\lyxformat 276) format
705
706 2008-12-07 Borut Razem <borut.razem AT siol.net>
707
708         * support/regression/tests/bitfields.c:
709           added test case for bug #2366757
710
711 2008-12-07 Raphael Neider <rneider AT web.de>
712
713         * src/pic16/glue.c (pic16_printIvalBitFields): prevent
714           NULL pointer dereference, closes #2366757
715
716 2008-11-25 Raphael Neider <rneider AT web.de>
717
718         * device/include/pic16/pic16devices.txt,
719           sdcc/src/pic16/device.c,
720           sdcc/src/pic16/device.h: implicitly disable XINST
721           whenever CONFIG4L is set via an additional optional
722           argument to the configword directive in pic16devices.txt
723
724 2008-11-24 Raphael Neider <rneider AT web.de>
725
726         * device/lib/pic16/configure.ac,
727           device/lib/pic16/Makefile.common: fixed quoting issues
728
729         * device/lib/pic16/configure,
730           device/lib/pic16/debug/Makefile.in,
731           device/lib/pic16/libc/Makefile.in,
732           device/lib/pic16/libdev/Makefile.in,
733           device/lib/pic16/libio/Makefile.in,
734           device/lib/pic16/libm/Makefile.in,
735           device/lib/pic16/libsdcc/Makefile.in,
736           device/lib/pic16/Makefile.in,
737           device/lib/pic16/startup/Makefile.in: regenerated
738
739         * src/pic16/main.c (_pic16_finaliseOptions): revert to
740           variant of r5216
741
742 2008-11-24 Raphael Neider <rneider AT web.de>
743
744         * src/pic16/main.c (_pic16_finaliseOptions): do not quote the
745           argument of --asm= or --link= to allow for
746           --asm="sh script --options", the user can double quote the
747           argument if needed: --asm="'c:/program files/gpasm' -q",
748           also fix some potential buffer overflows
749
750 2008-11-19 Borut Razem <borut.razem AT siol.net>
751
752         * doc/sdccman.lyx:
753           fixed 2314467: sdccman.lyx: fix "--" in command line parameters
754           thanks Mauro Giachero
755
756 2008-11-16 Borut Razem <borut.razem AT siol.net>
757
758         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.5
759         * doc/sdccman.lyx: documented fixed unnamed bit-field initialization
760
761 2008-11-15 Borut Razem <borut.razem AT siol.net>
762
763         * src/pic16/glue.c, src/SDCC.y, src/SDCCast.c, src/SDCCglue.c,
764           src/SDCCsymt.c, src/SDCCsymt.h:
765           fixed RFE #2291335 : Unnamed bit-field initialization
766         * support/regression/tests/bitfields.c:
767           added test case for RFE #2291335
768         * support/regression/tests/bug-1981238.c:
769           don't initialize unnamed bit-fields
770
771 2008-11-11 Raphael Neider <rneider AT web.de>
772
773         * device/include/pic16/pic18f25j10.h,
774           device/include/pic16/pic18f45j10.h: remove useless boilerplate
775
776         * device/include/pic16/adc.h,
777           device/lib/pic16/libio/adc/adcbusy.c,
778           device/lib/pic16/libio/adc/adcclose.c,
779           device/lib/pic16/libio/adc/adcconv.c,
780           device/lib/pic16/libio/adc/adcopen.c,
781           device/lib/pic16/libio/adc/adcread.c,
782           device/lib/pic16/libio/adc/adcsetch.c: generalized, documented,
783           and fixed ADC routines to work for more target devices,
784           incorporates patch #2036130 by Nick Materer
785
786 2008-11-10 Steven Borley <steven.borley AT partnerelectronics.com>
787
788         * device/include/ctype.h,
789         * device/include/ds400rom.h,
790         * device/include/ds80c390.h,
791         * device/include/float.h,
792         * device/include/math.h,
793         * device/include/serial.h,
794         * device/include/stdbool.h,
795         * device/include/tinibios.h: replaced non-C89 '//' with '/* */',
796           patch 2195343
797         * device/include/mcs51/C8051F336.h,
798         * device/include/mcs51/C8051T600.h,
799         * device/include/mcs51/C8051T610.h,
800         * device/include/mcs51/C8051T630.h: new, added, patch 2183334
801           (svn commit by Maarten Brock <sourceforge.brock AT dse.nl>)
802
803 2008-11-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
804
805         * device/include/mcs51/P89LPC922.h: fixed #2255989, thanks kubi57
806
807 2008-11-10 Raphael Neider <rneider AT web.de>
808
809         * device/lib/pic16/libdev/mkmk.sh: obey pics.all
810         * device/lib/pic16/libio/mkmk.sh: properly match whole lines in
811           .ignore files, fixes IO libs for 18f242, 18f252, 18f442, and 18f452
812           (patch by Nick Materer, #2253980)
813
814         * device/lib/pic16/libio/adc.ignore,
815           device/lib/pic16/libio/i2c.ignore,
816           device/lib/pic16/libio/usart.ignore,
817           device/lib/pic16/pics.all: updated to build more device libs
818
819         * device/lib/pic16/libdev/Makefile.am,
820           device/lib/pic16/libdev/Makefile.in,
821           device/lib/pic16/libio/Makefile.am,
822           device/lib/pic16/libio/Makefile.in: regenerated
823
824         * src/pic16/device.c (pic16_dump_usection): fixed output of multiple
825           names per memory location, applied SDCC style to more functions
826
827 2008-11-09 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
828
829         * device/include/mcs51/p89lpc933_4.h: new NXP header file
830         * device/include/mcs51/p89lpc935_6.h: new NXP header file
831         * device/include/mcs51/p89v66x.h: minor changes
832           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
833
834 2008-11-09 Raphael Neider <rneider AT web.de>
835
836         * device/include/pic/pic14devices.txt: fixed memory description for
837           12f629 and 12f675, closes #2236240
838
839 2008-11-06 Borut Razem <borut.razem AT siol.net>
840
841         * src/SDCCmain.c: fixed bug #2224960: sdcc -MM no working correctly
842           pass system include paths with -isystem to sdcpp
843         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c: removed unneeded
844           functions (closePipes), (closeTmpFiles) and (rmTmpFiles)
845
846 2008-11-02 Raphael Neider <rneider AT web.de>
847
848         * doc/sdccman.lyx: updated the sections on the library build process
849           and on how to add support for new devices, and documented known
850           problems with the extended instruction set including a workaround
851
852 2008-11-01 Raphael Neider <rneider AT web.de>
853
854         * device/include/pic16/adc.h,
855           device/include/pic16/pic16devices.txt,
856           device/include/pic16/pic18f2410.h,
857           device/include/pic16/pic18f2510.h,
858           device/include/pic16/pic18f2515.h,
859           device/include/pic16/pic18f2610.h,
860           device/include/pic16/pic18f4410.h,
861           device/include/pic16/pic18f4510.h,
862           device/include/pic16/pic18f4515.h,
863           device/include/pic16/pic18f4610.h,
864           device/include/pic16/pic18fregs.h,
865           device/lib/pic16/libdev/Makefile.am,
866           device/lib/pic16/libdev/Makefile.in,
867           device/lib/pic16/libdev/pic18f2410.c,
868           device/lib/pic16/libdev/pic18f2510.c,
869           device/lib/pic16/libdev/pic18f2515.c,
870           device/lib/pic16/libdev/pic18f2610.c,
871           device/lib/pic16/libdev/pic18f4410.c,
872           device/lib/pic16/libdev/pic18f4510.c,
873           device/lib/pic16/libdev/pic18f4515.c,
874           device/lib/pic16/libdev/pic18f4610.c,
875           device/lib/pic16/libio/Makefile.am,
876           device/lib/pic16/libio/Makefile.in,
877           device/lib/pic16/pics.all: added support for 18f[24][456]10
878           and 18f[24]515 devices
879         * doc/sdccman.lyx: updated list of supported PIC16 devices
880
881         * src/pic/glue.c, src/pic/pcode.c, src/pic/pcodeflow.c,
882           src/pic16/glue.c, src/pic16/pcode.c, src/pic16/pcodeflow.c,
883           src/xa51/gen.c: avoid compiler warnings
884         * support/scripts/inc2h-pic16.pl: removed trailing whitespace
885
886 2008-10-22 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
887
888         * device/include/mcs51/p89v66x.h: NXP header file
889         * device/include/mcs51/p89c66x.h: fixed an SBIT definition
890           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
891
892 2008-10-14 Raphael Neider <rneider AT web.de>
893
894         * device/lib/pic16/libdev/Makefile.am,
895           device/lib/pic16/libio/Makefile.am: enable building libraries for
896           18f2321, 18f4321, 18f2523, 18f4620, 18f66j60, 18f66j65, 18f67j60,
897           18f86j60, 18f86j65, 18f87j60, 18f96j60, 18f96j65, and 18f97j60
898         * device/lib/pic16/libdev/Makefile.in,
899           device/lib/pic16/libio/Makefile.in: regenerated
900
901 2008-10-14 Raphael Neider <rneider AT web.de>
902
903         * device/include/pic16/pic18f2450.h,
904           device/include/pic16/pic18f4450.h,
905           device/lib/pic16/libdev/pic18f2450.c,
906           device/lib/pic16/libdev/pic18f4450.c,
907           device/include/pic16/adc.h,
908           device/include/pic16/pic16devices.txt,
909           device/include/pic16/pic18fregs.h,
910           device/lib/pic16/libdev/Makefile.am,
911           device/lib/pic16/libdev/Makefile.in,
912           device/lib/pic16/libio/Makefile.am,
913           device/lib/pic16/libio/Makefile.in,
914           device/lib/pic16/pics.all: added 18f2450 and 18f4450, closes #1844525
915
916         * device/lib/pic16/libsdcc/stack/stack.S: there is no need to pin the
917           stack to a fixed location, relax it to automatically work with all
918           but the smallest devices (256 byte RAM devices need #pragma stack)
919
920 2008-10-09 Maarten Brock <sourceforge.brock AT dse.nl>
921
922         * debugger/mcs51/break.c: bugfix from patch 1989966, thanks Risto Huotari
923         * debugger/mcs51/simi.c: bugfix from patch 1989972, thanks Risto Huotari
924         * device/lib/_strcspn.c: fixed bug 2140931
925
926 2008-10-06 Raphael Neider <rneider AT web.de>
927
928         * device/include/pic16/stdio.h,
929           device/lib/pic16/libc/stdio/putchar.c: putchar should not be
930           declared __naked for convenience, named all arguments
931         * device/lib/pic16/libc/stdio/strmgpsim.c,
932           device/lib/pic16/libc/stdio/strmmssp.c,
933           device/lib/pic16/libc/stdio/strmusart.c: cosmetic changes
934
935         * src/pic16/pcode.c (createReachingDefinitions): avoid segfault on
936           empty __naked functions,
937         * (pCodeLabelDestruct, pic16_unlinkpCode, pic16_pCodeUnlink): fix
938           corner cases (unlink first/last pCode in list), reuse more code
939
940 2008-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
941
942         * src/ds390/main.c (_ds390_genInitStartup): added
943         * src/SDCCpeeph.c (getPatternVar): new, added,
944           (labelInRange): fixed bug 2115959
945         * src/mcs51/peeph.def (rules 193.x to 198.x): check for labelInRange
946         * src/SDCCicode.h: added newiTempOperand
947         * src/SDCCcse.c (algebraicOpts): fixed bug for x*-1,
948           added optimizations for 0/x and x/-1, see also patch 2142900
949         * support/regression/tests/onebyte.c (testMul): added test cases
950
951 2008-09-20 Borut Razem <borut.razem AT siol.net>
952
953         * src/pic16/glue.c:
954           definition of absolute address symbols without initial value,
955           fixed SDCC crash "do not know how to intialize symbol"
956
957 2008-09-16 Maarten Brock <sourceforge.brock AT dse.nl>
958
959         * device/lib/z80/mul.s (__mulsuchar_rrx_s, __muluschar_rrx_s),
960         * device/lib/z80/div.s (__divsuchar_rrx_s, __modsuchar_rrx_s,
961           __divuschar_rrx_s, __moduschar_rrx_s): added mixed signedness versions
962         * device/lib/z80/stubs.s: added stubs for above functions
963         * src/SDCCopt.c (convilong),
964         * src/SDCCsymt.c (initCSupport): fixed bug 1900961
965         * src/SDCCsymt.h (__muldiv): enlarged for mixed signedness
966         * src/z80/main.c (_hasNativeMulFor): fixed bug, I think
967         * support/regression/tests/onebyte.c: enabled all tests for z80
968
969 2008-09-15 Borut Razem <borut.razem AT siol.net>
970
971         * device/include/pic16/stdio.h, device/lib/pic16/libc/stdio/streams.c,
972           device/lib/pic16/libc/stdio/printf.c,
973           device/lib/pic16/libc/stdio/strmusart.c,
974           device/lib/pic16/libc/stdio/printf_tiny.c,
975           device/lib/pic16/libc/stdio/sprintf.c,
976           device/lib/pic16/libc/stdio/strmgpsim.c,
977           device/lib/pic16/libc/stdio/putchar.c,
978           device/lib/pic16/libc/stdio/fprintf.c,
979           device/lib/pic16/libc/stdio/strmmssp.c,
980           device/device/lib/pic16/libc/stdio/vprintf.c,
981           device/lib/pic16/libc/stdio/printf_small.c,
982           device/lib/pic16/libc/stdio/vsprintf.c,
983           device/lib/pic16/libc/stdio/strmputchar.c,
984           device/lib/pic16/libc/Makefile.am,
985           device/lib/pic16/libc/Makefile.in:
986           *printf now returns int, puchar.c moved from stdlib to stdio,
987           *printf format parameter type changed from char * to const char *,
988           added GNU link excetion text to library source files,
989           applyed GNU coding style, removed useless svn ids,
990           added BINARY_SPECIFIER macro re-enables the use of the removed 'b'
991           binary specifier: "%b", "%hb" and "%lb"
992         * device/lib/pic16/libc/stdio/vfprintf.c:
993           applied patch #2044424: PIC16: vfprintf
994           thanks Mauro Giachero
995         * support/regression/tests/bug1057979.c:
996           removed old pic16 sprintf specifics
997         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.4
998         * doc/sdccman.lyx: documented 'b' binary format specifier removal
999
1000 2008-09-15 Raphael Neider <rneider AT web.de>
1001
1002         * src/pic16/device.c (pic16_dump_usection): force udata sections
1003           into the addressable range (0..0xFFF), workaround for a gpsim
1004           bug preventing simulation of regtest bug1750318
1005         * src/pic16/ralloc.c (deassignLRs): cosmetic changes,
1006           (serialRegAssign): fixed regtest bug-971834,
1007           (pic16_packRegisters): avoid null-pointer dereference
1008
1009 2008-09-14 Raphael Neider <rneider AT web.de>
1010
1011         * src/pic16/gen.c, src/pic16/ralloc.c: use
1012           SYM_SPIL_LOC/SPIL_LOC macros, no functional changes
1013         * src/pic16/ralloc.c (rematStr): reimplemented, fixes #1818857
1014
1015 2008-09-12 Borut Razem <borut.razem AT siol.net>
1016
1017         * support/regression/fwk/testfwk.h:
1018           define pdata as data for pic16 target
1019           thanks Mauro Giachero
1020
1021 2008-09-11 Borut Razem <borut.razem AT siol.net>
1022
1023         * support/regression/tests/bug-221100.c, support/regression/shifts.c,
1024           support/regression/absolute.c:
1025           applied patch #2105615: Some PIC16 testcase fixlets
1026           thanks Mauro Giachero
1027
1028 2008-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
1029
1030         * src/z80/gen.c (genCmpGt, genCmpLt): fixed bug 2094505
1031         * support/regression/tests/bug2094505.c: new, added
1032
1033 2008-09-07 Borut Razem <borut.razem AT siol.net>
1034
1035         * src/SDCCglue.c, src/SDCCast.c:
1036           fixed throw of "excess elements" warning for char arrays
1037         * support/regression/tests/nullstring.c:
1038           disable warning about excess elements in array of chars initializer
1039
1040 2008-09-07 Maarten Brock <sourceforge.brock AT dse.nl>
1041
1042         * as/z80/aslist.c (lstsym): changed old K&R to ANSI
1043         * src/SDCCicode.c (geniCodeCritical): fixed bug for hc08
1044         * src/z80/gen.c (genCritical, genEndCritical): fixed bug 2077267
1045         * support/regression/tests/bug2077267.c: new, added
1046
1047 2008-09-05 Raphael Neider <rneider AT web.de>
1048
1049         * configure.in, Makefile.common.in: add support for ccache,
1050           remove spurious $VERSION output, detect doc-tools even without
1051           --enable-doc to facilitate later manual doc-builds, minor cleanup
1052         * configure: regenerated
1053
1054         * doc/Makefile.in: quieten pdflatex, makeindex, and latex2html,
1055           avoid races in parallel VPATH builds
1056         * doc/clean.mk: remove .lyx files in the builddir for VPATH builds
1057         * doc/sdccman.lyx: mention --without-ccache configure option
1058
1059 2008-09-01 Raphael Neider <rneider AT web.de>
1060
1061         * src/pic16/gen.c (pic16_derefPtr): handle CPOINTERs as well
1062         * (genConstPointerGet): fix reading bitfields from __code space
1063         * src/pic16/glue.c (pic16_printIvalBitFields): correctly mask
1064           bitfield initializers (fix regression test bug1856409.c)
1065         * (pic16_printIvalCharPtr,pic16_printIvalPtr): generalized to support
1066           arbitrary sizes
1067
1068 2008-08-31 Raphael Neider <rneider AT web.de>
1069
1070         * src/pic16/gen.c (genAssign): removed useless compiler output
1071         * (genPointerGet,genPointerSet,genCast),
1072           src/pic16/glue.c (pic16_printGPointerType):
1073           also handle PPOINTERs just to avoid spurious asserts
1074         * (pic16_printIvalType,pic16_printIvalBitFields):
1075           generalized to arbitrary type/bitfield sizes, allows compilation of
1076           regression test bug-1981238.c
1077         * (pic16_printIvalChar): fix regression test structflexarray.c
1078         * (pic16_printIvalArray): avoid SIGSEGV on uninitialized strings
1079           in initialized structs and fix #1843745
1080         * (pic16_printIvalStruct): always output initializers for all fields,
1081           even those not explicitly given, fixes zeropad.c regression test
1082         * (pic16_printIvalUnion): fix union initializers (bug1426356.c,
1083           #2073635, #1567098, and #1485812)
1084         * src/pic16/main.c (_pic16_keywords): remove unsupported 'pdata'
1085
1086 2008-08-31 Borut Razem <borut.razem AT siol.net>
1087
1088         * support/regression/tests/bug-895992.c,
1089           support/regression/tests/onebyte.c:
1090           enabled pic16 regression testing since the bugs
1091           1511794: pic16: regression test bug-895992.c fails
1092           1444425: onebyte.c regression tes fails on pic16
1093           are fixed, probably by fixing
1094           2048464: PIC16: fix genUminus - addresses not.c regression test
1095         * src/SDCCsymt.c, src/SDCCglue.c,
1096           support/regression/tests/bug-1981238.c:
1097           applied patch 2076664: fix #1981238 + SIGSEGV in SDCCGlue.c
1098           thanks to RvS
1099
1100 2008-08-30 Borut Razem <borut.razem AT siol.net>
1101
1102         * support/cpp/libcpp/files.c: SDCPP synchronized with GCC CPP
1103           release version 4.3.2
1104
1105 2008-08-24 Raphael Neider <rneider AT web.de>
1106
1107         * device/lib/pic16/configure, device/lib/pic16/configure.ac:
1108           always use the sdcc from the current build tree (ignore $CC from
1109           the environment, fixes compile farm builds)
1110         * device/lib/Makefile.in: rename .a into .lib for compatibility,
1111           remove more build products from install directory
1112         * sdcc/src/pic16/main.c (_pic16_linkEdit,_pic16_finaliseOptions)
1113         * sdcc/support/scripts/sdcc.nsi: revert to .lib extension for libs
1114
1115 2008-08-24 Borut Razem <borut.razem AT siol.net>
1116
1117         * src/SDCC.y: applied patch
1118           2050245: Fix # 1963382
1119           for bug
1120           1963382: Listing File - C file comment is incorrect
1121           thanks to RvS
1122
1123 2008-08-23 Borut Razem <borut.razem AT siol.net>
1124
1125         * src/pic16/gen.c: applied patch
1126           2048464: PIC16: fix genUminus - addresses not.c regression test
1127           thanks Mauro Giachero
1128
1129 2008-08-22 Borut Razem <borut.razem AT siol.net>
1130
1131         * device/lib/pic16/configure, device/lib/pic16/configure.ac,
1132           src/pic16/main.c: allow spaces in gpasm and gplink paths
1133
1134 2008-08-15 Philipp Klaus Krause <pkk AT spth.de>
1135
1136         * src/z80/peep.c,
1137         * src/z80/peeph-z80.def: minor peephole improvement
1138
1139 2008-08-15 Raphael Neider <rneider AT web.de>
1140
1141         * src/z80/gen.c (_vemit2): suppress compiler warning
1142
1143         * src/pic/*.[ch]: make proper use of header files and avoid
1144           ad-hoc extern declarations, mark module-local helpers 'static',
1145           removed dead/replaced code, no functional changes
1146         * src/pic16/pcode.c: disentangled from pic14 backend
1147
1148 2008-08-14 Philipp Klaus Krause <pkk AT spth.de>
1149
1150         * src/z80/gen.c: fixed #2051348
1151         * support/regression/tests/bug-2051348.c: regression test for #2051348
1152
1153 2008-08-10 Raphael Neider <rneider AT web.de>
1154
1155         * configure.in,
1156         * Makefile.common.in: export PACKAGE for $docdir,
1157           fixes #1957036, avoid some "underquoted definition" warnings
1158         * configure: regenerated
1159
1160 2008-08-10 Raphael Neider <rneider AT web.de>
1161
1162         * device/lib/pic16/**: build pic16 library using autotools for
1163           improved dependency tracking
1164
1165         * device/lib/Makefile.in,
1166         * src/pic16/main.c,
1167         * support/scripts/sdcc.nsi: adapt to changes in filenames (s/.lib/.a/)
1168
1169 2008-08-10 Raphael Neider <rneider AT web.de>
1170
1171         * src/pic/pcode.c (ReuseReg): do not overlay the registers used for
1172           local variables if --nooverlay is given, workaround for #2023121
1173
1174 2008-08-08 Raphael Neider <rneider AT web.de>
1175
1176         * src/pic16/genarith.c (genAddLit): fix structure access (#1888004)
1177
1178 2008-08-08 Raphael Neider <rneider AT web.de>
1179
1180         * src/pic/pcoderegs.c,
1181         * src/pic/pcode.c,
1182         * src/pic16/pcode.c: replace own SAFE_snprintf with common SNPRINTF
1183
1184 2008-08-07 Borut Razem <borut.razem AT siol.net>
1185
1186         * src/SDCCval.c, src/SDCCmain.c, src/SDCC.lex,
1187           device/lib/pic/Makefile.rules, device/lib/ds390/Makefile.in,
1188           device/lib/ds400/Makefile.in, device/lib/hc08/Makefile.in,
1189           support/cpp/libcpp/lex.c,  doc/sdccman.lyx:
1190           applied modified patch 2038174: Add support for binary constants v2
1191           thanks Mauro Giachero
1192         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.3
1193
1194 2008-08-04 Raphael Neider <rneider AT web.de>
1195
1196         * doc/sdccman.lyx,
1197         * src/pic16/device.h,
1198         * src/pic16/glue.c,
1199         * src/pic16/main.c: enable --optimize-goto by default
1200
1201         * device/lib/pic16/Makefile.common.in: suppress removed option
1202
1203         * src/pic16/gen.c,
1204         * src/pic16/genutils.c: avoid too long relative branches (#2031890)
1205
1206 2008-07-30 Borut Razem <borut.razem AT siol.net>
1207
1208         * src/pic16/device.c, src/pic16/glue.c, src/pic16/pcode.c:
1209           applied patch 22032433: PIC16: fix constant strings,
1210           thanks Mauro Giachero
1211
1212 2008-07-29 Borut Razem <borut.razem AT siol.net>
1213
1214         * src/pic16/gen.c: applied patches:
1215           2030306: [1/3] PIC16: fix failing rotate.c tests on 16-bit variables,
1216           2030307: [2/3] PIC16: fix failing rotate.c tests for 32-bit var (1),
1217           2030310: [3/3] PIC16: fix failing rotate.c tests for 32-bit var (2),
1218           thanks Mauro Giachero
1219
1220 2008-07-13 Philipp Klaus Krause <pkk AT spth.de>
1221
1222         * src/port.h: Fixed typo in comment
1223
1224 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
1225
1226         * src/z80/mappings.i: Implemented RFE #1919415
1227         * src/z80/peeph-z80.def: Implemented RFE #1919415, #1861376,
1228           #1880202, #1914434, prepared for RFE #1703943
1229
1230 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
1231
1232         * src/z80/peeph.def,
1233         * src/z80/peeph-z80.def,
1234         * src/z80/peeph-gbz80.def: separate Z80 from GBZ80 peepholes in
1235           preparation for Z80 peephole improvements
1236
1237 2008-06-21 Raphael Neider <rneider AT web.de>
1238
1239         * device/include/pic16/pic18f66j60.h,
1240         * device/include/pic16/pic18f66j65.h,
1241         * device/include/pic16/pic18f67j60.h,
1242         * device/include/pic16/pic18f86j60.h,
1243         * device/include/pic16/pic18f86j65.h,
1244         * device/include/pic16/pic18f87j60.h,
1245         * device/include/pic16/pic18f96j60.h,
1246         * device/include/pic16/pic18f96j65.h,
1247         * device/include/pic16/pic18f97j60.h,
1248         * device/lib/pic16/libdev/pic18f66j60.c,
1249         * device/lib/pic16/libdev/pic18f66j65.c,
1250         * device/lib/pic16/libdev/pic18f67j60.c,
1251         * device/lib/pic16/libdev/pic18f86j60.c,
1252         * device/lib/pic16/libdev/pic18f86j65.c,
1253         * device/lib/pic16/libdev/pic18f87j60.c,
1254         * device/lib/pic16/libdev/pic18f96j60.c,
1255         * device/lib/pic16/libdev/pic18f96j65.c,
1256         * device/lib/pic16/libdev/pic18f97j60.c,
1257         * device/include/pic16/pic16devices.txt,
1258         * device/include/pic16/pic18fregs.h,
1259         * device/lib/pic16/pics.all: added new devices
1260
1261         * device/include/pic16/adc.h,
1262         * device/lib/pic16/libio/adc/adcbusy.c,
1263         * device/lib/pic16/libio/adc/adcopen.c,
1264         * device/lib/pic16/libio/adc/adcsetch.c,
1265         * device/lib/pic16/libio/i2c/i2copen.c,
1266         * device/lib/pic16/libio/usart/uopen.c: adapted to new devices,
1267           all changes from a patch by Anton Strobl
1268
1269 2008-06-12 Borut Razem <borut.razem AT siol.net>
1270
1271         * sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/bp.cc,
1272           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
1273           sim/ucsim/z80.src/z80cl.h, sim/ucsim/z80.src/z80.cc,
1274           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
1275           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
1276           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/uc390.cc,
1277           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/uc390cl.h,
1278           sim/ucsim/avr.src/avrcl.h, sim/ucsim/avr.src/avr.cc:
1279           fixed bug 1990586: s51 simulator, uc::disass() unimplemented
1280           by applying the modified patch from Risto Huotari
1281
1282 2008-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
1283
1284         * .version,
1285         * doc/sdccman.lyx: bumped sdcc version to 2.8.2
1286         * src/ds390/gen.c (aopPutUsesAcc, genAddrOf): fixed bug 1015185
1287         * src/mcs51/gen.c (genNearPointerGet, genNearPointerSet): fixed bug 1938300
1288         * support/regression/tests/bug1938300.c: new, added
1289
1290 2008-06-03 Maarten Brock <sourceforge.brock AT dse.nl>
1291
1292         * device/include/asm/ds390/features.h,
1293         * device/include/asm/mcs51/features.h,
1294         * device/include/mcs51/regc515c.h: inserted LGPL notice
1295
1296 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1297
1298         * device/lib/gbz80/div.s,
1299         * device/lib/z80/div.s: fixed bug 1904314 by applying a modified part of
1300           patch 1597883, Thanks Robert Ramey
1301
1302 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1303
1304         * src/SDCCast.c (createIvalType, createIvalStruct, createIvalArray,
1305           createIvalCharPtr, createIvalPtr, createIval),
1306         * src/SDCCval.h
1307         * src/SDCCval.c (convertIListToConstList, list2expr): handle incomplete
1308           initializers for local auto variables
1309         * support/regression/tests/zeropad.c: added testcase for auto initializers
1310
1311 2008-05-26 Raphael Neider <rneider AT web.de>
1312
1313         * device/lib/pic16/startup/crt0.c,
1314         * device/lib/pic16/startup/crt0i.c,
1315         * device/lib/pic16/startup/crt0iz.c: clean up, make use of access bank
1316           explicit, fixed curr_entry loop for >= 256 initializer records,
1317           removed debug code (write to 0xf7e)
1318
1319 2008-05-25 Raphael Neider <rneider AT web.de>
1320
1321         * device/include/pic/pic16f627a.h,
1322         * device/include/pic/pic16f628a.h,
1323         * device/include/pic/pic16f648a.h: added missing ports
1324
1325 2008-05-20 Maarten Brock <sourceforge.brock AT dse.nl>
1326
1327         * device/include/float.h: added __INFINITY
1328         * device/lib/_fsadd.c: handle overflows
1329         * device/lib/_fsmul.c,
1330         * device/lib/_fsdiv.c: use __INFINITY
1331         * device/lib/_fseq.c,
1332         * device/lib/_fsneq.c: handle -0.0
1333         * sim/ucsim/s51.src/uc89c51r.cc,
1334         * sim/ucsim/s51.src/uc89c51rcl.h: fixed bug 1385430
1335         * sim/ucsim/sim.src/hwcl.h: */* confuses VC
1336         * src/mcs51/gen.c (genSend): fixed bug with --xstack
1337         * support/regression/ports/mcs51-xstack-auto/spec.mk: print floats
1338         * support/regression/tests/snprintf.c: test bug with --xstack
1339
1340 2008-05-19  Philipp Klaus Krause <pkk AT spth.de>
1341
1342         * src/SDCCpeeph.c (callFuncByName):
1343           Support nested parenthesis in peephole function arguments (#1967300)
1344
1345 2008-05-19 Raphael Neider <rneider AT web.de>
1346
1347         * src/pic16/gen.c (pic16_emitpLabel,pic16_emitpLabelFORCE):
1348           fixed duplicate labels (#1911325)
1349
1350 2008-05-19 Raphael Neider <rneider AT web.de>
1351
1352         * src/regression/empty.c: suppress warning
1353         * src/regression/pointer1.c: enabled index_by_pointer()
1354         * src/regression/inline.c: now works for pic16 as well
1355
1356         * src/pic16/device.c: include dbuf declarations
1357         * src/pic16/device.h: removed obsolete prototypes
1358
1359         * src/pic16/gen.c, src/pic16/gen.h: moved generic pointer tags
1360         * src/pic16/glue.c: made purely local functions static,
1361           (pic16_printGPointerType, pic16_printIvalCharPtr,
1362           pic16_printIvalFuncPtr, pic16_printIvalPtr): fixed initialized
1363           generic pointers' tags (#1961866)
1364
1365         * src/pic16/pcode.c (assignValnums): optimize literal assignments
1366
1367 2008-05-19 Borut Razem <borut.razem AT siol.net>
1368
1369         * support/scripts/sdcc.nsi: remove uninstall.exe after uninstallation,
1370           fixed typo, uninstall include/pic16/pic16devices.txt
1371
1372 2008-05-18 Borut Razem <borut.razem AT siol.net>
1373
1374         * support/Utils/dbuf_string.[ch]: added dbuf_chomp(),
1375           the buffer is null terminated
1376         * src/device/pic16.c:
1377           applied modified patch 1965676: Patch for Win32 16 bit PIC
1378         * sdcc_vc_in.h: defined YY_NO_UNISTD_H
1379
1380 2008-05-16 Maarten Brock <sourceforge.brock AT dse.nl>
1381
1382         * src/SDCC.lex (check_type),
1383         * src/SDCC.y (type_specifier2 TYPE_NAME): fixed bug 1925942
1384         * as/hc08/clean.mk,
1385         * as/mcs51/clean.mk,
1386         * as/z80/clean.mk: also clean *.dep
1387         * device/lib/pic16/libsdcc/stack/Makefile,
1388         * sim/ucsim/libtool: removed as they are rebuild by configure
1389         * src/clean.mk: removed izt, so Makefile is not deleted for distclean
1390
1391 2008-05-13 Maarten Brock <sourceforge.brock AT dse.nl>
1392
1393         * src/SDCCast.c (fixupInline, createFunction): save currBlockno in
1394           fixupInline instead of createFunction to fix bug 1864577
1395           (inlineFindMaxBlockno): removed, use global blockNo
1396         * src/SDCCglobl.h: added blockNo
1397         * src/z80/peep.c,
1398         * src/z80/peep.h: modified properties
1399         * support/regression/tests/bug1864577.c: new, added
1400
1401 2008-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
1402
1403         * as/mcs51/asdata.c,
1404         * as/mcs51/asm.h: added org_cnt
1405         * as/mcs51/asmain.c (main, asmbl): fixed bug 1957716, changed old K&R to ANSI
1406         * as/mcs51/asout.c: changed old K&R to ANSI
1407         * as/mcs51/Makefile.in: use common identifiers
1408         * as/hc08/asdata.c,
1409         * as/hc08/asexpr.c,
1410         * as/hc08/asm.h,
1411         * as/hc08/asmain.c,
1412         * as/hc08/asout.c,
1413         * as/hc08/Makefile.bcc,
1414         * as/hc08/Makefile.in: synchronized with as/mcs51/*
1415         * sdcc_vc_in.h: added define __func__
1416         * src/SDCCast.c (expandInlineFuncs): applied patch 1957148 to fix bug 1717305,
1417           Thanks Ruud van Silfhout
1418         * support/regression/tests/bug1717305.c: new, added
1419
1420 2008-05-05 Borut Razem <borut.razem AT siol.net>
1421
1422         * support/regression/Makefile.in,
1423           support/regression/ports/ds390/spec.mk,
1424           support/regression/ports/hc08/spec.mk,
1425           support/regression/ports/mcs51-common/spec.mk,
1426           support/regression/ports/pic14/spec.mk,
1427           support/regression/ports/pic16/spec.mk,
1428           support/regression/ports/ucz80/spec.mk,
1429           support/regression/ports/z80/spec.mk:
1430           added INC_DIR and LIBDIR paths
1431         * src/ds390/gen.c: removed duplicated selicolon
1432
1433 2008-05-04 Borut Razem <borut.razem AT siol.net>
1434
1435         * support/regression/Makefile.in,
1436           support/regression/fwk/lib/testfwk.c,
1437           support/regression/ports/ds390/spec.mk,
1438           support/regression/ports/hc08/spec.mk,
1439           support/regression/ports/mcs51-common/spec.mk,
1440           support/regression/ports/mcs51-large/spec.mk,
1441           support/regression/ports/mcs51-medium/spec.mk,
1442           support/regression/ports/mcs51-small/spec.mk,
1443           support/regression/ports/mcs51-stack-auto/spec.mk,
1444           support/regression/ports/mcs51-xstack-auto/spec.mk,
1445           support/regression/ports/pic14/spec.mk,
1446           support/regression/ports/pic16/spec.mk,
1447           support/regression/ports/ucz80/spec.mk:
1448           added possibility to define the sdcc binary directory SDCC_BIN_PATH
1449           used to run regeression tests
1450
1451 2008-05-01 Raphael Neider <rneider AT web.de>
1452
1453         * doc/sdccman.lyx, support/scripts/inc2h-pic16.pl: updated list of
1454           supported devices and instructions to add new ones
1455
1456 2008-05-01 Raphael Neider <rneider AT web.de>
1457
1458         * device/include/pic16/adc.h,
1459           device/lib/pic16/libio/adc/adcbusy.c,
1460           device/lib/pic16/libio/adc/adcopen.c,
1461           device/lib/pic16/libio/adc/adcsetch.c: support old 18f242 and new
1462           18f2455 style ADC devices, based on patch #1776197
1463         * device/lib/pic16/libio/adc/adcclose.c,
1464           device/lib/pic16/libio/adc/adcconv.c,
1465           device/lib/pic16/libio/adc/adcread.c: cosmetic changes
1466         * device/include/pic16/{pic18f2331.h,pic18f2431.h},
1467           device/lib/pic16/libdev/{pic18f2331.c,pic18f2431.c}: reuse 18f4331
1468         * device/include/pic16/pic18f4431.h,
1469           device/lib/pic16/libdev/pic18f4431.c: remove outdated comments
1470         * device/lib/pic16/libio/adc.ignore: forbid unhandled devices
1471
1472 2008-05-01 Raphael Neider <rneider AT web.de>
1473
1474         * src/pic16/device.h: removed unused field PIC16_device.sfrRange,
1475           moved xinst flag into pic16_options_t
1476         * src/pic16/device.c (default_device, pic16_list_devices,
1477           pic16_find_device): removed references to sfrrange
1478         * src/pic16/gen.c (genFunction),
1479           src/pic16/glue.c (pic16initialComments),
1480           src/pic16/main.c (pic16_optionsTable),
1481           src/pic16/ralloc.c (newReg, pic16_writeUsedRegs): updated references
1482           to xinst
1483         * device/include/pic16/pic16devices.txt: removed sfrrange lines
1484
1485 2008-04-29 Raphael Neider <rneider AT web.de>
1486
1487         * src/pic16/devices.inc,
1488           device/include/pic16/pic16devices.txt: replaced compiled-in list
1489           of devices with a variant parsed at runtime
1490         * src/pic16/device.c: added support for parsing pic16devices.txt,
1491           clean up
1492         * src/pic16/device.h: removed (now) unused fields from PIC_device
1493         * src/pic16/main.c: removed #pragma maxram,
1494           (_pic16_initPaths): removed bogus generation of search paths,
1495           setup the port proper only after the search paths (for
1496           pic16devices.txt) are set up,
1497           (_pic16_finaliseOptions): moved processor dependant code here
1498           from _pic16_initPaths(), clean up
1499         * src/pic16/ralloc.c (pic16_init_stack),
1500         * src/pic16/ralloc.h,
1501         * src/pic16/pcode.c: clean up
1502         * device/include/Makefile.in,
1503           support/scripts/sdcc.nsi: also install/package pic16devices.txt
1504         * support/scripts/inc2h-pic16.pl: updated instructions
1505
1506 2008-04-29 Raphael Neider <rneider AT web.de>
1507
1508         * device/include/pic16/{pic18f2480.h, pic18f2580.h, pic18f4423.h,
1509           pic18f4480.h, pic18f4523.h, pic18f4580.h, pic18f6585.h, pic18f8585.h},
1510           device/lib/pic16/libdev/{pic18f2480.c, pic18f2580.c, pic18f4423.c,
1511           pic18f4480.c, pic18f4523.c, pic18f4580.c, pic18f6585.c, pic18f8585.c}:
1512           added missing family members and 18f2480/2580/4480/4580 family
1513         * device/include/pic16/{pic18f2423.h, pic18f2523.h}: use 18f4523.h
1514         * device/include/pic16/pic18f2525.h: use 18f4620.h
1515         * device/include/pic16/pic18f6680.h: use 18f8680.h
1516         * device/include/pic16/pic18fregs.h,
1517           device/lib/pic16/pics.all,
1518           src/pic16/devices.inc: add new devices
1519         * device/lib/pic16/libdev/{pic18f2423.c, pic18f2523.c}: use 18f4523.c
1520         * device/lib/pic16/libdev/pic18f2525.c: use 18f4620.c
1521         * device/lib/pic16/libdev/pic18f6680.c: uso 18f8680.c
1522         * device/lib/pic16/libio/{adc.ignore, i2c.ignore, usart.ignore}:
1523           prevent attempting to build the libio for some new devices
1524
1525 2008-04-29 Raphael Neider <rneider AT web.de>
1526
1527         * debugger/mcs51/Makefile.in: fixed paths to sources
1528
1529 2008-04-25 Borut Razem <borut.razem AT siol.net>
1530
1531         * as/link/lklibr.c: moved from as/link/z80/lklibr.c
1532         * as/link/hc08/lklibr.c, as/link/mcs51/lklibr.c: deleted
1533         * as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
1534         * as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
1535           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
1536           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
1537           as/link/z80/linkz80.dsp: lklibr.c moved
1538         * doc/INSTALL.txt: binary archives in bz2 format
1539         * support/cpp/auto-host_vc_in.h: CPP2 replaced with CPP
1540
1541 2008-04-23 Maarten Brock <sourceforge.brock AT dse.nl>
1542
1543         * src/SDCCglue.c (printIvalType, printIvalBitFields): fixed bug 1856409
1544         * support/regression/tests/bug1856409.c: new, added
1545
1546 2008-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
1547
1548         * src/z80/peep.c,
1549         * src/mcs51/peep.c: Use werror for error messages.
1550         * src/SDCCicode.c (geniCodeConditional),
1551         * src/SDCCsymt.c (structElemType): fixed bug 1839321
1552         * src/z80/Makefile.bcc,
1553         * src/z80/z80.dsp: added src/z80/peep.c/h
1554         * support/regression/tests/bug1839321.c: new, added
1555
1556 2008-04-20 Raphael Neider <rneider AT web.de>
1557
1558         * device/include/pic16/pic18f2455.h: added bitfields for port C
1559
1560 2008-04-20 Philipp Klaus Krause <pkk AT spth.de>
1561
1562         * src/z80/peep.c: Use werror for error messages.
1563
1564 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
1565
1566         * src/z80/peep.h (declaration of notUsed()),
1567         * src/z80/main.c (enabled notUsed() for z80 port, documented z80_port
1568           struct),
1569         * src/z80/z80.h (added dependency on peep.h),
1570         * src/z80/peep.c (definition of notUsed()): Implemented RFE #1880202
1571           for Z80.
1572
1573 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
1574
1575         * src/SDCCpeeph.c (added support for notUsed()),
1576         * src/mcs51/main.c (added dependency on peep.h, documented mcs51_port
1577           struct),
1578         * src/port.h (removed dependency on mcs51/peep.h, added declaration
1579           for notUsed()): Implemented generic (that is not port-specific) part
1580           of RFE #1880202.
1581
1582 2008-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
1583
1584         * as/link/mcs51/lkmem.c (summary2): fixed bug 1796077
1585         * device/lib/libsdcc.lib,
1586         * device/lib/Makefile.in,
1587         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1588         * device/lib/calloc.c: renamed to _calloc.c
1589         * device/lib/free.c: renamed to _free.c
1590         * device/lib/malloc.c: renamed to _malloc.c
1591         * device/lib/realloc.c: renamed to _realloc.c
1592         * src/ds390/gen.c (aopGet, aopPut, genPlusBits, genDataPointerSet,
1593           genNearPointerSet, genPagedPointerSet): synchronized with mcs51/gen.c
1594         * src/ds390/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq, ifxForOp,
1595           genAnd, genOr, genXor, genIfx, gen390Code): fixed bug 1509084
1596         * src/mcs51/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq,
1597           ifxForOp, genAnd, genOr, genXor, genNearPointerGet,
1598           genPagedPointerGet, genFarPointerGet, genCodePointerGet,
1599           genGenPointerGet, genIfx, gen51Code): fixed bug 1509084
1600         * src/ds390/gen.c,
1601         * src/mcs51/gen.c: throughout cosmetic changes for syncing both
1602         * src/SDCCsymt.h: updated IS_OP_RUONLY, IS_OP_ACCUSE
1603         * support/regression/tests/bug1509084.c: new, added
1604
1605 2008-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
1606
1607         * device/include/mcs51/cc2510fx.h: added _XPAGE
1608         * device/include/mcs51/compiler.h: cosmetic changes
1609
1610 2008-03-31 Maarten Brock <sourceforge.brock AT dse.nl>
1611
1612         * sdcc.dsw: adapted for moved cpp2, added dependency for as_z80 on
1613           config
1614
1615 2008-03-31 Borut Razem <borut.razem AT siol.net>
1616
1617         * support/cpp2 renamed to support/cpp
1618         * support/cpp2/libiberty/filenames.h, support/cpp2/libiberty/hex.c,
1619           support/cpp2/libiberty/splay-tree.c,
1620           support/cpp2/libiberty/splay-tree.h, support/cpp2/libcpp/macro.c,
1621           support/cpp2/libcpp/directives.c,
1622           support/cpp2/libcpp/include/cpplib.h,
1623           support/cpp2/libcpp/include/symtab.h,
1624           support/cpp2/libcpp/include/line-map.h,
1625           support/cpp2/libcpp/line-map.c, support/cpp2/libcpp/files.c,
1626           support/cpp2/libcpp/init.c, support/cpp2/libcpp/traditional.c,
1627           support/cpp2/libcpp/expr.c, support/cpp2/libcpp/internal.h,
1628           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/system.h,
1629           support/cpp2/libcpp/charset.c: SDCPP synchronized with GCC CPP
1630           release version 4.3.0
1631         * configure.in, configure, Makefile.in, Makefile.bcc:
1632           adapted for moved cpp2
1633
1634 2008-03-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1635
1636         * device/include/hc08/mc68hc908jkjl.h: committed fix for bug #1929739,
1637           thanks Alejandro Pustowka <alejo_pustowka AT yahoo.com.mx>
1638
1639 2008-03-30 Maarten Brock <sourceforge.brock AT dse.nl>
1640
1641         * src/SDCCloop.c (loopInvariants): applied fix for bug 1717943, thanks
1642           Robert Larice
1643         * support/regression/tests/bug1717943.c: new, added
1644
1645 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1646
1647         * src/z80/gen.c (assignResultValue): Reverted reversal of order of
1648           bytewise return value assignments introduced in last commit.
1649
1650 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1651
1652         * src/z80/gen.c (emitDebug, assignResultValue, genPlus, genMinus,
1653           genMult, genJumpTab):
1654           Use 16-bit instructions for addition in some additional cases,
1655           implemented RFEs #1914251, #1914245, #1922090, #1921382, #1918323.
1656
1657 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1658
1659         * src/z80/ralloc.c (serialRegAssign, allocReg, tryAllocatingRegPair):
1660           Implemented RFE #1921450, changed some debug messages.
1661
1662 2008-03-30 Borut Razem <borut.razem AT siol.net>
1663
1664         * Small Device C Compiler 2.8.0 released
1665         * .version, doc/sdccman.lyx: changed sdcc version to 2.8.1
1666         * support/scripts/sdcc.nsi: added finish page; this version
1667           was used for 2.8.0 release
1668         * doc/knownbugs.html: removed; magically generated by the build
1669           process using gen_known_bugs.pl from now on
1670
1671 2008-03-23 Borut Razem <borut.razem AT siol.net>
1672
1673         * src/pic/gen.h: Q&D solution for the bug, found by Jim Paris
1674           and reverted it, since it was already fixed by Raphael ;-)
1675         * doc/knownbugs.html: updated for RC2
1676
1677 2008-03-22 Raphael Neider <rneider AT web.de>
1678
1679         * src/SDCCicode.c (getPtrType): avoid unnecessary extra assignments
1680           for PIC16 targets
1681
1682 2008-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
1683
1684         * src/mcs51/gen.c (adjustArithmeticResult): fixed bug 1839299
1685         * support/regression/tests/bug1839277.c: added related testBug1839299
1686
1687 2008-03-21 Maarten Brock <sourceforge.brock AT dse.nl>
1688
1689         * src/ds390/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign),
1690         * src/mcs51/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign):
1691           fixed bug 1839277
1692         * src/mcs51/gen.c: throughout only output hex constants
1693         * src/SDCCicode.c (getPtrType, geniCodeCast): fixed code size regression
1694         * support/regression/tests/bug1839277.c: new, added
1695
1696 2008-03-21 Philipp Klaus Krause <pkk AT spth.de>
1697
1698         * src/z80/ralloc.c (callFuncByName): Used // instead of /**/ to fix
1699           compilation warning about nested comments.
1700
1701 2008-03-20 Maarten Brock <sourceforge.brock AT dse.nl>
1702
1703         * src/SDCCsymt.c (comparePtrType): fixed bug 1921073
1704         * support/regression/tests/bug1921073.c: new, added
1705
1706 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
1707
1708         * src/z80/SDCCpeeph.c.c (callFuncByName):
1709           Commented function parameters.
1710
1711 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
1712
1713         * src/z80/ralloc.c (packRegsForAccUse2):
1714           disabled a broken accumulator packing optimization (fixed #1292721).
1715         * support/regression/tests/bug-1292721: Regression test for #1292721.
1716
1717 2008-03-16 Raphael Neider <rneider AT web.de>
1718
1719         * src/pic/gen.c (SetIrp,genNearPointerGet,genNearPointerSet):
1720           fixed code bloat regression using a variant of patch #1915618
1721
1722 2008-03-16 Borut Razem <borut.razem AT siol.net>
1723
1724         * support/scripts/sdcc.nsi: added section debugging macros, added SDCC
1725           icon, changed startup menu for release distribution, code cleaning,
1726           create url files instead links in startup menu
1727
1728 2008-03-16 Maarten Brock <sourceforge.brock AT dse.nl>
1729
1730         * src/SDCCcse.c (algebraicOpts): fixed bug 1579949
1731         * support/regression/tests/bug1579949.c: new, added
1732
1733 2008-03-14 Paul Stoffregen <paul AT pjrc.com>
1734
1735         * device/lib/printf_fast.c: fixed bug 1255403
1736
1737 2008-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
1738
1739         * doc/sdccman.lyx: enhanced paragraph about bankswitching for mcs51
1740         * src/cdbFile.c (cdbWriteBasicSymbol): fixed bug 1909409 for locals
1741
1742 2008-03-14 Borut Razem <borut.razem AT siol.net>
1743
1744         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated link-xx and aslink
1745           command line options
1746         * as/link/hc08/lkmain.c: converted tabs to spaces so that the usage
1747           is correctly displayed
1748         * as/link/z80/lkmain.c: usage line commented out
1749
1750 2008-03-13 Borut Razem <borut.razem AT siol.net>
1751
1752         * doc/sdccman.lyx: corrected to be able to convert to PDF,
1753           updated the list pf supported pic14 devices
1754
1755 2008-03-12 Maarten Brock <sourceforge.brock AT dse.nl>
1756
1757         * doc/sdccman.lyx: added paragraph about bankswitching for mcs51
1758
1759 2008-03-12 Borut Razem <borut.razem AT siol.net>
1760
1761         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated command line options,
1762           fixed documentation request #1718191
1763         * as/hc80/asmain.c, as/mcs51/asmain.c: added option -c to usage
1764         * doc/sdccman.lyx: added description of --no-std-crt0 gbz80
1765           command line option
1766
1767 2008-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
1768
1769         * src/SDCCast.c (isConformingBody): fixed bug 1505811, thanks Robert Larice
1770         * support/regression/tests/bug1505811.c: new, added
1771
1772 2008-03-09 Raphael Neider <rneider AT web.de>
1773
1774         * device/include/pic16/pic18f2620.h,
1775         * device/include/pic16/pic18f4620.h,
1776         * device/lib/pic16/libdev/pic18f2620.c,
1777         * device/lib/pic16/libdev/pic18f4525.c,
1778         * device/lib/pic16/libdev/pic18f4620.c: merged 18f2525/2620/4525/4620
1779           family to consistently use pic18f4620.[ch], fixes #1832562
1780
1781 2008-03-09 Borut Razem <borut.razem AT siol.net>
1782
1783         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
1784           changed sdcc version to 2.8.0
1785         * knownbugs.html: regenerated
1786         * support/scripts/gen_known_bugs.pl: added number of open bugs
1787
1788 2008-03-09 Raphael Neider <rneider AT web.de>
1789
1790         * src/pic16/gen.c (pic16_mov2w_volatile): NEW, read volatile operands,
1791           (genOr): read volatile operand even if the result is known,
1792           closes #1511838
1793           (genOr,genXor): removed unused legacy code,
1794           (genDummyRead): use pic16_mov2w_volatile()
1795
1796 2008-03-08 Borut Razem <borut.razem AT siol.net>
1797
1798         * src/SDCCglue.c: fixed bug #1864582: multiple definition of char
1799           cons w. --model-large
1800         * support/regression/staticinit.c: added regression test for bug
1801           #1864582
1802
1803 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1804
1805         * src/ds390/gen.c (pushSide, genPcall),
1806         * src/hc08/gen.c (pushSide, genPcall): synchronized with mcs51
1807         * src/mcs51/gen.c: cosmetic changes
1808         * support/regression/fwk/include/testfwk.h: added macro reentrant
1809         * support/regression/tests/bug1908493.c: new, added
1810
1811 2008-03-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1812
1813         * src/SDCCdebug.c:, as/link/lkaomf51.c: Fixed bug 1909409: Pdata in OMF file
1814
1815 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1816
1817         * src/mcs51/gen.c (pushSide, genPcall): fixed bug 1908493
1818         * src/SDCCmain.c (preProcess): removed -DSDCC_PARMS_IN_BANK1 because it is
1819           already set in ds390/main.c and mcs51/main.c
1820
1821 2008-03-07 Raphael Neider <rneider AT web.de>
1822
1823         * src/regression/init0.c: new test for initialized arrays of function
1824           pointers
1825         * src/regression/Makefile: made a bit more flexible, added init0.c
1826         * src/pic/glue.c (emitIvals): hacky fix for initializing from function
1827           pointers, closes #1427663
1828
1829 2008-03-05 Borut Razem <borut.razem AT siol.net>
1830
1831         * dos/sdccman.lyx: docummented predefined macros SDCC_REVISION,
1832           SDCC_PARMS_IN_BANK1, SDCC_FLOAT_REENT and SDCC_INT_LONG_REENT
1833
1834 2008-03-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1835
1836         * support/librarian/sdcclib.c:Added feature request 1908061:
1837           Synchronise sdcclib commands with ar.
1838
1839 2008-03-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1840
1841         * src/SDCCmain.c: added predefined macros SDCC_REVISION (RFE #1907229),
1842           and (depending on corresponding compiler option) SDCC_PARMS_IN_BANK1,
1843           SDCC_FLOAT_REENT, SDCC_INT_LONG_REENT
1844         * device/include/mcs51/compiler.h: removed umlauts, added double
1845           underscore
1846
1847 2008-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
1848
1849         * src/SDCCptropt.c (ptrPseudoSymConvert): fixed bug 1536762
1850         * support/regression/tests/bug1536762.c: new, added
1851         * src/SDCCutil.c,
1852         * src/SDCCutil.h: added getBuildDate()
1853         * src/SDCCmain.c (printVersionInfo),
1854         * src/SDCCglue.c (initialComments): use getBuildDate() instead of
1855           __DATE__
1856         * src/*/ralloc.c: removed IS_OP_RUONLY macro
1857         * src/ds390/ralloc.c (packRegisters),
1858         * src/mcs51/ralloc.c (packRegisters),
1859         * src/z80/ralloc.c (packRegisters): applied fix for bug 1618050, thanks
1860           Robert Larice
1861         * support/regression/tests/bug1618050.c: new, added
1862         * src/SDCCsymt.h: fixed typo in DECLSPEC2TXT
1863         * support/regression/fwk/include/testfwk.h,
1864         * support/regression/tests/bug1838000.c: moved _AUTOMEM and _STATMEM to
1865           testfwk.h
1866
1867 2008-03-04 Raphael Neider <rneider AT web.de>
1868
1869         * src/pic/gen.c: removed unused prototypes, prevent internal errors
1870           on accessing OP_SYM_TYPE(op)
1871         * src/pic/gen.h: removed unused prototype of genMinusDec()
1872         * src/pic/genarith.c (genMinus): cosmetic changes, rewritten to
1873           fix #1876953 (invalid subtraction code), removed unused code
1874
1875 2008-03-03 Raphael Neider <rneider AT web.de>
1876
1877         * src/pic/gen.c,
1878         * src/pic/gen.h,
1879         * src/pic/genarith.c,
1880         * src/pic/ralloc.c,
1881         * src/pic/ralloc.h: removed AOP_R0, AOP_R1, AOP_DPTR, AOP_DPTR2,
1882           AOP_ACC, and *_IDX and adjusted code, removed unused legacy code
1883
1884 2008-03-03 Raphael Neider <rneider AT web.de>
1885
1886         * src/pic/device.c (find_device): search user-specified paths first
1887           for pic14devices.txt, fixes #1900827
1888
1889 2008-03-02 Borut Razem <borut.razem AT siol.net>
1890
1891         * support/scripts/sdcc.nsi: fixed bug in IsNT, LogicLib-isation of
1892           AddToPath and RemoveFromPath
1893
1894 2008-03-01 Borut Razem <borut.razem AT siol.net>
1895
1896         * support/scripts/sdcc.nsi: reverted MULTIUSER page since it didn't
1897           work correctly, added debugging support if -DSDCC.DEBUG command line
1898           option is defined
1899
1900 2008-02-28 Borut Razem <borut.razem AT siol.net>
1901
1902         * doc/sdccman.lyx: cosmetic changes
1903
1904 2008-02-28 Maarten Brock <sourceforge.brock AT dse.nl>
1905
1906         * src/mcs51/ralloc.c (fillGaps): fixed bug 1839671
1907         * doc/sdccman.lyx: fixed unmeant removal of spaces
1908
1909 2008-02-27 Borut Razem <borut.razem AT siol.net>
1910
1911         * support/scripts/sdcc.nsi: corrected installation directory for
1912           current user installation mode
1913         * doc/README.txt: added Philipp Klaus Krause to the developers list
1914
1915 2008-02-27 Maarten Brock <sourceforge.brock AT dse.nl>
1916
1917         * src/mcs51/gen.c (genUnpackBits): don't generate ifxJump, instead
1918           return ifx condition
1919           (genNearPointerGet, genPagedPointerGet, genFarPointerGet,
1920           genCodePointerGet, genGenPointerGet): cleanup aop before generating
1921             ifxJump to fix bug 1838000
1922         * src/SDCCsymt.c (aggregateToPointer): fix problem for xstack
1923         * support/regression/tests/bug1838000.c: new, added
1924         * device/include/mcs51/cc1110.h: new, added, thanks to Pravin Angolkar
1925
1926 2008-02-26 Borut Razem <borut.razem AT siol.net>
1927
1928         * src/SDCCast.c, doc/sdccman.lyx: fixed RFE #1901171: inerger promotion
1929           of casted varargs
1930         * support/scripts/sdcc.nsi: added MULTIUSER page,
1931           NSIS upgraded to version 2.35
1932
1933 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1934
1935         * src/mcs51/ralloc.c (isSpiltOnStack): fixed bug 1565152
1936         * support/regression/tests/bug1565152.c: new, added
1937
1938 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1939
1940         * src/mcs51/gen.c (genPagedPointerSet): fixed bug 1670148
1941         * support/regression/ports/mcs51-xstack-auto/spec.mk: added expf.c
1942         * support/regression/tests/bug1670148.c: new, added
1943
1944 2008-02-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1945
1946         * device/include/mcs51/at89c51ed2.h: fixed bug 1901469.
1947
1948 2008-02-24 Borut Razem <borut.razem AT siol.net>
1949
1950         * src/SDCCast.c, src/SDCCast.h: fixed bug #1874922: explicit typecast
1951           is ineffective for unsigned char parameter
1952
1953 2008-02-24 Maarten Brock <sourceforge.brock AT dse.nl>
1954
1955         * src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
1956         * src/SDCCglue.c (printIvalBitFields): fixed bug 1806631
1957         * support/regression/tests/bitopcse.c: removed hc08 exception, see testfwk.h
1958         * support/Util/MySystem.c (my_system): output errorcode when verbose
1959
1960 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
1961
1962         * src/z80/gen.c (genMult): Rewrote 8-bit multiplication by constant,
1963           implements #1898231
1964
1965 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
1966
1967         * device/lib/z80/mul.s: Rewrote __muluchar_rrx_s, to improve 8-bit mult.,
1968           implements #1896290
1969
1970 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
1971
1972         * src/SDCCast.c (createIvalStruct): fixed bug 1466761
1973
1974 2008-02-21 Borut Razem <borut.razem AT siol.net>
1975
1976         * support/regression/Makefile.in,
1977           support/regression/ports/ds390/spec.mk,
1978           support/regression/ports/hc08/spec.mk,
1979           support/regression/ports/mcs51-common/spec.mk,
1980           support/regression/ports/pic14/spec.mk,
1981           support/regression/ports/pic16/spec.mk,
1982           support/regression/ports/ucz80/spec.mk,
1983           support/regression/ports/xa51/spec.mk:
1984           added CFLAGS when compiling timeout
1985
1986 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1987
1988         * support/regression/tests/bugs-1596270-1736867.c: Regression test for
1989           #1596270, #1736867
1990
1991 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
1992
1993         * src/SDCClrange.c (findPrevUse): fixed bug 1888147
1994         * support/regression/tests/bug1888147.c: new, added
1995
1996 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1997
1998         * src/z80/gen.c: fixed bugs #1596270, #1736867
1999
2000 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
2001
2002         * src/z80/gen.c: fixed bug in register pair loading when swapping register
2003           contents, mostly fixes #1596270
2004
2005 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
2006
2007         * src/z80/peeph.def,
2008         * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific
2009           peepholes, fixes #1806565
2010
2011 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
2012
2013         * src/SDCCpeeph.c (operandBaseName): added check for @Ri
2014         * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
2015           fixes bug 1739475, thanks Robert Larice
2016           (rule 271): new, added
2017
2018 2008-02-18 Borut Razem <borut.razem AT siol.net>
2019
2020         * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
2021
2022 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
2023
2024         * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
2025
2026 2008-02-17 Raphael Neider <rneider AT web.de>
2027
2028         * src/pic16/genarith.c,
2029         * src/pic16/gen.c,
2030         * src/pic16/gen.h,
2031         * src/pic16/genutils.c: removed unused legacy code,
2032           removed unused fields from struct asmop and struct _G
2033
2034 2008-02-17 Raphael Neider <rneider AT web.de>
2035
2036         * src/pic16/gen.c (AccRsh): cosmetic changes,
2037           (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
2038           genRightShiftLiteral): fixed to work with SFRs as result by
2039           assigning only once to result,
2040           removed a lot of unused/excluded code fragments
2041
2042 2008-02-17 Raphael Neider <rneider AT web.de>
2043
2044         * device/include/pic/pic16f88.h,
2045         * device/include/pic/pic16f886.h,
2046         * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
2047
2048 2008-02-17 Borut Razem <borut.razem AT siol.net>
2049
2050         * src/z80/peeph.def: applied patch
2051           #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
2052         * src/z80/gen.c, src/z80/peeph.def: applied patch
2053           #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
2054         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
2055           sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
2056           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
2057           sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
2058           enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
2059
2060 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
2061
2062         * as/link/mcs51/aslink.dsp: removed SDK define
2063         * as/link/z80/clean.mk: brought in sync with other ports
2064         * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
2065         * as/hc08/Makefile.bcc,
2066         * as/mcs51/Makefile.bcc,
2067         * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
2068         * src/z80/main.c (_setValues): use the now capitalized -Z,
2069           (z80_port, gbz80_port): generate debug information when asked
2070
2071 2008-02-16 Borut Razem <borut.razem AT siol.net>
2072
2073         * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
2074           as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
2075           as/z80/Makefile.in. as/z80/Makefile.bcc:
2076           applied patch #1893393: patch for as-z80 and link-z80 to generate
2077           cdb, thanks to Armin Diehl
2078         * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
2079           as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
2080           asnoice.c moved to as/asxxsrc/asnoice.c
2081         * src/z80/peeph-gbz80.def: applied patch
2082           #1880235: Z80 return peephole, thanks to Philipp Krause
2083
2084 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
2085
2086         * .version,
2087         * doc/sdccman.lyx: bumped version to 2.7.5
2088         * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
2089
2090 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
2091
2092         * device/include/pic16/stdlib.h,
2093         * device/lib/pic16/libc/stdlib/ltoa.c,
2094         * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
2095
2096 2008-02-13 Borut Razem <borut.razem AT siol.net>
2097
2098         * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
2099         * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
2100           src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
2101           src/SDCCopt.c,  src/SDCCval.c:
2102           fixed bug #1890273: SDCC Warning 154 shows wrong filename
2103
2104 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
2105
2106         * src/SDCCsymt.c (compareType): fixed bug 1309013
2107
2108 2008-02-09 Borut Razem <borut.razem AT siol.net>
2109
2110         * src/SDCCval.c, src/SDCCval.h:
2111           code cleaning, added function constChrVal()
2112         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
2113           call constChrVal() instead constVal()
2114
2115 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
2116
2117         * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
2118           of function pointer
2119         * src/SDCCerr.h,
2120         * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
2121         * support/regression/tests/absolute.c: added TestStruct TestVar (see also
2122           bug 1859853)
2123
2124 2008-02-01 Raphael Neider <rneider AT web.de>
2125
2126         * device/include/pic/pic16f886.h,
2127         * device/include/pic/pic16f887.h: added RA6 and RA7
2128
2129 2008-01-24 Raphael Neider <rneider AT web.de>
2130
2131         * device/include/pic/pic16f88.h: added RA6 and RA7
2132         * device/lib/pic/libdev/disabled_pic16f886.c,
2133         * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
2134
2135         * src/pic16/devices.inc,
2136         * device/include/pic16/pic18f2423.h,
2137         * device/include/pic16/pic18f2523.h,
2138         * device/include/pic16/pic18fregs.h,
2139         * device/lib/pic16/pics.all
2140         * device/lib/pic16/libdev/pic18f2423.c,
2141         * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
2142         * device/lib/pic16/libio/i2c.ignore,
2143         * device/lib/pic16/libio/usart.ignore,
2144         * device/lib/pic16/libio/adc.ignore: ignore new devices
2145
2146 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
2147
2148         * src/SDCCast.c (createRMW): fixed bug 1582651
2149
2150 2008-01-20 Borut Razem <borut.razem AT siol.net>
2151
2152         * src/SDCCcse.c: partially fixed enhancement request
2153           #1793872 - multiply by -1 not collapsed
2154         * support/regression/tests/arithcsi.c: added regression test
2155
2156 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
2157
2158         * as/mcs51/asx8051.dsp: removed define SDK
2159         * as/mcs51/i51mch.c (machine): fixed bug 1865114
2160         * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
2161         * as/link/lklex.c,
2162         * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
2163           cosmetic changes, brought more in sync, changed old K&R to ANSI
2164
2165 2008-01-13 Borut Razem <borut.razem AT siol.net>
2166
2167         * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
2168         * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
2169
2170 2007-12-30 Borut Razem <borut.razem AT siol.net>
2171
2172         * src/pic16/gen.c: fixed implementation of bitwise operations for
2173           pic16 target
2174         * support/regression/tests/bitwise.c: added test cases
2175
2176 2007-12-29 Borut Razem <borut.razem AT siol.net>
2177
2178         * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
2179         * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
2180           src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
2181         * support/Util/dbuf_string.[ch]: added function dbuf_getline()
2182         * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
2183           src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
2184           src/pic16/pcode.[ch]: added const qualifier
2185         * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
2186           as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
2187           as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
2188           as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
2189         * as/asxxsrc/aslex.c: use dbuf_getline()
2190         * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
2191           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
2192           as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
2193           as/z80/asm.h, as/z80/z80adr.c:
2194           changed type of ib and ip to const char *
2195
2196 2007-12-28 Borut Razem <borut.razem AT siol.net>
2197
2198         * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
2199           introduced (readlin) - long lines are turuncated
2200         * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
2201           as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
2202           as/z80/Makefile.in: moved aslex.c to asxxsrc
2203         * as/hc08/aslex.c, as/z80/aslex.c: deleted
2204         * as/hc08/asmain.c, as/mcs51/asmain.c:
2205           added missing initialization of a_addr field
2206         * support/regression/tests/long_asm_line.c: added regtest for long
2207           assembler line
2208
2209 2007-12-22 Borut Razem <borut.razem AT siol.net>
2210
2211         * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
2212
2213 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
2214
2215         * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
2216
2217 2007-12-16 Borut Razem <borut.razem AT siol.net>
2218
2219         * device/include/pic16/stdbool.h: removed, since already exists in
2220          device/include/; this also fixes bitopcse.c regression test for pic16
2221          target
2222         * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
2223         * src/pic16/glue.c: fixed bug #1851855: generic static pointer
2224           dereference doesn't work; covered by regression test bug1399290
2225
2226 2007-12-05 Borut Razem <borut.razem AT siol.net>
2227
2228         * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
2229           Adding new PIC16
2230
2231 2007-12-01 Borut Razem <borut.razem AT siol.net>
2232
2233         * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
2234           corrected handling of the highest_valid_address
2235
2236 2007-11-17 Raphael Neider <rneider AT web.de>
2237
2238         * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
2239         * src/pic/glue.c (picglue): emit .file if --debug is given
2240
2241 2007-11-17 Raphael Neider <rneider AT web.de>
2242
2243         * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
2244         care when left or right operand resides in result, fixes #1830220
2245
2246 2007-11-17 Borut Razem <borut.razem AT siol.net>
2247
2248         * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
2249           #983491 - "Merge duplicate strings function is ineffective"
2250         * support/regression/tests/bug-983491.c: regtest disabled
2251         * as/asxxsrc: created
2252           as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
2253           as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
2254           as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
2255           as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
2256           as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
2257           as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
2258           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
2259           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
2260           as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
2261           as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
2262           as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
2263           as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
2264           created as/asxxsrc directory, assym.c and strcpi.c moved into it
2265
2266 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
2267
2268         * device/include/stdarg.h: added and removed some casts
2269         * src/SDCCsymt.c (compareType): Fully check types between generic and
2270           non-generic pointers, also accept ptr-ptr to void-ptr assignments
2271
2272 2007-11-13 Borut Razem <borut.razem AT siol.net>
2273
2274         * support/regression/tests/bug-1817005.c:
2275           added regtest for bug #1817005 - as-z80 chokes on long labels
2276
2277 2007-11-12 Borut Razem <borut.razem AT siol.net>
2278
2279         * as/z80/asmain.c, as/z80/asm.h, as/z80/assym.c, as/z80/asdata.c,
2280           as/z80/asout.c, as/z80/aslist.c:
2281           fixed bug #1817005 - as-z80 chokes on long labels
2282
2283 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
2284
2285         * as/hc08/asmain.c,
2286         * as/z80/asmain.c: cosmetic changes
2287         * as/hc08/alloc.h,
2288         * as/mcs51/alloc.h,
2289         * as/z80/alloc.h: removed
2290         * as/hc08/assym.c,
2291         * as/mcs51/assym.c: replaced alloc.h with stdlib.h
2292         * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
2293         * as/link/hc08/Makefile.in,
2294         * as/link/mcs51/Makefile.in,
2295         * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
2296         * as/link/lklex.c,
2297         * as/link/mcs51/lkarea.c,
2298         * as/link/mcs51/lkmain.c: cosmetic changes
2299         * as/link/hc08/lklibr.c,
2300         * as/link/z80/lklibr.c,
2301         * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
2302           used cygwin_conv_to_full_posix_path,
2303           added warnings, cosmetic changes, brought more in sync
2304           changed old K&R into ANSI function declarations
2305         * as/link/z80/lklibr.c (loadAdb): added
2306         * as/link/z80/lkmain.c: removed -- option from usage text
2307
2308 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
2309
2310         * src/mcs51/gen.c (outBitC): optimized for no result
2311
2312 2007-10-31 Borut Razem <borut.razem AT siol.net>
2313
2314         * src/SDCCsymt.c: fixed (hopeful properly) bug
2315           #1805702 - order of extern matters
2316         * support/regression/tests/bug-1805702.c: enabled regtest for bug
2317           #1805702
2318
2319 2007-10-29 Borut Razem <borut.razem AT siol.net>
2320
2321         * src/SDCCsymt.c: reverted bad fixed of bug #1805702
2322           - order of extern matters
2323         * support/regression/tests/bug-1805702.c: disabled regtest for bug
2324           #1805702
2325
2326 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
2327
2328         * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
2329           24bitMode, portIsDS390
2330         * src/mcs51/gen.c (genOr): optimized for RFE 1750727
2331         * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
2332           (notVolatileVariable): also check sloc names,
2333           (callFuncByName): moved ftab[] out of function and sorted it by use
2334
2335 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
2336
2337         * device/include/stdarg.h: fixed bug in va_start macro for --xstack
2338         * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
2339           aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
2340         * src/SDCCicode.c (geniCodeCast): fixed bug 880197
2341         * support/regression/tests/bug-880197.c: new, added
2342
2343 2007-10-28 Borut Razem <borut.razem AT siol.net>
2344
2345         * support/regression/Makefile.in,
2346           support/regression/ports/mcs51-large/spec.mk,
2347           support/regression/ports/mcs51-xstack-auto/spec.mk,
2348           support/regression/ports/mcs51-stack-auto/spec.mk,
2349           support/regression/ports/mcs51-medium/spec.mk,
2350           support/regression/ports/mcs51-common/spec.mk,
2351           support/regression/ports/mcs51-common/*,
2352           support/regression/ports/mcs51-small/*:
2353           mcs51 renamed to mcs51-common, created mcs51-small
2354         * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
2355         * support/regression/tests/bug-1805702.c: added regtest for bug
2356           #1805702
2357
2358 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
2359
2360         * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
2361           added new rules 265 - 270
2362         * support/regression/tests/bug1721024.c:new, added
2363         * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
2364           introduced new test-mcs51 to run all mcs51 tests
2365
2366 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
2367
2368         * support/regression/tests/bug1816470.c: new, added
2369
2370 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
2371
2372         * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
2373           propagate for *,+,- with float, fixed bug 1816470
2374           (decorateType): cast to resultTypeProp instead of resultType
2375
2376 2007-10-19 Borut Razem <borut.razem AT siol.net>
2377
2378         * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
2379           function is ineffective" for pic16 tareget
2380         * support/scripts/listerr.c: corrected include path
2381         * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
2382           adjacent memory
2383
2384 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
2385
2386         * support/regression/tests/using.c: new, added
2387         * support/regression/tests/vaargs.c: fixed and enabled test
2388
2389 2007-10-18 Borut Razem <borut.razem AT siol.net>
2390
2391         * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
2392           is ineffective
2393         * support/regression/tests/bug-983491.c: added regtest for bug #983491
2394
2395 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
2396
2397         * doc/sdccman.lyx: documented option --Werror
2398         * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
2399           RegBankUsed[] earlier
2400
2401 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
2402
2403         * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
2404         * src/pic/glue.c,
2405         * src/SDCCval.c,
2406         * src/SDCCast.c,
2407         * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
2408           AST_ULONG_VALUE
2409         * src/SDCCast.c (decorateType): improved optimization of tri-op
2410         * src/SDCCerr.c (vwerror, setWError),
2411         * src/SDCCerr.h,
2412         * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
2413           warnings as errors, thanks Stas Sergeev for PATCH 1813211
2414
2415 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
2416
2417         * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
2418         * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
2419         * support/regression/tests/bug-223113.c,
2420         * support/regression/tests/bug-426632.c,
2421         * support/regression/tests/bug-468811.c,
2422         * support/regression/tests/bug-477835.c,
2423         * support/regression/tests/bug-478094.c,
2424         * support/regression/tests/bug-499644.c,
2425         * support/regression/tests/bug-524209.c,
2426         * support/regression/tests/bug-524211.c,
2427         * support/regression/tests/packcast.c,
2428         * support/regression/tests/structidx.c: added empty tests
2429         * support/regression/tests/bug-607243.c: enabled test
2430
2431 2007-10-06 Borut Razem <borut.razem AT siol.net>
2432
2433         * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
2434            support of universal binaries on Mac OS X
2435
2436 2007-10-02 Borut Razem <borut.razem AT siol.net>
2437
2438         * src/SDCCval.h: unified double2ul macro for all platforms
2439         * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
2440         * support/regression/tests/bitwise.c: added regtest for bug #1777758
2441
2442 2007-09-30 Borut Razem <borut.razem AT siol.net>
2443
2444         * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
2445           platforms
2446         * sdcc_vc_in.h: enabled warnings
2447         * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
2448           unsigned type, result still unsigned
2449         * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
2450
2451 2007-09-28 Raphael Neider <rneider AT web.de>
2452
2453         * src/pic/device.c (find_device): prevent buffer underflow error
2454         * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
2455           the just destroyed list entry
2456
2457 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2458
2459         * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
2460           Alexander Neundorf
2461
2462 2007-09-18 Borut Razem <borut.razem AT siol.net>
2463
2464         * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
2465          applied to unsigned type, result still unsigned
2466
2467 2007-09-17 Borut Razem <borut.razem AT siol.net>
2468
2469         * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
2470           src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
2471           src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
2472           src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
2473           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
2474           src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
2475           src/z80/gen.c, src/z80/ralloc.c:
2476           fixed bug #1739860 - sdcc does not work correctly on some platforms
2477           (not finished)
2478           introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
2479
2480 2007-09-17 Raphael Neider <rneider AT web.de>
2481
2482         * src/pic16/device.c: reverted to previous version
2483         * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
2484
2485 2007-09-16 Raphael Neider <rneider AT web.de>
2486
2487         * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
2488           as this raises a ton of gpasm warnings, just emit a second label
2489         * src/pic16/devices.inc,
2490         * device/lib/pic16/pics.all,
2491         * device/lib/pic16/libdev/pic18f2585.c,
2492         * device/lib/pic16/libdev/pic18f2680.c,
2493         * device/lib/pic16/libdev/pic18f2682.c,
2494         * device/lib/pic16/libdev/pic18f2685.c,
2495         * device/lib/pic16/libdev/pic18f4585.c,
2496         * device/lib/pic16/libdev/pic18f4680.c,
2497         * device/lib/pic16/libdev/pic18f4682.c,
2498         * device/lib/pic16/libdev/pic18f4685.c,
2499         * device/include/pic16/pic18f2585.h,
2500         * device/include/pic16/pic18f2680.h,
2501         * device/include/pic16/pic18f2682.h,
2502         * device/include/pic16/pic18f2685.h,
2503         * device/include/pic16/pic18f4585.h,
2504         * device/include/pic16/pic18f4680.h,
2505         * device/include/pic16/pic18f4682.h,
2506         * device/include/pic16/pic18f4685.h,
2507         * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
2508           18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
2509           patch contributed by Anton Strobl, applied with changes
2510
2511 2007-09-16 Raphael Neider <rneider AT web.de>
2512
2513         * device/include/pic16/pic18f2431.h,
2514         * device/include/pic16/pic18f25j10.h,
2515         * device/include/pic16/pic18f4431.h,
2516         * device/include/pic16/pic18f45j10.h: adopted common include style
2517         * device/include/pic16/pic18f1320.h,
2518         * device/include/pic16/pic18f2320.h,
2519         * device/include/pic16/pic18f2525.h,
2520         * device/include/pic16/pic18f4320.h,
2521         * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
2522         * device/include/pic16/pic18fregs.h: prepared for automatic include
2523           file selection by having DEVICE.h for every DEVICE
2524         * device/lib/pic16/libdev/pic18f2320.c,
2525         * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
2526
2527         * device/lib/pic16/configure.in,
2528         * device/lib/pic16/configure: use rm -rf instead of rmdir
2529         * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
2530         * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
2531
2532 2007-09-09 Borut Razem <borut.razem AT siol.net>
2533
2534         * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
2535           distingush between i386 and ppc Mac OS X versions
2536
2537 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
2538
2539         * src/mcs51/gen.c (genReceive): fixed bug 1788177
2540         * support/regression/tests/bug1788177.c: new, added
2541
2542 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2543
2544         * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
2545         * device/include/mcs51/lint.h added keyword __naked
2546
2547 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
2548
2549         * src/pic16/glue.c,
2550         * src/pic/glue.c,
2551         * src/SDCCmem.h: removed maxRegBank
2552         * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
2553           RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
2554         * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
2555         * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
2556           name and behaviour to handle banked functions
2557           (scan4op): and use it to fix bug 1786213
2558
2559 2007-09-03 Raphael Neider <rneider AT web.de>
2560
2561         * device/include/pic16/pic18f248.h,
2562         * device/include/pic16/pic18f258.h,
2563         * device/include/pic16/pic18f448.h,
2564         * device/lib/pic16/libdev/pic18f248.c,
2565         * device/lib/pic16/libdev/pic18f258.c,
2566         * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
2567           added T0CONbits, fixes #1786891
2568
2569 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
2570
2571         * src/ds390/gen.c (genFarPointerSet),
2572         * src/hc08/ralloc.c (packRegisters),
2573         * src/mcs51/ralloc.c (packRegisters),
2574         * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
2575           bug 1750318
2576         * src/SDCCicode.h: POINTER_SET can be true for literals too
2577         * support/regression/tests/bug1750318.c: new, added
2578
2579 2007-08-23 Borut Razem <borut.razem AT siol.net>
2580
2581         * debugger/mcs51/sdcdb.c: fixed compilation with older readline
2582           library versions without the completition functionality
2583
2584 2007-08-22 Raphael Neider <rneider AT web.de>
2585
2586         * device/include/pic16/pic18f1220.h,
2587         * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
2588
2589 2007-08-12 Borut Razem <borut.razem AT siol.net>
2590
2591         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
2592
2593 2007-08-11 Borut Razem <borut.razem AT siol.net>
2594
2595         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
2596           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
2597           support/Util/SDCCerr.[ch] moved to src
2598         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
2599           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
2600           device/examples/ds390/tinitalk/tinitalk.dsp,
2601           device/examples/serialcomm/windows/serialcomm.dsp,
2602           support/librarian/librarian.dsp:
2603           removed linking of unused odbc32.lib and odbccp32.lib
2604         * support/scripts/winres.h:
2605           added for compilation with Visual C++ 2005 Express Edition
2606
2607 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2608
2609         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
2610           and CKCON1.
2611
2612 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2613
2614         * sdccconf_in.h: update the endian test so that SPARC Solaris
2615           does not throw syntax errors
2616
2617 2007-08-06 Borut Razem <borut.razem AT siol.net>
2618
2619         * doc/sdccman.lyx: removed two index entries which prevented the
2620           generation of sdcc doc archive
2621
2622 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2623
2624         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
2625           instead of lyx 1.5.0.
2626
2627 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2628
2629         * device/include/hc08/mc68hc908apxx.h: new header contributed by
2630           Lucas Loizaga, with minor modifications. Thanks!
2631
2632 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2633
2634         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
2635           in sdcclib.
2636
2637 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2638
2639         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
2640           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
2641           with acall/ajmp.
2642
2643 2007-07-22 Borut Razem <borut.razem AT siol.net>
2644
2645         * configure.in, configure: re-introduced .version
2646         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
2647           the version reverted to 2.7.0
2648
2649 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
2650
2651         * configure.in,
2652         * doc/sdccman.lyx: bumped version to 2.7.3
2653         * device/include/mcs51/compiler.h: fixed elif->else
2654         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
2655         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
2656           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
2657            enable accuse for bit operands
2658         * src/SDCCmain.c (printVersionInfo),
2659         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
2660           environment descriptor
2661         * src/SDCCutil.h: added getBuildEnvironment
2662         * src/SDCCglue.c (initialComments): use getBuildEnvironment
2663         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
2664         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
2665         * support/regression/tests/bug1348008.c,
2666         * support/regression/tests/bug1496419.c,
2667         * support/regression/tests/bug1503067.c,
2668         * support/regression/tests/preproc.c: added empty tests
2669
2670 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
2671
2672         * support/regression/tests/bug1678803.c: new, added
2673
2674 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
2675
2676         * as/link/aslink.h,
2677         * as/link/hc08/lkihx.c,
2678         * as/link/hc08/lkrloc.c,
2679         * as/link/mcs51/lkihx.c,
2680         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
2681           ihxExtendedLinearAddress
2682         * as/link/mcs51/lkrloc.c (relr),
2683         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
2684           acall/ajmp, see bug 830513
2685
2686 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
2687
2688         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
2689           (cseBBlock): remember aggr2ptr has been used
2690         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
2691           (geniCodeAssign): fixed bug 868103
2692         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
2693           added operandSize prototype
2694         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
2695           (genDataPointerSet): use max of size of right and result,
2696           (gencjne): added parameter useCarry for optimization,
2697           (genCmpEq): use carry if appropriate,
2698           (genXor): check if operand already in carry
2699         * support/regression/tests/bug-868103.c: enabled test
2700
2701 2007-07-12 Raphael Neider <rneider AT web.de>
2702
2703         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
2704
2705 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
2706
2707         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
2708           from Robert Larice, thanks
2709         * support/regression/tests/bitopcse.c,
2710         * support/regression/tests/bitvars.c,
2711         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
2712         * support/regression/tests/bug-927659.c: enabled test for z80
2713         * support/regression/tests/bug1738367.c: added extra tests by Frieder
2714         * support/regression/tests/bug1745717.c: new, added
2715         * support/regression/tests/literalop.c,
2716         * support/regression/tests/nullstring.c: removed storage definitions that
2717           are now in testfwk.h
2718
2719 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
2720
2721         * device/include/stdbool.h: do not define __bool_true_false_are_defined
2722           and bool for targets that do not fully support it.
2723         * support/regression/tests/bug1546986.c,
2724         * support/regression/tests/bug1723128.c,
2725         * support/regression/tests/bug1734654.c,
2726         * support/regression/tests/bug1738367.c,
2727         * support/regression/tests/constantRange.c: only use bool if allowed
2728
2729 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
2730
2731         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
2732           Larice, also handle function pointers
2733         * support/regression/tests/bug1749275.c: new, added
2734
2735 2007-07-03 Borut Razem <borut.razem AT siol.net>
2736
2737         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
2738           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
2739           #1746528: SDCC should ignore ':' in inline assembler comments
2740         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
2741
2742 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
2743
2744         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
2745         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
2746
2747 2007-06-29 Borut Razem <borut.razem AT siol.net>
2748
2749         * src/SDCCmain.c: fixed bug
2750           #1744746: SDCC #4867: broken option --xram-size
2751
2752 2007-06-28 Borut Razem <borut.razem AT siol.net>
2753
2754         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
2755           find out the endianess of host machine for ucsim
2756
2757 2007-06-27 Borut Razem <borut.razem AT siol.net>
2758
2759         * support/regression/generate-cases.py: corrected the file name
2760           in warning
2761         * configure.in, configure, sdccconf_in.h: find out the endianess of
2762           host machine
2763         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
2764           negative size
2765
2766 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
2767
2768         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
2769
2770 2007-06-26 Borut Razem <borut.razem AT siol.net>
2771
2772         * support/regression/generate-cases.py: display warning if function
2773           list is empty; implemented more flexible rule for detection of
2774           testing functions, allowing return type 'void' in the same line as
2775           the function name in the function definition
2776         * support/regression/tests/bug-1654060.c: corrected test
2777         * support/librarian/sdcclib.c: fixed warning:
2778           format '%s' expects type 'char *', but argument 2 has type 'int'
2779
2780 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2781
2782         * support/librarian/sdcclib.c: Added feature Requests [1510635]
2783           Multiple infiles for sdcclib.
2784
2785 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2786
2787         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
2788           bug 1731741
2789
2790 2007-06-18 Borut Razem <borut.razem AT siol.net>
2791
2792         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
2793           how to handle comments, so they have to be removed by the
2794           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
2795         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
2796           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
2797           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
2798           table driven option hadling
2799
2800 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
2801
2802         * src/SDCCast.c (decorateType),
2803         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
2804           iCode to ast level to fix bug 1738367
2805         * support/regression/tests/bug1738367.c: new, added
2806
2807 2007-06-15 Raphael Neider <rneider AT web.de>
2808
2809         * src/pic16/devices.inc,
2810         * device/lib/pic16/pics.all,
2811         * device/include/pic16/pic18fregs.h,
2812         * device/include/pic16/pic18f[24][45]20.h,
2813         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
2814           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
2815         * device/lib/pic16/Makefile.in: faster cleanup
2816
2817 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2818
2819         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
2820
2821 2007-06-13 Raphael Neider <rneider AT web.de>
2822
2823         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
2824
2825 2007-06-12 Raphael Neider <rneider AT web.de>
2826
2827         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
2828           suppress bit defines if NO_BIT_DEFINES is #define'd
2829         * device/include/pic/pic*.h: recreated all headers to include
2830           conditional bit defines
2831         * device/include/pic/pic16f886.h,
2832         * device/include/pic/pic16f887.h: fixed based on newer .inc file
2833         * device/include/pic/recreate.sh: script to recreate the complete
2834           device library files based on the currently supported devices
2835
2836 2007-06-12 Borut Razem <borut.razem AT siol.net>
2837
2838         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
2839           support/regression/Makefile.in, support/scripts/build.mak,
2840           support/scripts/Makefile.snapshot:
2841           use new svn URL scheme
2842         * doc/sdccman.lyx: SDCC Wiki moved to
2843           http://sdcc.wiki.sourceforge.net/
2844
2845 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2846
2847         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
2848         * support/regression/tests/bug1734654.c: added
2849
2850 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
2851
2852         * src/SDCCast.c (decorateType): optimized '?' for equal operands
2853         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
2854           with literal operands
2855
2856 2007-06-10 Borut Razem <borut.razem AT siol.net>
2857
2858         * as/link/z80/lklibr.c: fixed mingw build warning
2859           lklibr.c:575: warning: implicit declaration of function 'tolower'
2860         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
2861           src/z80/main.c: move target specific options from src/SDCCmain.c
2862           to src/<target>/main.c
2863
2864 2007-06-09 Borut Razem <borut.razem AT siol.net>
2865
2866         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
2867           removed unused swap_sense; removed outBitCLong, replaced with outBitC
2868         * support/regression/tests/bug-1294691.c: added
2869
2870 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
2871
2872         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
2873           can also be static, fixes bug 1733438
2874         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
2875           have absolute address too
2876           (computeType): added optimization for 'cond ? true : false'
2877         * support/regression/tests/absolute.c: added test for static absolute var
2878
2879 2007-06-08 Raphael Neider <rneider AT web.de>
2880
2881         * src/regression/Makefile: suppress parallel builds, allow easy
2882           switching between pic14/pic16 ports
2883         * src/regression/picregs.h: added pic14/16 header file switch
2884         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
2885           inline.c,nestfor.c,string1.c}: include "picregs.h"
2886
2887 2007-06-07 Borut Razem <borut.razem AT siol.net>
2888
2889         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
2890           permanent solution to suppress GCC 4.2.0 c++ warning:
2891           deprecated conversion from string constant to `char *'
2892           use 'const char *' where ever required
2893         * support/regression/generate-cases.py: implemented more flexible rule
2894           for detection of testing functions, allowing white-spaces surrounding
2895           the function name and the 'void' parameter.
2896         * support/regression/tests/constantRange.c,
2897           support/regression/tests/scott-compare3.c: fixed failing regression
2898           tests, uncovered by implementation of more flexible rule for detection
2899           of testing functions
2900
2901 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
2902
2903         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
2904
2905 2007-06-04 Borut Razem <borut.razem AT siol.net>
2906
2907         * configure.in, configure, config_vc.awk: sdcc version number is now
2908           stored in configure.in; removed .version
2909         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
2910           doc/INSTALL.txt: version bumped to 2.7.2
2911         * sim/ucsim/configure.in, sim/ucsim/configure:
2912           use "read" to read from .version
2913
2914 2007-06-03 Borut Razem <borut.razem AT siol.net>
2915
2916         * */Makefile.in: removed annoying warning:
2917           Makefile:xx: Makefile.dep: No such file or directory
2918
2919 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
2920
2921         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
2922           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
2923         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
2924         * src/SDCCast.c (resultTypePropagate): propagate for '!',
2925           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
2926           bugfix: only use newBoolLink for bit result type
2927         * src/SDCCicode.c (geniCodeLogic): added param tree,
2928           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
2929           (geniCodeLogicAndOr): use IS_BIT,
2930           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
2931           (ast2iCode): added tree param to geniCodeLogic for comparisons
2932         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
2933         * support/regression/tests/bug1723128.c: added test NotZero
2934
2935 2007-06-01 Borut Razem <borut.razem AT siol.net>
2936
2937         * SDCPP synchronized with GCC CPP release version 4.2.0,
2938           currently the latest release:
2939         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2940           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
2941           support/cpp2/cppdefault.h, support/cpp2/except.h,
2942           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
2943           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
2944           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
2945           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
2946           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
2947           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
2948           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
2949           support/cpp2/opts.h, support/cpp2/output.h,
2950           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
2951           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
2952           support/cpp2/system.h, support/cpp2/version.c,
2953           support/cpp2/Makefile.in: modified
2954         * support/cpp2/opts-common.c: added
2955         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
2956         * device/lib/pic16/libdev/pic18f[24]5j10.c:
2957           search for included source file in local directory
2958         * sim/ucsim/configure, sim/ucsim/configure.in:
2959           temporary solution to suppress GCC 4.2.0 c++ warning:
2960           deprecated conversion from string constant to `char *'
2961
2962 2007-06-01 Raphael Neider <rneider AT web.de>
2963
2964         * device/lib/pic/libdev/pic12f683.c,
2965         * device/include/pic/pic12f683.h: added GPIO bits
2966
2967 2007-06-01 Raphael Neider <rneider AT web.de>
2968
2969         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
2970           quotation marks, clarified role of PIC14 vs. PIC16 ports
2971         * src/pic16/devices.inc,
2972         * device/include/pic16/pic18fregs.h,
2973         * device/include/pic16/pic18f[24][45]j10.h,
2974         * device/lib/pic16/pics.all,
2975         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
2976           18f24j10, 18f25j10, 18f44j10, and 18f45j10
2977         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
2978           for new devices as they are not yet supported by gputils
2979
2980 2007-05-31 Borut Razem <borut.razem AT siol.net>
2981
2982         * Small Device C Compiler 2.7.0 released
2983         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
2984           changed sdcc version to 2.7.1
2985         * support/scripts/sdcc.nsi: added How to create WIN32 release
2986           setup.exe package
2987
2988 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
2989
2990         * doc/sdccman.lyx: documented initialization and allocation of absolute
2991           variables, bit parameter passing, the need for function pointers to be
2992           reentrant and alpha quality support of inline and retrict
2993
2994 2007-05-26 Borut Razem <borut.razem AT siol.net>
2995
2996         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
2997           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
2998         * docs/knownbugs.html: updated
2999
3000 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
3001
3002         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
3003           thanks Jan Waclawek
3004         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
3005           AOP_CRY and ruonly
3006           (gencjneshort): optimized when left is AOP_DIR
3007         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
3008           initializing unions in a struct/array
3009         * support/regression/fwk/include/testfwk.h: added defines for data, near
3010           and far for host and z80
3011         * support/regression/tests/bug1723128.c: new, added
3012
3013 2007-05-22 Borut Razem <borut.razem AT siol.net>
3014
3015         * doc/knownbugs.html: updated
3016
3017 2007-05-21 Raphael Neider <rneider AT web.de>
3018
3019         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
3020           error message instead
3021         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
3022
3023 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
3024
3025         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
3026
3027 2007-05-21 Raphael Neider <rneider AT web.de>
3028
3029         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
3030           closes #1722392
3031         * src/regression/gpsim_assert.h,
3032         * src/regression/Makefile,
3033         * src/regression/pcodeopt.c: regression test for the above fix
3034
3035 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
3036
3037         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
3038           jumps to self, fixed bug 1717281
3039
3040 2007-05-10 Borut Razem <borut.razem AT siol.net>
3041
3042         * support/scripts/gen_known_bugs.pl: cosmetic fix
3043         * doc/knownbugs.html: generated by gen_known_bugs.pl
3044
3045 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3046
3047         * src/SDCCast.c (createFunction): also generate non-inlined version of
3048           function for functions declared as "static inline"
3049         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
3050           function can be inlined after non-inlined version generated.
3051
3052 2007-05-10 Borut Razem <borut.razem AT siol.net>
3053
3054         * support/scripts/gen_known_bugs.pl: added script
3055           which generates knownbugs.html
3056
3057 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
3058
3059         * doc/knownbugs.html: updated for release 2.7.0
3060
3061 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3062
3063         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
3064
3065 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
3066
3067         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
3068           (throughout): updated generating comments
3069         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
3070           (throughout): updated generating comments
3071         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
3072           rule instead of at the second, or it might skip lines when removing the
3073           complete match
3074         * support/regression/tests/bug1714204.c: changed test to foo
3075
3076 2007-05-08 Borut Razem <borut.razem AT siol.net>
3077
3078         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
3079           thanks to SDCC Distributed Compile Farm members,
3080           added Z80 and GBZ80 command line options
3081         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
3082
3083 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
3084
3085         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
3086         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
3087         * support/regression/tests/longlit.c: modified to be tested at all and
3088           to pass the actual test
3089
3090 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3091
3092         * device/include/mcs51/uPSD33xx.h: Added.
3093
3094 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
3095
3096         * device/lib/_gptrput.c,
3097         * device/lib/_gptrget.c: removed old code,
3098          (_gptrgetWord),
3099         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
3100         * support/regression/tests/bug1714204.c: new, added
3101
3102 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3103
3104         * support/regression/tests/regtrack.c: test was never executed
3105           because of the regression test being picky about white spaces.
3106         * device/lib/mcs51/crtclear.asm: added comment
3107
3108 2007-05-06 Raphael Neider <rneider AT web.de>
3109
3110         * device/lib/pic/Makefile.rules,
3111         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
3112           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
3113
3114 2007-05-06 Raphael Neider <rneider AT web.de>
3115
3116         * src/pic16/device.h,
3117         * src/pic16/main.h,
3118         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
3119           _pic16_setDefaultOptions): removed/reordered command-line args
3120         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
3121           devices, regrouped command line args, environment variables),
3122           clarified sone points, added sections on how to add devices to the
3123           PIC14/PIC16 ports
3124
3125 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
3126
3127         * src/z80/peeph.def: fixed bug in rule 2
3128
3129 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
3130
3131         * src/port.h: added TARGET_MCS51_LIKE
3132         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
3133           take advantage of it too
3134         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
3135           (shiftR2Left2Result): Optimized: don't check shifting by 0
3136         * src/z80/peeph-z80.def,
3137         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
3138           modifications, see patch 1700823
3139         * src/mcs51/peep.c (): fixed bug 1712928
3140         * support/regression/tests/bug1712928.c: new, added
3141
3142 2007-05-05 Borut Razem <borut.razem AT siol.net>
3143
3144         * device/lib/pic16/Makefile.common.in,
3145           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
3146           removed bash dependencies
3147
3148 2007-05-01 Borut Razem <borut.razem AT siol.net>
3149
3150         * src/SDCCicode.c:
3151           fixed bug #1710507: --i-code-in-asm makes compile fail
3152           all iCode comments are now one liners
3153         * src/mcs51/gen.c: fixed memory leak
3154
3155 2007-05-01 Raphael Neider <rneider AT web.de>
3156
3157         * device/lib/pic/libdev/*.c
3158         * device/include/pic/*.h: regenerated all device libs from updated
3159           .inc files
3160         * support/scripts/inc2h.pl: documented usage, now uses strict to
3161           catch more bugs
3162
3163 2007-04-30 Borut Razem <borut.razem AT siol.net>
3164
3165         * doc/sdccman.lyx:
3166           fixed bug #1669175: Problem with space in output paths
3167           documented how to use paths with spaces for Windows users
3168
3169 2007-04-29 Borut Razem <borut.razem AT siol.net>
3170
3171         * Fixed svn:eol-style and svn:keywords properties
3172         * src/SDCCval.c: fixed bug
3173           #1592871: Segfault with "large" const arrays of characters
3174           replaced recursion with iteration
3175         * Removed svn:executable property from non-executable files
3176
3177 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
3178
3179         * src/mcs51/gen.c (genRet): fixed bug 1707003
3180
3181 2007-04-27 Raphael Neider <rneider AT web.de>
3182
3183         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
3184           createReachingDefinitions,assignValnums,pic16_destructDF,
3185           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
3186           prevent NULL pointer dereferences
3187         * device/lib/pic/libdev/pic16f886.c,
3188         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
3189           prevent building them, gputils do not really support them yet
3190
3191 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3192
3193         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
3194           helps printf_small. 32 bytes more __idata mem.
3195
3196 2007-04-27 Raphael Neider <rneider AT web.de>
3197
3198         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
3199           return early when pb or pb->pcHead is NULL (patch #1708427)
3200         * src/regression/empty.c,
3201         * src/regression/Makefile: added test with empty functions
3202         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
3203
3204 2007-04-27 Borut Razem <borut.razem AT siol.net>
3205
3206         * src/SDCCast.c: fixed feature request
3207           #1547512: Redundant strings linked when using sizeof("abc")
3208
3209 2007-04-23 Borut Razem <borut.razem AT siol.net>
3210
3211         * doc/sdccman.lyx, src/SDCCmain.c:
3212           peep-hole comments are generated only if --fverbose-asm option is
3213           specified and --no-peep-comments is not, as proposed by Frieder.
3214         * support/regression/Makefile.in: compile regression tests with
3215           --fverbose-asm option so one can "grep" whether a new (or an old)
3216           peephole is (still) applied; requested by Frieder.
3217
3218 2007-04-23 Kevin Buettner <kevin AT buettner.to>
3219
3220         * device/include/pic/pic16f886.h,
3221         * device/include/pic/pic16f887.h,
3222         * device/lib/pic/libdev/pic16f886.c,
3223         * device/lib/pic/libdev/pic16f887.c,
3224         * device/include/pic/pic14devices.txt,
3225         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
3226
3227 2007-04-23 Kevin Buettner <kevin AT buettner.to>
3228
3229         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
3230           fixes #1704666
3231
3232 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3233
3234         * device/lib/_memset.c: assembler version for mcs51
3235
3236 2007-04-22 Borut Razem <borut.razem AT siol.net>
3237
3238         * support/scripts/listerr.c: program to create the list of errors and
3239           warnings list from - added
3240         * doc/sdccman.lyx: removed the note
3241           "For list of warnings and corresponding codes, see err_warn.txt"
3242         * src/SDCCsymt.c: fixed bug #1699804:
3243           Bug with some uses of sizeof(static local array) (MCS51)
3244         * support/regression/tests/bug-1699804.c: added
3245
3246 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
3247
3248         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
3249           (main): added option -i,
3250           (asmbl, case S_INCL): use search_path_fopen,
3251           mostly from patch 1579668 by Peter Miller, thanks
3252         * src/z80/main.c: fixed typo --callee-saves-bc
3253         * device/include/mcs51/compiler.h: added sfrword for Tasking
3254
3255 2007-04-20 Borut Razem <borut.razem AT siol.net>
3256
3257         * src/z80/main.c: replaced reserved keyword asm with asmblr
3258
3259 2007-04-19 Borut Razem <borut.razem AT siol.net>
3260
3261         * src/port.h: use const pointers to strings
3262         * src/SDCCargs.h: declared getStringArg() and getIntArg()
3263         * src/pic16/main.c: include SDCCargs.h
3264         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
3265           const char, since the strings are dynamically allocated
3266         * src/SDCCmain.c: options.code_seg and options.const_seg are
3267           dynamically allocated; check port specific command line options
3268           before the general ones
3269         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
3270
3271 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
3272
3273         * device/include/ds400rom.h,
3274         * device/lib/ds390/lcd390.c,
3275         * device/lib/ds390/memcpyx.c,
3276         * device/lib/ds390/rtc390.c,
3277         * device/lib/ds400/ds400rom.c,
3278         * device/lib/ds400/memcpyx.c,
3279         * device/lib/hc08/_ret.c: more replacements of keywords with their
3280           double underscore equivalents
3281         * device/lib/ds390/Makefile.in,
3282         * device/lib/ds400/Makefile.in,
3283         * device/lib/gbz80/Makefile.in,
3284         * device/lib/hc08/Makefile.in,
3285         * device/lib/mcs51/Makefile.in,
3286         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
3287
3288 2007-04-17 Borut Razem <borut.razem AT siol.net>
3289
3290         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
3291           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
3292           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
3293           to --fverbose-asm, to be gcc'ish
3294
3295 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
3296
3297         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
3298
3299 2007-04-17 Borut Razem <borut.razem AT siol.net>
3300
3301         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
3302         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
3303           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
3304           with their double underscore equivalent
3305
3306 2007-04-14 Borut Razem <borut.razem AT siol.net>
3307
3308         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
3309           source"
3310
3311 2007-04-13 Borut Razem <borut.razem AT siol.net>
3312
3313         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
3314           C99 standard
3315         * device/examples/serialcomm/windows/serial.[ch],
3316           device/examples/serialcomm/windows/test_serialcomm.cpp:
3317           updated by Bela Torok
3318         * device/examples/serialcomm/windows/serialcomm.dsw,
3319           device/examples/serialcomm/windows/serialcomm.dsp: added
3320
3321 2007-04-13 Jan Waclawek <wek AT efton.sk>
3322
3323         * doc/sdccman.lyx: additions and changes at various places
3324           (submitted as #1697136).
3325           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
3326
3327 2007-04-10 Borut Razem <borut.razem AT siol.net>
3328
3329         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
3330           LyX file format changed to 245
3331         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
3332           "FreeWare" replaced with "free open source"
3333
3334 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
3335
3336         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
3337
3338 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
3339
3340         * device/include/pic16/pic18fregs.h,
3341         * device/lib/_bp.c,
3342         * device/lib/_decdptr.c,
3343         * device/lib/_divsint.c,
3344         * device/lib/_divslong.c,
3345         * device/lib/_divuint.c,
3346         * device/lib/_divulong.c,
3347         * device/lib/_fs2schar.c,
3348         * device/lib/_fs2sint.c,
3349         * device/lib/_fs2slong.c,
3350         * device/lib/_fs2uchar.c,
3351         * device/lib/_fs2uint.c,
3352         * device/lib/_fs2ulong.c,
3353         * device/lib/_fsadd.c,
3354         * device/lib/_fscmp.c,
3355         * device/lib/_fsdiv.c,
3356         * device/lib/_fseq.c,
3357         * device/lib/_fsget1arg.c,
3358         * device/lib/_fsget2args.c,
3359         * device/lib/_fsgt.c,
3360         * device/lib/_fslt.c,
3361         * device/lib/_fsmul.c,
3362         * device/lib/_fsneq.c,
3363         * device/lib/_fsnormalize.c,
3364         * device/lib/_fsreturnval.c,
3365         * device/lib/_fsrshift.c,
3366         * device/lib/_fssub.c,
3367         * device/lib/_fsswapargs.c,
3368         * device/lib/_gptrget.c,
3369         * device/lib/_gptrgetc.c,
3370         * device/lib/_gptrput.c,
3371         * device/lib/_logexpf.c,
3372         * device/lib/_modsint.c,
3373         * device/lib/_modslong.c,
3374         * device/lib/_moduint.c,
3375         * device/lib/_modulong.c,
3376         * device/lib/_mulint.c,
3377         * device/lib/_mullong.c,
3378         * device/lib/_schar2fs.c,
3379         * device/lib/_ser.c,
3380         * device/lib/_setjmp.c,
3381         * device/lib/_sint2fs.c,
3382         * device/lib/_slong2fs.c,
3383         * device/lib/_spx.c,
3384         * device/lib/_uchar2fs.c,
3385         * device/lib/_uint2fs.c,
3386         * device/lib/_ulong2fs.c,
3387         * device/lib/asincosf.c,
3388         * device/lib/atanf.c,
3389         * device/lib/calloc.c,
3390         * device/lib/ds390/tinibios.c,
3391         * device/lib/ds400/tinibios.c,
3392         * device/lib/expf.c,
3393         * device/lib/free.c,
3394         * device/lib/hc08/_mulint.c,
3395         * device/lib/logf.c,
3396         * device/lib/malloc.c,
3397         * device/lib/printf_fast.c,
3398         * device/lib/printf_tiny.c,
3399         * device/lib/printfl.c,
3400         * device/lib/realloc.c,
3401         * device/lib/ser_ir.c,
3402         * device/lib/serial.c,
3403         * support/regression/tests/libmullong.c: replaced all special keywords
3404           with their double underscore equivalent
3405         * support/regression/ports/mcs51-xstack-auto/spec.mk,
3406         * device/lib/Makefile.in: compile libs with --std-c99 instead of
3407           --std-sdcc99
3408         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
3409           (genRet): if the bit-symbol is ruonly it already is in the carry
3410         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
3411         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
3412         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
3413           type UCHAR if dest is not bit
3414
3415 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
3416
3417         * device/include/math.h,
3418         * device/lib/cotf.c,
3419         * device/lib/expf.c,
3420         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
3421
3422 2007-04-01 Borut Razem <borut.razem AT siol.net>
3423
3424         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
3425           fixed bug #1692042: input buffer overflow...scanner uses REJECT
3426         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
3427           gcc_unreachable() called internal_error()...
3428
3429 2007-03-30 Raphael Neider <rneider AT web.de>
3430
3431         * src/pic/ralloc.c (isData): suppress garbage debug output
3432
3433 2007-03-28 Borut Razem <borut.razem AT siol.net>
3434
3435         * doc/sdccman.lyx:
3436           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
3437           is developed, built and used worldwide, and the word "night" doesn't
3438           make any sense.
3439
3440 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
3441
3442         * device/include/mcs51/C8051F360.h: new, added
3443         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
3444
3445 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3446
3447         * src/SDCC.y (declaration_specifiers, function_specifier),
3448         * support/Util/SDCCerr.c,
3449         * support/Util/SDCCerr.h,
3450         * src/SDCCsymt.h,
3451         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
3452           inline keyword
3453         * src/SDCCmem.c (deallocParms),
3454         * src/SDCCast.c: support for function inlining, not quite complete
3455         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
3456           'restrict' qualifier
3457
3458 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
3459
3460         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
3461           (saveRBank, unsaveRBank): don't save bits,
3462           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
3463         * support/regression/tests/bug1535242.c: new, added
3464         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
3465           thanks Alexey Shamrin <shamrin AT gmail.com>,
3466           made assert.h header ANSI compliant (added a check for NDEBUG macro,
3467           removed header guard)
3468         * .version,
3469         * sdcc.spec: bumped version to 2.6.5
3470         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
3471
3472 2007-03-22 Borut Razem <borut.razem AT siol.net>
3473
3474         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
3475           fixed bug #1653671: sdcdb integration into ddd is broken
3476
3477 2007-03-22 Raphael Neider <rneider AT web.de>
3478
3479         * src/pic/gen.c (popGetExternal): augmented to also create references
3480           to external variables (not only labels),
3481           (genCall): comment on plan to reduce PAGESEL overhead,
3482           (genFunction, genEndFunction): also save/restore FSR around interrupt
3483           handling code, removed lots of unused code
3484           (genDivOneByte): release acquired temp register
3485         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
3486           of popGetExternal
3487         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
3488           for registers that need to be saved during interrupts (FSR, STATUS,
3489           PCLATH; W needs special handling), currently only FSR is used
3490
3491 2007-03-22 Raphael Neider <rneider AT web.de>
3492
3493         * device/include/pic/pic14devices.txt: 16f688 has only one config word
3494
3495 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3496
3497         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
3498
3499 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
3500
3501         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
3502
3503 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
3504
3505         * as/link/aslink.h: added LKOBJEXT
3506         * as/link/hc08/link_hc08.dsp,
3507         * as/link/hc08/Makefile.bcc,
3508         * as/link/hc08/Makefile.in,
3509         * as/link/mcs51/aslink.dsp,
3510         * as/link/mcs51/Makefile.bcc,
3511         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
3512         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
3513         * as/link/lkaomf51.c: merged and moved
3514         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
3515         * as/link/z80/lkdata.c,
3516         * as/link/lkdata.c: merged and moved
3517         * as/link/hc08/lkmain.c,
3518         * as/link/mcs51/lkmain.c: cosmetic changes
3519         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
3520         * as/link/lklex.c: use LKOBJEXT
3521         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
3522           ANSI-fied functions, removed bubble-sorts
3523         * as/link/z80/lksym.c           as/link/lksym.c: merged,
3524           ANSI-fied functions
3525         * as/link/z80/linkgbz80.dsp,
3526         * as/link/z80/linkz80.dsp,
3527         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
3528           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
3529         * as/link/z80/lkhead.c,
3530         * as/link/z80/lklex.c: deleted
3531         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
3532         * as/link/z80/lkmain.c: added copyfile()
3533
3534 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3535
3536         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
3537
3538 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3539
3540         * device/lib/_strlen.c: assembler version for mcs51
3541
3542 2007-03-13 Raphael Neider <rneider AT web.de>
3543
3544         * device/include/pic16/pic18f2221.h,
3545         * device/include/pic16/pic18f2321.h,
3546         * device/include/pic16/pic18f2331.h,
3547         * device/include/pic16/pic18f4221.h,
3548         * device/include/pic16/pic18f4321.h,
3549         * device/include/pic16/pic18f4331.h: fixed config byte location names
3550         * support/scripts/inc2h-pic16.pl: removed debug output, emit
3551           consistently named config byte locations
3552
3553 2007-03-13 Borut Razem <borut.razem AT siol.net>
3554
3555         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
3556           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
3557           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
3558           as/link/z80/Makefile.in, as/z80/Makefile.in:
3559           introduced LDFLAGS
3560
3561 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3562
3563         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
3564         * device/lib/printf_large.c: pointer was converted to generic
3565         pointer for mcs51 models other than model-small (Maarten noticed)
3566
3567 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3568
3569         * device/include/mcs51/ADuC84x.h: Added.
3570
3571 2007-03-10 Borut Razem <borut.razem AT siol.net>
3572
3573         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
3574           fixed RFE #1624219: double backslashes in filenames;
3575           functions hexEscape(), octalEscape() and copyStr() moved from
3576           SDCCval.c to SDCCutil.c and made them glovbally available
3577
3578 2007-03-09 Borut Razem <borut.razem AT siol.net>
3579
3580         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
3581           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
3582           1673361: Missaligned comments in output files
3583
3584 2007-03-09 Raphael Neider <rneider AT web.de>
3585
3586         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
3587
3588 2007-03-09 Raphael Neider <rneider AT web.de>
3589
3590         * src/pic/gen.c,
3591         * src/pic/glue.c,
3592         * src/pic/ralloc.c: suppress undesired debug output
3593         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
3594
3595 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3596
3597         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
3598
3599 2007-03-07 Borut Razem <borut.razem AT siol.net>
3600
3601         * device/lib/pic16/libdev/pic18f[24][34]31.c:
3602           search include files in the current directory
3603
3604 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
3605
3606         * src/SDCCglue.c (emitMaps, glue),
3607         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
3608           absolute xdata
3609         * support/regression/tests/absolute.c: added xdata test
3610
3611 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
3612
3613         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
3614           added condition to macro, fixes bug 1666080
3615
3616 2007-03-02 Raphael Neider <rneider AT web.de>
3617
3618         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
3619
3620 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3621
3622         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
3623         be cleared. Unconditionally set __XPAGE
3624         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
3625
3626 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3627
3628         * src/SDCCglobl.h,
3629         * src/SDCCmain.c,
3630         * src/mcs51/gen.c,
3631         * src/mcs51/rtrack.c,
3632         * src/ds390/gen.c,
3633         * doc/sdccman.lyx: added --no-gen-comments
3634         * src/mcs51/peeph.def: added 192.b, disabled 185
3635
3636 2007-02-25 Raphael Neider <rneider AT web.de>
3637
3638         * src/pic16/gen.c (genCast): fixed typo
3639         * device/lib/pic16/Makefile.subdir: only install existing files
3640         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
3641
3642 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
3643
3644         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
3645         * device/lib/mcs51/crtclear.asm,
3646         * device/lib/mcs51/crtxclear.asm: renumbered labels
3647         * device/lib/mcs51/Makefile.in: added crtcall.asm
3648         * doc/sdccman.lyx: documented mcs51 crt* library startup code
3649         * src/mcs51/gen.c (movc): removed,
3650           (aopGet, genPlusBits): clear a after loading the carry (possibly from
3651             acc.x or psw.x),
3652           (toCarry, genSend, genRet): added function toCarry,
3653           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
3654           (assignBit, genAssign, genCast): added function assignBit
3655         * src/mcs51/Makefile.bcc: added rtrack.c
3656         * src/mcs51/ralloc.h: made valueKnown a bitfield
3657         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
3658           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
3659           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
3660         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
3661         * src/z80/gen.c: added AOP_IS_PAIRPTR,
3662           (_pop): only pop valid pairs, see gencjneshort,
3663           (gencjneshort): return pair that still needs to be popped, restructured,
3664           (gencjne, genCmpEq): call _pop
3665
3666 2007-02-23 Raphael Neider <rneider AT web.de>
3667
3668         * device/include/pic/pic14devices.txt: 16f684 has only one config word
3669
3670 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3671
3672         * device/include/mcs51/P89LPC925.h: Added.
3673
3674 2007-02-18 Raphael Neider <rneider AT web.de>
3675
3676         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
3677
3678 2007-02-17 Borut Razem <borut.razem AT siol.net>
3679
3680         * support/cpp2/directives.c, support/cpp2/version.c:
3681           synchronized with GCC CPP 4.1.2
3682
3683 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3684
3685         * src/mcs51/rtrack.h,
3686         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
3687           by checking the strings passed by emitcode() to the assembler.
3688           Feel free to change. This in part addresses RFE #482179.
3689           Set environment variable SDCC_RTRACK to enable.
3690         * src/mcs51/gen.c: inserted hooks
3691         * src/mcs51/ralloc.h: added two members to struct regs
3692         * support/regression/tests/regtrack.c: added
3693
3694 2007-02-14 Borut Razem <borut.razem AT siol.net>
3695
3696         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
3697         * Makefile.in: applied patch from Makefile related part of
3698           #1469393: Compiler does not initialize static data
3699
3700 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
3701
3702         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
3703           for better fix of bug 1273984, compiles pic16 rand.c
3704
3705 2007-02-12 Borut Razem <borut.razem AT siol.net>
3706
3707         * src/pic16/main.c: fixed pic16 standard library directory bug
3708
3709 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
3710
3711         * src/hc08/gen.c (genSwap): fix swap regression test
3712
3713 2007-02-10 Borut Razem <borut.razem AT siol.net>
3714
3715         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
3716           with same scope
3717         * support/regression/tests/bug-1654060.c: added regression test for
3718           #1654060
3719
3720 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
3721
3722         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
3723         bit moves in return statement
3724
3725 2007-02-09 Borut Razem <borut.razem AT siol.net>
3726
3727         * src/SDCC.y: fixed bug #1654060 typedef within function causes
3728           syntax error
3729
3730 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3731
3732         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
3733         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
3734
3735 2007-02-07 Raphael Neider <rneider AT web.de>
3736
3737         * src/pic16/devices.inc,
3738         * device/include/pic16/pic18fregs.h,
3739         * device/include/pic16/pic18f[24][34]31.h,
3740         * device/lib/pic16/libdev/pic18f[24][34]31.c,
3741         * device/lib/pic16/pics.all: added 18f[24][34]31 family
3742         * device/lib/pic16/libio/i2c.ignore: do not build i2c
3743
3744 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3745
3746         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
3747           can this have lived here for so many years?
3748         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
3749           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
3750         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
3751
3752 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
3753
3754         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
3755         appended by loop induction must be at the very end of the eBBlock
3756
3757 2007-02-05 Kevin Vigor
3758
3759         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
3760
3761 2007-02-05 Borut Razem <borut.razem AT siol.net>
3762
3763         * support/regression/fwk/lib/timeout.c: native WIN32 port,
3764           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
3765
3766 2007-02-03 Borut Razem <borut.razem AT siol.net>
3767
3768         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
3769           applied patch #1646602 option to set default signedness of char to
3770           unsigned, added -funsigned-char command line option,
3771           thanks to Gunther Jehle
3772         * device/lib/Makefile.in: added the -f option to rm so it doesn't
3773           prompt for file deletion a few hundred times (especially the
3774           subversion files, which have ro permissions so it asks for
3775           confirmation), thanks to Simon McAuliffe;
3776           added {} + option to find in order to remove multiple files from a
3777           single rm commad
3778
3779 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3780
3781         * device/include/mcs51/SST89x5xRDx.h: Added.
3782
3783 2007-02-02 Raphael Neider <rneider AT web.de>
3784
3785         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
3786         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
3787
3788 2007-02-01 Raphael Neider <rneider AT web.de>
3789
3790         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
3791           config words again
3792
3793 2007-01-31 Borut Razem <borut.razem AT siol.net>
3794
3795         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
3796           if compiled with GCC. Thanks to Raphael Neider
3797
3798 2007-01-31 Raphael Neider <rneider AT web.de>
3799
3800         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
3801             operand names, handles name and (name + n) for all n,
3802           (sameBank): restructured, also check bank allocation policy,
3803         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
3804           (pic14_operandsAllocatedInSameBank): check whether to operands
3805             will be allocated into the same bank (i.e., section) to reduce
3806             BANKSEL overhead, queried from pcode.c:sameBank,
3807           (pic14printLocals): reintroduced clustering registers into a single
3808             section: all compiler generated symbols will now reside in one
3809             bank (per file), reducing BANKSEL overhead and code size,
3810           (showAllMemmaps): use local dbuf where possible
3811
3812 2007-01-29 Raphael Neider <rneider AT web.de>
3813
3814         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
3815           (call_libraryfunc): retrieve/create symbol and mark as used,
3816           (genFunction): mark defined functions as non-extern and add again
3817            to code memmap for later output
3818         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
3819           (pic14printLocals): reworked for new symbol emission,
3820           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
3821           showAllMemmaps): reworked symbol output using dbufs, added handling
3822             of string literals (still incomplete),
3823           (picglue): removed symbol emission, moved into showAllMemmaps,
3824           (emitSymbolSet): new workhorse for symbol output,
3825           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
3826
3827 2007-01-29 Borut Razem <borut.razem AT siol.net>
3828
3829         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
3830           component contains the extension separator.
3831
3832 2007-01-28 Borut Razem <borut.razem AT siol.net>
3833
3834         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
3835           on WIN32
3836         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
3837           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
3838           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
3839           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
3840           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
3841           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
3842           src/z80/gen.c, support/Util/MySystem.c:
3843           accept slash and backslash as directory separator on WIN32 and
3844           Cygwin ports
3845
3846 2007-01-28 Raphael Neider <rneider AT web.de>
3847
3848         * src/pic16/devices.inc,
3849         * device/include/pic16/pic18f[24][23]21.h,
3850         * device/include/pic16/pic18fregs.h,
3851         * device/lib/pic16/libdev/pic18f[24][23]21.c,
3852         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
3853         * device/lib/pic16/libio/adc.ignore,
3854         * device/lib/pic16/libio/i2c.ignore,
3855         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
3856           family, as gputils do not yet support the devices
3857         * device/lib/pic16/Makefile.subdir: ignore errors on install
3858         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
3859           headers and libraries from gputils .inc files
3860
3861 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3862
3863         * doc/sdccman.lyx: add printf_fast_f precision limitation note
3864
3865 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3866
3867         * doc/sdccman.lyx: add printf benchmarks
3868
3869 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3870
3871         * device/lib/printf_fast.c: fix %c, char promoted to int
3872         * device/lib/printf_tiny.c: fix %c, char promoted to int
3873
3874 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3875
3876         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
3877
3878 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3879
3880         * support/regression/tests/swap.c: 64 bit hosts failed
3881         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
3882
3883 2007-01-25 Raphael Neider <rneider AT web.de>
3884
3885         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
3886           based on absolute register address, patch by Alex Blond
3887
3888 2007-01-22 Raphael Neider <rneider AT web.de>
3889
3890         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
3891           emitted, do not emit them again...
3892
3893 2007-01-22 Raphael Neider <rneider AT web.de>
3894
3895         * src/regression/bank1.c, src/regression/compare6.c,
3896           src/regression/add.c: cosmetic changes
3897         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
3898         * src/pic/gen.c: fixed global zero and one,
3899           (aopForSym): removed unued code,
3900           (aopGet): assert aop is defined, check and use `index' of
3901             pCodeImmd operands (fixes #1630908),
3902         * src/pic/pcode.c (get_op): added output of generic pointer tag,
3903           (register_reassign): prevent accidental register unification,
3904           (ReuseReg): cosmetic changes (also above)
3905         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
3906           pic14emitStaticSeg): do not emit initialized data,
3907           (printIval*): replaced with working versions,
3908           (pic14createInterruptVect,picglue): use idata for initialized data,
3909             now init data should work in all modules (not only main()),
3910         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
3911
3912 2007-01-21 Borut Razem <borut.razem AT siol.net>
3913
3914         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
3915           use -fPIC or -fpic if they are supported and not ignored
3916         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
3917         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
3918
3919 2007-01-20 Borut Razem <borut.razem AT siol.net>
3920
3921         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
3922           implemented RFE #1470316: allow "$" in variable names
3923
3924 2007-01-20 Raphael Neider <rneider AT web.de>
3925
3926         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
3927
3928 2007-01-20 Raphael Neider <rneider AT web.de>
3929
3930         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
3931         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
3932         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
3933         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
3934           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
3935         * device/lib/pic/libdev/pic*.c,
3936         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
3937         * device/lib/pic/libdev/Makefile.in: show progress
3938
3939 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
3940
3941         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
3942         * support/scripts/sdcc_cygwin_mingw32,
3943         * support/scripts/sdcc_mingw32,
3944         * support/scripts/build.mak: replaced --datadir by --datarootdir for
3945         conformance with autoconf 2.6
3946
3947 2007-01-19 Raphael Neider <rneider AT web.de>
3948
3949         * src/pic/device.c (register_map): fixed list construction
3950         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
3951           (genMod): removed case for genModbits,
3952           (genModbits): removed as now unused/unimplemented
3953         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
3954
3955 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3956
3957         * support/regression/tests/swap.c: added in response to #1638622
3958         * doc/sdccman.lyx: synced version, minor changes
3959
3960 2007-01-18 Borut Razem <borut.razem AT siol.net>
3961
3962         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
3963           thanks to Gunther Jehle
3964         * src/asm.c: don't die if the file drfined in #line couldn't be opened
3965         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
3966           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
3967           use filename in lineno instead.
3968         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
3969           print the file name in ast_print()
3970
3971 2007-01-18 Borut Razem <borut.razem AT siol.net>
3972
3973         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
3974           defined in MSVC
3975         * src/SDCC.lex: stringLiteral() returns const char pointer,
3976           EOF detection in stringLiteral(), fixed asmbuf memory leak,
3977           fixed column counting
3978         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
3979           accept const char pointer as parameter
3980         * src/SDCCdwarf2.c: corrected buffer size
3981
3982 2007-01-17 Borut Razem <borut.razem AT siol.net>
3983
3984         * support/Util/dbuf_string.c: fixed for amd64
3985
3986 2007-01-15 Borut Razem <borut.razem AT siol.net>
3987
3988         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
3989           removed terminal symbol ELIPSIS, since it was never generated by the
3990           lexer and it was wrongly used in parameter_identifier_list rule
3991
3992 2007-01-15 Raphael Neider <rneider AT web.de>
3993
3994         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
3995             code page and data banking description
3996         * src/pic/genarith.c,
3997         * src/pic/gen.h: removed bit arithmetic functions,
3998             updated exit(1) to exit(EXIT_FAILURE)
3999         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
4000         * device/include/pic16/pic18f2455.h,
4001         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
4002             TRISD and TRISE, fixed/added some bit names
4003         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
4004         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
4005             updated pic18f2455.{c,h} instead of duplicating them
4006
4007 2007-01-14 Borut Razem <borut.razem AT siol.net>
4008
4009         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
4010           Cannot debug files that contain spaces in the path name
4011           by converting spaces in asm file name to underscores
4012
4013 2007-01-13 Borut Razem <borut.razem AT siol.net>
4014
4015         * doc/sdccman.lyx: fixed format errors
4016
4017 2007-01-10 Borut Razem <borut.razem AT siol.net>
4018
4019         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
4020           codeseg/constseg #pragma fail
4021         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
4022         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
4023           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
4024           suppoprt/cpp2/sdcpp.[ch]: house cleaning
4025
4026 2007-01-09 Borut Razem <borut.razem AT siol.net>
4027
4028         * get rid of diagnistic.[ch], pretty-print.[ch],
4029           c-pretty-print.[ch], ... used just for error, warning, ...
4030           message formatting
4031         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
4032           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
4033           suppoprt/cpp2/pretty-print.[ch]:
4034           removed
4035         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
4036           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
4037           suppoprt/cpp2/sdcpp.dsp:
4038           changed
4039
4040 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
4041
4042         * device/lib/printf_large.c (output_float): removed recursion,
4043           use smaller buffer on stack for mcs51,
4044           fixed bug printing 1.96
4045         * support/regression/tests/snprintf.c: added test
4046
4047 2007-01-07 Borut Razem <borut.razem AT siol.net>
4048
4049         * use dynamic memory buffers instead temporary files
4050         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
4051           added
4052         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
4053           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
4054           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
4055           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
4056           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
4057           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
4058           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
4059           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
4060           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
4061           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
4062           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
4063           support/Util/dbuf.c, support/Util/dbuf.h:
4064           modified
4065         * .version, sdcc.spec: bumped version to 2.6.4
4066
4067 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
4068
4069         * src/port.h: added TARGET_Z80_LIKE macro
4070         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
4071           output PSEG location if --xram-loc or --xstack-loc was used
4072         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
4073
4074 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
4075
4076         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
4077         * as/as_z80.dsp,   as/z80/as_z80.dsp,
4078         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
4079         * sdcc.dsw: moved project files into subdir
4080         * as/hc08/as_hc08.dsp,
4081         * as/hc08/Makefile.bcc,
4082         * as/hc08/Makefile.in,
4083         * as/mcs51/Makefile.bcc,
4084         * as/mcs51/Makefile.in,
4085         * as/z80/Makefile.bcc,
4086         * as/z80/Makefile.in,
4087         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
4088         * as/hc08/asm.h,
4089         * as/mcs51/asm.h,
4090         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
4091         * as/hc08/asmain.c,
4092         * as/hc08/assym.c,
4093         * as/mcs51/asmain.c,
4094         * as/mcs51/assym.c,
4095         * as/z80/assym.c: removed include "strcmpi.h"
4096         * as/hc08/strcmpi.c,
4097         * as/hc08/strcmpi.h,
4098         * as/mcs51/strcmpi.c,
4099         * as/mcs51/strcmpi.h,
4100         * support/Util/strcmpi.c,
4101         * support/Util/strcmpi.h: removed files
4102         * as/strcmpi.c: added as_strncmpi()
4103
4104 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4105
4106         * sdcc.dsw: Added some dependencies on project config.dsp
4107
4108 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
4109
4110         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
4111           with [di]ram_start to fix a regresion
4112
4113 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
4114
4115         * configure.in: added missing mcs51 in status output
4116         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
4117         directory
4118         * debugger/mcs51/clean.mk (distclean): remove config.h
4119         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
4120         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
4121         options.h, s-options-h and options.c
4122         * support/cpp2/clean.mk: unused, removed
4123         * Makefile.common.in,
4124         * main_in.mk,
4125         * as/Makefile.in,
4126         * as/hc08/Makefile.in,
4127         * as/hc08/clean.mk,
4128         * as/mcs51/Makefile.in,
4129         * as/mcs51/clean.mk,
4130         * as/z80/clean.mk,
4131         * as/z80/conf.mk,
4132         * as/z80/Makefile.in,
4133         * as/z80/clean.mk,
4134         * as/link/Makefile.in,
4135         * as/link/hc08/Makefile.in,
4136         * as/link/hc08/clean.mk,
4137         * as/link/mcs51/Makefile.in,
4138         * as/link/mcs51/clean.mk,
4139         * as/link/z80/Makefile.in,
4140         * as/link/z80/clean.mk,
4141         * as/link/z80/conf.mk,
4142         * debugger/mcs51/Makefile.in,
4143         * debugger/mcs51/clean.mk,
4144         * device/include/Makefile.in,
4145         * device/lib/Makefile.in,
4146         * device/lib/mcs51/Makefile.in,
4147         * device/lib/pic/Makefile.in,
4148         * device/lib/pic/Makefile.common.in,
4149         * device/lib/pic/Makefile.subdir,
4150         * device/lib/pic/Makefile.rules,
4151         * device/lib/pic16/libio/Makefile.in,
4152         * device/lib/pic16/Makefile.subdir,
4153         * device/lib/pic16/libdev/Makefile.in,
4154         * device/lib/pic16/Makefile.rules,
4155         * device/lib/pic16/Makefile.common.in,
4156         * sim/ucsim/avr.src/Makefile.in,
4157         * sim/ucsim/main_in.mk,
4158         * sim/ucsim/cmd.src/Makefile.in,
4159         * sim/ucsim/doc/Makefile.in,
4160         * sim/ucsim/gui.src/Makefile.in,
4161         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
4162         * sim/ucsim/gui.src/serio.src/Makefile.in,
4163         * sim/ucsim/hc08.src/Makefile.in,
4164         * sim/ucsim/libltdl/Makefile.in,
4165         * sim/ucsim/s51.src/Makefile.in,
4166         * sim/ucsim/sim.src/Makefile.in,
4167         * sim/ucsim/sim.src/conf.mk,
4168         * sim/ucsim/xa.src/Makefile.in,
4169         * sim/ucsim/z80.src/Makefile.in,
4170         * src/Makefile.in,
4171         * src/clean.mk,
4172         * src/port.mk,
4173         * support/cpp2/Makefile.in,
4174         * support/librarian/Makefile.in,
4175         * support/librarian/clean.mk,
4176         * support/makebin/Makefile.in,
4177         * support/makebin/clean.mk,
4178         * support/packihx/Makefile.in,
4179         * support/regression/Makefile.in,
4180         * support/regression/ports/ds390/spec.mk,
4181         * support/regression/ports/gbz80/spec.mk,
4182         * support/regression/ports/hc08/spec.mk,
4183         * support/regression/ports/mcs51/spec.mk,
4184         * support/regression/ports/mcs51-large/spec.mk,
4185         * support/regression/ports/mcs51-medium/spec.mk,
4186         * support/regression/ports/mcs51-xstack-auto/spec.mk,
4187         * support/regression/ports/pic14/spec.mk,
4188         * support/regression/ports/pic16/spec.mk,
4189         * support/regression/ports/mcs51-stack-auto/spec.mk,
4190         * support/regression/ports/ucz80/spec.mk,
4191         * support/regression/ports/xa51/spec.mk,
4192         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
4193         adding a slash after $(top_builddir) and/or adding @datarootdir@
4194         * configure.in,
4195         * debugger/mcs51/configure.in,
4196         * device/lib/pic/configure.in,
4197         * device/lib/pic16/configure.in,
4198         * sim/ucsim/configure.in,
4199         * support/cpp2/configure.in,
4200         * support/packihx/configure.in: changed AC_PREREQ to 2.60
4201         * configure,
4202         * debugger/mcs51/configure,
4203         * device/lib/pic/configure,
4204         * device/lib/pic16/configure,
4205         * sim/ucsim/configure,
4206         * support/cpp2/configure,
4207         * support/packihx/configure: generated with autoconf 2.60
4208
4209 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
4210
4211         * as/link/hc08/lkihx.c (newArea),
4212         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
4213
4214 2007-01-02 Borut Razem <borut.razem AT siol.net>
4215
4216         * doc/sdccman.lyx: documented #pragma sdcc_hash
4217         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
4218           initialized to 0
4219         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
4220
4221 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
4222
4223         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
4224         empty 'while'-loop to work correctly, see regression test 'while.c'
4225         * support/regression/tests/while.c: added
4226
4227 2007-01-01 Borut Razem <borut.razem AT siol.net>
4228
4229         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
4230           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
4231           support/cpp2/libcpp/sdcpp.c:
4232           sdcpp specific pragma/directive/option handling moved to sdcpp.c
4233         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
4234         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
4235
4236 2006-12-31 Borut Razem <borut.razem AT siol.net>
4237
4238         * SDCPP synchronized with GCC CPP release version 4.1.1,
4239           currently the latest release:
4240         * support/cpp2/libcpp, support/cpp2/libcpp/include,
4241           support/cpp2/libcpp/include/cpp-id-data.h
4242           support/cpp2/libiberty/fopen_unlocked.c
4243           support/cpp2/libiberty/md5.c
4244           support/cpp2/md5.h
4245           support/cpp2/opt-functions.awk
4246           support/cpp2/opt-gather.awk
4247           support/cpp2/optc-gen.awk
4248           support/cpp2/opth-gen.awk:
4249           added
4250         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
4251           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
4252           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
4253           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
4254           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
4255           support/cpp2/diagnostic.h, support/cpp2/except.h,
4256           support/cpp2/hwint.h, support/cpp2/input.h,
4257           support/cpp2/intl.h, support/cpp2/move-if-change,
4258           support/cpp2/opts.c, support/cpp2/opts.h,
4259           support/cpp2/output.h, support/cpp2/prefix.c,
4260           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
4261           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
4262           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
4263           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
4264           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
4265           support/cpp2/version.c:
4266           modified
4267         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
4268           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
4269           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
4270           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
4271           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
4272           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
4273           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
4274           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
4275           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
4276           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
4277           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
4278           moved
4279         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
4280           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
4281           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
4282           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
4283           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
4284           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
4285           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
4286           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
4287           support/cpp2/hashtable.h, support/cpp2/line-map.c,
4288           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
4289           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
4290           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
4291           support/cpp2/system.h:
4292           deleted / moved
4293
4294 2006-12-31 Borut Razem <borut.razem AT siol.net>
4295
4296         * configure.in, configure: fixed bug #1538756: configure dies if bison
4297           and flex are not installed, 2nd try
4298
4299 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
4300
4301         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
4302         400.x for better code in RFE 899102
4303
4304 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
4305
4306         * src/SDCCpeeph.c (deadMove),
4307         * src/port.h,
4308         * src/mcs51/peep.h: renamed 'op' by 'reg'
4309         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
4310         (scan4op): small change for removeDeadMove(), added support for
4311         'callee saves' and/or PACLL function calls,
4312         (removeDeadMove): added, removes superflous 'mov r%1,%2',
4313         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
4314         left in new dispatcher mcs51DeadMove()
4315         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
4316         removeDeadMove()
4317         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
4318
4319 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4320
4321         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
4322           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
4323
4324 2006-12-30 Borut Razem <borut.razem AT siol.net>
4325
4326         * support/cpp2/spacs.h: deleted from svn
4327         * configure.in, configure: fixed bug #1538756: configure dies if bison
4328           and flex are not installed
4329
4330 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
4331
4332         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
4333           with this z80 passes printf float test when enabled
4334         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
4335
4336 2006-12-28 Borut Razem <borut.razem AT siol.net>
4337
4338         * support/cpp2/config.in, support/cpp2/configure.in,
4339           support/cpp2/configure, support/cpp2/Makefile.in:
4340           fix for the solaris build
4341
4342 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4343
4344         * src/SDCC.y (type_specifier2, pointer),
4345         * src/SDCCsymt.h,
4346         * src/SDCCsymt.c (mergeSpec, checkSClass),
4347         * support/Util/SDCCerr.c,
4348         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
4349         * support/valdiag/valdiag.py: Allow test cases to specify
4350           required language standard
4351         * support/valdiag/tests/restrict.c: New file to test restrict keyword
4352         * support/valdiag/tests/tentdecl.c: Supress empty source file error
4353
4354 2006-12-27 Borut Razem <borut.razem AT siol.net>
4355
4356         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
4357         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
4358           mbchar removed
4359         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
4360           fixed for borland C
4361         * support/cpp2/libiberty/Makefile.bcc: updated
4362         * src/pic16/main.c: fixed #pragma udata handling
4363         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
4364
4365 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
4366
4367         * src/SDCCpeeph.c: made labelHashEntry global,
4368         made pcDistance, FBYNAME static,
4369         (pcDistance): made static, use isComment and isLabel,
4370         (deadMove): added,
4371         (getLabelRef): added, extracted from labelRefCount(),
4372         (labelRefCount): use new getLabelRef(),
4373         (callFuncByName): made static, added deadMove,
4374         use isComment and isLabel,
4375         (newPeepRule): made static, set isLabel,
4376         (isLabelDefinition): added parameter isPeepRule to allow '%' in
4377         labels from peephole rules,
4378         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
4379         when isComment or isLabel is set
4380         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
4381         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
4382         to make them global
4383         * src/mcs51/peep.h: added
4384         * src/mcs51/peep.c: added, implements mcs51DeadMove()
4385         * src/port.h: added peep->deadMove to port structure
4386         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
4387         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
4388         deadMove, finally removed no. 1 and 2
4389         * src/mcs51/gen.c,
4390         * src/pic/gen.c,
4391         * src/z80/gen.c,
4392         * src/z80/ralloc.c,
4393         * src/pic16/gen.c,
4394         * src/ds390/gen.c,
4395         * src/hc08/gen.c: mark lines with isComment or isLabel
4396         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
4397         * .version,
4398         * sdcc.spec: bumped version to 2.6.3
4399
4400 2006-12-26 Borut Razem <borut.razem AT siol.net>
4401
4402         * support/cpp2/Makefile.in: added dependency on options.h
4403         * configure: regenerated
4404         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
4405         * support/cpp2/Makefile.in: added vasprintf.c
4406
4407 2006-12-25 Borut Razem <borut.razem AT siol.net>
4408
4409         * SDCPP synchronized with GCC CPP release version 3.4.6,
4410           the latest release before 4.x:
4411         * support/cpp2/Makefile.in, support/cpp2/config.h,
4412           support/cpp2/configure, support/cpp2/configure.in,
4413           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
4414           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
4415           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
4416           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
4417           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
4418           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
4419           support/cpp2/cpptrad.c, support/cpp2/except.h,
4420           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
4421           support/cpp2/hwint.h, support/cpp2/intl.h,
4422           support/cpp2/line-map.c, support/cpp2/line-map.h,
4423           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
4424           support/cpp2/output.h, support/cpp2/prefix.c,
4425           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
4426           support/cpp2/system.h, support/cpp2/version.c:
4427           modified
4428         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
4429           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
4430           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
4431           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
4432           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
4433           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
4434           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
4435           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
4436           support/cpp2/move-if-change, support/cpp2/opts.c,
4437           support/cpp2/opts.h, support/cpp2/opts.sh,
4438           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
4439           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
4440           support/cpp2/win32, support/cpp2/win32/dirent.c,
4441           support/cpp2/win32/dirent.h:
4442           added
4443         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
4444         * support/cpp2/sdcpp.h: renamed from sdcc.h
4445         * sdcppinit.c: deleted
4446
4447 2006-12-23 Borut Razem <borut.razem AT siol.net>
4448
4449         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
4450           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
4451           preproc.c: an other try to fix bug #982435: introduced
4452           -pedantic-parse-number command line option and pedantic_parse_number
4453           pragma
4454
4455 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
4456
4457         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
4458            BSEG handling,
4459           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
4460            corrected overlayed areax addresses, warn about memory overlaps
4461         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
4462         * src/avr/main.c,
4463         * src/ds390/main.c,
4464         * src/hc08/main.c,
4465         * src/mcs51/main.c,
4466         * src/pic16/main.c,
4467         * src/pic/main.c,
4468         * src/xa51/main.c,
4469         * src/z80/main.c,
4470         * src/port.h: added xabs_name and iabs_name
4471         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
4472           (glue, emitMaps): create and emit maps d_abs and i_abs
4473         * src/SDCCglue.h: cosmetic changes
4474         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
4475         * src/SDCCmem.h,
4476         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
4477           (allocDefault): put absolute, initialized globals in them
4478         * support/regression/tests/absolute.c: added absolute bdata test
4479         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
4480
4481 2006-12-20 Borut Razem <borut.razem AT siol.net>
4482
4483         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
4484         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
4485           added regression test for bug #982435
4486
4487 2006-12-18 Borut Razem <borut.razem AT siol.net>
4488
4489         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
4490         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
4491           small cosmetic changes
4492         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
4493         * support/regression/tests/bug-1351710.c: added regression test
4494
4495 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4496
4497         * doc/sdccman.lyx: added the long missed iCode table
4498           "<where is figure II?>", added links to wiki
4499
4500 2006-12-17 Borut Razem <borut.razem AT siol.net>
4501
4502         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
4503           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
4504           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
4505           unified table driven pragma handling, pragma argument type checking
4506         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
4507           current one - version 1.1.3
4508         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
4509
4510 2006-12-13 Raphael Neider <rneider AT web.de>
4511
4512         * src/pic/device.h: removed AssignedMemory structure and macros
4513         * src/pic/device.c: removed global finalMapping (linker assigns
4514             memory locations),
4515           (register_map): add SFRs to remembered memRanges
4516           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
4517           assignFixedRegisters,assignRelocatableRegisters): removed,
4518           (setMaxRAM,validAddress): adapted accordingly,
4519           (pic14_hasSharebank,pic14_getSharedStack): only report and use
4520             reasonably sized sharebanks,
4521         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
4522           (allDefsOutOfRange): removed unused code,
4523         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
4524             handling
4525         * src/pic/pcode.c (register_reassign): removed recursion warning,
4526             fired far too often,
4527         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
4528             to use existing pic14_stringInSet() to avoid duplicate symbols,
4529             tidied up the code a bit,
4530           (pic14printLocals): added in symmetry to printExterns, replaces
4531             writeUsedRegs more or less,
4532           (picglue): call new pic14_printLocals(),
4533         * device/include/pic/pic*.h: removed #pragma memmap directives,
4534             information gathered from include/pic/pic14devices.txt
4535         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
4536
4537 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
4538
4539         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
4540
4541 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4542
4543         * device/include/mcs51/cc2430.h: fixed missing ';'
4544
4545 2006-12-10 Raphael Neider <rneider AT web.de>
4546
4547         * device/lib/pic16/libc/stdio/vfprintf.c,
4548         * device/lib/pic16/libc/stdio/printf_small.c,
4549         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
4550           char arguments, as char varargs are cast to int by the caller,
4551           hopefully fixes #1604915 (other device libraries are still affected)
4552
4553 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4554
4555         * src/mcs51/ralloc.c (packRegsForAssign),
4556         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
4557
4558 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
4559
4560         * device/include/malloc.h: removed init_dynamic_memory
4561         * device/lib/malloc.c: made init_dynamic_memory static and automatically
4562           call it once from malloc. Also use _sdcc_heap[] from _heap.c
4563         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
4564         * device/lib/libsdcc.lib,
4565         * device/lib/Makefile.in,
4566         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
4567         * doc/sdccman.lyx: documented use of new _heap.c
4568         * support/regression/tests/malloc.c: removed init_dynamic_memory
4569         * src/cdbFile.c(spacesToUnderscores): new function,
4570           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
4571           1068030
4572         * device/include/tinibios.h: removed defines for putchar and getchar
4573         * device/lib/ds390/Makefile.in: added putchar.c
4574         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
4575
4576 2006-12-09 Borut Razem <borut.razem AT siol.net>
4577
4578         * support/cpp2/sdcc.h: prevent multiple inclusion
4579         * support/cpp2/options.h: deleted
4580
4581 2006-12-08 Borut Razem <borut.razem AT siol.net>
4582
4583         * support/cpp2/sdcc.h: removed x*alloc() macros
4584         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
4585         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
4586           support/cpp2/sdcpp.sdc: x*alloc files added to the project
4587         * support/cpp2/system.h: moved #include "sdcc.h"
4588         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
4589           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
4590           added
4591         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
4592           -funsigned-char options
4593         * support/cpp2/sdcppmain.c: fixed bug 1611411
4594
4595 2006-12-07 Borut Razem <borut.razem AT siol.net>
4596
4597         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
4598           directive
4599
4600 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
4601
4602         * src/SDCCsymt.c (addDecl): fixed bug 1609244
4603         * src/SDCCmain.c (linkEdit): fixed bug 1609279
4604         * doc/sdccman.lyx,
4605         * .version: bumped to 2.6.2 because a) it's been a while
4606           b) the linker sources have moved c) the preprocessor is upgraded
4607
4608 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4609
4610         * support/regression/tests/snprintf.c: some checks
4611         * lib/src/printf_large.c: %bc: read char instead of int from stack
4612
4613 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
4614
4615         * device/include/mcs51/cc2430.h: inserted _XPAGE
4616
4617 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4618
4619         * device/include/mcs51/cc2430.h: added
4620
4621 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
4622
4623         * device/include/asm/default/features.h,
4624         * device/include/asm/ds390/features.h,
4625         * device/include/mcs51/at89s53.h,
4626         * device/include/ser.h,
4627         * device/include/ser_ir.h,
4628         * device/include/serial.h: changed keywords to double underscore variants,
4629           fixes bug 1590261 some more, thanks Steven Borley
4630
4631 2006-12-01 Raphael Neider <rneider AT web.de>
4632
4633         * src/pic/pcode.c (register_reassign): do not crash on recursive code
4634           but emit warning (recursion is not supported for pic14)
4635
4636 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4637
4638         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
4639         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
4640
4641 2006-11-30 Raphael Neider <rneider AT web.de>
4642
4643         * src/pic/device.c (dump_sfr): always emit symbols
4644         * src/pic/glue.c (pic14printPublics): fixed typo
4645
4646 2006-11-30 Raphael Neider <rneider AT web.de>
4647
4648         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
4649           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
4650           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
4651            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
4652            a sharebank, use a non-shared bank for the stack if none available
4653         * src/pic/device.h (struct memRange): added linked list next field,
4654           added prototypes for above functions
4655         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
4656           (typeRegWithIdx): accept fixed and unfixed stack registers
4657         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
4658           the stack, handle shared and banked stack (except for WSAVE),
4659           (insertBankSel): removed useless optimization (will never fire),
4660           (FixRegisterBanking): added optimization for devices with only one
4661           possibly aliased bank of memory, like 16f84
4662         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
4663           devices have no SHAREBANK in the linker script
4664         * device/include/pic/pic14devices.txt: documented memmap
4665         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
4666
4667 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4668
4669         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
4670           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
4671           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
4672           genhc08Code): switched most of the D (debug) macros to DD (detailed
4673           debug) macros to better control clutter in the generated .asm file.
4674         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
4675           genRightShift): fixed bug with non-constant bit shift stored to
4676           a volatile result (SF Open Discussion forum thread #1616749).
4677           Single byte case is not yet optimized.
4678
4679 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
4680
4681         * device/include/asm/mcs51/features.h,
4682         * device/include/malloc.h,
4683         * device/include/stdio.h: changed keywords to double underscore variants,
4684           fixes bug 1590261
4685
4686 2006-11-27 Borut Razem <borut.razem AT siol.net>
4687
4688         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4689           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
4690           support/cpp2/output.h, support/cpp2/cppinit.c,
4691           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
4692           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4693           support/cpp2/cppdefault.c, support/cpp2/system.h,
4694           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
4695           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
4696           support/cpp2/prefix.c, support/cpp2/except.h,
4697           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
4698           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
4699           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4700           support/cpp2/version.c, support/cpp2/cppmain.c,
4701           support/cpp2/version.h, support/cpp2/hashtable.c,
4702           support/cpp2/cpperror.c:
4703           synchronized with GCC CPP release version 3.3.6,
4704           the latest where cppmain.c still exists.
4705         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
4706           support/cpp2/sdcppinit.c: added
4707
4708 2006-11-27 Borut Razem <borut.razem AT siol.net>
4709
4710         * support/cpp2/cpplex.c:
4711           fixed _asm ... _endasm handling bug, introduce with GCC CPP
4712           synchronization
4713         * support/cpp2/cpplib.c: removed definitions of unused variables
4714
4715 2006-11-26 Borut Razem <borut.razem AT siol.net>
4716
4717         * support/cpp2/libiberty.h: commented out x*alloc() declarations
4718           since they are redefined by macros in support/cpp2/sdcc.h
4719         * support/cpp2/sdcc.h: x*alloc macro redefinition
4720
4721 2006-11-25 Borut Razem <borut.razem AT siol.net>
4722
4723         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4724           support/cpp2/configure, support/cpp2/Makefile.in,
4725           support/cpp2/cppfiles.c, support/cpp2/output.h,
4726           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
4727           support/cpp2/config.h, support/cpp2/cpplib.h,
4728           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4729           support/cpp2/cppdefault.c, support/cpp2/config.in,
4730           support/cpp2/system.h, support/cpp2/cpplex.c,
4731           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
4732           support/cpp2/cppdefault.h, support/cpp2/prefix.c
4733           support/cpp2/hwint.h, support/cpp2/mbchar.h,
4734           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
4735           support/cpp2/configure.in, support/cpp2/intl.h,
4736           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
4737           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4738           support/cpp2/version.c, support/cpp2/cppmain.c,
4739           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
4740           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
4741           support/cpp2/cpperror.c,
4742           support/cpp2/libiberty/safe-ctype.c,
4743           support/cpp2/libiberty/safe-ctype.h,
4744           support/cpp2/libiberty/splay-tree.c,
4745           support/cpp2/libiberty/obstack.c,
4746           support/cpp2/libiberty/lbasename.c,
4747           support/cpp2/libiberty/splay-tree.h,
4748           support/cpp2/libiberty/obstack.h:
4749           synchronized with GCC CPP release version 3.2.3,
4750           the latest before integration of cpp into gcc
4751         * support/cpp2/except.h, support/cpp2/line-map.c,
4752           support/cpp2/line-map.h,
4753           support/cpp2/libiberty/hex.c,
4754           support/cpp2/libiberty/concat.c,
4755           support/cpp2/libiberty/filenames.h: added
4756         * support/cpp2/intl.c: deleted
4757
4758 2006-11-24 Borut Razem <borut.razem AT siol.net>
4759
4760         * src/SDCC.y: enabled compilation of empty source file
4761         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
4762           "ISO C forbids an empty source file"
4763         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
4764           if all the code is ifdefed out.
4765
4766 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4767
4768         * src/hc08/gen.c (genPcall): fix for bug #1601032
4769
4770 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4771
4772         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
4773         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
4774         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
4775         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
4776         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
4777         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
4778         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
4779         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
4780         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
4781         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
4782         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
4783         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
4784         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
4785         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
4786         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
4787           Renamed to all upper case as per the standard set by SiLabs
4788
4789 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4790
4791         * device/include/mcs51/C8051F520.h: new, added
4792         * device/include/mcs51/compiler.h: added link about predefined macros
4793
4794 2006-11-23 Raphael Neider <rneider AT web.de>
4795
4796         * src/regression/Makefile: add -L path to fresh library
4797         * src/regression/simulate: emphasize FAILED output
4798         * src/regression/create_stc: output _failures from gpsim
4799         * src/regression/compare4.c,
4800         * src/regression/rotate6.c: fixed char literals,
4801           all compile, all run =8-D
4802
4803         * src/pic/pcode.h: added isPCASMDIR macro
4804         * src/pic/gen.c (genAnd): fixed bit offset
4805         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
4806           packBits): unified register numbering schemes,
4807           (newReg): do not insert stack registers into hash table,
4808           (initStack): unpinned pseudo stack, simplified,
4809           (typeRegWithIdx): fixed retrieval of stack registers,
4810         * src/pic/pcode.c (addpCodeComment,sameBank): added,
4811           (pCodeReplace): removed invalid assertion,
4812           (insertPCodeInstruction): fixed newly added labels,
4813           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
4814           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
4815           DumpFlow): removed unsed (broken?) code,
4816           (insertBankSel): prevent STATUS from being BANKSELed,
4817           (FixRegisterBanking): rewritten from scratch, implemented generic
4818             optimizations (suppress BANKSELs to same register and to registers
4819             present in all banks),
4820           (AnalyzeBanking): update flow after BANKSELection
4821
4822         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
4823             sharebank, let linker place it, mark STKxx symbols as emitted
4824
4825 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4826
4827         * src/regression/arrays.c,
4828         * src/regression/bank1.c,
4829         * src/regression/bool2.c,
4830         * src/regression/compare7.c,
4831         * src/regression/compare8.c,
4832         * src/regression/compare9.c,
4833         * src/regression/compare10.c,
4834         * src/regression/configword.c,
4835         * src/regression/for.c,
4836         * src/regression/mult1.c,
4837         * src/regression/pointer1.c,
4838         * src/regression/rotate6.c,
4839         * src/regression/string1.c,
4840         * src/regression/struct1.c,
4841         * src/regression/Makefile: make PIC14 regression tests run again
4842           (3 fail, 6 won't compile)
4843
4844 2006-11-21 Raphael Neider <rneider AT web.de>
4845
4846         * device/include/pic16/pic18f4550.h,
4847         * device/include/pic16/pic18f4455.h,
4848         * device/lib/pic16/libdev/pic18f4550.c,
4849         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
4850         * configure.in: removed superfluous closing bracket
4851
4852 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4853
4854         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
4855           always positive.
4856
4857 2006-11-21 Raphael Neider <rneider AT web.de>
4858
4859         * src/pic/device.{c,h}: added pic14_getPIC()
4860         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
4861           (genAnd): added PIC code for one case, fixes #1597044
4862         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
4863           SFRs that are present in all banks (e.g., STATUS)
4864
4865 2006-11-20 Raphael Neider <rneider AT web.de>
4866
4867         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
4868           INCFSZ/INCFSZW and declared them as changing Z bit,
4869           (insertPCodeInstruction): correctly invert the above instructions,
4870           fixes #1599333,
4871           (DoBankSelect): don't panic on po_immediates
4872
4873 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4874
4875         * as/link/aslink.h,
4876         * as/link/mcs51/lkihx.c (newArea),
4877         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
4878         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
4879
4880 2006-11-11 Raphael Neider <rneider AT web.de>
4881
4882         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
4883           bitfield symbols, fixes #1579535 (once more...).
4884
4885 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4886
4887         * support/regression/generate-cases.py,
4888         * support/regression/fwk/include/testfwk.h,
4889         * support/regression/fwk/lib/testfwk.c: used code pointers,
4890           (about 50kByte less code generated for mcs51)
4891
4892 2006-11-06 Borut Razem <borut.razem AT siol.net>
4893
4894         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4895           debugger/mcs51/configure: fixed failed check because the function
4896           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
4897           who submitted the patch for gpsim.
4898         * debugger/mcs51/configure.in: removed the result message
4899         * debugger/mcs51/Makefile.in: fixed the config.status warning
4900           "... seems to ignore the --datarootdir setting"
4901
4902 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
4903
4904         * device/include/mcs51/c8051f020.h,
4905         * device/include/mcs51/c8051f040.h,
4906         * device/include/mcs51/c8051f060.h,
4907         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
4908         * src/z80/gen.c (gencjneshort),
4909         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
4910
4911 2006-10-31 Borut Razem <borut.razem AT siol.net>
4912
4913         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4914           debugger/mcs51/configure: get readline version
4915
4916 2006-10-30 Borut Razem <borut.razem AT siol.net>
4917
4918         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
4919         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4920           debugger/mcs51/configure: locate readline even when cross compiling
4921         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
4922
4923 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4924
4925         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
4926           serial port.
4927
4928 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4929
4930         * device/include/malloc.h,
4931         * device/lib/calloc.c,
4932         * device/lib/free.c,
4933         * device/lib/malloc.c,
4934         * device/lib/realloc.c: moved definition of struct into sources
4935         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
4936
4937 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4938
4939         * as/asx8051.dsp: corrected output directories
4940         * as/link/hc08: new directory for hc08 linker
4941         * as/hc08/aslink.h,             as/link/aslink.h,
4942         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
4943         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
4944         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
4945         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
4946         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
4947         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
4948         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
4949         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
4950         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
4951         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
4952         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
4953         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
4954         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
4955         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
4956         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
4957         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
4958         * as/link/hc08/conf.mk,
4959         * configure,
4960         * configure.in,
4961         * Makefile.in,
4962         * sdcc.dsw: moved hc08 linker to as/link/hc08
4963         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
4964         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
4965         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
4966         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
4967         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
4968         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
4969         * as/link/mcs51/aslink.dsp,
4970         * as/link/mcs51/Makefile.in: factored out the common files
4971         * as/hc08/lkstore.c: deleted, use the one already in as/link/
4972         * as/clean.mk: extra cleaning common files
4973         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
4974         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
4975         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
4976
4977 2006-10-29 Raphael Neider <rneider AT web.de>
4978
4979         * src/pic/ralloc.c (newReg): create aliases for registers with
4980           multiple names to fix #1579535 and #1584001,
4981           (regWithIdx,dirregWithName): resolve aliases on lookup
4982         * src/pic/pcode.c (DoBankSelect): die with error message on failing
4983           bankselect
4984         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
4985           to prevent build errors on small devices
4986
4987 2006-10-28 Raphael Neider <rneider AT web.de>
4988
4989         * src/pic/gen.c (genFunction,genCall): drop "same code page"
4990           assumption within interrupt handlers, fixes #1584940
4991         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
4992           "emitted" to avoid emitting them again in udata
4993
4994 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4995
4996         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
4997         Removed.
4998
4999 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5000
5001         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
5002         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
5003         on/off CR to CRLF conversion.
5004
5005 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5006
5007         * doc/sdccman.lyx: updated IRQ section
5008
5009 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5010
5011         * device/lib/serial_io.c: removed
5012         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
5013         replacements for serial_io.c
5014
5015 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
5016
5017         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
5018
5019 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5020
5021         * device/lib/serial_io.c: Default putchar() and getchar() for
5022           mcs51 uses serial port.
5023
5024 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
5025
5026         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
5027
5028 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5029
5030         * support/regression/ports/mcs51/support.c: smaller
5031         _sdcc_external_startup()
5032         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
5033
5034 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
5035
5036         * device/lib/gbz80/crt0.s,
5037         * device/lib/gbz80/crt0_rle.s,
5038         * device/lib/gbz80/div.s,
5039         * device/lib/gbz80/fstubs.s,
5040         * device/lib/gbz80/heap.s,
5041         * device/lib/gbz80/mul.s,
5042         * device/lib/gbz80/putchar.s,
5043         * device/lib/gbz80/stubs.s,
5044         * device/lib/z80/crt0.s,
5045         * device/lib/z80/crt0_rle.s,
5046         * device/lib/z80/div.s,
5047         * device/lib/z80/fstubs.s,
5048         * device/lib/z80/heap.s,
5049         * device/lib/z80/mul.s,
5050         * device/lib/z80/putchar.s,
5051         * device/lib/z80/stubs.s: reverted, I was mistaken
5052
5053 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5054
5055         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
5056         * support/regression/ports/mcs51/support.c: removed race
5057         condition on TI in _putchar allowing to use serial port mode 0
5058
5059 2006-10-20 Borut Razem <borut.razem AT siol.net>
5060
5061         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
5062
5063 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
5064
5065         * device/lib/gbz80/crt0.s,
5066         * device/lib/gbz80/crt0_rle.s,
5067         * device/lib/gbz80/div.s,
5068         * device/lib/gbz80/fstubs.s,
5069         * device/lib/gbz80/heap.s,
5070         * device/lib/gbz80/mul.s,
5071         * device/lib/gbz80/putchar.s,
5072         * device/lib/gbz80/stubs.s,
5073         * device/lib/z80/crt0.s,
5074         * device/lib/z80/crt0_rle.s,
5075         * device/lib/z80/div.s,
5076         * device/lib/z80/fstubs.s,
5077         * device/lib/z80/heap.s,
5078         * device/lib/z80/mul.s,
5079         * device/lib/z80/putchar.s,
5080         * device/lib/z80/stubs.s: removed all leading underscores from area names
5081
5082 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
5083
5084         * support/regression/ports/mcs51/support.c: use highest baudrate so the
5085           regression tests are not waiting in the simulator for simulated
5086           transmission of debug output
5087
5088 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5089
5090         * device/lib/printf_large.c: slightly smaller
5091         * doc/sdccman.lyx: do not use spaces within html links
5092
5093 2006-10-16 Borut Razem <borut.razem AT siol.net>
5094
5095         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
5096           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
5097           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
5098           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
5099           debugger/mcs51/configure:
5100           [ 1185668 ] add gnu readline support to sdcdb - enabled
5101
5102 2006-10-16 Raphael Neider <rneider AT web.de>
5103
5104         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
5105           fixes #1577882, removes close to all banking optimizations
5106
5107 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
5108
5109         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
5110           variables in code memory
5111         * support/regression/tests/absolute.c: added test for this
5112
5113 2006-10-15 Raphael Neider <rneider AT web.de>
5114
5115         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
5116           devices,
5117           (BankSelect): emit BANKSEL before touching linker-placed regs,
5118           fixes #1570934
5119
5120 2006-10-10 Raphael Neider <rneider AT web.de>
5121
5122         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
5123         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
5124         * src/pic/main.c (_pic14_parseOptions),
5125         * src/pic/main.h: mostly reverted to previous state, now use results
5126             from SDCCmain.c's argument parsing
5127
5128 2006-10-10 Borut Razem <borut.razem AT siol.net>
5129
5130         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
5131           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
5132           [ 1185668 ] add gnu readline support to sdcdb -
5133           prepared for READLINE, not enabled yet,
5134           thanks to <tal.bav AT gmail.com>
5135
5136 2006-10-10 Raphael Neider <rneider AT web.de>
5137
5138         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
5139         * src/pic16/devices.inc,
5140         * device/include/pic16 (pic18f[24]620.h),
5141         * device/include/pic18fregs.h,
5142         * device/lib/pic16/pics.all,
5143         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
5144             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
5145             Gary Plumbridge and Anton Strobl
5146
5147 2006-10-10 Raphael Neider <rneider AT web.de>
5148
5149         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
5150           --stack-siz=NUM options to configure the argument passing stack
5151         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
5152         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
5153           (pic14_getSharebankSize): obey --stack-siz=NUM,
5154           (pic14_getSharebankAddress): obey --stack-loc=NUM
5155
5156 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5157
5158         * doc/sdccman.lyx: added to the manual
5159         * doc/figures/ddd_example.png: added (neither pdflatex nor
5160         most browsers seem to like the .eps file)
5161
5162 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
5163
5164         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
5165         to /tmp and /var/tmp acc. LSB
5166         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
5167         RESULT_TYPE_IFX
5168         * support/regression/tests/onebyte.c: added test
5169
5170 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5171
5172         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
5173
5174 2006-10-05 Borut Razem <borut.razem AT siol.net>
5175
5176         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
5177           thanks to dfulab:
5178           - sdcc.dsw: changed property eol-style to CRLF
5179           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
5180
5181 2006-10-04 Raphael Neider <rneider AT web.de>
5182
5183         * device/include/pic/{pic16f84.h,pic16f84a.h},
5184         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
5185           from patch #1522504, thanks to Robas Teodor
5186
5187 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
5188
5189         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
5190           fixes bug 1566015
5191
5192 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
5193
5194         * src/pic16/glue.c (pic16emitMaps),
5195         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
5196         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
5197         * device/lib/pic16/libc/string/memcpypgm2ram.c,
5198         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
5199           Philipp Krause
5200         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
5201         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
5202
5203 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5204
5205         * support/librarian/sdcclib.c: Added option -l.
5206         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
5207           usage totals.
5208         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
5209           using Windows command prompt.
5210
5211 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
5212
5213         * device/lib/libsdcc.lib: added module rand
5214         * src/ds390/ralloc.c (rematStr),
5215         * src/hc08/ralloc.c (rematStr),
5216         * src/mcs51/ralloc.c (rematStr),
5217         * src/z80/ralloc.c (rematStr): made output more consistent
5218         * src/mcs51/gen.c: cosmetic changes
5219
5220 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
5221
5222         * src/port.h: added mem.cabs_name to PORT
5223         * src/ds390/main.c,
5224         * src/hc08/main.c,
5225         * src/mcs51/main.c,
5226         * src/pic16/main.c,
5227         * src/pic/main.c,
5228         * src/xa51/main.c,
5229         * src/z80/main.c: added cabs_name initializers
5230         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
5231           constants
5232           (emitMaps): emit absolutes in code memory into cabs_name
5233         * src/SDCCmem.c,
5234         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
5235         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
5236         * support/regression/fwk/include/testfwk.h: added define for at
5237         * support/regression/tests/absolute.c: added, new
5238
5239 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
5240
5241         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
5242           optimizations, see also patch 887161 by Stas Sergeev
5243         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
5244           to be necessary anymore,
5245           (102, 103, 104, 127): renamed all occurances of bp to _bp
5246
5247 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
5248
5249         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
5250           thanks Weston T. Schmidt for patch 1555221
5251         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
5252         * src/SDCCicode.c(geniCodeMultiply): small optimization
5253
5254 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
5255
5256         * device/include/stdlib.h: added rand prototypes
5257         * device/lib/rand.c: new, added
5258         * device/lib/Makefile.in: added rand.c
5259         * src/z80/peeph.def,
5260         * src/z80/peeph-gbz80.def,
5261         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
5262
5263 2006-09-20 Raphael Neider <rneider AT web.de>
5264
5265         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
5266
5267 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
5268
5269         * as/link/aslink.h: cosmetic changes
5270         * as/link/mcs51/Makefile.in,
5271         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
5272
5273 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
5274
5275         * as/link/aslink.h,
5276         * as/link/mcs51/aslink.h,
5277         * as/link/z80/aslink.h: merged and moved to as/link/
5278         * as/link/lkstore.c,
5279         * as/link/mcs51/lkstore.c: moved to as/link/
5280         * as/link/clean.mk: remove *.o
5281         * as/link/mcs51/alloc.h: deleted
5282         * as/link/mcs51/lkarea.c: added lnksect prototype
5283         * as/link/mcs51/lkdata.c,
5284         * as/link/mcs51/lklex.c,
5285         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
5286         * as/link/mcs51/lkmem.c,
5287         * as/link/mcs51/lknoice.c: removed include strcmpi.h
5288         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
5289         * as/link/mcs51/aslink.dsp,
5290         * as/link/mcs51/Makefile.aslink,
5291         * as/link/mcs51/Makefile.bcc,
5292         * as/link/mcs51/Makefile.in: updated for moved files
5293         * as/link/z80/lkarea.c,
5294         * as/link/z80/lkhead.c,
5295         * as/link/z80/lklex.c,
5296         * as/link/z80/lklibr.c,
5297         * as/link/z80/lklist.c,
5298         * as/link/z80/lkmain.c,
5299         * as/link/z80/lkrloc.c,
5300         * as/link/z80/lksym.c: synced with mcs51
5301         * as/link/z80/lkdata.c,
5302         * as/link/z80/lkeval.c,
5303         * as/link/z80/lkihx.c,
5304         * as/link/z80/lks19.c: cosmetic changes
5305         * as/link/z80/Makefile.in,
5306         * as/link/z80/linkgbz80.dsp,
5307         * as/link/z80/linkz80.dsp: updated for moved files
5308
5309 2006-09-16 Borut Razem <borut.razem AT siol.net>
5310
5311         * debugger/mcs51/sdcdb.c: partially fixed
5312           [ 1203664 ] sdcdb fails to open files w. two "." periods
5313         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
5314           debugger/mcs51/symtab.h: fixed indenting
5315         * configure.in, configure: up to date with latest Maarten's changes
5316
5317 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
5318
5319         as/link/mcs51
5320         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
5321         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
5322         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
5323         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
5324         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
5325         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
5326         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
5327         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
5328         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
5329         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
5330         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
5331         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
5332         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
5333         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
5334         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
5335         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
5336         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
5337         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
5338         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
5339         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
5340         as/link/mcs51/alloc.h,
5341         as/link/mcs51/clean.mk,
5342         as/link/mcs51/conf.mk,
5343         as/link/mcs51/Makefile.bcc,
5344         as/link/mcs51/Makefile.in,
5345         as/link/mcs51/readme.390,
5346         as/link/mcs51/strcmpi.c,
5347         as/link/mcs51/strcmpi.h,
5348         as/mcs51/clean.mk,
5349         as/mcs51/Makefile.bcc,
5350         as/mcs51/Makefile.in,
5351         configure,
5352         Makefile.in,
5353         sdcc.dsw: moved mcs51 linker to as/link/mcs51
5354
5355 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
5356
5357         * as/link,
5358         * as/link/Makefile.in,
5359         * as/link/z80/linkgbz80.dsp,
5360         * as/link/z80/linkz80.dsp,
5361         * configure,
5362         * link,
5363         * link/clean.mk,
5364         * link/Makefile.in,
5365         * link/README,
5366         * link/z80,
5367         * link/z80/aslink.h,
5368         * link/z80/clean.mk,
5369         * link/z80/conf.mk,
5370         * link/z80/linkgbz80.dsp,
5371         * link/z80/linkz80.dsp,
5372         * link/z80/lkarea.c,
5373         * link/z80/lkdata.c,
5374         * link/z80/lkeval.c,
5375         * link/z80/lkgb.c,
5376         * link/z80/lkgg.c,
5377         * link/z80/lkhead.c,
5378         * link/z80/lkihx.c,
5379         * link/z80/lklex.c,
5380         * link/z80/lklibr.c,
5381         * link/z80/lklist.c,
5382         * link/z80/lkmain.c,
5383         * link/z80/lkrloc.c,
5384         * link/z80/lks19.c,
5385         * link/z80/lksym.c,
5386         * link/z80/Makefile.in,
5387         * Makefile.in,
5388         * sdcc.dsw: moved link/ to as/link/
5389
5390 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
5391
5392         * as/mcs51/i51mch.c (machine): fixed warning
5393
5394 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
5395
5396         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
5397
5398 2006-09-09 Borut Razem <borut.razem AT siol.net>
5399
5400         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
5401           sdcdb WIN32 native port
5402         * src/clean.mk: fixed
5403
5404 2006-09-08 Borut Razem <borut.razem AT siol.net>
5405
5406         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
5407
5408 2006-09-08 Raphael Neider <rneider AT web.de>
5409
5410         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
5411         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
5412             to gplink to disable processor mismatch warning and to allow
5413             the use of devices with only aliased (shared) memory banks,
5414           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
5415
5416 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5417
5418         * doc/sdccman.lyx: Some re-formating plus example on using
5419           #pragma preproc_asm +/-
5420
5421 2006-09-07 Borut Razem <borut.razem AT siol.net>
5422
5423         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
5424           section
5425
5426 2006-09-06 Borut Razem <borut.razem AT siol.net>
5427
5428         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
5429           line at sdcc.nsi:153
5430         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
5431
5432 2006-09-05 Borut Razem <borut.razem AT siol.net>
5433
5434         * configure.in, configure: support for winsock2
5435         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
5436           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
5437           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
5438           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
5439           debugger/mcs51/symtab.h: sdcdb WIN32 native port
5440
5441 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
5442
5443         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
5444           and OP_DEFS
5445         * support/regression/tests/bug1551947.c: new, added
5446         * src/SDCCsymt.h: strings are char* not byte*
5447
5448 2006-09-05 Raphael Neider <rneider AT web.de>
5449
5450         * device/lib/pic16/libdev/pic18f4550.c,
5451           device/include/pic16/pic18f4550.h: added PORTD/TRISD
5452             declarations/definitions from patch #1520949
5453
5454 2006-09-05 Raphael Neider <rneider AT web.de>
5455
5456         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
5457           byte-aligned bitfields, fixes #1539278
5458
5459 2006-09-05 Raphael Neider <rneider AT web.de>
5460
5461         * src/pic/gen.c (genReceive): skip unreferenced arguments,
5462           fixes #1544120
5463
5464 2006-09-04 Borut Razem <borut.razem AT siol.net>
5465
5466         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
5467         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
5468           -mno-cygwin is a part of the compiler name
5469         * support/scripts/sdcc_mingw32: don't disable ucsim
5470
5471 2006-09-03 Borut Razem <borut.razem AT siol.net>
5472
5473         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
5474         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
5475
5476 2006-09-03 Raphael Neider <rneider AT web.de>
5477
5478         * src/pic/ralloc.c,
5479         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
5480           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
5481           fixes #1550049
5482
5483 2006-09-01 Borut Razem <borut.razem AT siol.net>
5484
5485         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
5486           to make ppc-osx happy
5487
5488 2006-08-31 Borut Razem <borut.razem AT siol.net>
5489
5490         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
5491         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
5492         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
5493         * support/regression/ports/ds390/spec.mk,
5494           support/regression/ports/mcs51/spec.mk,
5495           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
5496           To run regression tests in mingw environment:
5497           make DEV_NULL=NUL CC=gcc
5498
5499 2006-08-30 Borut Razem <borut.razem AT siol.net>
5500
5501         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
5502           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
5503           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
5504           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
5505           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
5506           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
5507           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
5508           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
5509           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
5510           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
5511           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
5512           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
5513           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
5514           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
5515           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
5516           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
5517           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
5518           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
5519           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
5520           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
5521           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
5522           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
5523           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
5524           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
5525           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
5526           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
5527           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
5528           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
5529           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
5530           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
5531           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
5532           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
5533           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
5534           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
5535           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
5536           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
5537           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
5538           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
5539           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
5540           ucsim WIN32 native port
5541
5542 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5543
5544         * doc/sdccman.lyx: added note on dynamic memory heap initialization
5545
5546 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5547
5548         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
5549         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
5550
5551 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
5552
5553         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
5554         * support/regression/tests/bug1546986.c: new, added
5555         * as/mcs51/.cvsignore,
5556         * debugger/mcs51/.cvsignore,
5557         * src/.cvsignore: deleted
5558
5559 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5560
5561         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
5562           definitions)
5563
5564 2006-08-20 Borut Razem <borut.razem AT siol.net>
5565
5566         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
5567           removed cl_listen_console::match(), cl_console::match(),
5568           restructured cl_commander::proc_input()
5569
5570 2006-08-16 Borut Razem <borut.razem AT siol.net>
5571
5572         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
5573           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
5574           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
5575
5576 2006-08-14 Borut Razem <borut.razem AT siol.net>
5577
5578         * support/regression/Makefile.in,
5579           support/regression/ports/pic14/gpsim.cmd,
5580           support/regression/ports/pic14/spec.mk,
5581           support/regression/ports/pic14/support.c:
5582           added pic14 regression test
5583
5584 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
5585
5586         * as/doc/asxhtm.html: documented changed ABS behaviour
5587         * as/doc/README: fixed some typos
5588
5589 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
5590
5591         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
5592           not defined on host
5593
5594 2006-08-12 Borut Razem <borut.razem AT siol.net>
5595
5596         * support/regression/fwk/include/testfwk.h,
5597           support/regression/fwk/lib/testfwk.c,
5598           support/regression/generate-cases.py,
5599           support/regression/Makefile.in:
5600           regression test framework does not depend on function pointers and
5601           variable arguments
5602
5603 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
5604
5605         * device/include/stddef.h: c temporary hack to fix bug 1518273
5606
5607 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5608
5609         * device/include/mcs51/cc2510fx.h: added
5610         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
5611           to projects.
5612
5613 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
5614
5615         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
5616         * as/z80/Makefile.in: added strcmpi.c
5617         * as/z80/z80adr.c: added upper case registers and lower case conditionals
5618         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
5619
5620 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
5621
5622         * device/lib/gbz80/asm_strings.s,
5623         * device/lib/gbz80/crt0_rle.s,
5624         * device/lib/gbz80/div.s,
5625         * device/lib/gbz80/mul.s,
5626         * device/lib/gbz80/shift.s,
5627         * device/lib/z80/asm_strings.s,
5628         * device/lib/z80/crt0_rle.s,
5629         * device/lib/z80/div.s,
5630         * device/lib/z80/mul.s,
5631         * device/lib/z80/shift.s: changed to all lower case menmonics except the
5632           flags which are all upper case
5633
5634 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
5635
5636         * as/z80/asm.h: made CASE_SENSITIVE 1
5637         * link/z80/aslink.h: made CASE_SENSITIVE 1
5638         * src/z80/gen.c (throughout): made all conditionals upper case
5639         * support/regression/tests/bug1503067.c: new
5640
5641 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
5642
5643         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
5644           (shiftIntoPair): added case 2 for PAIR_IY,
5645           (setupToPreserveCarry): replaced parameters with iCode and check if
5646            PAIR_DE is in use to fix bug 1399290,
5647           (genPlus, genMinus): updated call to setupToPreserveCarry
5648         * support/regression/tests/bug1399290.c: new
5649
5650 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
5651
5652         * device/lib/Makefile.in (Z80SOURCES): enabled float support
5653         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
5654         * src/ds390/gen.c (shiftRLong),
5655         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
5656         * src/mcs51/gen.c (sameReg): changed to sameByte,
5657           (xch_a_aopGet): new,
5658           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
5659            shiftRLong): fixed bug 1533966
5660         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
5661           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
5662         * support/regression/Makefile.in: disabled z80, enabled ucz80
5663         * support/regression/tests/float_trans.c: enabled test for z80 and host
5664         * support/regression/tests/shifts2.c: new, for testing bug 1533966
5665
5666 2006-08-01 Borut Razem <borut.razem AT siol.net>
5667
5668         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
5669           comparison is always false due to limited range of data type
5670           on PPC64 machine (openpower-linux1) where "char = unsigned char"
5671
5672 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
5673
5674         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
5675         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
5676         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
5677         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
5678
5679 2006-07-31 Borut Razem <borut.razem AT siol.net>
5680
5681         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
5682           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
5683           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
5684           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
5685           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
5686           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
5687           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
5688           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
5689           enable ucsim mingw compilation. Serial port is disabled,
5690           since it uses termios.h API, which is not available on native
5691           WIN32
5692
5693 2006-07-31 Borut Razem <borut.razem AT siol.net>
5694
5695         * Small Device C Compiler 2.6.0 released
5696         * support/scripts/sdcc.nsi: added FULL_DOC option
5697         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
5698
5699 2006-07-28 Borut Razem <borut.razem AT siol.net>
5700
5701         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
5702         * doc/INSTALL.txt: updated
5703
5704 2006-07-27 Borut Razem <borut.razem AT siol.net>
5705
5706         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
5707           device/lib/pic/libdev/Makefile.in: fixed bug
5708           [ 1438354 ] pic libsdcc: distclean doesn't work
5709         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
5710           device/lib/pic16/libio/Makefile.in: fixed bug
5711           [ 1438344 ] pic16 lib: clean doesn't work properly
5712         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
5713
5714 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
5715
5716         * device/lib/pic/libsdcc/fsdiv.c,
5717         * device/lib/pic/libsdcc/fsmul.c,
5718         * device/lib/pic16/libsdcc/float/fsdiv.c,
5719         * device/lib/pic16/libsdcc/float/fsmul.c,
5720         * device/lib/_fsdiv.c,
5721         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
5722         * support/regression/tests/bug1520966.c: added
5723         * doc/knownbugs.html: removed [ 1520966 ] from the list
5724
5725 2006-07-25 Borut Razem <borut.razem AT siol.net>
5726
5727         * configure.in, configure, sdccconf_in.h: fixed bug
5728           [ 1519095 ] regression test onebyte.c fails on ppc64 host
5729         * doc/knownbugs.html: removed [ 1519095 ] from the list
5730
5731 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
5732
5733         * doc/knownbugs.html: added, contains list of known bugs at release
5734         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
5735
5736 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
5737
5738         * device/include/mcs51/compiler.h: added SFRX for xdata based special
5739           function registers and corrected defaults with additional warning
5740         * device/lib/malloc.c: cosmetic changes
5741         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
5742         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
5743           (fillGaps): and used it
5744
5745 2006-07-20 Raphael Neider <rneider AT web.de>
5746
5747         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
5748           output unless SDCCPICDEBUG is set
5749         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
5750           output if SILENT is set
5751
5752 2006-07-11 Borut Razem <borut.razem AT siol.net>
5753
5754         * doc/README.txt: updated
5755
5756 2006-07-10 Borut Razem <borut.razem AT siol.net>
5757
5758         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
5759           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
5760           in WIN32 installation
5761         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
5762           release candidate 1
5763
5764 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
5765
5766         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
5767         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
5768
5769 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
5770
5771         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
5772
5773 2006-07-06 Borut Razem <borut.razem AT siol.net>
5774
5775         * support/regression/tests/bitfields.c:
5776           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
5777         * support/regression/tests/constantRange.c:
5778           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
5779
5780 2006-07-04 Borut Razem <borut.razem AT siol.net>
5781
5782         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
5783           src/port.mk,
5784           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5785           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5786           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5787           reverted changes from 2006-07-03
5788         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
5789         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
5790           added CPPFLAGS, used by the host port
5791
5792 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
5793
5794         * support/regression/valdiag/tests/switch.c,
5795         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
5796         * support/regression/tests/libmullong.c: fixed for host
5797         * support/regression/ports/host/spec.mk: disable all warnings for host,
5798         SDCC runs with --less-pedantic too
5799
5800 2006-07-03 Borut Razem <borut.razem AT siol.net>
5801
5802         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
5803           defined CPPFLAGS
5804         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
5805         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5806           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5807           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5808           include ../port.mk
5809         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
5810           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5811           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
5812           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
5813
5814 2006-07-02 Raphael Neider <rneider AT web.de>
5815
5816         * src/pic16/devices.inc,
5817         * device/include/pic16/pic18fregs.h,
5818         * device/include/pic16/pic18f4550.h,
5819         * device/lib/pic16/pics.all,
5820         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
5821
5822 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
5823
5824         * as/hc08/lkaomf51.c (OutputName),
5825         * as/mcs51/lkaomf51.c (OutputName),
5826         * as/z80/asmain.c (asmbl),
5827         * src/ds390/main.c (asmLineNodeFromLineNode),
5828         * src/hc08/ralloc.c (hc08_assignRegisters),
5829         * src/mcs51/main.c (asmLineNodeFromLineNode),
5830         * src/xa51/ralloc.c (checkRegMask),
5831         * src/xa51/gen.c (emitcode),
5832         * src/z80/gen.c (_emit2),
5833         * src/SDCCast.c (searchLitOp),
5834         * src/SDCCglobl.h,
5835         * support/packihx/packihx.c,
5836         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
5837         * src/ds390/gen.c (aopPutUsesAcc),
5838         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
5839         * support/regression/tests/libmullong.c (mullong_wrapper),
5840         * src/SDCCsymt.c (powof2),
5841         * src/SDCCast.c,
5842         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
5843         * src/SDCCsymt.h: added TYPE_TARGET_*
5844         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
5845         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
5846         SDCCast because 1) header problems 2) this is the right place
5847         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
5848         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
5849         prototype
5850
5851 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
5852
5853         * src/SDCCicode.h: removed buggy semicolon in unused macro
5854         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
5855         search for previous definiton of auto symbols too,
5856         (findPrevUse): fixed logic of emitWarnings
5857
5858 2006-06-26 Raphael Neider <rneider AT web.de>
5859
5860         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
5861           PCLATH and PCLATU on interrupts, potentially fixes #1505141
5862
5863 2006-06-25 Raphael Neider <rneider AT web.de>
5864
5865         * device/lib/pic/libm: NEW, added math library functions
5866         * device/lib/pic/libsdcc: NEW; added float support functions
5867         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
5868         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
5869           NEW, added math related headers
5870         * device/include/asm/pic/features.h: NEW
5871         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
5872           (popGet): allow larger offsets for AOP_PCODE,
5873           (genDataPointerSet): handle literals explicitly, more debug output,
5874           (genAssign): fixed for float using aopLiteral ;-)
5875         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
5876           GOTO initialisation routine
5877         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
5878           flag on registers, fixes #1469043 (local variables do not work)
5879         * src/pic/main.c (_pic14_do_link),
5880         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
5881           available
5882
5883 2006-06-25 Borut Razem <borut.razem AT siol.net>
5884
5885         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
5886           characters printed (not including the trailing '\0' used to end
5887           output to strings). Problem detected in regression test bug-927659.c.
5888           NOTE: printf() family functions should return int instead
5889           unsigned int!
5890         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
5891           specifier are printed as themselves
5892         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
5893           support flags, width and precision specifiers
5894
5895 2006-06-24 Borut Razem <borut.razem AT siol.net>
5896
5897         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
5898           to the list of sdcc tagrets not supporting bit type
5899         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
5900           testfor pic16 due to bug:
5901           [ 1511794 ] pic16: regression test bug-895992.c fails
5902
5903 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
5904
5905         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
5906         * src/SDCCglue.c (initPointer), fixed bug 1496419
5907         * support/regression/tests/bug1496419.c: new, added
5908
5909 2006-06-22 Borut Razem <borut.razem AT siol.net>
5910
5911         * support/regression/ports/pic16/support.c: use gpsim usart module from
5912           libgpsim_modules library
5913
5914 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5915
5916         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
5917         IP0H to IPH0.
5918
5919 2006-06-19 Raphael Neider <rneider AT web.de>
5920
5921         * src/pic/glue.h,src/pic16/glue.h: added prototypes
5922         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
5923           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
5924           (pic14printExterns,pic14printPublics,pic16printPublics,
5925           pic16_printExterns): use new functions to emit symbols
5926           (picglue,pic16glue): emit publics before emitting externs
5927         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
5928           locally defined functions to avoid bug #1443651
5929         * support/regression/tests/bug-716242.c: removed pic16 workaround
5930         * support/regression/ports/pic16/spec.mk: ignore errors during build
5931
5932 2006-06-19 Raphael Neider <rneider AT web.de>
5933
5934         * src/pic/glue.h: added pic14aopLiteral prototype
5935         * src/pic/glue.c (pic14aopLiteral): return unsigned int
5936         * src/pic/gen.c: removed stdint.h dependency
5937           (aopGet): use Safe_strdup()
5938           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
5939           (genDataPointerSet): use pic14aopLiteral()
5940         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
5941           for pic16; thanks to Bernhard and Maarten
5942
5943 2006-06-18 Borut Razem <borut.razem AT siol.net>
5944
5945         * support/regression/tests/structflexarray.c: flexible array members
5946           not supported by gcc < 3
5947         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
5948           GUI tool by default
5949         * src/pic/gen.c: don't include [p]strdin.h on solaris
5950         * support/Util/pstdint.h: addad svn attributes
5951         * support/regression/tests/constantRange.c,
5952           support/regression/tests/rotate.c: include inttypes.h instead
5953           stdint.h on solaris, addad svn attributes
5954
5955 2006-06-18 Raphael Neider <rneider AT web.de>
5956
5957         * src/SDCCsymt.c (initCSupport): change return type of divschar to
5958           int for PIC16
5959         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
5960           (pic16_genMinusBits): simplified sign-extension
5961           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
5962             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
5963             adjusted to correctly handle mixed-signed operands, disabled
5964             now unused multiplciation routines
5965         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
5966           (assignResultValue): added argument denoting the size of the result
5967             as returned by the function (fixes upcasts in assigning from
5968             function calls: char foo(); int i = foo();)
5969           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
5970             function result to assignResultValue
5971           (genMult): disabled inlined multiplication code
5972           (genDiv): augmented to also handle the modulus operator, fixed to
5973             handle mixed-signed operands correctly
5974           (genMod): simply call genDiv, disabled unused code
5975           (genAssign): fixed missing (sign-)extension on result
5976         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
5977             valid char operands, allow signed operands for native code, added
5978             division and modulo operator handling
5979         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
5980
5981         As a consequence, onebyte.c (if split into two files) and muldiv.c
5982         pass regression tests.
5983
5984 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5985
5986         * doc/Makefile.in: two runs of makeindex seem needed to get
5987         correct page references in the index of sdccman.pdf
5988         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
5989
5990 2006-06-17 Borut Razem <borut.razem AT siol.net>
5991
5992         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
5993
5994 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5995
5996         * doc/sdccman.lyx: updated, added (porting source code, debugging),
5997         mentioned ec2drv and paulmon
5998
5999 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
6000
6001         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
6002           consecutive abs areas
6003           (find_empty_space, allocate_space): added map to handle codemap or
6004            xdatamap,
6005           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
6006            absolute idata and xdata
6007         * as/mcs51/lkmem.c (summary2): updated legend
6008
6009 2006-06-16 Raphael Neider <rneider AT web.de>
6010
6011         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
6012
6013 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
6014
6015         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
6016           1208515
6017         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
6018
6019 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
6020
6021         * src/port.h (struct PORT): added field gp_tags, to hold the tag
6022         value of generic pointers,
6023         * src/avr/main.c,
6024           src/ds390/main.c,
6025           src/hc08/main.c,
6026           src/izt/i186.c,
6027           src/izt/tlcs900h.c,
6028           src/mcs51/main.c,
6029           src/pic/main.c,
6030           src/pic16/main.c,
6031           src/xa51/main.c,
6032           src/z80/main.c: PORT structure, added elements for gp_tags field,
6033         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
6034         fields in the PORT structure of each port,
6035         * src/SDCCast.c (decorateType): allow processing of generic pointers
6036         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
6037         S_FIXED symbols
6038
6039 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
6040
6041         * link/z80/lkgb.c,
6042         * link/z80/lkgg.c,
6043         * src/pic16/gen.c,
6044         * src/pic16/main.c,
6045         * src/pic16/pcode.c,
6046         * src/pic/main.c,
6047         * src/pic/pcoderegs.c,
6048         * src/SDCCicode.c,
6049         * src/SDCCmain.c,
6050         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
6051           bug 1504689 on minGW
6052
6053 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6054
6055         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
6056
6057 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
6058
6059         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
6060
6061 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
6062
6063         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
6064           for optimization
6065
6066 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
6067
6068         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
6069         to a char variable. Fixed bug #1504211
6070         * device/include/pic16/adc.h,
6071         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
6072         and fixed bug #1364390
6073
6074 2006-06-10 Borut Razem <borut.razem AT siol.net>
6075
6076         * CVSROOT: removed the CVS left-over
6077
6078 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
6079
6080         * as/hc08/asmain.c (asexit),
6081         * as/hc08/lkmain.c (lkexit),
6082         * as/mcs51/asmain.c (asexit),
6083         * as/mcs51/lkmain.c (lkexit),
6084         * src/SDCCglue.c (DEFSETFUNC),
6085         * src/SDCCmain.c (linkEdit, assemble),
6086         * support/librarian/sdcclib.c (AddRel),
6087           replaced unlink() by standard C remove()
6088         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
6089         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
6090           gatherImplicitVariables): new, added to fix bug 608752,
6091           (createFunction): added gatherImplicitVariables()
6092         * src/SDCCast.h: added createRMW prototype
6093         * src/SDCCsymt.h (struct symbol): added infertype
6094         * support/regression/tests/bug608752.c: new, added
6095
6096 2006-06-10 Raphael Neider <rneider AT web.de>
6097
6098         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
6099           multibyte dummy reads (fixes #1503234)
6100
6101 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
6102
6103         * device/include/mcs51/compiler.h: new, added header file to enable
6104           creating common sfr definition header files for different compilers
6105
6106 2006-06-05 Raphael Neider <rneider AT web.de>
6107
6108         * src/pic16/{pcode.h,genarith.c}:
6109           introduced pCodeOp combining any two pCodeOps (previously only
6110           two register operands could be combined), removed pcop2 from
6111           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
6112         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
6113         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
6114           rewritten to use new PO_TWO_OPS
6115         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
6116         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
6117           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
6118           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
6119           (pic16_get_op): embraced return arg to allow #define return(x),
6120             added new case for combined opcodes
6121           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
6122           (pic16_pCode2str,pic16_getRegFrompCodeOp,
6123            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
6124
6125 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
6126
6127         * src/SDCCval.c (checkConstantRange): added
6128         * src/SDCCval.h: added checkConstantRange
6129         * support/Util/SDCCerr.c,
6130         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
6131         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
6132         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
6133         * src/SDCCast.c (decorateType): added checkConstantRange,
6134         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
6135         can be emitted with the correct always true/false warning,
6136         added optimization for double '!';
6137         result of decorateType() must be assigned back to the tree, because
6138         decorateType() can change the tree
6139         * src/SDCCicode.c (geniCodeLogic),
6140         (geniCodeAssign): replaced new checkConstantRange, added warnings,
6141         (checkConstantRange): removed, it was only a fragment which never
6142         emitted a warning
6143         * src/SDCCsymt.c (computeType): fixed promotion for
6144         "-1 < (unsigned bit) b"
6145         * src/pic/ralloc.c (packRegsForAssign),
6146         * src/pic16/ralloc.c (packRegsForAssign),
6147         * src/hc08/ralloc.c (packRegsForAssign),
6148         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
6149         from mcs51
6150         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
6151         * support/regression/tests/constantRange.c: added
6152         * support/valdiag/tests/constantRange.c: added
6153         * support/valdiag/valdiag.py: added -DPORT_HOST=1
6154
6155 2006-06-02 Borut Razem <borut.razem AT siol.net>
6156
6157         * support/regression/ports/pic16/support.c: increase stack size
6158           to 255 bytes
6159         * support/regression/Makefile.in: sort tests by name so that the
6160           resutlts can be compared on different machines / platforms
6161
6162 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
6163
6164         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
6165         * src/ds390/gen.c (emitLabel): new, added,
6166           (genDjnz): fixed stack overflow bug,
6167           (throughout): cosmetic changes to sync with mcs51/gen.c,
6168           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
6169         * src/mcs51/gen.c (genEndFunction): small optimization,
6170           (throughout): cosmetic changes to sync with ds390/gen.c
6171
6172 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
6173
6174         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
6175           (_print_format): fixed printing pointers
6176         * src/mcs51/gen.c (emitLabel, movb): new, added,
6177           (genAssign): small optimization,
6178           (genDjnz): fixed stack overflow bug,
6179           (throughout): replaced sprintf with SNPRINTF,
6180           replaced mcs51_regWithIdx with REG_WITH_INDEX,
6181           replaced emitcode("mov", "b,...") with MOVB(...),
6182           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
6183           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
6184         * src/mcs51/peeph.def: added rules 140 and 264
6185         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
6186           so they may get optimized into registers
6187
6188 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
6189
6190         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
6191           immediately when encountered,
6192           (printUsage): always use stderr even on windows
6193
6194 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
6195
6196         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
6197         (processParms): fixed bug #1247551
6198         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
6199         parseCmdLine, main): print '--version' to stdout,
6200         print 'help' to stdout if --help is given,
6201         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
6202         arguments are given; fixed --help
6203
6204 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
6205
6206         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
6207         * support/regression/tests/bug-1493710.c: added
6208
6209 2006-05-27 Borut Razem <borut.razem AT siol.net>
6210
6211         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
6212           static instead auto
6213         * support/regression/ports/pic16/support.c: increase stack size
6214           from default 64 bytes to 128 bytes
6215         * support/regression/tests/staticinit.c,
6216           support/regression/tests/float.c: regression tests fully enabled
6217           for pic16 port by putting the initialized data arrays into the code
6218           section
6219         * support/regression/ports/pic16/spec.mk: don't link default libraries.
6220           This was changed by mistake in the previous version.
6221
6222 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
6223
6224         * src/pic16/gen.c (genFunction, genEndFunction): some
6225         beautifications, fixed bug with falsely restoring FSR2 in large
6226         stack model, thanks to Beau E. Cox for reporting the bug
6227
6228 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
6229
6230         * debugger/mcs51/break.c,
6231         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
6232           use %p to print pointers, made address variables unsigned
6233         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
6234         * debugger/mcs51/symtab.c (parseSymbol): must return something
6235         * src/mcs51/gen.c (aopForSym): small optimization,
6236            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
6237           (freeAsmop): added missing break,
6238           (aopPut): removed parameter bvolatile, determine it inside the function,
6239           (saveRegisters, unsaveRegisters): small optimization,
6240           (genIpush): removed pointless check,
6241           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
6242           replaced sprintf with SNPRINTF,
6243           replaced strcpy with strncpyz,
6244           updated aopPut calls,
6245           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
6246         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
6247
6248 2006-05-24 Borut Razem <borut.razem AT siol.net>
6249
6250         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
6251           modification of test for the pic16 port, put the array to the code
6252           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
6253
6254 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
6255
6256         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
6257         * support/Util/pstdint.h: added
6258
6259 2006-05-22 Borut Razem <borut.razem AT siol.net>
6260
6261         * src/regression/Makefile: removed bool2.c test, added -q linker option
6262         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
6263           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
6264           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
6265           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
6266           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
6267           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
6268           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
6269           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
6270           define SUPPORT_BIT_TYPES 0, removed unused bit variables
6271
6272 2006-05-22 Raphael Neider <rneider AT web.de>
6273
6274         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
6275           bug #1492360 (problematic due to generic pointers, see code)
6276
6277 2006-05-22 Borut Razem <borut.razem AT siol.net>
6278
6279         * support/regression/ports/pic16/specs.mk: removed stack size linker
6280           directive
6281         * support/regression/tests/array.c,
6282           support/regression/tests/bitopcse.c,
6283           support/regression/tests/bug-908454.c,
6284           support/regression/tests/malloc.c: modified for pic16 regression test
6285         * support/regression/tests/bitfields.c:
6286           pic16 - excluded bitfileds of size > 8
6287         * support/regression/tests/bp.c: pic16 - reduced data size
6288         * support/regression/tests/bug-221100.c: pic16 - reduced data size
6289         * support/regression/tests/bug-460010.c:
6290           pic16 - used the absolute address the fits in memory
6291         * support/regression/tests/bug-716242.c:
6292           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
6293         * support/regression/tests/float.c:
6294           pic16 - excluded - data size too big
6295         * support/regression/tests/onebyte.c:
6296           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
6297         * support/regression/tests/shifts.c:
6298           pic16 - function names probably have to differ in first X characters
6299           (gpasm limitation?)
6300         * support/regression/tests/staticinit.c:
6301           pic16 - excluded some tests due error: no target memory available for
6302           section ".idata"
6303
6304 2006-05-22 Borut Razem <borut.razem AT siol.net>
6305
6306         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
6307           second try. Thanks Stas Sergeev once more.
6308
6309 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
6310
6311         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
6312           (genLeftShift, genRightShift): fixed bug 1491627
6313         * src/hc08/peeph.def (rules 7, 8.x): added
6314         * support/regression/tests/shifts.c (ShiftLeftByParam,
6315           ShiftRightByParam, testShiftByParam): added to test variable shifting
6316
6317 2006-05-20 Raphael Neider <rneider AT web.de>
6318
6319         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
6320         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
6321           (allocReg): add only new registers to dynAllocRegs,
6322           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
6323             #1489055, #1445850, and probably #1483693
6324
6325 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
6326
6327         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
6328         bug in for-loop that didn't emit the last of CONFIG and ID registers
6329
6330 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
6331
6332         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
6333           with offset
6334         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
6335           1489016, 1434401 and 1490124
6336         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
6337           1489016, 1434401 and 1490124
6338
6339 2006-05-17 Borut Razem <borut.razem AT siol.net>
6340
6341         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
6342           thanks Stas Sergeev
6343
6344 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
6345
6346         * device/include/mcs51/P89c51RD2.h,
6347         * device/include/mcs51/P89LPC901.h,
6348         * device/include/mcs51/P89LPC922.h,
6349         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
6350
6351 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6352
6353         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
6354         to fix missing stack pragma in compiled binary object file,
6355
6356 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
6357
6358         * support/packihx/configure.in,
6359         * support/packihx/configure: removed warning, autoconf >= 2.5x can
6360         determine sizeof basic types even while cross compiling
6361
6362 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
6363
6364         * src/avr/gen.c (aopop),
6365         * src/ds390/gen.c (aopOp),
6366         * src/hc08/gen.c (aopOp),
6367         * src/mcs51/gen.c (aopop),
6368         * src/pic16/gen.c (pic16_aopOp),
6369         * src/pic/gen.c (aopOp),
6370         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
6371         if size of operand is smaller than spill location
6372
6373 2006-05-12 Borut Razem <borut.razem AT siol.net>
6374
6375         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
6376           have to have CR/LF line endings even if they are checked out on *nix
6377           or on WIN32 in cygwin binmode
6378
6379 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
6380
6381         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
6382         * device/include/ds80c390.h: added sfr16 definitions
6383         * src/ds390/gen.c,
6384         * src/ds390/gen.h,
6385         * src/ds390/main.c,
6386         * src/ds390/ralloc.c,
6387         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
6388           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
6389           bit returning functions
6390         * support/regression/tests/sfr16.c: enabled test on ds390
6391
6392 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6393
6394         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
6395         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
6396
6397 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
6398
6399         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
6400         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
6401           (cl_address_space constructor): removed expensive initialization,
6402           (cl_address_space::get_cell): extended for late initialization,
6403           (cl_address_space::*): use late initialization,
6404           (cl_address_decoder::activate): removed expensive initialization,
6405           This reduced regression test running time by 25%
6406
6407 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
6408
6409         * packihx/,
6410         * configure.in,
6411         * configure,
6412         * sdcc.dsw,
6413         * Makefile.bcc,
6414         * Makefile.in,
6415         * support/packihx/Makefile.in,
6416         * support/packihx/clean.mk,
6417         * support/packihx/Makefile.bcc,
6418         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
6419
6420 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6421
6422         * src/SDCCval.c (valNot): fix for regression test failure
6423           of not.c on big endian hosts
6424
6425 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
6426
6427         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
6428
6429 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6430
6431         * device/lib/mcs51/Makefile.in: changed string comparison operator
6432           to = for POSIX compliance; == is bash extension
6433
6434 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
6435
6436         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
6437           kosmonaut_pirx
6438
6439 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
6440
6441         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
6442         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
6443         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
6444         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
6445         bug report #1478657,
6446
6447 2006-05-05 Borut Razem <borut.razem AT siol.net>
6448
6449         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
6450           making the html
6451
6452 2006-05-02 Borut Razem <borut.razem AT siol.net>
6453
6454         * doc/Makefile.in: removed *.ind dependency since there is no rule to
6455           create *.ind, which made make to fail if invoked with -j 2
6456
6457 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
6458
6459         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
6460           Hubert Sack for patch 1479782
6461
6462 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
6463
6464         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
6465
6466 2006-05-01 Raphael Neider <rneider AT web.de>
6467
6468         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
6469           (create_pic): store only prefix-free device name,
6470           (init_pic): check for device names with "16" prefix,
6471           (list_valid_pics),
6472         * src/pic/device.h (struct PIC_device),
6473         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
6474             stored device name,
6475         * device/include/pic/pic12f{635,675,629,683}.h,
6476         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
6477         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
6478         * device/include/pic/pic16f505.h,
6479         * device/lib/pic/libdev/pic16f505.c: removed
6480         * device/include/pic/pic14devices.txt: added support for pic12f
6481             devices, removed unsupported non 16-bit devices
6482             [above changes provided by patch from Zik Saleeba]
6483         * src/pic/*, src/pic16/*, device/include/pic16/*,
6484           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
6485
6486 2006-05-01 Borut Razem <borut.razem AT siol.net>
6487
6488         * configure.in, configure, doc/Makefile.in:
6489           sync with nightly build makefile - latex, dvipdf and dvips
6490           not needed any more
6491
6492 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
6493
6494         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
6495         in the library source
6496
6497 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
6498
6499         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
6500
6501 2006-04-28 Raphael Neider <rneider AT web.de>
6502
6503         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
6504         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
6505           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
6506         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
6507
6508 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
6509
6510         * device/lib/pic/libdev/Makefile.in,
6511         * device/lib/hc08/Makefile.in,
6512         * device/lib/gbz80/Makefile.in,
6513         * device/lib/z80/Makefile.in,
6514         * device/lib/ds390/Makefile.in,
6515         * device/lib/ds400/Makefile.in: added srcdir to include search path,
6516         thanks to Borut for the bug report
6517         * configure.in,
6518         * configure: always create doc/Makefile independent from --enable-doc
6519         * Makefile.in: always install from directory doc independent from
6520         --enable-doc
6521         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
6522         removed
6523         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
6524         * doc/Makefile.in: install *.txt if present
6525         * device/include/Makefile.in (install): added installation of pic/*.inc
6526         and pic/*.txt files again, they were erroneously removed
6527
6528 2006-04-28 Raphael Neider <rneider AT web.de>
6529
6530         * src/pic/{gen.c,main.h,pcode.c},
6531         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
6532             concerning signedness with casts
6533
6534 2006-04-28 Raphael Neider <rneider AT web.de>
6535
6536         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
6537             definition of an interrupt handler,
6538         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
6539             interrupt handler stuff from picglue() to separate routine,
6540           (picglue): enabled definition of intr handlers in files w/o main()
6541
6542 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6543
6544         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
6545           compilation with MSVC 2005 Express Edition (VC8)
6546
6547 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
6548
6549         * device/lib/Makefile: fixed build of gbz80 lib
6550
6551 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6552
6553         * support/regression/tests/bug-460010.c,
6554         * support/regression/tests/bug-524691.c,
6555         * support/regression/tests/bug-716242.c: removed conditional defines
6556           that are already in testfwk.h
6557
6558 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
6559
6560         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
6561           (AccAXRsh1): added, shift right by 1,
6562           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
6563            AccAXLrl1
6564         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
6565
6566 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
6567
6568         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
6569         remove cast to same type
6570         * src/SDCCast.c (decorateType): fix for RFE 1475742,
6571         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
6572         * as/z80/Makefile,
6573         * link/z80/Makefile: removed, they have moved to
6574         Makefile.in files
6575         * configure,
6576         * configure.in: replaced duplicate message about ucsim by missing sdcpp
6577         * install-sh: fix bug #1204398 by setting umask 0022
6578         * device/lib/Makefile: separate build of z80 and gbz80 lib
6579
6580 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
6581
6582         Enabled VPATH feature: changed nearly all Makefiles (149 files).
6583         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
6584
6585         One basic decision: e.g. src/clean.mk includes further files. In order
6586         to make this work there are two solutions:
6587         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
6588           run configure on them. This way they can use
6589           'include $(srcdir)/port-clean.mk'
6590         - always include clean.mk by the Makefile at the same level. To avoid
6591           that `make clean` tries to include and build Makefile.dep the
6592           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
6593           implemented, because now even `make uninstall` doesn't create
6594           Makefile.in. clean.mk could be eliminated by pasting it in
6595           Makefile.in.
6596
6597         * debugger/mcs51/Makefile.in: build own objects from library sources
6598         (SLIB, SDCC) in current directory
6599
6600         * configure, configure.in: renamed --disable-device-lib-build in
6601         --disable-device-lib; added --enable-doc, the required tools are
6602         searched by configure; added result message; the toolchain for the
6603         belonging ports are now only built, if the port is enabled.
6604
6605         * support/regression/*: all output is written in directory gen, because
6606         the fwk and ports directories don't livet in the build tree using vpath
6607
6608         * doc/sdccman.lyx: renamed --disable-device-lib-build to
6609         --disable-device-lib, added --enable-doc, added section VPATH
6610
6611         * sim/ucsim/configure.in,
6612         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
6613         z80 are enabled by default
6614
6615 2006-04-24 Raphael Neider <rneider AT web.de>
6616
6617         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
6618             to config word, "pic14_"-prefixed some extern functions
6619           (pic14_emitConfigWord): emit __config directive(s) if assignment to
6620             config word has been found
6621         * src/pic/device.h: added prototypes
6622         * src/pic/pcode.c: added "pic14_"-prefix where needed
6623         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
6624             fixup
6625         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
6626             words,
6627           (pic14emitRegularMap): ignore config words,
6628           (pic14createInterruptVect): moved generating __config directives away
6629           (picglue): have __config directives emitted
6630
6631 2006-04-24 Borut Razem <borut.razem AT siol.net>
6632
6633         * doc/Makefile: sync with nightly build makefile
6634
6635 2006-04-24 Raphael Neider <rneider AT web.de>
6636
6637         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
6638             registers that have not been assigned proper liveranges,
6639             fixes #1469504 and #1474602,
6640           (pCodeRegOptimizeRegUsage): fixed typo in comment
6641
6642 2006-04-24 Borut Razem <borut.razem AT siol.net>
6643
6644         * device/examples/main8051.c: deleted - it was removed from CVS
6645           24.mar.2000 and after that modified 18.feb.2001, so it reappered
6646           after the transition to Subversion
6647         * src/SDCCalloc.h: deleted - it was removed  from CVS
6648           3.feb.2001 and after that modified 18.feb.2001, so it reappered
6649           after the transition to Subversion
6650         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
6651           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
6652           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
6653           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
6654
6655 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
6656
6657         * as/asx8051.dsp: added mcs51/strcmpi.h
6658         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
6659         * as/hc08/aslink.h: updated lnksect prototype
6660         * as/hc08/asm.h,
6661         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
6662         * as/hc08/asmain.c,
6663         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
6664           (newdot): handle A_ABS
6665         * as/hc08/asout.c,
6666         * as/mcs51/asout.c (outarea): output address
6667         * as/hc08/lkaomf51.c,
6668         * as/mcs51/lkaomf51.c: disabled unused array UsageType
6669         * as/hc08/m08pst.c,
6670         * as/mcs51/i51pst.c,
6671         * as/z80/z80pst.c: "ABS" is not A_OVR
6672         * as/hc08/lkarea.c (newarea): read a_addr,
6673           (lnkarea): added codemap array, sort absolute areas to the front,
6674            combine all GSINITx/GSFINAL,
6675           (find_empty_space, allocate_space): new functions,
6676           (lnksect): return next address, handle absolute sections
6677         * as/mcs51/lkarea.c (newarea): read a_addr,
6678           lnksect2 prototype changed,
6679           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
6680           (find_empty_space, allocate_space): new, factored out of lnksect2,
6681           (lnksect2): return next address, handle absolute sections
6682         * as/hc08/lkhead.c,
6683         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
6684         * as/hc08/lklibr.c (addfile, fndsym),
6685         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
6686           index out of range and detect both '\' and '/'
6687         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
6688         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
6689           regression tests (ds390 cannot return bool yet)
6690         * doc/sdccman.lyx: changed version number, document changed --no-peep,
6691           document critical interrupts on z80, document changed SDCC define
6692         * src/asm.c (_asxxxx_mapping): fixed .org directive,
6693           (_a390_mapping): added .org directive
6694         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
6695           (genMultOneByte): fixed warnings
6696         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
6697           ones
6698         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
6699         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
6700           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
6701         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
6702         * src/pic16/main.c: removed newReg prototype
6703         * src/pic16/pcode.c,
6704         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
6705           warnings
6706         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
6707           ones
6708         * src/pic16/ralloc.c
6709         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
6710           to fix warnings
6711         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
6712           from short to PIC_OPTYPE
6713         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
6714         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
6715           optype from short to PIC_OPTYPE
6716         * src/port.h: made int_size unsigned to fix warnings
6717         * src/SDCC.y: fixed warning on MSVC
6718         * src/SDCCicode.c (getArraySizePtr): return unsigned int
6719         * src/SDCCopt.c (convertToFcall): fixed warnings
6720         * src/SDCCsymt.h: removed double prototype for genSymName
6721         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
6722           offset int to fix warnings
6723
6724 2006-04-22 Borut Razem <borut.razem AT siol.net>
6725
6726         * doc/sdccman.lyx, */Makefile, */Makefile.in:
6727           references to CVS replaced with Subversion
6728
6729 2006-04-21 Borut Razem <borut.razem AT siol.net>
6730
6731         * doc/sdccman.lyx, */Makefile, */Makefile.in:
6732           references to CVS replaced with Subversion
6733
6734 2006-04-19 Borut Razem <borut.razem AT siol.net>
6735
6736         * src/version.awk: adapted for svn
6737         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
6738           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
6739           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
6740           /binutils-avr/etc/*.vi, *.jin: removed all properties
6741           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
6742
6743 2006-04-19 Borut Razem <borut.razem AT siol.net>
6744
6745         * CVS to Subversion migration completed
6746
6747 2006-04-18 Borut Razem <borut.razem AT siol.net>
6748
6749         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}/lib/pic/*.o,
6750           ${DEV_ROOT}/lib/src/pic/libdev/*.S, ${DEV_ROOT}/lib/src/pic/libdev/*.inc
6751
6752 2006-04-17 Borut Razem <borut.razem AT siol.net>
6753
6754         * device/include/Makefile.in: added pic/*.inc to the installation
6755
6756 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
6757
6758         * support/regression/collate-results.py: fixed output in case of
6759         a valdiag error
6760         * support/regression/generate-cases.py: fixed splitting of pathnames
6761         with dots
6762         * as/hc08/lklibr.c (addfile),
6763         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
6764
6765 2006-04-11 Raphael Neider <rneider AT web.de>
6766
6767         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
6768         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
6769         * src/pic16/pcode.c (assignValnums): fixed #1460578
6770
6771 2006-04-11 Raphael Neider <rneider AT web.de>
6772
6773         * device/lib/pic/libdev/*.c,
6774         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
6775           fixes #1468739, enables compilation in --std-c99 mode
6776         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
6777
6778 2006-04-11 Raphael Neider <rneider AT web.de>
6779
6780         * src/pic/device.c (find_device): removed debug output
6781           (list_valid_pics): enabled verbose listing of supported devices
6782         * device/include/stdbool.h: define bool as char for pic14/16 as well
6783
6784 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6785
6786         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
6787
6788 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6789
6790         * .version: bumped version to 2.5.6
6791         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
6792
6793 2006-04-06 Raphael Neider <rneider AT web.de>
6794
6795         * .version: bumped version to 2.5.6 (pic14 ABI changed)
6796         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
6797         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
6798           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
6799             pic14_constructAbsMap
6800           (pic14printPublics): declare absolute global symbols as global
6801           (pic14createInterruptVect),
6802         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
6803           (newReg): assume new registers unused, use correct name in
6804             hashtable (reg->name instead of name), more debugLog output
6805         * src/pic/device.h (PIC_device): added fields for verbose output
6806         * src/pic/device.c: moved device definition to pic14devices.txt,
6807             added routines for runtime parsing of pic14devices.txt,
6808             added support for second config word
6809         * src/pic/main.c (_process_pragma): removed #pragma maxram,
6810           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
6811           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
6812           (_pic14_parseOptions): moved pCodeInitRegisters here
6813           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
6814         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
6815           (pCodeInitRegisters): rewrapped comments, perpared new approach to
6816             handling the pseudo stack
6817         * device/lib/Makefile.in: ignore failures in objects-pic16,
6818         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
6819         * device/lib/pic/NEWS: document new dependency on picXXX.lib
6820         * device/lib/pic/Makefile.subdir,
6821         * device/lib/pic16/Makefile.subdir: improved clean rules
6822         * device/lib/pic/libdev/: NEW, pic14 device libraries
6823         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
6824         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
6825         * device/include/Makefile.in: create subdir and install pic14 headers
6826         * device/include/pic/p16f_common.inc: removed unused declarations
6827         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
6828             PICs from inc2h.pl v1.6,
6829             replaced BIT_AT macros with struct declarations
6830         * device/include/pic/pic14devices.txt: definition of supported devices,
6831             all above improvements contributed by Zik Saleeba, thanks
6832         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
6833         * support/scripts/sdcc.nsi: also install pic14 device libraries and
6834             headers
6835
6836 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6837
6838         * device/include/mcs51/c8051f410.h: added interrupt numbers,
6839         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
6840           thanks to Charles Olds
6841
6842 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6843
6844         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
6845
6846 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6847
6848         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
6849         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
6850         * support/regression/bug1464657.c: added, new test
6851
6852 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6853
6854         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
6855           version number
6856
6857 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6858
6859         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
6860           --no-peep and --peep-file <file> are used don't use default rules but
6861           do use the <file>
6862
6863 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6864
6865         * src/mcs51/gen.c (genCall): fixed bug 1457608
6866
6867 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6868
6869         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
6870         changes seem to cause (trigger?) problems with the build system.
6871
6872 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
6873
6874         * src/SDCCpeeph.c (operandsLiteral): new, added,
6875           (callFuncByName): inserted operandsLiteral
6876         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
6877
6878 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6879
6880         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
6881         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
6882
6883 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
6884
6885         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
6886           implemented patch 1120823 Thanks to Willy De la Court (normal
6887           interrupts need an interrupt number now if they are made critical),
6888           and enabled nesting of critical functions though not for gbz80
6889           (genCritical, genEndCritical): added functions
6890           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
6891         * src/z80/mappings.i: added "ei" to all mappings
6892
6893 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6894
6895         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
6896         submitted by the Debian SDCC maintainer Aurelien Jarno:
6897         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
6898         archive with gcc 4.1 on mips and wrote the patch"
6899
6900 2006-03-16 Raphael Neider <rneider AT web.de>
6901
6902         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
6903           the left operand is shorter than the result (c* = lit-c* + int),
6904           fixes bug #1450796
6905         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
6906           OP_SYMBOL
6907
6908 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6909
6910         * src/.version: increased version number to 2.5.5
6911         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
6912         linking is done manually in pic16 port's _linkEdit,
6913         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
6914         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
6915         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
6916         allocate asmop as AOP_ACC,
6917         (aopForRemat): added parameter 'bool result' in function declaration,
6918         (pic16_aopGet): return AOP_ACC when accessing WREG,
6919         (pic16_popGetTempReg): minor modification,
6920         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
6921         'pic16_allocWithIdx',
6922         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
6923         calling function in absolute addresses,
6924         (genAssign): take into account AOP_ACC asmop,
6925         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
6926         * src/pic16/pcoderegs.c: some debug functions and lines added,
6927         * src/pic16/ralloc.c (decodeRegType): added but commented out,
6928         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
6929         register too,
6930         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
6931         call to allocReg, not by manually allocating a new one,
6932         (pic16_assignRegisters): now before going through the register
6933         allocating functions mark all registers as free. This eliminates some
6934         side effects resulting from peephole parser done earlier in the backbone
6935
6936 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
6937
6938         * src/SDCCicode.c (geniCodeLogic),
6939         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
6940
6941 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
6942
6943         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
6944           (genSend): bugfix, do not allocate and free twice,
6945           (shiftRLong): handle partially overlapping aops
6946         * support/regression/tests/bitopcse.c: fixed warning redefined idata
6947
6948 2006-03-08 Borut Razem <borut.razem AT siol.net>
6949
6950         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
6951           for pic16
6952
6953 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
6954
6955         * support/regression/tests/bug1409955.c: new, added
6956         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
6957         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
6958           (aopForSym, aopOp): increment asmop.allocated if reused,
6959           (freeAsmop): decrement asmop.allocated and check for zero instead of
6960           using asmop.freed,
6961           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
6962           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
6963            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
6964            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
6965            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
6966            genSignedRightShift, genRightShift, genDataPointerGet,
6967            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
6968            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
6969             in reverse order from allocation,
6970           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
6971             added swappedLR to keep track
6972         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
6973           pdata & code for GCC, z80, gbz80 & hc08
6974         * support/regression/tests/zeropad.c: moved defines to testfwk.h
6975
6976 2006-03-08 Raphael Neider <rneider AT web.de>
6977
6978         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
6979
6980 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
6981
6982         * device/include/mcs51/c8051f410.h: new SiLabs mcu
6983         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
6984         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
6985
6986 2006-03-06 Borut Razem <borut.razem AT siol.net>
6987
6988         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
6989           made the linker quiet
6990
6991 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
6992
6993         * src/pic16/gen.c (genPcall): fixed bug #1443644
6994         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
6995         which dumps before the function entry point a data byte which represents
6996         the number of the local variables used by the specified function, added
6997         'xinst' for initial support for Extended Instruction Support,
6998         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
6999         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
7000         port->fun_prefix anymore (may change later),
7001         (genFunction, genEndFunction): do not store/restore local registers for
7002         _main (this should take care the --main-return command line option in
7003         the future),
7004         (genOr): removed some legacy pic-port instructions,
7005         * src/pic16/genarith.c (genAddLit): re-enabled old code because
7006         performing operations with SFR's causes data to be written more than
7007         once to each SFR. Perhaps SFRs should be handled in special cases...
7008         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
7009         pcode.h
7010         * src/pic16/main.c (_process_pragma): stack bound checking did not take
7011         into account for stack starting position,
7012         (struct OPTIONS pic16_optionsTable): added command line argument
7013         --extended or -y for Extended Instruction Support,
7014         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
7015         (deassignLRs): *** perhaps the most important change, old 'for' code
7016         (commented out for reference), didn't account for some registers which
7017         were left marked 'not free' after a pointer operation. The change
7018         reduces register usage a lot in some cases
7019
7020 2006-03-04 Borut Razem <borut.razem AT siol.net>
7021
7022         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
7023           _clean
7024         * support/regression/tests/bug-524697.c: decreased array size for
7025           mcs51 to fit into the internal RAM
7026         * support/regression/Makefile.in: a little bit more verbose
7027
7028 2006-03-03 Borut Razem <borut.razem AT siol.net>
7029
7030         * support/regression/fwk/lib/testfwk.c,
7031           support/regression/fwk/include/testfwk.h: introduced function
7032           _prints(), nonrecursive _printn(), call _initEmu() from main()
7033         * support/regression/ports/gbz80/support.asm,
7034           support/regression/ports/ucz80/support.asm,
7035           support/regression/ports/z80/support.asm,
7036           support/regression/ports/ds390/support.c,
7037           support/regression/ports/hc08/support.c,
7038           support/regression/ports/host/support.c,
7039           support/regression/ports/mcs51/support.c,
7040           support/regression/ports/xa51/support.c: added empty _initEmu()
7041           function
7042         * support/regression/ports/pic16/gpsim.cmd,
7043           support/regression/ports/pic16/spec.mk,
7044           support/regression/ports/pic16/support.c,
7045           support/regression/Makefile.in: added pic16 regression test
7046
7047 2006-03-01 Raphael Neider <rneider AT web.de>
7048
7049         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
7050           genConstPointerGet): use safe way of generating MOVFF to cover
7051             literals as well as registers, fixes bug #1440527
7052         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
7053             dereference
7054           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
7055             more correctly, fixes bug #1232186
7056           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
7057         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
7058             gplink guess the correct processor in more cases, applied patch
7059             from Till Riedel attached to and fixing bug #1436552
7060
7061 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7062
7063         * support/regression/tests/array.c: added, contains check for #1434401
7064         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
7065
7066 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
7067
7068         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
7069         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
7070         * device/include/mcs51/c8051f326.h,
7071         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
7072         * device/include/mcs51/c8051f000.h,
7073         * device/include/mcs51/c8051f018.h,
7074         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
7075           PCON_IDLE,PCON_STOP and added sfr16 definitions
7076
7077 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
7078
7079         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
7080           genGetWord): fixed bug 1409955
7081
7082 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
7083
7084         * device/include/hc08/mc68hc908gp32.h,
7085         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
7086
7087 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
7088
7089         * src/SDCCast.c (constExprValue): return NULL if not a value
7090         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
7091         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
7092         * support/regression/tests/bitfields.c: enabled signed bitfield for all
7093
7094 2006-02-13 Borut Razem <borut.razem AT siol.net>
7095
7096         * src/regression/ptrarg.c: added, fails due to bug #1430967
7097         * src/regression/Makefile: ptrarg.c added, ...
7098
7099 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
7100
7101         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
7102         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
7103
7104 2006-02-11 Borut Razem <borut.razem AT siol.net>
7105
7106         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
7107           print "Processor: xxx" message to stdout only if --verbose
7108
7109 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
7110
7111         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
7112         * support/regression/tests/bug1426356.c: added
7113         * support/regression/tests/bitfields.c: removed 2 tests
7114
7115 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
7116
7117         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
7118         * device/include/mcs51/c8051f330.h,
7119         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
7120           PCON_IDLE,PCON_STOP and added sfr16 definitions
7121         * device/lib/_divsint.c,
7122         * device/lib/_divuint.c,
7123         * device/lib/_divulong.c,
7124         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
7125           register bank bug for small stackauto
7126
7127 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
7128
7129         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
7130
7131 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
7132
7133         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
7134         * all.dsp: corrected several bin paths
7135         * device/include/mcs51/c8051f120.h,
7136         * device/include/mcs51/c8051f300.h,
7137         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
7138           to PCON_IDLE,PCON_STOP
7139         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
7140         * device/lib/printf_large.c (output_float): fixed bug 1388703
7141         * support/regression/tests/bug1057979.c: added test for bug 1388703
7142
7143 2006-02-08 Raphael Neider <rneider AT web.de>
7144
7145         * src/pic/pcode.c (pciTRIS): fixed typo,
7146           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
7147           (LinkFlow): fixed handling of flows that end in a call,
7148           (ReuseReg): perform safety check earlier
7149         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
7150             to work with flows at the beginning of a pBlock,
7151             fixes #1426557 (Symbol not previously defined),
7152           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
7153             usage information
7154           (RemoveUnusedRegisters): update register usage info
7155         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
7156             created, reuse existing ones instead
7157         * src/pic/gen.c (genPcall): fixed #1424719
7158
7159 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
7160
7161         * link/z80/lkmain.c,
7162         * link/z80/lklex.c,
7163         * link/z80/lkdata.c,
7164         * link/z80/aslink.h: fixed build on current cygwin:
7165         replaced getline() by lk_getline()
7166
7167 2006-02-01 Borut Razem <borut.razem AT siol.net>
7168
7169         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
7170           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
7171           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
7172           src/regression/bool1.c, src/regression/bool2.c,
7173           src/regression/bool3.c, src/regression/call1.c,
7174           src/regression/compare.c, src/regression/compare10.c,
7175           src/regression/compare2.c, src/regression/compare3.c,
7176           src/regression/compare4.c, src/regression/compare5.c,
7177           src/regression/compare6.c, src/regression/compare7.c,
7178           src/regression/compare8.c, src/regression/compare9.c,
7179           src/regression/configword.c, src/regression/for.c,
7180           src/regression/inline.c, src/regression/mult1.c,
7181           src/regression/nestfor.c, src/regression/or1.c,
7182           src/regression/pointer1.c, src/regression/ptrfunc.c,
7183           src/regression/rotate1.c, src/regression/rotate2.c,
7184           src/regression/rotate3.c, src/regression/rotate4.c,
7185           src/regression/rotate5.c, src/regression/rotate6.c,
7186           src/regression/rotate7.c, src/regression/string1.c,
7187           src/regression/struct1.c, src/regression/sub.c,
7188           src/regression/sub2.c, src/regression/switch1.c,
7189           src/regression/while.c, src/regression/xor.c,
7190           src/regression/create_stc, src/regression/simulate,
7191           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
7192           regression tests
7193         * src/regression/gpsim_assert.h: added
7194
7195 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
7196
7197         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
7198         ((void (code *) (void)) 0) ();
7199         * as/hc08/aslex.c,
7200         * as/hc08/aslink.h,
7201         * as/hc08/asm.h,
7202         * as/hc08/asmain.c,
7203         * as/hc08/lkdata.c,
7204         * as/hc08/lklex.c,
7205         * as/hc08/lkmain.c,
7206         * as/mcs51/aslex.c,
7207         * as/mcs51/aslink.h,
7208         * as/mcs51/asm.h,
7209         * as/mcs51/asmain.c,
7210         * as/mcs51/lkdata.c,
7211         * as/mcs51/lklex.c,
7212         * as/mcs51/lkmain.c,
7213         * as/z80/aslex.c,
7214         * as/z80/asm.h,
7215         * as/z80/asmain.c: fixed build on current cygwin:
7216         replaced getline() by as_getline()
7217
7218 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
7219
7220         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
7221         declarator in the symbol chain
7222         * src/SDCCsymt.h,
7223         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
7224         parameter list for function pointers
7225         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
7226         * support/regression/tests/bug-716242.c: added
7227
7228 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
7229
7230         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
7231         offset if possible
7232         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
7233
7234 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
7235
7236         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
7237         inifinitely recurseable, added static
7238         * support/regression/tests/bug-1408066.c: added
7239
7240 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
7241
7242         * src/SDCCicode.h,
7243         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
7244         renamed, added possibility to create "postLoopLbl"-labels
7245         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
7246         newiTempLoopHeaderLabel
7247         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
7248         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
7249         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
7250         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
7251         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
7252         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
7253         (basicInduction): fixed bug #136564, made static,
7254         (loopInduction): changed parameter of basicInduction, made static,
7255         (addPostLoopBlock): added
7256         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
7257         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
7258         findLoopEndSeq
7259         * support/regression/tests/bug-136564.c: added
7260         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
7261         --std-sdcc99 to LIBSDCCFLAGS
7262
7263 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
7264
7265         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
7266         while loop
7267         * support/regression/tests/bug-1406131.c: added
7268
7269 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
7270
7271         * src/SDCCast.c (decorateType): fix promotion of unary minus
7272         * src/SDCCsymt.c (computeType): beautified
7273         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
7274         (valUnaryPM, valComplement): fix sign and promotion,
7275         (valNot): ANSI: result type is int (SDCC: unsigned char)
7276         * support/regression/tests/uminus.c: speedup by removing superflous
7277         test case 'int'
7278         * support/regression/tests/onebyte.c: added promotion and signedness
7279         tests for unary minus
7280         * support/regressions/tests/bug-477927.c: disable warning about
7281         uninitialized variables
7282         * support/regression/tests/not.c: added
7283
7284 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
7285
7286         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
7287         * src/mcs51/gen.c (gen51Code): show final register usage after
7288         fillGaps in asm with --i-code-in-asm
7289         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
7290         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
7291         incUsed, rliveClear, adjustIChain): made static,
7292         (setFromRange): excluded because it's unused,
7293         (findPrevUseSym, markWholeLoop): added,
7294         (findPrevUse): rewritten; fixes bug 895992; now a complete search
7295         through all branches of predecessors enables sdcc to emit the warning
7296         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
7297         (rlivePoint): made static, added parameter emitWarnings which is only
7298         true during the first run out of two,
7299         (findRecursiveSucc, findRecursivePred): removed,
7300         (computeLiveRanges): made static, added parameter emitWarnings,
7301         (dumpIcRlive): added for debugging only
7302         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
7303         removed prototype of setFromRange()
7304         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
7305         in call of computeLiveRanges()
7306         * support/regression/tests/bug-895992.c: added
7307         * support/regression/tests/bug-971834.c: added
7308         * support/valdiag/tests/bug-895992.c: added
7309         * support/valdiag/tests/bug-971834.c: added
7310
7311 2005-12-18 Raphael Neider <rneider AT web.de>
7312
7313         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
7314           (genUnpackBits): improved code for direct operands,
7315           (genPackBits): improved code for literal assignment to bitfields
7316             and for direct destination operands (no FSR indirection),
7317             prevented redundant AND, fixes #1362800,
7318           (AccLsh): added parameter to disable masking of the result
7319         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
7320           skip instructions with side-effects (like incfsz),
7321           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
7322         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
7323         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
7324           fixes #1375263
7325
7326 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
7327
7328         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
7329         volatile variables as spill location
7330
7331 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
7332
7333         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
7334         replacing literals
7335         * support/regression/tests/bug-1376320.c: added
7336
7337 2005-12-08 Raphael Neider <rneider AT web.de>
7338
7339         * src/pic/device.c: renamed is_shared to pic14_is_shared
7340         * src/pic/gen.c (genIfx): re-enabled handling of sbits
7341         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
7342           (is_valid_identifier): added for above workaround
7343
7344 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
7345
7346         * device/lib/Makefile.in: fixed to enable port-specific-objects
7347         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
7348           char, thanks Hubert Sack
7349         * doc/sdccman.lyx: documented --xstack-loc,
7350           elaborated a bit more on interrupts and pitfalls,
7351           removed "setjmp/longjmp unsupported",
7352           documented some unsupported C99 features
7353         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
7354         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
7355           if, thanks Hubert Sack
7356         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
7357         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
7358           make make_library
7359         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
7360           regression tests can report resource usage (rfe 700441)
7361         * support/regression/collate-results.py: report resource usage
7362         * support/regression/ports/ds390/spec.mk,
7363         * support/regression/ports/hc08/spec.mk,
7364         * support/regression/ports/mcs51/spec.mk,
7365         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
7366         * support/regression/ports/ds390/uCsim.cmd,
7367         * support/regression/ports/hc08/uCsim.cmd,
7368         * support/regression/ports/mcs51/uCsim.cmd,
7369         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
7370         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
7371           library, use the default one
7372         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
7373           building the library
7374
7375 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
7376
7377         * config.dsp: added dependency on .version and configure_vc.awk
7378         * device/include/setjmp.h: updated for --stack-auto and --xstack
7379         * device/include/mcs51/at89c51snd1c.h: corrected line endings
7380         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
7381         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
7382         * device/lib/libsdcc.lib: added _setjmp
7383         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
7384           (decorateType): fixed bug 1372851,
7385           (optimizeGetHbit): fixed warning
7386         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
7387           array initialisation
7388         * support/regression/tests/bug1057979.c: added test for bug 1358192
7389         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
7390
7391 2005-12-03 Borut Razem <borut.razem AT siol.net>
7392
7393         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
7394           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
7395
7396 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
7397
7398         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
7399         createIval): implement symbol independant "flexible array member",
7400         (createIvalCharPtr): implemented flexible array initialisation with a
7401         string
7402         * src/SDCCsymt.c (copyStruct): removed,
7403         (getSize): fixed misleading comment,
7404         (getAllocSize): removed, the additional allocation size is now in
7405         sym->flexArrayLength,
7406         (checkStructFlexArray): new, syntax checks for flexible array members,
7407         (compStructSize): added syntax checks for "flexible array members"
7408         (copyStruct): removed,
7409         (copyLinkChain): removed inefficient fix for bug 770487
7410         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
7411         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
7412         symbol->flexArrayLength
7413         * src/SDCCerr.c,
7414         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
7415         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
7416         * support/regression/tests/structflexarray.c: added
7417         * support/valdiag/tests/structflexiblearray.c: added
7418
7419 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
7420
7421         * src/SDCCast.c (decorateType): fixed bug 1368489
7422         * support/Util/SDCCerr.c,
7423         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
7424
7425 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7426
7427         * device/include/mcs51/at89c51snd1c.h: added file submitted by
7428           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
7429
7430 2005-11-27 Borut Razem <borut.razem AT siol.net>
7431
7432         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
7433           support/cpp2/mkdeps.h: added command line option
7434           -obj-ext=<extension> to SDCPP to define object file externion, used
7435           for generation of make dependencies (-M)
7436         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
7437
7438 2005-11-26 Borut Razem <borut.razem AT siol.net>
7439
7440         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
7441           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
7442           added pic and pic16 libraries
7443
7444 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7445
7446         * device/include/float.h: Corrected typo in prototype of __fsgt
7447
7448 2005-11-25 Borut Razem <borut.razem AT siol.net>
7449
7450         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
7451           added creation of model-mcs51-stack-auto libraries
7452
7453 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
7454
7455         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
7456         and fields-list too
7457         * src/SDCCast.c (createIvalArray): removed obsolete comment
7458
7459 2005-11-24 Borut Razem <borut.razem AT siol.net>
7460
7461         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
7462           added missing device/lib/mcs51/crt*.asm sources
7463
7464 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
7465
7466         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
7467
7468 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
7469
7470         * device/lib/_fs2schar.c,
7471         * device/lib/_fs2sint.c,
7472         * device/lib/_fs2slong.c: optimized inline asm
7473
7474 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7475
7476         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
7477           Better handling of floats between -1.0 and 0.0.
7478
7479 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7480
7481         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
7482           (the missing "if"s prohibited removal of redundant labels)
7483
7484 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7485
7486         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
7487           Properly convert floats between -1.0 and 0.0 to long, int, and char
7488           types (max integer value of negative floats tends to zero).
7489         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
7490           Removed changes made so to work properly with floats between
7491           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
7492           and _fs2char.c
7493
7494 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
7495
7496         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
7497         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
7498         (genCast) cosmetic change
7499         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
7500         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
7501         from mcs51
7502         * support/regression/tests/bitfields (testSignedBitfields): added
7503
7504 2005-11-18 Borut Razem <borut.razem AT siol.net>
7505
7506         * sdcc/device/lib/Makefile.in: remove all unnecessary files
7507         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
7508           introduced SILENT option to make building of pic16 libraries less
7509
7510 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7511
7512         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
7513           Now they work properly with floats between -1.0 and 0.0
7514         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
7515
7516 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
7517
7518         * src/SDCCicode.c (printOperand): added missing else
7519
7520 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
7521
7522         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
7523         reformatted for better readability
7524         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
7525         signed bitfields
7526
7527 2005-11-17 Borut Razem <borut.razem AT siol.net>
7528
7529         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
7530           introduced SILENT option to make building of pic16 libraries less
7531           verbose - used for nightly snapshot build
7532         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
7533           available on Win32 platforms.
7534         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
7535           medium, large, pic and pic16
7536
7537 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7538
7539         * device/lib/printf_large.c: Temporary patch for bug 1358192:
7540           printf("%f"...) sets fraction to zero.
7541
7542 2005-11-16 Raphael Neider <rneider AT web.de>
7543
7544         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
7545           fixes #1357221
7546         * src/pic/gen.c (genIfx): implemented for CARRY bit
7547         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
7548           to generic pointers, fixes #1357332,
7549           (pic16_movLit2f): NEW,
7550           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
7551
7552 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
7553
7554         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
7555
7556 2005-11-11 Raphael Neider <rneider AT web.de>
7557
7558         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
7559         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
7560           compute pointer's type from operand,
7561           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
7562           improved single bit reads, fixes bug #1353379
7563
7564 2005-11-09 Borut Razem <borut.razem AT siol.net>
7565
7566         * support/scripts/sdcc.nsi: added lib/pic to the package
7567
7568 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
7569
7570         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
7571
7572 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
7573
7574         * support/regression/tests/bug1348008.c: added
7575         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
7576         * support/regression/tests/bug1337835.c: updated comment
7577
7578 2005-11-06 Borut Razem <borut.razem AT siol.net>
7579
7580         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
7581           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
7582           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
7583           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
7584           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
7585           dynamic construction of cl_error_class and derivates - 2.nd try
7586
7587 2005-11-05 Borut Razem <borut.razem AT siol.net>
7588
7589         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
7590           bug, which caused Bus Errors on sparc solaris
7591
7592 2005-11-04 Borut Razem <borut.razem AT siol.net>
7593
7594         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
7595           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
7596           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
7597           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
7598           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
7599           and derivates to resolve the initialization problem on OSX
7600
7601 2005-11-02 Borut Razem <borut.razem AT siol.net>
7602
7603         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
7604           corrected typo - #include <winsock2.h>
7605
7606 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
7607
7608         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
7609           (_asxxxx_mapping): added org directive for future enhancements
7610
7611 2005-11-01 Borut Razem <borut.razem AT siol.net>
7612
7613         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
7614           enabled sockets on WIN32
7615         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
7616
7617 2005-10-31 Borut Razem <borut.razem AT siol.net>
7618
7619         * support/regression/generate-cases.py: escape backslashes in {testcase}:
7620           WIN32 backslash path delimiters should be escaped when used in C strings
7621         * support/regression/tests/bitfields.c: exclude failing assertions for
7622           __CYGWIN32__ and __MINGW32__ hosts
7623
7624 2005-10-30 Borut Razem <borut.razem AT siol.net>
7625
7626         * src/SDCCutil.c: corrected double comparison typo
7627
7628 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
7629
7630         * device/lib/medium/Makefile: added for new memory model medium
7631         * device/include/asm/mcs51/features.h: updated for medium/pdata
7632         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
7633           added Multiply & Accumulate sbit's and MAC0_PAGE define
7634         * device/include/mcs51/c8051f300.h: added sfr16 definitions
7635         * device/include/mcs51/c8051f310.h: added sfr16 definitions
7636         * device/lib/_mullong.c: update for medium model
7637         * device/lib/incl.mk: added medium model
7638         * doc/sdccman.lyx: documented medium model
7639         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
7640         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
7641         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
7642         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
7643           (allocParms): set SCLS and OCLS to pdata for medium model
7644         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
7645           for pdata,
7646           (powof2): return <0 if not power of 2
7647         * src/avr/gen.c (genBitWise): use updated powof2
7648         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
7649           (shiftR2Left2Result): small optimization in setup, save acc when storing,
7650           (shiftLLeftOrResult): use B if necessary
7651         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
7652         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
7653         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
7654         * support/regression/Makefile.in: added test-mcs51-medium
7655         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
7656
7657 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
7658
7659         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
7660         specifier unsigned
7661         * device/lib/time.c (mktime): fixed bug 1334315
7662
7663 2005-10-28 Raphael Neider <rneider AT web.de>
7664
7665         * device/include/pic/p16f_common.inc: added common declarations
7666         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
7667
7668 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
7669
7670         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
7671           (aopPutUsesAcc): added to predict accumulator use,
7672           (assignResultValue): save acc if necessary,
7673           (genMinusDec): store result if indirectly addressed,
7674           (genDivOneByte):  save acc if necessary,
7675           (movLeft2Result): bugfix if left already in acc,
7676           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
7677             attention to accumulator use (esp. pdata),
7678           (genReceive): receive pdata correctly
7679         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
7680         * src/SDCCicode.h: added isOperandInPagedSpace prototype
7681
7682 2005-10-27 Raphael Neider <rneider AT web.de>
7683
7684         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
7685
7686 2005-10-27 Raphael Neider <rneider AT web.de>
7687
7688         * .version: changed version to 2.5.4
7689         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
7690         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
7691           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
7692             arithmetics support routines
7693         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
7694         * device/lib/Makefile.in: also create installdir for pic
7695
7696         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
7697           pic14 port as well
7698         * src/pic/device.c (dump_sfr): rewritten to delegate register
7699           placement to the linker (use `extern sym' rather than sym EQU addr),
7700           (validAddress): fixed to check last specified address
7701         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
7702           (popGetLit): truncate literal value to 8 bit,
7703           (popGet): moved assert to more appropriate place
7704           (popGetExternal): create pCode operand from and mark the according
7705             symbol as being `extern'
7706           (popGetAddr): added sanity check on immediate's offset, provide
7707             GPOINTER tag on demand
7708           (aopPut): fixed for immediates,
7709           (mov2w_op): move operand's address or contents to WREG (depending on
7710             operand type), safer variant of mov2w,
7711           (movwf,call_libraryfunc): NEW, handy abbreviations,
7712           (get_argument_pcop,get_return_val_pcop,pass_argument,
7713           get_returnvalue): interface for accessing function parameters and
7714             return values,
7715           (assignResultValuei,genRet): use new parameter/return value interface
7716           (pic14_getDataSize): back to old version handling generic pointers,
7717           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
7718             provided implementation and/or fixed old one,
7719           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
7720             calls, removed legacy 8051 reference code
7721           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
7722           (loadSignToC): NEW, move the operands sign bit to CARRY,
7723           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
7724             genRightShiftSigned, accepts negative shift counts,
7725           (setup_fsr): load FSR and adjust IRP (indirect memory access),
7726           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
7727             generic pointers, __data pointers and __code pointers,
7728           (genUnpackBits,genPackBits): rewritten to work with generic pointers
7729             and signed bitfields, limit bitfields to 8 bit,
7730           (genDataPointerGet): fixed number of bytes read,
7731           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
7732           (genPointerGet,genPointerSet): fixed handling of __code pointers,
7733             pointers to constant data are no longer assumed to point to __code
7734             space, removed invalid pointer types,
7735           (bitpatternFromVal): retrieve the PICs representation of an integer
7736             or float literal,
7737           (genDataPointerSet): fixed assigning to po_immediate operands,
7738           (genGenPointerSet): implemented as library call,
7739           (genIfx): fixed incorrect condition,
7740           (genAddrOf): limit generic pointers' addresses to 2 bytes,
7741             provide GPOINTER tag according to destination's storage class,
7742           (genCast): added code to handle casting to generic pointers, added
7743             sign-/zero extension of the result
7744           (aop_isLitLike,op_isLitLike): fixed handling of immediates
7745         * src/pic/gen.h: added macros to access IRP bit in STATUS register
7746         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
7747           extend the result
7748         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
7749           address/register resides in the shared banks
7750           (emitSymbolToFile): improved to handle global and `pinned' symbols,
7751             put all variables into separate sections (have the linker arrange
7752             them)
7753           (picglue): put init code and interrupt handlers in separate sections
7754         * src/pic/main.c: added port specific options table, modified to PORT
7755           structure to make GPOINTERs 3 byte, added pic14_options
7756           (_pic14_do_link): private linking routine (update paths to libraries,
7757             add libsdcc.lib by default)
7758         * src/pic/main.h: declare pic14_options
7759         * src/pic/pcode.c: fixed instructions i/o relations,
7760           (RegCond): reverted to correct version,
7761           (newpCodeOpLit): truncate literals to 8 bit,
7762           (genericPrint): added debug output,
7763           (getRegFromInstruction): fixed for various operand types, simplified
7764           (BuildFlow): fixed broken handling of isntructions with labels
7765           (LinkFlow): start at last instruction in flow (skip trailing comments),
7766             pass the flow on to the next instruction after CALL
7767           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
7768           (insertPCodeInstruction): fixed inserting after a skip instruction,
7769           (DoBankSelect): fixed for labeled instructions
7770           (OptimizepBlock): honor --nopeep switch
7771           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
7772         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
7773         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
7774           (pCodeOptime2pCodes): allow disabling this optimization via
7775             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
7776             but is still buggy), started implementation of a dataflow based
7777             pCode optimization (CSE + dead code elimination)
7778           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
7779         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
7780           names are independant of the stack location and therefore portable across
7781           devices
7782
7783 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
7784
7785         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
7786           (selectSpil): fixed bug 1337835 by not spilling bit variables
7787         * support/regression/tests/bug1337835.c: added test for this bug
7788         * src/mcs51/peeph.def: restart after rule 3.c,
7789           addded rules 263.x to optimize loading constants
7790
7791 2005-10-26 Raphael Neider <rneider AT web.de>
7792
7793         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
7794         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
7795           (genAssign): emit warning when casting literals to generic pointer
7796             type, also applies when taking the address of a fixed variable,
7797           (genCast): improved casting to generic pointers
7798         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
7799           extern variables, added verbose error message
7800         * device/include/pic16/{string.h,errno.h}: added #pragma library c
7801
7802 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
7803
7804         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
7805         carry must be complemented too
7806         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
7807         could be emitted by genMinus
7808         * src/SDCCval.c (constVal): fixed bug 1305065
7809
7810 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
7811
7812         * src/SDCCast.c (addCast): added promotion for bit variables
7813         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
7814         promotion casts + optimisation
7815         (optimizeGetWord): fix warning 'i' might be used uninitialized
7816         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
7817         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
7818
7819 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
7820
7821         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
7822         all chars are promoted to int; promotion should be handled in SDCCast.c
7823
7824 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7825
7826         * device/lib/_strcmp.c: Fixed bug 1326457
7827
7828 2005-10-11 Raphael Neider <rneider AT web.de>
7829
7830         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
7831         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
7832
7833 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
7834
7835         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
7836         * support/regression/tests/sfr16.c: added test for the sfr32 bug
7837
7838 2005-10-04 Raphael Neider <rneider AT web.de>
7839
7840         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
7841           device/lib/pic16/pics.all: added pic18f1320
7842         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
7843
7844 2005-09-30 Raphael Neider <rneider AT web.de>
7845
7846         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
7847         * src/pic16/devices.inc: NEW, provides device descriptions
7848         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
7849
7850 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
7851
7852         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
7853           GETHBIT
7854
7855 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
7856
7857         * doc/sdccman.lyx: updated Highest Order Bit documentation,
7858           documented Any Order Bit, Higher Order Byte and Higher Order Word
7859         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
7860         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
7861           (optimizeGetAbit): new, to get any bit, not only the high bit,
7862           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
7863           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
7864           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
7865           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
7866             RIGHT_OP: also try GETBYTE, GETWORD optimization,
7867             GETABIT, GETBYTE, GETWORD: decorate them,
7868           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
7869           (ast_print): added GETABIT, GETBYTE, GETWORD
7870         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
7871         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
7872           (geniCodeBinary): new generic binary icode,
7873           (ast2iCode): added GETABIT, GETBYTE, GETWORD
7874         * src/port.h: updated comment for PORT.hasExtBitOp
7875         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
7876           (genGetByte): new, to get a single byte,
7877           (genGetWord): new, to get a word from a long,
7878           (gen51Code): added GETABIT, GETBYTE, GETWORD
7879         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
7880
7881 2005-09-23 Raphael Neider <rneider AT web.de>
7882
7883         * configure.in, configure: have device/lib/pic configured
7884         * device/lib/Makefile.in: added model-pic14
7885         * device/lib/clean.mk: added pic/ to clean rule
7886         * device/lib/pic: added rudimentary pic14 library providing support
7887           functions for multiplication/division/generic pointer access
7888         * src/SDCCopt.c (convilong): mark support functions as extern
7889           for pic14 port as well
7890         * src/pic/gen.c (genMult): added assertions,
7891           (genpic14Code): emit warning on unhandled iCodes
7892         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
7893         * src/pic/pcode.c (pCodeOpCopy),
7894         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
7895           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
7896           SFR_REGISTER}), made safe for future extensions
7897         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
7898           instructions even if preceeded by SKIP instructions (also remove
7899           them); removed unused code
7900         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
7901           prevents leaving parts of the structure uninitialized after copying
7902
7903 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
7904
7905         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
7906           ago by me
7907         * support/regression/tests/addsub.c: added test for the bug
7908
7909 2005-09-21 Raphael Neider <rneider AT web.de>
7910
7911         * device/include/pic16/pic18f1220.h,
7912           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
7913         * device/lib/pic16/Makefile.rules: added missing opening paren
7914         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
7915           are provided in genutils.c,
7916           (genUminusFloat,genUminus,genCmpEq): added asserts on different
7917           operand/result sizes,
7918           (genCmp): assert on NULL pointers first, then check deref'ed values
7919         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
7920           result size
7921
7922 2005-09-18 Raphael Neider <rneider AT web.de>
7923
7924         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
7925           as these are now unused,
7926           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
7927         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
7928           local, avoids uninitialized pointer dereference on r->name
7929         * src/pic16/ralloc.c (newReg): fixed indentation
7930
7931 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
7932
7933         * src/SDCCval.c (constVal): fixed bug 730366
7934         * support/Util/SDCCerr.c,
7935         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
7936
7937 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
7938
7939         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
7940
7941 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
7942
7943         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
7944
7945 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7946
7947         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
7948           (hex2dec): made hex_digit unsigned char, removed ascii dependance
7949         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
7950           (hex2dec): made hex_digit unsigned char, removed ascii dependance
7951         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
7952         * packihx/packihx.c (hexDigit): made c unsigned char
7953         * as/mcs51/lklibr.c (fndsym),
7954         * link/z80/lkgb.c (gb),
7955         * link/z80/lklibr.c (fndsym),
7956         * link/z80/lkrloc.c (relr),
7957         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
7958         * src/SDCC.lex (checkCurrFile, process_pragma),
7959         * src/SDCCglue.c (spacesToUnderscores),
7960         * src/SDCCmain.c (setParseWithComma, processFile),
7961         * src/asm.c (tvsprintf, printCLine),
7962         * src/avr/gen.c (emitcode, aopPut),
7963         * src/ds390/gen.c (emitcode),
7964         * src/hc08/gen.c (emitcode, emitinline),
7965         * src/mcs51/gen.c (emitcode, genInline),
7966         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
7967           tokenizeLineNode),
7968         * src/pic/ralloc.c (debugLog),
7969         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
7970           tokenizeLineNode),
7971         * src/pic16/ralloc.c (debugLog),
7972         * src/z80/main.c (_process_pragma):
7973            made all ctype.h function calls safe
7974         * src/SDCCopt.c: include math.h for fabs
7975         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
7976           and used them throughout the code to make ctype.h function calls safe
7977         * src/ds390/main.c (asmLineNodeFromLineNode),
7978         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
7979         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
7980            unsigned char*
7981         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
7982           (newpCodeAsmDir): made ctype.h function calls safe
7983         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
7984           pic16_emitcode):  made lbp unsigned char*
7985         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
7986           (pic16_newpCodeAsmDir): made ctype.h function calls safe
7987         * src/xa51/gen.c (emitcode),
7988         * src/z80/gen.c (_emit2): made lbp unsigned char*
7989         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
7990            char*
7991
7992 2005-09-05 Raphael Neider <rneider AT web.de>
7993
7994         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
7995           access bank splitpoint
7996
7997 2005-09-05 Raphael Neider <rneider AT web.de>
7998
7999         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
8000
8001 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
8002
8003         * .version: changed to version 2.5.3
8004         * doc/sdccman.lyx: changed version to 2.5.3,
8005           documented --codeseg and --constseg and pragma codeseg and constseg,
8006           documented bit parameters (reentrant) and bit returning
8007         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
8008            currFunc->recvSize, but is this ok for all ports?
8009           (ast2iCode): result of ~ on unsigned char must be cast to int for
8010            bool to work
8011         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
8012           function pointers in bit space
8013         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
8014           (processFuncArgs): call port.reg_parm() with reentrancy info
8015         * src/port.h,
8016         * src/avr/main.c,
8017         * src/ds390/main.c,
8018         * src/hc08/main.c,
8019         * src/pic/main.c,
8020         * src/pic16/main.c,
8021         * src/xa51/main.c,
8022         * src/z80/main.c: port.reg_parm prototype extended with
8023           "bool reentrant" parameter
8024         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
8025           options.stackAuto for allocating bit register parameters
8026         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
8027           (genSend): set BitBankUsed if it is,
8028           (selectRegBank): factored out of genCall for use in genPcall,
8029           (genCall): removed redundant dtype assignmen, use selectRegBank,
8030           (genPcall): handle returning in Carry properly, save in F0 if needed,
8031           (genReceive): handle bit register parameters
8032         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
8033           (mcs51_assignRegisters): enable bit registers for all reentrant
8034            functions and don't set BitBankUsed unconditionally
8035         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
8036         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
8037         * support/regression/tests/funptrs.c: added tests for BOOL and for return
8038
8039 2005-08-27 Borut Razem <borut.razem AT siol.net>
8040
8041         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
8042         ppc-osx (Darwin) does not support -u option. It seems that it is
8043         supported only on Linux - GNU cp
8044
8045 2005-08-25 Borut Razem <borut.razem AT siol.net>
8046
8047         * sim/ucsim/gui.src/serio.src/Makefile.in,
8048           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
8049           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
8050           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
8051           install and strip, since the strip at /usr/ccs/bin should be used
8052           on solaris
8053
8054 2005-08-24 Borut Razem <borut.razem AT siol.net>
8055
8056         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
8057
8058 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
8059
8060         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
8061         ffffffffu
8062
8063 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
8064
8065         * as/mcs51/aslink.h: completed lkrloc.c prototypes
8066         * as/mcs51/lkmain.c (link_main): fixed warning
8067         * device/include/stdbool.h: ds390 has no advanced bit support yet
8068         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
8069         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
8070         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
8071           and updated their macros
8072         * src/SDCCval.c (constVal): updated comment for renamed b_long
8073
8074 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
8075
8076         * as/mcs51/asdata.c: changed ctype['['] to BINOP
8077         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
8078           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
8079           (oprio): set priority for '['
8080         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
8081            and adb_24_bit
8082         * as/mcs51/asm.h: added defines R_BIT and S_BIT
8083         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
8084         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
8085         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
8086           added overlayable BIT_BANK area
8087         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
8088           (summary2): explain 'T' in legenda
8089         * as/mcs51/lkrloc.c: replaced old K&R style,
8090           (relr): added R_BIT processing,
8091           (errmsg): added "Bit-addressable relocation error",
8092           (adb_bit): added for converting from byte- to bit-addressable space,
8093           (adb_24_bit): added for converting from byte- to bit-addressable space
8094         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
8095            used in reentrant functions now even as return value
8096         * device/lib/_gptrput.c (_gptrput): removed obsolete code
8097         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
8098           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
8099         * src/SDCCglobl.h: added indicator BitBankUsed
8100         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
8101            the bit registers b0-b7
8102         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
8103           (geniCodeCast): fixed bug 1263853,
8104           (geniCodeLogicAndOr): put result in bool or char,
8105           (geniCodeReceive): added parameter func for accessing the return type,
8106           (geniCodeFunctionBody): pass func to geniCodeReceive
8107         * src/SDCCmain.c: added indicator BitBankUsed
8108         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
8109         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
8110           (checkSClass): don't put automatic bool/bit on stack,
8111           (checkFunction): removed check on function cannot return bit
8112         * src/SDCCsymt.h: added newBoolLink prototype
8113         * src/mcs51/gen.c (rb1regs): added bit registers,
8114           (movc): created for assigning to carry,
8115           (pushReg, popReg): created for pushing registers,
8116           (sameRegs): check both AOP_REG and AOP_CRY types,
8117           (aopOp): handle bit registers,
8118           (aopPut): optimization no self-assign,
8119           (saveRegisters): push reg->base (bits) only once for bit registers,
8120            and use pushReg,
8121           (unsaveRegisters): pop reg->base only once and use popReg,
8122           (assignResultValue): added parameter func and return in carry for bits,
8123           (genIpush): optimization no reload in A if not changed,
8124           (genSend): bit parameters in reentrant functions are passed in bit
8125            registers by first assigning to bits in B, then save registers and
8126            copy B to bits,
8127           (genCall): handle returning in Carry properly, save it in F0 if needed,
8128           (genPcall): updated assignResultValue call, this is not safe yet for bit
8129            returning function !!!
8130           (genFunction): don't generate equ's for bit registers and use pushReg,
8131           (genEndFunction): take care of bit returning functions and use popReg,
8132           (genRet): return bit in Carry,
8133           (genIfx): optimize bit registers and other directly addressable bits,
8134           (genReceive): updated assignResultValue call
8135         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
8136           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
8137            registers when using stack-auto
8138         * src/mcs51/ralloc.c (_G): added allBitregs,
8139           (regs8051): added the bit registers,
8140           (createStackSpil): use macro IS_BIT,
8141           (getRegBit): added to allocate a bit register, else spill,
8142           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
8143           (updateRegUsage): factored out to ease stepping while debugging,
8144           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
8145            also allocate bit registers,
8146           (fillGaps): handle bit registers,
8147           (findAllBitregs): added to create bit vector with all bit registers,
8148           (mcs51_allBitregs): returns this bit vector,
8149           (mcs51_assignRegisters): when using stack-auto use bit registers for
8150            passing parameters and creating local variables
8151         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
8152
8153 2005-08-22 Borut Razem <borut.razem AT siol.net>
8154
8155         * device/lib/Makefile.in: replaced find option -or with -o
8156           to make it run on solaris
8157
8158 2005-08-22 Raphael Neider <rneider AT web.de>
8159
8160         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
8161           fixes #1265442 (crash on Solaris)
8162
8163 2005-08-20 Borut Razem <borut.razem AT siol.net>
8164
8165         * configure, configure.in: added tests for libsocket and libnsl libraries,
8166           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
8167           from support/regression/Makefile.in
8168         * support/regression/Makefile.in: added
8169         * device/lib/pic16/Makefile.common.in: force make to use bash shell
8170         * sim/ucsim/libtool: regenerated on sparc-solaris
8171         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
8172           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
8173           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
8174           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
8175           sparc-solaris, which doesn't use GNU ld linker
8176         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
8177         * as/Makefile: find on sparc-solaris does not support -maxdepth option
8178
8179 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
8180
8181         * src/mcs51/peeph.def: updated comments
8182
8183 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8184
8185         * device/lib/_gptrget.c,
8186         * device/lib/_gptrput.c: slightly shorter
8187         * doc/sdccman.lyx: incremented version
8188         * src/mcs51/peeph.def: moved peephole comments to the line of first
8189           change to better keep line correlation, reanimated 186.e
8190         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
8191
8192 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
8193
8194         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
8195           David Saxton with quotes around file name.
8196
8197 2005-08-15 Borut Razem <borut.razem AT siol.net>
8198
8199         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
8200           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
8201           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
8202           make tests run on x86_64 platform
8203
8204 2005-08-13 Raphael Neider <rneider AT web.de>
8205
8206         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
8207           as it might be executed DURING a build (parallel make is wonderful)
8208
8209 2005-08-13 Raphael Neider <rneider AT web.de>
8210
8211         * device/lib/Makefile.in (port-specific-objects-pic16):
8212           revert to cp $(PORT)/bin/*.* $(PORTDIR)
8213         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
8214           dependency
8215         * device/lib/pic16/Makefile.rules: build subdirs before creating
8216           the library, removed builddir rule, create $(builddir) early in
8217           recurse rule, use empty recurse rule for leaf directories
8218         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
8219           mkdir errors (race condition), removed duplicate suffix "hex"
8220           from clean rules
8221         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
8222         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
8223           prevents mkdir -p from aborting on Alpha
8224
8225 2005-08-12 Raphael Neider <rneider AT web.de>
8226
8227         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
8228           db-statements in order to allow for arrays of pointers in code
8229           sections to be placed without interspersed 0-padding, fixes
8230           bug #1256215
8231         * (emitStatistics): fixed division by zero for pic18f1220
8232         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
8233           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
8234         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
8235         * (pic16_pCodeConstString): keep track of already emitted string
8236           literals to prevent "duplicate definitions of symbol _str_NR"
8237         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
8238           debug message
8239         * device/lib/Makefile.in: ignore failing PIC16 library builds
8240         * device/lib/pic16/Makefile: do not build if gputils are missing
8241         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
8242
8243 2005-08-10 Raphael Neider <rneider AT web.de>
8244
8245         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
8246           my last commit)
8247
8248 2005-08-10 Raphael Neider <rneider AT web.de>
8249
8250         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
8251           Rokas' patch to add the new fixed point type "__fixed16x16"
8252         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
8253           functions for __fixed16x16 arithmetics
8254         * device/lib/pic16: reimplemented the build system to support
8255           a separate build directory, better handling of libio (create
8256           the library in a separate subdir for each architecture) and
8257           easier configuration (centralized in Makefile.common)
8258
8259 2005-08-07 Raphael Neider <rneider AT web.de>
8260
8261         * src/pic16/gen.c (genrshTwo): fixed sign extension
8262         * src/pic16/device.c: added pic18f2320, 4220 and 4320
8263         * device/include/pic16/pic18f2220.h: changed some bit definitions,
8264           added T0CONbits
8265         * device/include/pic16/pic18f4220.h: NEW, header for
8266           pic18f4220 and pic18f4320
8267         * device/include/pic16/pic18fregs.h: added new devices,
8268           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
8269         * device/include/pic16/signal.h: resolved name clashes
8270           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
8271           to also allow testing for interrupt enable bits, added
8272           comments on how to use the macros
8273         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
8274         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
8275           register definitions for the devices
8276         * device/lib/pic16/pics.all: added new devices
8277         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
8278           allocated memory
8279         * device/lib/pic16/libc/stdlib/memfree: do not count
8280           the block header as free memory
8281         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
8282           simplified and added missing end-of-blocklist-marker
8283           (reported by Peter Onion, fixes #1252814)
8284         * (_mergeHeapBlock): fixed loop condition
8285         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
8286           len==0, restructured code
8287         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
8288           up a bit, reduced bitfield accesses, prevent endless loops
8289           in case of heap corruption
8290         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
8291           "unreferenced arguments/must return a value" warnings
8292         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
8293           replaced BAUDREG with SPBRG
8294         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
8295           device/lib/pic16/debug/gstack/gstack.c: replaced
8296           _naked, _asm, _endasm with __naked, __asm, __endasm
8297
8298 2005-08-05 Raphael Neider <rneider AT web.de>
8299
8300         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
8301           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
8302
8303 2005-08-05 Borut Razem <borut.razem AT siol.net>
8304
8305         * device/lib/Makefile.in: added missing ';'
8306         * configure: removed ^M characters
8307
8308 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8309
8310         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
8311           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
8312           License
8313
8314 2005-08-04 Borut Razem <borut.razem AT siol.net>
8315
8316         * configure.in: pic16 libraries build 2nd try - enable running
8317           configure in device/lib/pic16
8318         * configure: regenerated from configure.in
8319         * device/lib/Makefile.in: create $(PORT)/bin directory
8320
8321 2005-08-03 Raphael Neider <rneider AT web.de>
8322
8323         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
8324           to get/set values via pointers
8325         * (genUnpackBits,genPackBits): changed detection of
8326           ptr->bitfield vs. sym.bitfield, fixed access via generic
8327           pointers, removed dead (wrong) code for multibyte bitfields
8328         * (genNearPointerGet, genGenPointerGet): removed useless code,
8329           fixed bitfield detection, fixes #1250594
8330         * (genNearPointerSet): removed useless code
8331         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
8332           and introduced macro pic16_emitpcode that conditionally emits
8333           the origin of the following pCode (useful for debugging SDCC)
8334         * src/pic16/pcode.c: changed (and disabled) some debug outputs
8335         * (createDefmap): fixed handling of LFSR for --optimize-df
8336
8337 2005-08-02 Borut Razem <borut.razem AT siol.net>
8338
8339         * device/lib/Makefile.in: pic16 libraries build enabled since
8340           gputils-0.13.2 are now localy installed at sourceforge's compile farm
8341
8342 2005-08-02 Raphael Neider <rneider AT web.de>
8343
8344         * src/pic16/gen.c (genPackBits): removed deprecated warning
8345         * (genGenPointerSet): fixed bitfield detection
8346
8347 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8348
8349         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
8350
8351 2005-07-31 Raphael Neider <rneider AT web.de>
8352
8353         * device/lib/pic16/libdev/pic18f458.c,
8354           device/include/pic16/pic18f458.h: added missing T0CONbits
8355
8356 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
8357
8358         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
8359
8360 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
8361
8362         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
8363
8364 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8365
8366         * device/include/mcs51/at89c51ed2.h: added.
8367
8368 2005-07-23 Raphael Neider <rneider AT web.de>
8369
8370         * src/pic/gen.h: added emitpcode macro for debugging
8371         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
8372           and replace by macro adding debug information on demand
8373         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
8374         * (gencjne): tried to fix; replaced with correct (slower) code
8375         * (gen{Unp,P}ackBits): fixed single bit access
8376         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
8377         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
8378           previous instruction
8379         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
8380           register has to be handled with care (forbidding movement
8381           of assignments/uses, removing assignments completely, ...)
8382         * (pCodeOptime2pCodes): make use of regIsSpecial
8383         * added lots of debugging output (commented out)
8384         * src/pic/rallloc.c (deassignLRs): prevent operand registers
8385           from being reused as result UNLESS it is known to work
8386
8387 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
8388
8389         * support/Util/dbuf.h: include <stddef.h> for size_t
8390         * .version: changed to version 2.5.2
8391
8392 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8393
8394         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
8395
8396 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8397
8398         * src/hc08/gen.c (genMinus): fixed bug #1241835,
8399           (genModOneByte): removed needless psha/pula
8400
8401 2005-07-22 Raphael Neider <rneider AT web.de>
8402
8403         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
8404           have PIC14 handled like PIC16, fixes broken pic14 linker calls
8405         * src/pic/gen.c (resolveIfx): do not "invent" labels
8406         * (genSkipc): changed to positive logic
8407         * (genSkipCond): removed as no longer needed
8408         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
8409           backport from PIC16
8410         * (genLeftShift): check operands are in different registers
8411         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
8412           INCF does not update CARRY...
8413         * src/pic/main.c: fixed _linkCmd
8414         * src/pic/pcode.c (unlinkpCode): added inactive code
8415         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
8416           alive (do not assign result and operand overlapping registers)
8417
8418 2005-07-22 Raphael Neider <rneider AT web.de>
8419
8420         * src/pic/device.c (dump_sfr): replaced register declaration with
8421           call to emitSymbolToFile() to avoid duplicate symbols
8422         * (assignRelocatableRegisters): do not declare external symbols
8423         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
8424           right (take size of type, not etype)
8425         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
8426         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
8427         * (packRegsForAccUse): disabled assignment of WREG as
8428           the result reg to prevent occurence of just fixed #1235003,
8429           fixes #1242954
8430         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
8431           symbols (avoids duplicate symbols in .asm file)
8432         * (pic14emitRegularMap): use emitSymbolToFile()
8433         * src/pic/gen.c (aopOp): fixed spillLocation handling
8434         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
8435         * (genDataPointerSet): removed unneccessary variables/output
8436
8437 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
8438
8439         * as/mcs51/lkarea.c: enlarged codemap for banked memory
8440         * device/lib/mcs51/crtbank.asm: added # to 0x0F
8441
8442 2005-07-21 Raphael Neider <rneider AT web.de>
8443
8444         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
8445           architecture cannot handle them efficiently, fixes bug #1235003
8446         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
8447           check for empty sets before using them (fixes bug #1232190)
8448
8449 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
8450
8451         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
8452           (lnksect2): generate warnings for memory overlap
8453         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
8454           constseg to set the name of these segments so you can instruct the linker
8455           to place them in banks
8456         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
8457         * src/SDCCglobl.h: added MODEL_HUGE to enum,
8458           added code_seg and const_seg to options
8459         * src/SDCCglue.c (emitMaps): use options.const_seg,
8460           (createInterruptVect): put interrupt vectors in segment HOME,
8461           (glue): put HOME before static segment and put the main glue in HOME,
8462           (glue): use options.code_seg
8463         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
8464         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
8465           these segments so you can instruct the linker to place them in banks
8466           (linkEdit): use code_loc for HOME segment which should be the first
8467           segment in code memory now
8468         * src/SDCCmem.c: fixed more stuff like bug 1238386
8469         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
8470           (changePointer): don't change function pointers to code pointers for
8471           banked functions,
8472           (compareType): added exceptional check for banked function pointers
8473         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
8474         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
8475           after static in code memory
8476         * src/mcs51/gen.c: added aopLiteralLong prototype,
8477           (aopForSym): use getSize for functions,
8478           (genCall): generate banked calls over one trampoline __sdcc_banked_call
8479           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
8480           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
8481           the segment,
8482           (genPcall): use call for literal function pointers and generate banked
8483           calls over the one trampoline so there's only one place for the user to
8484           modify according to his/hers hardware,
8485           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
8486           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
8487         * src/mcs51/main.c: added keyword banked,
8488           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
8489         * support/Util/SDCCerr.c,
8490         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
8491           needed for passing the bank and address to the trampoline
8492         * device/lib/mcs51/crtbank.asm: added for bankswitching
8493         * device/lib/mcs51/Makefile: added crtbank
8494
8495 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8496
8497         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
8498           for fields at offset 0 of a struct or union as reported
8499           on 2005-07-07 in the developer mailing list.
8500
8501 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
8502
8503         * src/SDCCmem.c: fixed bug 1238386
8504
8505 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8506
8507         * src/mcs51/peeph.def: added labelrefcounting for peepholes
8508           (patch #1144962), added peephole 300, enabled 259.x
8509         * doc/sdccman.lyx: removed screenshot and provided link instead
8510
8511 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8512
8513         * doc/sdccman.lyx: added section about debugging with ddd
8514         * doc/figures/ddd_example.eps: screenshot of debugging session
8515
8516 2005-07-04 Raphael Neider <rneider AT web.de>
8517
8518         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
8519           like CODE pointers, fixes #1115683
8520         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
8521           call, fixes bugs #1232211, #1228110,
8522           fixed wrong casts to pCodeFlow from pCodeInstructions
8523
8524 2005-07-04 Raphael Neider <rneider AT web.de>
8525
8526         * src/pic/gen.c (popGet): changed assert to allow for
8527           bit operands
8528         * (popGetAddr): changed signature to provide
8529           an additional index, patched all call sites
8530         * (genCmpEq): handle literal-like operands correctly
8531         * (genAddrOf): added sanity checks on __code/__data pointers
8532         * (genAssign): added handling of symbols from __code section
8533         * (gencjne): do not generate code for comparisons whose result
8534           is neither stored nor used, fixes bug #1171114
8535         * (AccLsh, AccRsh): operate on operand instead of WREG
8536         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
8537           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
8538           by known count
8539         * rewrote complete shift-by-literal logic, commented unused
8540           functions out
8541         * (genConstPointerGet): get multiple bytes (if result size > 1),
8542           fixed handling of non-immediate addresses
8543         * (genPointerGet): handle CODE pointers like CONST pointers
8544         * (genpic14Code): insert C-SRC lines as Cource-pCodes
8545         * ({aop,op}_isLitLike): NEW, single place to decide whether an
8546           operand is to be treated as a literal or not
8547         * (mov2w,genPcall,genCmpEq),
8548           src/pic/genarith.c: use aop_isLitLike() to decide between
8549           literal/register contents
8550         * (addSign): added missing offset
8551         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
8552           only emit comment in debug-mode,
8553           use {aop,op}_isLitLike throughout the file
8554         * src/pic/glue.c: fix initializers for pointers (work in progress)
8555         * src/pic/pcode.c (get_op): honor index on _const symbols
8556         * ({reset,dump}pCodeStatistics): NEW, estimate code size
8557         * (dumppBlock): added pCode size estimation
8558         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
8559           check for IS_SYMOP before OP_SYMBOL'ing
8560         * fixed indentation, compacted switch-statements
8561         * (allocReg): find free register and allocate it instead of
8562           allocating new registers all the time
8563         * (deassignLRs): prevent POINTER_GET's from being assigned the same
8564           registers as its operands (necessary only for multibyte GETs)
8565
8566 2005-07-01 Raphael Neider <rneider AT web.de>
8567
8568         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
8569           debugging .asm-output macros FENTRY + FEXIT
8570         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
8571           way... I wonder...
8572         * (emitpComment): NEW, printf to pCode
8573         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
8574           offset handling
8575         * (popGetAddr): NEW, variant of popGet to access an immediates
8576           high(er) bytes instead of the n'th byte of memory they reference,
8577           replaced popGet with popGetAddr where neccessary
8578         * (genDataPointerGet): reactivated and fixed implementation
8579         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
8580           accesses
8581         * (genDataPointerSet): fixed multibyte assignments
8582         * (genpic14Code): fixed --i-code-in-asm handling
8583         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
8584         * (genPlus): fixed index-out-of-bounds error
8585         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
8586         * src/pic/ralloc.c: added debugging output macro FENTRY2
8587         * (spillThis): fixed indentation, enbraced for-body for clarity
8588         * (rematStr): commented out as now unused
8589         * (regTypeNum): commented out special spill case (overwrites
8590           arbitrary values)
8591         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
8592
8593 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
8594
8595         * doc/sdccman.lyx: documented sfr16/sfr32,
8596           added example for using storage class with function pointers
8597         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
8598
8599 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
8600
8601         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
8602         * device/lib/_itoa.c,
8603         * device/lib/_ltoa.c: optimized codesize
8604         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
8605           but don't know how to suppress the double warning.
8606         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
8607         * support/Util/SDCCerr.c,
8608         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
8609
8610 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
8611
8612         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
8613           fixed old K&R prototypes
8614         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
8615         * device/lib/_gptrget.c,
8616         * device/lib/_gptrgetc.c,
8617         * device/lib/_gptrput.c: changed versions for new memory indicator values,
8618           also new versions for small generic pointers and banked generic pointers
8619         * src/port.h: added const_name
8620         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
8621         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
8622         * src/SDCCcse.c (findPrevIc): check all associative operators
8623         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
8624         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
8625         * src/SDCCmem.c: updated comments,
8626           set far-space to 0 for pdata, results in optimized code
8627         * src/SDCCmem.h: added macro CONST_NAME
8628         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
8629           moving the info into the highest bits, see also gptrget/gptrput
8630         * src/src.dsp: added sdcc.ico to project files
8631         * src/avr/gen.c (genCast): fixed bug 0x%d
8632         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
8633         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
8634           relation between ptr_type and DCL_TYPE,
8635           (genCast): fixed bug 0x%d
8636         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
8637           (CODE)" for const_name
8638         * src/hc08/gen.c (genCast): fixed bug 0x%d
8639         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
8640           (hc08_port): added "CONST (CODE)" for const_name
8641         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
8642           (aopForRemat, adjustArithmeticResult): disconnected direct relation
8643           between ptr_type and DCL_TYPE,
8644           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
8645           operand* and took AOP() inside function so sfr-ness can be checked,
8646           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
8647           new prototype,
8648           (genFunction, genEndFunction): optimized stack setup,
8649           (genMinus): optimized for literals with ending zeroes (in bytes),
8650           (genCast): fixed bug 0x%d
8651         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
8652           (mcs51_port): added "CONST (CODE)" for const_name
8653         * src/mcs51/peeph.def: made rule 226 more generic
8654         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
8655         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
8656         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
8657         * src/z80/main.c (z80_port): added NULL for const_name,
8658           (gbz80_port): added NULL for const_name
8659         * support/regression/tests/bug663539.c,
8660         * support/regression/tests/sfr16.c: new tests
8661
8662 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8663
8664         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
8665
8666 2005-06-24 Raphael Neider <rneider AT web.de>
8667
8668         * device/lib/pic16/libdev/pic18f[68][567]20.c:
8669           corrected typos...
8670         * device/include/pic16/signal.h: added USBIF
8671           and SIG_USB
8672
8673 2005-06-24 Raphael Neider <rneider AT web.de>
8674
8675         * device/lib/pic16/libdev/pic18f2455.c,
8676           device/include/pic16/pic18f2455.h: NEW
8677         * device/include/pic16/pic18fregs.h,
8678           device/lib/pic16/pics.all,
8679           src/pic16/device.c: added 18f2455
8680         * device/lib/pic16/libdev/pic18f[68][567]20.c,
8681           device/include/pic16/{pic18f[68][567].h,usart.h}:
8682           replaced MULTIPLE_USARTS define with more relaible
8683           compatibility sfrs (for USART access)
8684
8685 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
8686
8687         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
8688           and the output asm file line is printed on two lines.
8689
8690 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8691
8692         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
8693           BGT, BLE, BHI, and BLS instructions
8694         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
8695           genCmpEq): removed
8696         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
8697           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
8698           fixes bug #1216342
8699         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
8700
8701 2005-06-15 Raphael Neider <rneider AT web.de>
8702
8703         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
8704         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
8705         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
8706           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
8707           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
8708
8709 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8710
8711         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
8712           Marcel Telka in bug #1215704
8713
8714 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
8715
8716         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
8717           located in shared memory bank.
8718
8719 2005-05-31 Raphael Neider <rneider AT web.de>
8720
8721         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
8722           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
8723           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
8724
8725 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
8726
8727         * device/lib/_strncpy.c: fixed the fix
8728
8729 2005-05-26 Raphael Neider <rneider AT web.de>
8730
8731         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
8732           initializers with \0, bug #1208187
8733         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
8734           intializers with \0, bug #1208187
8735
8736 2005-05-26 Raphael Neider <rneider AT web.de>
8737
8738         * src/pic16/glue.c (pic16_printIvalChar): fixed string
8739           initializers with \0, bug #1208187
8740         * src/pic16/main.c (_process_pragma): added sanity checks
8741           for stack position and size, emit warnings when appropriate
8742
8743 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
8744
8745         * device/lib/_strncpy.c: fixed not filling with \0
8746
8747 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8748
8749         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
8750           createFunction),
8751         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
8752           compound_statement),
8753         * src/SDCCsymt.h,
8754         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
8755
8756 2005-05-24 Raphael Neider <rneider AT web.de>
8757
8758         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
8759
8760 2005-05-24 Raphael Neider <rneider AT web.de>
8761
8762         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
8763           TRISE definitions, closes bug #1162453
8764
8765 2005-05-22 Raphael Neider <rneider AT web.de>
8766
8767         * src/pic16/main.c (_process_pragma): check for missing
8768           arguments to pragmas code and udata
8769         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
8770           consistency fixes to match other headers (thanks to Jim Paris)
8771         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
8772
8773 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
8774
8775         * src/SDCCicode.c (isOperandEqual): fixed missing ;
8776
8777 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
8778
8779         * support/regression/tests/bug1198642.c: new test
8780         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
8781         * src/SDCCcse.c (findPrevIc): added comment, please have a look
8782         * support/scripts/resource.h,
8783         * support/scripts/resource.rc,
8784         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
8785         * support/scripts/sdcc.ico: added 32x32 icon
8786
8787 2005-05-18 Raphael Neider <rneider AT web.de>
8788
8789         * device/lib/pic16/libdev/pic18f*.c,
8790         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
8791           keywords to "__sfr" and "__at (X)"
8792         * device/include/pic16/pic18fregs.h: added pic18f4520
8793         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
8794           #1203088 (MPLAB compatibility)
8795
8796 2005-05-17 Raphael Neider <rneider AT web.de>
8797
8798         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
8799         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
8800         * device/lib/pic16/pics.all: added new devices
8801         * src/pic16/device.c: added support for pic18f4520
8802
8803 2005-05-16 Raphael Neider <rneider AT web.de>
8804         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
8805         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
8806         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
8807           convenience function for bit access
8808
8809 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
8810
8811         * device/lib/printf_large.c: fixed bug 1193299
8812         * support/regression/tests/bug1057979.c: added test %3.3s
8813
8814 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8815
8816         * device/include/mcs51/8051.h,
8817         * device/include/mcs51/8052.h: made parseable with lint
8818         * device/include/mcs51/lint.h: added include file for (sp)lint
8819         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
8820         * doc/cdbfileformat.lyx,
8821         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
8822
8823 2005-05-14 Raphael Neider <rneider AT web.de>
8824
8825         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
8826         * device/lib/pic16/libc/stdlib/itoa.c (new)
8827         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
8828         * device/lib/pic16/libio/Makefile: exclude subdir according to
8829           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
8830         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
8831         * src/pic16/gen.c (genFunction): prevent annoying warning
8832         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
8833           nameclashes on BeOS
8834         * support/cpp2/cppmain.c (cpp_output_string): new
8835         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
8836           fixes bug 1116802
8837
8838 2005-05-13 Borut Razem <borut.razem AT siol.net>
8839
8840         * src/SDCCmain.c (linkEdit): fixed bug 1195202
8841
8842 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8843
8844         * .version: changed to version 2.5.1; back to bleeding edge development
8845
8846 2005-05-11 Borut Razem <borut.razem AT siol.net>
8847
8848         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
8849           generate PDF version 1.3 documents
8850
8851 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8852
8853         * .version: changed to version 2.5.0
8854
8855 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8856
8857         * doc/sdccman.lyx: updated weblinks, index and smaller updates
8858
8859 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8860
8861         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
8862         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
8863         well as many smaller updates.
8864         * .version: changed to version 2.5.0-pre1
8865
8866 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8867
8868         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
8869
8870 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
8871
8872         * support/regression/tests/bug1185672.c: added
8873         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
8874           bug 1185672
8875         * src/mcs51/gen.c (genCall): added comments, made it look safer
8876         * src/mcs51/gen.c (genEndFunction): simplified
8877
8878 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
8879
8880         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
8881
8882 2005-04-14 Borut Razem <borut.razem AT siol.net>
8883
8884         * fixed bug 1045046 - SIGSEGV with really simple code?:
8885           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
8886           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
8887
8888 2005-04-14 Borut Razem <borut.razem AT siol.net>
8889
8890         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
8891           src/pic16/device.h: temporarily disabled experimental #inline pragma
8892           for 2.5.0 release
8893
8894 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
8895
8896         * device/include/z80/stdio.h,
8897         * device/include/z80/string.h: removed these highly incomplete files so
8898           SDCC can use the default ones in device/include/
8899
8900 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8901
8902         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
8903         gcc warning.
8904         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
8905         fix sdcpp warnings.
8906
8907 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8908
8909         * device/include/malloc.h: removed redundant __reentrant prototypes
8910         * device/lib/_mullong.c: added working xstack variant in asm (C version
8911           doesn't pass regression tests)
8912         * device/lib/bpx.c: used __data and made bpx char for mcs51
8913         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
8914           (createFunction): fixed bug with xstackPtr
8915         * src/SDCCcse.c: corrected comments
8916         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
8917           (killDeadCode, eBBlockFromiCode): removed unused code
8918         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
8919           corrected comments
8920         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
8921           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
8922           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
8923           (genModOneByte): fixed warning in MSVC
8924         * src/mcs51/main.c (): added comments
8925         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
8926
8927 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8928
8929         * src/SDCCmain.c (linkEdit): oops, changed one line too many
8930
8931 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
8932
8933         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
8934
8935 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
8936
8937         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
8938         characters arrays of larger size than the declared one.
8939
8940 2005-04-10 Borut Razem <borut.razem AT siol.net>
8941
8942         * src/pic/gen.c (genInline),
8943           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
8944           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
8945           (findNextInstruction), (findPrevInstruction),
8946           (findInstructionUsingLabel),
8947           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
8948         * src/pic/pcode.c (findLabel): added missing '\n'
8949         * src/src.dsp: added SDCCdwarf2.c to the project
8950
8951 2005-04-09 Borut Razem <borut.razem AT siol.net>
8952
8953         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
8954
8955 2005-04-08 Raphael Neider <rneider AT web.de>
8956
8957         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
8958           into the chain after a given one) and mergeDefmapSymbols (combine
8959           defmap entries for each symbol per pcode)
8960         * (createDefmap): have defmap entries merged in the end
8961         * (defmapReplaceSymRef): split defmap entries covering two accesses to
8962           a symbol before replacing one access type's symbol, merge symbols in
8963           the end (replacement symbol might already have an entry)
8964         * (assignValnums): keep reference to written WREG intact
8965
8966 2005-04-08 Raphael Neider <rneider AT web.de>
8967
8968         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
8969           Alpha)
8970
8971 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
8972
8973         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
8974         bytes
8975
8976 2005-04-07 Raphael Neider <rneider AT web.de>
8977
8978         * device/include/pic16/usart.h: added compatibility defines for
8979           devices with more than one USART
8980         * device/include/pic16/pic18f[68][567]20.h: activated above defines
8981
8982 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8983
8984         * device/lib/Makefile.in: updated for port specific include
8985
8986 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8987
8988         * support/regression/ports/mcs51/spec.mk: added mcs51 include
8989
8990 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8991
8992         * device/include/8051.h,
8993         * device/include/8052.h,
8994         * device/include/at89S8252.h,
8995         * device/include/at89c55.h,
8996         * device/include/at89x051.h,
8997         * device/include/at89x51.h,
8998         * device/include/at89x52.h,
8999         * device/include/mcs51reg.h,
9000         * device/include/reg51.h,
9001         * device/include/reg764.h,
9002         * device/include/regc515c.h,
9003         * device/include/sab80515.h: (re)moved these 12 files
9004         * device/include/mcs51/8051.h,
9005         * device/include/mcs51/8052.h,
9006         * device/include/mcs51/at89S8252.h,
9007         * device/include/mcs51/at89c55.h,
9008         * device/include/mcs51/at89x051.h,
9009         * device/include/mcs51/at89x51.h,
9010         * device/include/mcs51/at89x52.h,
9011         * device/include/mcs51/mcs51reg.h,
9012         * device/include/mcs51/reg51.h,
9013         * device/include/mcs51/reg764.h,
9014         * device/include/mcs51/regc515c.h,
9015         * device/include/mcs51/sab80515.h: and added them here
9016
9017 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
9018
9019         * device/include/stdarg.h: changed SDCC specific keywords to double
9020           underlined form.
9021         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
9022           mcs51 and ds390.
9023         * device/include/hc08/mc68hc908gp32.h,
9024         * device/include/hc08/mc68hc908jb8.h,
9025         * device/include/hc08/mc68hc908jkjl.h,
9026         * device/include/hc08/mc68hc908qy.h: fixed comments
9027         * device/include/mcs51/README: updated
9028         * device/include/mcs51/c8051f120.h: added PINRSF
9029         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
9030         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
9031           amidst code. Also inline is not supported.
9032
9033 2005-04-06 Raphael Neider <rneider AT web.de>
9034
9035         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
9036         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
9037           callers stack/frame pointers
9038
9039 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
9040
9041         * device/include/pic16/usart.h: added, missing in previous commit,
9042         * device/include/pic16/adc.h: fixed typo,
9043         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
9044         commit,
9045         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
9046         <p18fxxx.inc>
9047         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
9048         uninitialized because a bug appears with gplink
9049         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
9050         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
9051         complains for unrecognised option
9052
9053 2005-04-05 Raphael Neider <rneider AT web.de>
9054
9055         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
9056           structs as well (using memcpy)
9057         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
9058           on ISRs (GOTO has no label)
9059         * src/pic16/device.h: added OF_OPTIMIZE_DF
9060         * src/pic16/main.c: added compiler switch --optimize-df to enable the
9061           new data flow analysis/optimization
9062         * src/pic16/pcode.c: added (prototypes for and implementation of)
9063           dataflow analysis functions, fixed pCodeInstructions' inCond and
9064           outCond values, made RCALL a branch instruction
9065         * (pic16_unlinkpCode): keep C line if possible
9066         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
9067           C line moved if possible
9068         * (pic16_getRegFrompCodeOp): NEW, improved version of...
9069         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
9070           to use new pic16_getRegFrompCodeOp (works for more SFRs)
9071         * (pic16_BuildFlow): fixed skip instructions with label (did not start
9072           new flow)
9073         * (pic16_getJumptabpCode): NEW, needed in...
9074         * (LinkFlow): fixed handling of jumptables, calls and conditional
9075           branches
9076         * (pic16_InsertCommentAfter): NEW
9077         * (pic16_pCodeReplace): made verbose and flow preserving
9078         * (AnalyzeFlow): added call to data flow analysis
9079         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
9080         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
9081         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
9082
9083 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9084
9085         * src/SDCCast.c (decorateType): fixed bug #1105626
9086
9087 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
9088
9089         * device/include/asm/pic16/features.h,
9090         * pic18f*.h headers,
9091         * device/include/pic16/adc.h,
9092         * device/include/pic16/delay.h,
9093         * device/include/pic16/i2c.h,
9094         * device/include/pic16/malloc.h,
9095         * device/include/pic16/stdio.h,
9096         * device/include/pic16/stdlib.h,
9097         * device/include/pic16/string.h,
9098         * device/lib/pic16/libc/stdio/printf_tiny.c,
9099         * device/lib/pic16/libc/stdio/printf_small.c,
9100         * device/lib/pic16/libc/stdio/strmgpsim.c,
9101         * device/lib/pic16/libc/stdio/strmmssp.c,
9102         * device/lib/pic16/libc/stdio/strmusart.c,
9103         * device/lib/pic16/libc/stdio/vfprintf.c,
9104         * device/lib/pic16/libc/stdlib/ltoa.c,
9105         * device/lib/pic16/libc/stdlib/putchar.c,
9106         * device/lib/pic16/libc/stdlib/x_ftoa.c,
9107         * device/lib/pic16/libc/stdlib/memchrpgm.c,
9108         * device/lib/pic16/libc/stdlib/memchrram.c,
9109         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
9110         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
9111         * device/lib/pic16/libio/adc/adcbusy.c,
9112         * device/lib/pic16/libio/adc/adcread.c,
9113         * device/lib/pic16/libio/adc/adcsetch.c,
9114         * device/lib/pic16/libio/usart/ubaud.c,
9115         * device/lib/pic16/libio/usart/ubusy.c,
9116         * device/lib/pic16/libio/usart/udrdy.c,
9117         * device/lib/pic16/libio/usart/uopen.c,
9118         * device/lib/pic16/libio/usart/uputc.c,
9119         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
9120         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
9121         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
9122         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
9123         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
9124         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
9125         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
9126         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
9127         specific keywords to double underlined form,
9128         * device/lib/pic16/libc/Makefile.rules,
9129         * device/lib/pic16/libsdcc/Makefile.rules,
9130         * device/lib/pic16/libm/Makefile,
9131         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
9132         to compile with C standard set in Makefile.common
9133         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
9134         rand.c and crc.c in compilation process,
9135         * device/lib/pic16/libsdcc/int/divuint.c,
9136         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
9137         `c' from signed to unsigned,
9138         * device/lib/pic16/startup/crt0.c,
9139         * device/lib/pic16/startup/crt0i.c,
9140         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
9141         keywords to double underlined form, bug fixes in _do_cinit function
9142         which prevented the correct initialization of the .idata segment,
9143         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
9144         core to enter a infinite loop
9145         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
9146
9147 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9148
9149         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
9150
9151 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9152
9153         * device/include/Makefile.in: add support for hc08 subdirectory
9154         * device/include/hc08/: new subdirectory
9155         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
9156         Lucas Loizaga, thanks!
9157         * device/include/hc08/mc68hc908qy.h,
9158         * device/include/hc08/mc68hc908gp32.h,
9159         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
9160         their own directory. Changed internal macro names to use the compiler
9161         reserved namespace. Changed SDCC specific keywords to double
9162         underlined form.
9163         * device/include/math.h,
9164         * device/include/malloc.h,
9165         * device/include/stdarg.h,
9166         * device/include/stdbool.h
9167         * device/include/string.h,
9168         * device/include/tinibios.h,
9169         * device/include/ds400rom.h,
9170         * device/include/8051.h,
9171         * device/include/8052.h,
9172         * device/include/80c51xa.h,
9173         * device/include/at89c55.h,
9174         * device/include/at89S8252.h,
9175         * device/include/at89x51.h,
9176         * device/include/at89x52.h,
9177         * device/include/ds80c390.h,
9178         * device/include/reg764.h,
9179         * device/include/regc515c.h,
9180         * device/include/sab80515.h,
9181         * device/include/mcs51/c8051f000.h,
9182         * device/include/mcs51/c8051f018.h,
9183         * device/include/mcs51/c8051f020.h,
9184         * device/include/mcs51/c8051f040.h,
9185         * device/include/mcs51/c8051f060.h,
9186         * device/include/mcs51/c8051f120.h,
9187         * device/include/mcs51/c8051f300.h,
9188         * device/include/mcs51/c8051f310.h,
9189         * device/include/mcs51/c8051f320.h,
9190         * device/include/mcs51/c8051f330.h,
9191         * device/include/mcs51/c8051f350.h,
9192         * device/include/z180.h: Changed SDCC specific keywords to double
9193         underlined form.
9194
9195 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
9196
9197         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
9198         18F4455,
9199         * (pic16_assignConfigWordValue): disable testing of configuration
9200         register value with config mask,
9201         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
9202         function with port->fun_prefix,
9203         * (genFunction): when generating a naked interrupt function never
9204         create an absolute segment placed in interrupt vector address, place
9205         the actual interrupt function at IVA instead, when an interrupt
9206         function is generated with unspecified interrupt then do not create
9207         the absolute section,
9208         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
9209         code for generating a call to generic pointer get/put function with
9210         a call to function pic16_callGenericPointer(),
9211         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
9212         the call to the generic pointer get/put functions with prefixing the
9213         function name with port->fun_prefix,
9214         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
9215         * src/pic16/main.c (_process_pragma): prefix function with
9216         port->fun_prefix,
9217         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
9218         calling assembler, old 18Fxxxx macro is deprecated,
9219         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
9220         PC_ASMDIR in while condition,
9221         * (findInstruction): add PC_ASMDIR in while condition,
9222         * (buildCallTree): prefix main with port->fun_prefix,
9223         * (pic16_pCode2str): fixed bug that didn't emit the memory access
9224         identifier for variable with banked access in instructions BTFSS,
9225         BTFSC, BCF, BSF, BTG
9226         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
9227         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
9228         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
9229         perform optimization when enviroment variable NO_REG_OPT is set,
9230         * (insideLRBlock): NEW, return 1 if register is inside an
9231         INF_LOCALREGS block,
9232         * (RemoveRegFromLRBlock): remove a register that is completely
9233         eliminated by register optimization, but it is still left in local
9234         register store/restore in/from stack block,
9235         * (Remove2pcodes): after removing register, check to see if it
9236         should be removed from local register store/restore in/from stack
9237         block,
9238         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
9239         DUMMY_READ_VOLATILE,
9240
9241         * device/include/pic16/adc.h: minor prototype modifications and
9242         update,
9243         * device/include/pic16/malloc.h: added GPL notice various
9244         modifications,
9245         * device/include/pic16/stdint.h: NEW, standard header for ints
9246         * device/include/pic16/delay.h: NEW, header for delay functions,
9247         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
9248         delay1mtcy,
9249         * device/include/pic16/signal.h: NEW, header providing helper macros
9250         for implementing signal handlers,
9251         * device/include/pic16/stdio.h: added prototypes for functions,
9252         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
9253         prototypes for stdin and stdout, added macro PUTCHAR to
9254         automatically implement putchar function prototype,
9255         * device/include/pic16/usart.h: modified and updated USART library,
9256         * device/lib/pic16/libio/adc/,
9257         * device/lib/pic16/libio/i2c: some modifications to improve library
9258         performance,
9259         * device/lib/pic16/libc/stdio/: modifications for the new printf*
9260         family of functions,
9261         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
9262         family of functions and other sources,
9263         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
9264         of the PIC18Fxx[28] devices,
9265         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
9266         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
9267         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
9268         _do_cinit function, because the previous failed when local variables
9269         where not placed in the same memory bank,
9270         * device/lib/pic16/libsdcc/char/: various modifications to improve
9271         library performance,
9272         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
9273         information on the new functions of the c library and more...
9274
9275 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9276
9277         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
9278
9279 2005-03-26 Raphael Neider <rneider AT web.de>
9280
9281         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
9282           if condition == CARRY)
9283         * (genCmp): adapted to new genSkipc semantics
9284         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
9285           on rIfx (genCmp was broken)
9286
9287 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9288
9289         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
9290         * src/z80/main.c (_keywords[]),
9291         * src/SDCCglobal.h (struct options),
9292         * src/SDCC.y,
9293         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
9294         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
9295         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
9296         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
9297         always available in leading double underscore form. The C99 support is
9298         mostly missing, but it's a start.
9299         * support/regression/tests/bug-227710.c: fixed nonconforming use of
9300         reserved identifier "__data".
9301
9302 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
9303
9304         * src/mcs51/peeph.def: fixed bug 1170013
9305
9306 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
9307
9308         * device/include/mcs51reg.h: fixed bug 842007
9309
9310 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9311
9312         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
9313         last time.
9314
9315 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9316
9317         * src/port.h (struct PORT),
9318         * src/avr/ralloc.c (avr_assignRegisters),
9319         * src/avr/main.c,
9320         * src/ds390/ralloc.c (ds390_assignRegisters),
9321         * src/ds390/main.c,
9322         * src/hc08/ralloc.c (hc08_assignRegisters),
9323         * src/hc08/main.c,
9324         * src/mcs51/ralloc.c (mcs51_assignRegisters),
9325         * src/mcs51/main.c,
9326         * src/pic/ralloc.c (pic14_assignRegisters),
9327         * src/pic/main.c,
9328         * src/pic16/ralloc.c (pic16_assignRegisters),
9329         * src/pic16/main.c,
9330         * src/xa51/ralloc.c (xa51_assignRegisters),
9331         * src/xa51/main.c,
9332         * src/z80/ralloc.c (z80_assignRegisters),
9333         * src/z80/ralloc.h,
9334         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
9335         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
9336         * src/SDCCcse.h,
9337         * src/SDCCdflow.c (computeDataFlow),
9338         * src/SDCCdflow.h,
9339         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
9340         * src/SDCCloop.h,
9341         * src/SDCCcflow.c (*),
9342         * src/SDCCcflow.h,
9343         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
9344         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
9345         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
9346         immedDom() returning wrong block; probably fixes bug #1160833)
9347
9348 2005-03-20 Borut Razem <borut.razem AT siol.net>
9349
9350         * support/scripts/inc2h.pl: WIN32 port
9351
9352 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
9353
9354         * device/lib/makefile.in: added abs.c and labs.c
9355
9356 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
9357
9358         * device/include/stdint.h: added
9359         * device/lib/abs.c: added
9360         * device/lib/labs.c: added
9361         * device/include/stdlib.h: added abs() and labs() prototypes
9362         * device/lib/libsdcc.lib: added abs and labs
9363         * device/include/float.h,
9364         * device/lib/_fsmul.c,
9365         * device/lib/printf_fast.c,
9366         * device/lib/printf_tiny.c: updated comments
9367
9368 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9369
9370         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
9371         bug #1164313
9372
9373 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9374
9375         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
9376         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
9377
9378 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
9379
9380         * device/lib/printf_large.c: removed inline assembly for portability and
9381           readability. Use printf_fast if speed or size are more important.
9382         * src/pic16/gen.c: removed conditions around use of DEBUGpc
9383         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
9384
9385 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
9386
9387         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
9388         prevent compiler warning
9389
9390 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
9391
9392         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
9393         moved to level 0 and declared as static. Also they are explicit
9394         placed in access bank. This was necessery because some times they
9395         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
9396         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
9397         optimizations. Currently only compare to unsigned char is implemented,
9398         * src/pic16/gen.c: added fReturnIdx array,
9399         * (struct resolvedIfx) is moved to gen.h and made public,
9400         * (struct _G): added sregsAlloc and sregsAllocSet fields,
9401         * (aopForSym): added an optimization to directly store in stack of
9402         the operand of a SEND iCode,
9403         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
9404         but as registers instead (AOP_REG) using the fReturnIdx array,
9405         * (pic16_freeAsmop): remove the freed register from the
9406         _G.sregsAlloc field,
9407         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
9408         a compare of 'WREG',
9409         * (pic16_popGetTempRegCond): changed function prototype, now
9410         function takes also a bitVector argument v which holds the current
9411         set of registers that are allocated for stack access by aopForSym,
9412         registers allocated in aopForSym for accessing stack symbols are not
9413         any more part of the functions usedRegs field,
9414         * (genCall): some times aopOp is called for a stack variable to be
9415         send, aopForSym might perform the push, if this is true make sure
9416         that genCall doesn't push the variable twice by testing _G.resDirect,
9417         * (genFunction): changed testing for unspecified interrupt number
9418         from 256 to INTNO_UNSPEC,
9419         * modified selection scheme of frame pointer generation. Previously
9420         if function did use local registers a frame pointer was generated,
9421         now a frame pointer is generated only if function has arguments
9422         (that need PLUSW2 register access), or has stack arguments, or the
9423         compiler is not instructed to omit the frame pointer,
9424         * (genEndFunction): before restoring local registers that were saved
9425         in the function preamble, also restore the registers that *might*
9426         have been allocated for stack access,
9427         * (genRet): removed some old comments,
9428         * (genCmp, the active (RN's) version): added a call to the
9429         pic16_genCmp_special function to perform the compare with a more
9430         robust and optimized way,
9431         * (genInline): a feature has been added in inline code generation,
9432         which allows a wildcard variable substitution when writing inline
9433         assembly. Code is incomplete and experimental therefore undocumented,
9434         * (genCast): changed order of aopOp for result and right to allow
9435         aopForSym to directly load the result if possible,
9436         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
9437         perform an optimized compare on some selected special occasions,
9438         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
9439         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
9440         generate an IVT any more,
9441         * src/pic16/main.c (pic16_optionsTable): added command line option
9442         --optimize-cmp,
9443         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
9444         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
9445         macros,
9446         * src/pic16/NOTES: Raphael Neider added in list of active developers
9447         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
9448         jumptable_end to prevent bug #,
9449         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
9450         inCond and outCond fields,
9451         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
9452         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
9453         turn off register spilling,
9454         * (packRegsForOneUse): synced with other ports' versions although it
9455         is not used currently,
9456         * (pic16_packRegisters): added an optimization while reading
9457         structure bitfields, some registers may be saved (malloc code is
9458         decreased by 80 bytes)
9459
9460 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
9461
9462         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
9463         left is a bitfield, if yes, then don't optimize assignment. Perhaps
9464         this can be optimized more?
9465
9466 2005-03-10 Raphael Neider <rneider AT web.de>
9467
9468         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
9469           genNearPointerGet): (hopefully) fixed access to bitfields via
9470           pointers (p->bitN = x; and x = p->bitN; failed)
9471
9472 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
9473
9474         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
9475
9476 2005-03-09 Raphael Neider <rneider AT web.de>
9477
9478         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
9479
9480 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
9481
9482         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
9483         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
9484           (regTypeNum): set REG_BIT type if necessary
9485         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
9486         * support/regression/tests/critical.c: check bug 1144613
9487
9488 2005-03-02 Raphael Neider <rneider AT web.de>
9489
9490         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
9491
9492 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9493
9494         * src/avr/ralloc.c (serialRegAssign),
9495         * src/ds390/ralloc.c (serialRegAssign),
9496         * src/hc08/ralloc.c (serialRegAssign),
9497         * src/mcs51/ralloc.c (serialRegAssign),
9498         * src/pic/ralloc.c (serialRegAssign),
9499         * src/pic16/ralloc.c (serialRegAssign),
9500         * src/xa51/ralloc.c (serialRegAssign),
9501         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
9502
9503 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
9504
9505         * src/SDCCast.c (decorateType): fixed bug 1124787
9506
9507 2005-02-20 Hubert Sack <sack AT digiplan.de>
9508         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9509
9510         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
9511         patch #1121755
9512
9513 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9514
9515         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
9516         to keep the correct label reference count when adding/removing references
9517         to labels. A peephole file using this is appended to patch #1144962.
9518
9519 2005-02-14 Raphael Neider <rneider AT web.de>
9520
9521         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
9522         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
9523         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
9524           retrievals of result operand's value on assignment
9525
9526 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
9527
9528         * device/include/pic16/string.h: modified prototype for memccpy()
9529         to memccpy(void *, void *, char, size_t)
9530         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
9531         check whether to omit frame pointer or not,
9532         * (genInline): convert all occurences of "\n" to LF in inline
9533         assembler blocks, this helps formatting the inline text,
9534         * (pic16_loadFSR0): modified prototype,
9535         * (genNearPointerGet, genNearPointerSet): reorganization of code,
9536         removed some 8051 legacy code,
9537         * (genPackBits): enabled handling bitfields exceeding one byte in size,
9538         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
9539         before allocating temporary registers in functions,
9540
9541 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
9542
9543         * support/regression/tests/bitvars.c: corrected the "fix"
9544
9545 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
9546
9547         * support/regression/tests/bitvars.c,
9548         * support/regression/tests/bitwise.c,
9549         * support/regression/tests/rotate.c: "fixed" problems on Alpha
9550
9551 2005-02-10 Raphael Neider <rneider AT web.de>
9552
9553         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
9554           different size for Alpha
9555         * src/pic16/gen.c (genCmpEq) : improved compare with 0
9556
9557 2005-02-09 Raphael Neider <rneider AT web.de>
9558
9559         * src/SDCC.lex(doPragma) : save and restore warning options as well
9560           (also added new stack plus clone- and copyAndFreeSDCCERRG())
9561         * have #pragma less_pedantic set the errorlevel to WARNING
9562           (fixes #1117001)
9563         * (cloneOptimize) : fixed wrong malloc's size
9564         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
9565           facilitate correct handling of #pragma (save|restore)
9566
9567 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
9568
9569         * src/mcs51/gen.c: removed non-standard C nameless struct/union
9570
9571 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
9572
9573         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
9574
9575 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
9576
9577         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
9578
9579 2005-02-02 Raphael Neider <rneider AT web.de>
9580
9581         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
9582         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
9583         * (pic16_storeForReturn): fixed to allow returning function pointers
9584         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
9585         * device/include/pic16/{stddef.h,stdbool.h}: added
9586
9587 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
9588
9589         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
9590
9591 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
9592
9593         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
9594         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
9595          appeared to be required
9596
9597 2005-01-31 Borut Razem <borut.razem AT siol.net>
9598
9599         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
9600           include/mcs51 and include/z80 directories to the package
9601
9602 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9603
9604         * src/hc08/gen.c (genFunction): fixed bug #1112752
9605
9606 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9607
9608         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
9609
9610 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9611
9612         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
9613
9614 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
9615
9616         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
9617
9618 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
9619
9620         * device/include/c8051fxxx.h: removed these 6 files
9621         * device/include/mcs51/c8051fxxx.h: added these 11 new files
9622
9623 2005-01-26 Raphael Neider <rneider AT web.de>
9624
9625         * src/pic16/gen.c (genAssign): fixed assignment from longs
9626           in codespace (were cut to three bytes)
9627         * (genDummyRead): implemented (except for CODESPACE...),
9628           fixed bug #1108575
9629         * src/pic16/glue.c (emitStatistics): beautified
9630         * device/lib/pic16/libm/Makefile: added include path
9631
9632 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9633
9634         * src/z80/gen.c (aopPut): fixed bug #1103902
9635
9636 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9637
9638         * device/lib/expf.c: fixed bug #1095792
9639
9640 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
9641
9642         * device/lib/pic16/libm: added Math library sources
9643
9644 2005-01-24 Raphael Neider <rneider AT web.de>
9645
9646         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
9647           to enable upcast to pCodeOpReg2 (there is no type tag to
9648           differenciate the two and pic16_popGet2p cast into PCOR2)
9649         * src/pic16/main.c (_process_pragma): fixed another malloc bug
9650           (sizeof(sectNames) changed to sizeof(sectName))
9651           Both patches fix segfaults under MinGW.
9652
9653 2005-01-23 Raphael Neider <rneider AT web.de>
9654
9655         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
9656           Safe_[mc]?alloc()'ed variables
9657         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
9658           of (byte sized) temporaries (assign them to WREG for now)
9659         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
9660           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
9661           this might fix SIGSEGVs on MinGW...
9662         * src/SDCCopt.c (killDeadCode): restored original behaviour
9663           (volatile operands might get thrown away though)
9664
9665 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
9666
9667         * src/pic16/gen.c: fixed bug #1106975,
9668         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
9669         pointer update, INTCON is saved, global interrupts are disabled and
9670         restored after updateing TOS.
9671         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
9672         * added function attribute 'shadowregs' to take advantage of shadow
9673         registers,
9674         * added function attribute 'wparam' as an alternative to the wparam
9675         pragma,
9676         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
9677         user declares a non-ISR function as 'shadowregs',
9678         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
9679
9680 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
9681
9682         * .version: bumped version number to 2.4.8
9683         * device/lib/pic16/pics.all: list of PIC18F devices supported by
9684         pic16 port,
9685         * device/lib/pic16/libio/i2c/: I2C module support library,
9686         * device/include/pic16/i2c.h: I2C support library header,
9687         * device/lib/pic16/libc/stdio/: standard IO support sources,
9688         * (printf_small.c): printf_small() source, supports float print,
9689         * (printf_tiny.c): printf_tiny() source, does not support floats,
9690         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
9691         enable global optimizations for entire library source, other
9692         Makefiles in the source tree are also modified to reflect this,
9693         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
9694         function,
9695         * doc/sdccman.lyx: updated to reflect new changes,
9696         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
9697         sym->onStack if-case,
9698         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
9699         sbit, idata, _idata, xdata, _xdata,
9700         * added pragma library, to link an external library, (see doc),
9701         * removed command line options, --pomit-config-words, --pomit-ivt,
9702         --pleave-reset-vector,
9703         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
9704         when calling assembler to reflect memory model used, also define
9705         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
9706         reflect stack model used,
9707         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
9708         on stack return NULL,
9709
9710 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
9711
9712         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
9713           of the operands is volatile. Fixes #1020220
9714
9715 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
9716
9717         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
9718         * (OptimizeRegUsage): make sure that there is really no other flow where
9719           the first pCode is used
9720
9721 2005-01-22 Raphael Neider <rneider AT web.de>
9722
9723         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
9724           to fix #1106967 (pCode->seq are not set up correctly)
9725
9726 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9727
9728         * src/SDCCglue.c (glue): make sure code area is declared before the
9729         static initialization area.
9730
9731 2005-01-21 Raphael Neider <rneider AT web.de>
9732
9733         * device/lib/Makefile.in: fixed test for pic16 install dir
9734         * device/lib/pic16/*/Makefile*: modified compile flags to enable
9735           optimizations
9736         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
9737           added --optimize-goto compiler switch and pragma wparam documentation
9738         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
9739         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
9740           and PRODH closing bug #1071770 (peephole optimizer)
9741
9742 2005-01-19 Raphael Neider <rneider AT web.de>
9743
9744         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
9745           cmdLine buffers (used when calling sdcpp...) are large enough
9746           (MAX_PATH=256 truncates arguments leading to system halts when
9747           used in MinGW...)
9748         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
9749         * (genUminus): rewritten to for efficiency
9750         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
9751           used uninitialized in some cases)
9752         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
9753           copy the third byte from the int -- now assumes 0x80 (data memory)
9754         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
9755           operands (genAddLit expects the iCode's operands to swapped as
9756           well), fixed leftover bytes (crashed for short left operands)
9757         * (pic16_genMinusDec): performance improvements, removed false
9758           PIC14 emitSKPNCs
9759         * (pic16_genMinus): fixed to cope with differently sized operands
9760         * src/pic16/glue.c (pic16_glue): added new banksel optimization
9761           for --obanksel > 1
9762         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
9763         * src/pic16/graph.[ch]: implementation of directed graphs, used by
9764           new banksel optimization
9765         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
9766           analysis for temporary registers (segfaults...)
9767         * src/pic16/peeph.def: added rule
9768
9769 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
9770
9771         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
9772         which converts a float number to its ASCII representation
9773         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
9774         functions to convert the fractional and integer part of a float to ASCII,
9775         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
9776         realloc.c): added _MALLOC_SPEC to explicit place variables in data
9777         ram
9778         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
9779         _STATMEM macros,
9780         * device/include/pic16/adc.h: added GPL info,
9781         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
9782         a pCodeOp as tested operand,
9783         * (genNearPointerGet): optimized bit testing, does not use
9784         intermediate register for bit value, test directly instead with
9785         BTFSS, BTFSC, works only for single bits,
9786         * (genpic16Code): dump the name of the iCode in the asm,
9787         * src/pic16/ralloc.c (decodeOp): removed static declaration and
9788         renamed to pic16_decodeOp,
9789         * (serialRegAssign): do not allocate a temporary register for iCode
9790         sequences that test a single bit for 1/0
9791
9792 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
9793
9794         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
9795         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
9796         access stack and frame pointers. They are initially assigned to
9797         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
9798         accessing SFRs. Updated all occurences of modification of stack or
9799         frame pointer in gen.c and pcode.c,
9800         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
9801         assigning of a literal value to pointers,
9802         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
9803         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
9804         selected
9805
9806 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
9807
9808         * doc/sdccman.lyx: update documentation about stack pragma, added
9809         some info for stack memory models
9810
9811 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9812
9813         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
9814
9815 2005-01-08 Raphael Neider <rneider AT web.de>
9816
9817         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
9818           udata sections to fix bug #1097823
9819
9820 2005-01-05 Raphael Neider <rneider AT web.de>
9821
9822         * src/pic16/gen.c (genGenericShift): added handling of differently
9823           sized left operand and result
9824
9825 2005-01-04 Raphael Neider <rneider AT web.de>
9826
9827         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
9828         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
9829           to hold the condition bit)
9830         * added new version of genCmp (old code available via #define)
9831         * added new version of genShiftLeft/genShiftRight in a generic
9832           way, now supports shifting by negative values
9833         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
9834           shiftCount (expected by genGenericShift)
9835         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
9836         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
9837           dump
9838         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
9839           is an invalid literal too...)
9840
9841 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
9842
9843         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
9844         from Raphael Neider,
9845         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
9846         for 8-bit literals. This fixes some literal operands which are sign
9847         extended to 16-bits ints when instruction needs only 8-bits.
9848
9849 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
9850
9851         * device/lib/logf.c: added mcs51 assembly version
9852         * device/lib/expf.c: added mcs51 assembly version
9853         * device/lib/_logexpf.c: new shared asm code for expf and logf
9854         * device/include/math.h: add defines for assembly math library
9855         * device/lib/Makefile.in: build new _logexpf.c
9856         * device/lib/libfloat.lib: use new _logexpf.c
9857
9858 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9859
9860         * src/pic/device.c
9861         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
9862           device types which have less than 0x7f registers.
9863
9864 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9865
9866         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
9867
9868 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9869
9870         * device/lib/printf_fast.c: only build on supported arch.
9871         * device/lib/printf_tiny.c: only build on supported arch.
9872         * device/lib/printf_fast_f.c: only build if asm float lib
9873         * device/lib/_fsget1arg.c: only build if asm float lib
9874         * device/lib/_fsget2args.c: only build if asm float lib
9875         * device/lib/_fsnormalize.c: only build if asm float lib
9876         * device/lib/_fsreturnval.c: only build if asm float lib
9877         * device/lib/_fsrshift.c: only build if asm float lib
9878         * device/lib/_fsswapargs.c: only build if asm float lib
9879         * device/include/stdio.h: don't provide print_fast,
9880           print_fast_f, print_tiny prototypes if --xstack used
9881
9882 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
9883
9884         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
9885         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
9886           to the SOURCES
9887
9888 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9889
9890         * device/lib/printf_fast_f.c: same as printf_fast, but
9891           with floating point enabled
9892         * device/lib/printf_fast.c: minor tweaks
9893         * device/include/stdio.h: add printf_fast_f
9894
9895 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9896
9897         * src/SDCCmain.c: make --float-reent default for mcs51
9898         * device/lib/_fsadd.c: added mcs51 assembly version
9899         * device/lib/_fssub.c: added mcs51 assembly version
9900         * device/lib/_fsmul.c: added mcs51 assembly version
9901         * device/lib/_fsdiv.c: added mcs51 assembly version
9902         * device/lib/_fseq.c: added mcs51 assembly version
9903         * device/lib/_fsneq.c: added mcs51 assembly version
9904         * device/lib/_fsgt.c: added mcs51 assembly version
9905         * device/lib/_fslt.c: added mcs51 assembly version
9906         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
9907         * device/lib/Makefile.in: add _fscmp to build
9908         * device/lib/libfloat.lib: add _fscmp to build
9909
9910 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9911
9912         * device/lib/_fs2slong.c: added mcs51 assembly version
9913         * device/lib/_fs2sint.c: added mcs51 assembly version
9914         * device/lib/_fs2schar.c: added mcs51 assembly version
9915         * device/lib/_fs2ulong.c: added mcs51 assembly version
9916         * device/lib/_fs2uint.c: added mcs51 assembly version
9917         * device/lib/_fs2uchar.c: added mcs51 assembly version
9918         * device/lib/_slong2fs.c: added mcs51 assembly version
9919         * device/lib/_sint2fs.c: added mcs51 assembly version
9920         * device/lib/_schar2fs.c: added mcs51 assembly version
9921         * device/lib/_ulong2fs.c: added mcs51 assembly version
9922         * device/lib/_uint2fs.c: added mcs51 assembly version
9923         * device/lib/_uchar2fs.c: added mcs51 assembly version
9924         * device/include/float.h: added #define to select asm vs c
9925
9926 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
9927
9928         * device/lib/printf_fast.c: improvements to float output
9929         * device/include/float.h: add defines for assembly float library
9930         * device/lib/_fsget1arg.c: receive 1 float arg
9931         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
9932         * device/lib/_fsnormalize.c: normalize a float
9933         * device/lib/_fsreturnval.c: return float, various helper routines
9934         * device/lib/_fsrshift.c: right shift a float's mantissa
9935         * device/lib/_fsswapargs.c: swap 2 floats
9936         * device/lib/Makefile.in: build these 6 new files for mcs51
9937         * device/lib/libfloat.lib: add these 6 files to the library
9938
9939 2004-12-26 Borut Razem <borut.razem AT siol.net>
9940
9941         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
9942           built by gcc 3.4.2
9943
9944 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
9945
9946         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
9947           and fully reentrant and register bank neutral.
9948         * device/lib/printf_fast.c: added float (not enabled by default),
9949           added compact/slower integer (also not enabled by default),
9950           improved size/speed of fast integer code, other minor changes
9951         * device/include/stdio.h, device/lib/Makefile.in,
9952           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
9953
9954 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
9955
9956         * src/pic16/pcode.c: declaring variables other than at the start of a
9957           block is not supported in C by VC6.
9958
9959 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
9960
9961         * applied a previous patch from Raphael Neider that wasn't included
9962         in the previous commits, which fixes infinite loops within jumptable
9963         improvements,
9964         * made some fixes that previous patches introduced
9965
9966 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
9967
9968         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
9969         that fixes an issue with AOP_PCODE asmop's offset,
9970         * (pic16_popCopyReg): update instance field too,
9971         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
9972         function of pic port,
9973         * (genCmp, genAnd, genAssign),
9974         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
9975
9976 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
9977
9978         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
9979         variables initial values to idata section,
9980         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
9981         variables in some functions. This utilizes parmBytes field of iCode
9982         structure to hold the offset of the variable in stack. (might be
9983         able to use the stack field too?)
9984         * applied patch from Raphael Neider # ### , # ###
9985         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
9986         variable initial values in idata section,
9987         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
9988         for static variables with initial value
9989         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
9990         applied fix in while loop from Raphael Neider.
9991
9992 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
9993
9994         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
9995         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
9996         * src/ds390/ralloc.c (serialRegAssign): spill bits
9997         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
9998         * support/Util/SDCCerr.c,
9999         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
10000         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
10001         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
10002
10003 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
10004
10005         * device/include/sdcc-lib.h: inserted LGPL, added includes
10006           asm/ds390/features.h and asm/mcs51/features.h
10007         * device/include/asm/default/features.h,
10008         * device/include/asm/gbz80/features.h,
10009         * device/include/asm/z80/features.h: added empty _AUTOMEM
10010           and _STATMEM
10011         * device/include/asm/ds390/features.h,
10012         * device/include/asm/mcs51/features.h: added files with defines for
10013           _AUTOMEM and _STATMEM indicating automatic and static storage class
10014         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
10015         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
10016         * src/SDCCicode.c (geniCodeCast),
10017         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
10018         * src/SDCCloop.c (loopInduction): removed unused variable lr
10019         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
10020           to convertToFcall to include char modulo (RFE 1065037), added check
10021           if left operand is unsigned and use abs of literal value
10022         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
10023           as it doesn't work after conversion from peephole.def to peephole.rul
10024         * src/mcs51/gen.c (toBoolean): added check for size,
10025           (genModOneByte): optimized code for signed char modulo a literal
10026           power of 2 (thanks to Hubert Sack),
10027           (genRRC): removed unnecessary "clr c",
10028           (genRLC): replaced "add a,acc" with cheaper "rlc a"
10029         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
10030           jump optimization,
10031           swapped rules 256.c and 256.d,
10032           extended 256.d by using new multiple checks (thanks Erik),
10033           added rules 256.e and 256.f,
10034           updated rule 261.a and 261.b to new generated code
10035         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
10036
10037 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10038
10039         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
10040           induction related bugs, including first part of bug #1074377
10041
10042 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
10043
10044         * applied patch from bug-report #1076292,
10045         * applied patches for genAnd and Goto-optimizations for Raphael
10046         Neider,
10047         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
10048         dump a less iCode information,
10049         * src/pic16/device.h (pic16_options_t): added field debgen,
10050         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
10051         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
10052         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
10053         puclic,
10054         * (various functions): added macros FENTRY and FENTRY2 to functions,
10055         to emit function prologue,
10056         * (various functions): fixed indentation,
10057         * (genNearPointerGet): fixed loading of FSR0,
10058         * (genPackBits): applied patch from Raphael Neider to fix updating
10059         of FSR0 and touching only the modified bits,
10060         * src/pic16/genarith.c (various functions): added macros FENTRY to
10061         emit function prologue in comments,
10062         * src/pic16/pcode.h: added functions debugf2, debugf3,
10063         * src/pic16/ralloc.c: partial fix for packForPush caused
10064         segmentation fault,
10065
10066 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10067
10068         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
10069           <stsp AT users.sourceforge.net> with reversed byte order
10070         * support/regression/tests/rotate.c: added (ds390 skips some tests)
10071
10072 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10073
10074         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
10075           bug #1074377
10076         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
10077         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
10078
10079 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
10080
10081         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
10082
10083 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10084
10085         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
10086           conditions,
10087           (setFromConditionArgs): friendly operand parser for peephole rules,
10088           (operandBaseName, operandsNotRelated): new peephole condition
10089           "operandsNotRelated" -- similar to "operandsNotSame", but takes
10090           architecture specific register naming into account, handles n-way
10091           comparisons, and supports quoted literals
10092         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
10093
10094 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10095
10096         * src/mcs51/peeph.def: fixed bug #1076940
10097
10098 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
10099
10100         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
10101
10102 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10103
10104         Adding support for replacing ljmps with sjmps in jumptables
10105         generated for switch statements. For now you need to set the
10106         environment variable SDCC_SJMP_JUMPTABLE to enable this.
10107         Now 4 algorithms for mcs51 jumptable generation are used:
10108         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
10109         addresses loaded pc-relative for up to 112 cases and stack-pushing
10110         target addresses loaded with offset from dptr for up to 256 cases.
10111
10112         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
10113         * src/mcs51/main.c: adapted constants for switch table generation
10114         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
10115
10116 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
10117
10118         * device/lib/printf_large.c (_print_format): fixed bug 1073386
10119         * support/regression/tests/bug1057979.c: added test for bug 1073386
10120
10121 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
10122
10123         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
10124         compilers
10125
10126 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
10127
10128         * src/pic16/device.h,
10129         * src/pic16/genarith.c,
10130         * src/pic16/glue.c,
10131         * src/pic16/main.c,
10132         * src/pic16/pcode.c: applied patches #1068154 and #1070213
10133
10134 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
10135
10136         Large cummulative patch for pic16 port.
10137         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
10138         to call when a stack overflow occurs,
10139         * (malloc.h): added CVS Id tag,
10140         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
10141         variable,
10142         * added libc directory. The current version of LibC contains string
10143         functions, ctype functions and macros and some functions of the
10144         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
10145         be extensively tested in the future. Standard disclaimer here.
10146         Library is not automatically build yet. But one can build it by
10147         invoking 'make' inside the libc directory.
10148         * added ADC library under libio. Preliminary version yet.
10149
10150         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
10151         * src/pic16/gen.c (aopForRemat): asmop size is filled by
10152         aopForRemat() now and not by pic16_aopOp(),
10153         * (pic16_popGetTempReg): removed warning messgae when allocating
10154         temporary registers, its a buggy feature and will be removed,
10155         * (pic16_popGet): set register instance field in AOP_CRY,
10156         * (pic16_outBitC): fixed for results in size greater than 1,
10157         * (genUminusFloat): fixed for pic16, ported code from mcs51,
10158         * (pic16_storeForReturn): optimized return of 0,
10159         * (genCmp): experimental code for new genCmp which uses PIC18's
10160         special compare&skip instructions. Initial tests fail some times
10161         with variables grater than 1 byte in size, so new code is disabled,
10162         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
10163         a single bit,
10164         * (genCast): began a fix to optimize the casting of a bit to another
10165         bit, now assigning a bitfield to another bitfield will fail, sorry,
10166         * src/pic16/main.c: disabled the use of lr-support feature,
10167         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
10168         * added some function prototypes, added function _debugf prototype,
10169         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
10170         bits with offset (case PO_GPR_BIT),
10171         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
10172         command line,
10173         * (isBankInstruction): modified to return 0 for no banking instruction,
10174         and 1 for banking instruction,
10175         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
10176         caused stop processing pCodes after a inline assembly block,
10177         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
10178         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
10179         registers when it shouldn't,
10180         * src/pic16/ralloc.c (allocReg): add preliminary support for
10181         supporting a limited set of temporary registers,
10182
10183 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10184
10185         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
10186           genDataPointerSet): ensure assignments always copy in MSB to LSB
10187           order,
10188           (loadRegFromAop): recognize CLRH optimization,
10189           (genFunction): optimize RECEIVE iCodes in reentrant functions
10190
10191 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10192
10193         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
10194           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
10195           selected.
10196         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
10197         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
10198           contiguous with data
10199
10200 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10201
10202         * device/lib/_gptrget.c (_gptrget),
10203         * device/lib/_gptrgetc.c (_gptrgetc),
10204         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
10205           instead of sjmp to ret
10206         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
10207           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
10208
10209 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
10210
10211         * .version: bumped version to 2.4.7
10212         * device/lib/_gptrget.c (_gptrget): is now _naked
10213         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
10214         * device/lib/_gptrput.c (_gptrput): is now _naked
10215         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
10216           (createFunction): fixed xstack
10217         * src/SDCCglue.c (emitMaps): set allocation required for bit area
10218         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
10219           or bit either,
10220           (geniCodeCritical): store original interrupt state in an iTemp bit
10221           var unless stack-auto
10222         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
10223         * src/SDCCmain.c (setIncludePath): added include/target to search path
10224         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
10225         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
10226           prototype,
10227           (processFuncArgs): put bit vars in bit area
10228         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
10229           unsaveRBank): fixed xstack,
10230           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
10231           (genFunction, genEndFunction): fixed xstack,
10232           (genAssign): optimization don't walk backwards through mem
10233         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
10234         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
10235         * support/regression/Makefile: also make library (for stack-auto) when
10236           making "all" and added "test-mcs51-xstack-auto"
10237         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
10238         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
10239         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
10240         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
10241         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
10242           make-library by MAKE_LIBRARY
10243         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
10244           regression tests for xstack
10245         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
10246         * support/regression/tests/critical.c: test for critical on mcs51
10247
10248 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10249
10250         * support/regression/ports/ucz80/spec.mk: use include and lib files from
10251           built version of sdcc instead of installed version
10252
10253 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
10254
10255         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
10256         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
10257           vprintf.c now
10258         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
10259         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
10260           WARNING: remove device/lib/build/z80/printf.o by hand when
10261           updating from previous build!
10262         * device/lib/z80/printf.c: updated comment
10263         * support/regression/tests/bug1057979.c: test all ports now
10264         * support/regression/tests/bug1065458.c: file added
10265
10266 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10267
10268         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
10269           *_start and *_end symbols for static functions
10270
10271 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
10272
10273         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
10274           and search crt0.o in all library paths,
10275           (setIncludePath): proper handling of --nostdinc,
10276           (setLibPath): proper handling of --nostdlib
10277         * support/regression/Makefile,
10278         * support/regression/ports/ds390/spec.mk,
10279         * support/regression/ports/gbz80/spec.mk,
10280         * support/regression/ports/hc08/spec.mk,
10281         * support/regression/ports/mcs51/spec.mk,
10282         * support/regression/ports/mcs51-large/spec.mk,
10283         * support/regression/ports/mcs51-stack-auto/spec.mk,
10284         * support/regression/ports/z80/spec.mk: use include and lib files from
10285           built version of sdcc instead of installed version
10286         * doc/sdccman.lyx: fixed typo in --nostdinc
10287
10288 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
10289
10290         * src/pic/pcode.c,
10291         * src/pic/device.c,
10292         * src/pic/ralloc.c,
10293         * src/pic/gen.c : added support to generate code for struct bit fields.
10294
10295 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
10296
10297         * as/xa51/xa_version.h,
10298         * device/include/errno.h,
10299         * device/include/regc515c.h,
10300         * device/lib/_itoa.c,
10301         * device/lib/_ltoa.c,
10302         * device/lib/ser_ir_cts_rts.c,
10303         * sim/ucsim/xa.src/glob.cc,
10304         * sim/ucsim/xa.src/inst_gen.cc,
10305         * sim/ucsim/xa.src/xa_bit.cc,
10306         * sim/ucsim/xa.src/xa_sfr.cc,
10307         * sim/ucsim/z80.src/inst_dd.cc,
10308         * sim/ucsim/z80.src/inst_fdcb.cc,
10309         * support/scripts/keil2sdcc.pl,
10310         * src/pic16/pic16.dsp,
10311         * src/pic16/pic16a.dsp: corrected cvs line endings
10312         * device/lib/printf_large.c: fixed bug 1057979
10313         * src/pic16/gen.c: fixed non-C standard code
10314         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
10315         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
10316         * support/regression/ports/mcs51/support.c: reload T1 asap
10317         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
10318           pdata use and clear idata startup behaviour
10319         * support/regression/tests/bug1057979.c: added
10320
10321 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
10322
10323         * device/examples/ds390/ow390/ad26.h,
10324         * device/examples/ds390/ow390/cnt1d.h,
10325         * device/examples/ds390/ow390/crcutil.c,
10326         * device/examples/ds390/ow390/ownet.h,
10327         * device/examples/ds390/ow390/owsesu.c,
10328         * device/examples/ds390/ow390/swt12.h,
10329         * device/examples/ds390/ow390/swtoper.c,
10330         * device/examples/ds390/ow390/temp10.h,
10331         * device/examples/ds390/ow390/thermodl.c,
10332         * device/examples/ds390/tinitalk/tinitalk.dsp,
10333         * device/examples/ds390/tinitalk/tinitalk.dsw,
10334         * device/examples/mcs51/clock/hw.h,
10335         * device/examples/mcs51/simple2/go.bat,
10336         * device/examples/serialcomm/windows/serial.h,
10337         * device/examples/xa51/dummy.c,
10338         * device/examples/xa51/hello.c,
10339         * device/include/80c51xa.h,
10340         * device/include/at89x051.h: corrected cvs line endings
10341
10342 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
10343
10344         * src/pic16/main.c (options): added command line --gstack, to trace
10345         stack over/under flows,
10346         * added pragma 'wparam' to allow passing first byte of function
10347         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
10348         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
10349         call to __gstack_test function and sets up the symbol as extern,
10350         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
10351         * popaop): added call to pic16_testStackOverflow,
10352         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
10353         wparamList list,
10354         * (genCall, genPcall): now all parameters are passed via stack
10355         except in functions that are pass to wparam pragma in which WREG is
10356         used too,
10357         * (genPcall): REENTRANT flag is checked to see if variable prototype
10358         contains reentrant keyword, don't call a non-reentrant function, via
10359         a reentrant function pointer or vice versa, functions are never
10360         passed via WREG,
10361         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
10362         D.Winkler,
10363         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
10364         SIGSEGV when accessing a NULL register stucture,
10365         * (pic16_printGPointerType): modified to handle UPPER modifier for
10366         function initializers, changed prototype of function to simpler one,
10367         * (pic16_printIvalFuncPtr): check to see if function is already
10368         added in externs list,
10369         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
10370         optimized a move from W to SFR with a move to the same register
10371         later after a CALL,
10372         * device/lib/pic16/debug: NEW directory, contains debug features
10373         which are enabled when linking with libdebug.lib, currently command
10374         line option --gstack enables stack pointer tracing for over/under
10375         flow, corresponding sources are in debug/gstack
10376
10377 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
10378
10379         * doc/sdccman.lyx: updated SDCC version,
10380         * (PIC16 port): update list of command line options,
10381         * src/pic16/device.h (structure pic16_options_t): added field gstack
10382         to enable stack overflow tracing on push/pops,
10383         * src/pic16/device.c (statistics structure): added statistics
10384         structure,
10385         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
10386         pic16_dump_int_registers): increase statistics counters for each
10387         * variable which is encountered
10388         * (pic16_dump_usection): emit each .udata variable to its own udata
10389         section,
10390         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
10391         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
10392         parameters via stack, otherwise use old scheme,
10393         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
10394         assembler output file,
10395         * src/pic16/main.c: added command line options --gstack to enable
10396         push/pop tracing for stack overflow,
10397         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
10398         instructions): added size of each instruction,
10399         * (pic16_countInstruction): estimate size of instructions in
10400         the_pFile list, inline assembly blocks are not counted,
10401         * (pic16_FixRegisterBanking): trace previous register usage, when
10402         banksel optimizations is greater than 0, don't emit a redudant
10403         banksel directive,
10404
10405 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
10406
10407         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
10408         * src/pic16/ralloc.c : applied same fix for pic16.
10409         * src/pic/gen.c : tidied it up a little.
10410
10411 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10412
10413         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
10414         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
10415
10416 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10417
10418         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
10419
10420 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10421
10422         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
10423         non-reentrant function __modsint in the interrupt function (thus
10424         corrupting math operations during serial I/O)
10425         * device/lib/ser_ir.c: as above, changed buffersize
10426         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
10427         256.c,d for zeroing
10428         * doc/Makefile: added option -t for rsync
10429
10430 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10431
10432         * src/SDCCast.h (struct ast),
10433         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
10434
10435 2004-10-20 Borut Razem <borut.razem AT siol.net>
10436
10437         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
10438         package
10439
10440 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
10441
10442         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
10443         makefile targets,
10444         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
10445         support functions to replace long sequences of MOVFF's from access
10446         bank registers to stack and vice versa,
10447         * src/pic16/device.h: added new field opt_flags, where optimization
10448         flags can be set to enable certain features,
10449         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
10450         * pBlock, (genFunction, genEndFunction): surroung loop for
10451         saving/loading used registers in stack with PC_INFO pCodes,
10452         INF_LREGS. Code in between can then be optimized by pCode optimizer
10453         to support function calls,
10454         * (genDataPointerSet): fixed bug which loaded float fields in
10455         structures with corrupt data,
10456         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
10457         in a standard way debug info on stderr. Feature used for developing
10458         and debugging only,
10459         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
10460         obsolete chunks of code,
10461         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
10462         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
10463         * pic16/src/pcode.c (pic16_newpCodeInfo,
10464         * (pic16_newpCodeOpLocalRegs),
10465         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
10466         feature,
10467         * (pic16_pCodeConstString): printing of the initial value of a
10468         symbol as a comment is inhibited since parsing was already done by
10469         copyStr and output is corrupt,
10470         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
10471
10472 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10473
10474         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
10475
10476 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
10477
10478         * as/mcs51/lkarea.c: removed old K&R style,
10479           (lnksect): changed check on boundary error,
10480           (lnksect2): changed check on boundary error,
10481           (lnksect2): extend XSTK to end of page if size = 1
10482         * as/mcs51/lkmain.c: removed old K&R style,
10483           (Areas51): create l_IRAM symbol
10484         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
10485         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
10486           model-mcs51-stack-auto, added model-mcs51-xstack-auto
10487         * device/lib/_mullong.c: added version to be compiled with xstack
10488         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
10489         * device/lib/mcs51/crtxclear.asm: clear pdata as well
10490         * device/lib/mcs51/crtxstack.asm: fixed comment
10491         * src/SDCCglue.c: maxInterrupts defaults to 0,
10492           (emitMaps): added pdata,
10493           (createInterruptVect): (re)moved default,
10494           (glue): added pdata,
10495           (glue): moved __start__xstack to XSTK with default size 1
10496         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
10497           and options.float_rent when options.stackAuto is set,
10498           (linkEdit): only write XDATA_NAME if provided on command line
10499         * src/SDCCmem.h,
10500         * src/SDCCmem.c: added pdata
10501         * src/port.h: added pdata_name to PORT
10502         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
10503           (saveRegisters, unsaveRegisters): removed usage of B,
10504           (genMinus): fixed accumulator clash,
10505           (genJumpTab): added comment, this needs another look
10506         * src/mcs51/gen.c: added check for "B in use" paranoia,
10507           added pushB() and popB()
10508         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
10509           chance
10510         * src/avr/main.c,
10511         * src/ds390/main.c,
10512         * src/hc08/main.c,
10513         * src/mcs51/main.c,
10514         * src/pic/main.c,
10515         * src/pic16/main.c,
10516         * src/xa51/main.c,
10517         * src/z80/main.c: (reset_regparms) made void parameter explicit and
10518           added PSEG (PAG,XDATA) or NULL to port specifier
10519         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
10520         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
10521           (_mcs51_genInitStartup): removed __start__xstack equ,
10522           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
10523         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
10524         * src/z80/gen.c (_rleAppend): fixed warnings
10525         * support/regression/tests/zeropad.c: added pdata test
10526         * .version: bumped to 2.4.6
10527
10528 2004-10-17 Borut Razem <borut.razem AT siol.net>
10529
10530         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
10531         as a part of nightly build
10532
10533 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
10534
10535         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
10536         WREG holds the first byte function parameters,
10537         * (aopForSym): take special case for symbols which are in FARSPACE
10538         but in CODESPACE too,
10539         * (assignResultValue): modified to take into account _G.useWreg,
10540         * (genCall): don't use wreg for parameter passing when function is
10541         declared as reentrant, too, added optimization INCF to stack
10542         pointer when stack parameter count is 1,
10543         * (genFunction, genEndFunction): refurnished and fixed to not using
10544         wreg for passing parameters when function has varargs or is
10545         reentrant, fixed bug with symbol name compare for generating
10546         functions in absolute address,
10547         * (pic16_storeForReturn): refurnished,
10548         * (genCmp): began writing a new version of the function, not ready
10549         yet, therefore it is disabled,
10550         * (genAssign): do not read code memory when assigning a function to
10551         a pointer function,
10552         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
10553         array of characters, not pointer,
10554         * (pic16initialComments): in debug mode emit an .ident directive for
10555         the assembler,
10556         * (_process_pragma): emit a new warning type (internal to pic16)
10557         when setting stack to default length, emit a similar warning when
10558         placing a function at absolute address and address is not word aligned
10559         * (_pic16_parseOptions): added 'return TRUE' statement,
10560         * (_pic16_linkEdit): if compiling a source, then add the source's
10561         file object, first in the list of objects to link,
10562
10563 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
10564
10565         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
10566         * src/pic/main.c : removed VC warning.
10567         * src/pic/gen.c : changed comment.
10568
10569 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
10570
10571         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
10572         reference to a deprecated symbol _GPTRREG was causing failure to
10573         link. Thanks G. M. Gallant for the info.
10574
10575 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
10576
10577         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
10578         comments for Bugs item #954788.
10579
10580 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
10581
10582         * src/pic16/device.c (pic16_dump_gsection,
10583         * pic16_groupRegistersInSection): handle symbols declared to be in
10584         access bank differently,
10585         * src/pic16/gen.c (struct _G): added field resDirect,
10586         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
10587         send values read from stack directly to result and don't allocate
10588         temporary values,
10589         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
10590         same registers,
10591         * (pic16_sameRegsOfs): NEW,
10592         * (freeAsmop): if _G.resDirect is set then do not mark registers as
10593         free because they were not allocated from temporary pool,
10594         * pic16_popRegFromString): workaround to fix a problem with
10595         allocating variables twice or never,
10596         * (genGenPointerGet): using PRODL instead of FSR0H,
10597         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
10598         instead of FSR0H,
10599         * (genAssign): take advantage of the _G.resDirect flag,
10600         * (genCast): around line 11844, use mov2f instead of directly
10601         MOVFF'ing between operands to account for literal values,
10602         * src/pic16/genutils.c: some new debug functions for gpsim have been
10603         added,
10604         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
10605         float with integer part only,
10606         * src/pic16/main.c (_process_pragma): handle pragma udata access to
10607         place variables in access bank
10608         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
10609         updated sources to reflect recent changes in gen.c
10610
10611 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
10612
10613         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
10614         sources that searched for headers in installation path, now the
10615         device/include/pic16 is used,
10616         * src/pic16/glue.c (pic16glue),
10617         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
10618         .line directives if not in debug mode, this suppresses assembler's
10619         warnings for ignored directives
10620
10621 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
10622
10623         * src/port.h: made reset_regparms prototype void parameter explicit.
10624         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
10625         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
10626         * doc/sdccman.lyx: documented warning disabling and how to use
10627           printf_large to make it print floats.
10628         * device/include/stdbool.h: NEW
10629         * device/lib/_atof.c,
10630         * device/lib/_divuint.c,
10631         * device/lib/_divulong.c,
10632         * device/lib/expf.c,
10633         * device/lib/printf_large.c,
10634         * device/lib/sincosf.c,
10635         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
10636         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
10637           a completely reentrant lib.
10638
10639 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
10640
10641         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
10642         * device/include/pic16/stdio.h: fixed bug with colon
10643
10644 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
10645
10646         * device/include/pic16/stdio.h,
10647         * device/include/pic16/stdlib.h,
10648         * device/include/pic16/math.h: NEW
10649         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
10650         declared as _naked to reduce overhead
10651         * device/lib/Makefile.in (target port-specific-objects-pic16):
10652         changed * to *.* so to ignore the CVS directory,
10653         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
10654         stacked variables back in stack,
10655         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
10656         corruption
10657
10658 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
10659
10660         * .version: bumped version number to 2.4.5
10661         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
10662         * support/Util/SDCCerr.c (messages structure): added entry for
10663         W_POSSBUG2
10664
10665         Large cumulative patch for pic16 port and libraries.
10666         * device/include/pic16/sdcc-lib.h,
10667         * device/include/pic16/stdarg.h,
10668         * device/include/asm/pic16/features.h,
10669         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
10670         * device/include/pic16/float.h: changes reentrant keyword with
10671         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
10672         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
10673         updated target build-libraries to include objects from gptr,
10674         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
10675         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
10676         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
10677         all function headings,
10678         * src/SDCCmain.c: added global parameter userIncDirsSet,
10679         * (parseCmdLine): when option -I is encountered add directory to
10680         userIncDirsSet too,
10681         * src/version.awk: added space between control and long,
10682         * src/pic16/NOTES: added some notes for the port,
10683         * src/pic16/gen.c: added prototype for mov2fp function,
10684         * (fReturnpic16[]): properly named return value registers,
10685         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
10686         * (aopForSym): added code to handle symbols with onStack flag set,
10687         symbols onStack are allocated PTRSIZE bytes,
10688         * (aopFreeAsmop): handles special case where asmops are stack objects,
10689         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
10690         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
10691         added argument lock to trace flaws in allocating temporary registers
10692         when developing port,
10693         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
10694         * (pic16_popRegFromString): reenabled allocating a direct register
10695         from string,
10696         * (assignResultValue): various beautifications,
10697         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
10698         referenced function argument,
10699         * (genIpush): reenabled to allow stacked arguments, handles only
10700         ic->parmPush iCodes,
10701         * (genCall, genPcall): major changes to allow for variable argument
10702         functions, fixed a bug with falsely restoring stack pointer after
10703         returning from call,
10704         * (genFunction): pending code for critical function,
10705         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
10706         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
10707         * (genNearPointerGet): fixed bug with indirect reading, was always
10708         reading from INDF0
10709         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
10710         pointers,
10711         * (genAddrOf): rewrote code to take address of a stacked function parameter
10712         * (genCast): fixed casting to generic pointer type,
10713         * src/pic16/gen.h: added AOP_STA,
10714         * (struct asmop): added field stk,
10715         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
10716         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
10717         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
10718         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
10719         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
10720         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
10721         generic pointers,
10722         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
10723         and library paths,
10724         * (pic16_port structure): generic pointer size is set to 3,
10725         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
10726         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
10727         compiler warning,
10728         * src/pic16/ralloc.c (allocReg): prevent allocating register when
10729         operand is an iTemp,
10730
10731 2004-09-24 Martin Helmling <mh AT octo-soft.de>
10732
10733         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
10734         * debugger/mcs51/simi.c: addapt new syntax of s51
10735
10736 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
10737
10738         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
10739         * src/pic16/pcode.c: commented out some calls to free() in order to
10740         fix bug #989576,
10741
10742 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10743
10744         * src/SDCCicode.h,
10745         * src/SDCCicode.c (isiCodeInFunctionCall),
10746         * src/avr/ralloc.c (selectSpil),
10747         * src/pic/ralloc.c (selectSpil),
10748         * src/pic16/ralloc.c (selectSpil),
10749         * src/ds390/ralloc.c (selectSpil),
10750         * src/hc08/ralloc.c (selectSpil),
10751         * src/xa51/ralloc.c (selectSpil),
10752         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
10753         stack in the middle of a function call sequence (fixes bug #1020268)
10754         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
10755         costs associated with the minimum switch case.
10756
10757 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10758
10759         * src/SDCC.lex: fixed bug #1030549
10760
10761 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10762
10763         * src/SDCCcse.h (struct cseDef),
10764         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
10765         over a function call if the CSE is derived from a symbol whose
10766         address has been taken (fixes bug #1029883)
10767         * support/regression/tests/bug-1029883: a new regression test for
10768         this bug
10769
10770 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10771
10772         * src/hc08/gen.c (emitinline): fixed bug #1029778
10773         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
10774         to a cast object is no longer a syntax error ("fixes" bug #1030006,
10775         and starts toward RFE #905167)
10776
10777 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
10778
10779         * src/pic16/gen.c (mov2f): New function to move an operand to
10780         another without considering if it is a literal or a register,
10781         * (pic16_sameRegs): don't check if they are both AOP_REG,
10782         * (AccRsh): removed andmask=0 lines,
10783         * (genLeftShift): duplicated to be improved in future versions,
10784         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
10785         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
10786         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
10787         * (pic16initMnemonics): added initialization for POC_INFSNZW,
10788         * (insertBankSwitch): fixed inserting banksel directives algorithm
10789         for instructions that follow a skip instruction, this fixes a report
10790         for broken subtraction code generation,
10791         * src/pic16/ralloc.c (deassignLRs): do not free register if current
10792         iCode is a left op, just in case result and right share the same
10793         registers
10794
10795 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10796
10797         * src/hc08/main.c,
10798         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
10799         preservation of HX
10800         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
10801         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
10802         on 2004-09-12; it was buggy
10803
10804 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
10805
10806         * src/SDCCsymt.h: removed RESULT_CHECK
10807         * src/SDCCast.c,
10808         * src/SDCCglue.c,
10809         * src/SDCCval.c,
10810         * src/pic/glue.c,
10811         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
10812
10813 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
10814
10815         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
10816         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
10817         configuration values no more rejected by compiler, they are assigned
10818         to configuration registers with a warning message instead,
10819         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
10820         the for-loop so last conf register is emitted too,
10821         * (_pic16_initPaths): link library libsdcc.lib by default,
10822         * (_hasNativeMulFor): modified test for multiplication according to
10823         Raphael Neider's remarks. Integer multiplication is also done with
10824         support functions,
10825         * device/include/pic16/pic18fregs.h: corrected type error in while
10826         testing and including 18f6720 header file
10827
10828 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
10829
10830         * src/pic16/device.h (pic16_options): removed field use_crt,
10831         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
10832         until an optimization to handle single bits is added,
10833         * (pic16_loadFSR0): moved before genUnpackBits,
10834         * (genAnd): some white lines removed,
10835         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
10836         leave_reset flags in pic16_options when using crt modules,
10837
10838 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
10839
10840         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
10841           for bugs 898889 & 979599. Also used some safer print instructions.
10842
10843 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
10844
10845         * src/pic16/device.h (pic16_options_t): added field use_crt,
10846         crt_name, no_crt,
10847         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
10848         catch a probable future bug,
10849         * src/pic16/gen.c: aopIdx function commented out,
10850         * (genAssign): commented out old code which used aopIdx,
10851         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
10852         code, added if conditionals to take into account the --use-crt
10853         command line options,
10854         * src/pic16/main.c (pic16_optionsTable): added new command line
10855         options, --use-crt= and --no-crt,
10856         * (_pic16_linkEdit): now the proper crt object is added in the
10857         linker command line except than when --no-crt is specified,
10858         * src/pic16/pcode.c,
10859         * src/pic16/pcode.h: added some structures and functions for a new
10860         optimization scheme to compansate for instruction overhead between
10861         same iCodes, this scheme is currently under development and is not
10862         working in any way,
10863         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
10864         to && operator,
10865         * device/lib/pic16/startup/crt0i.c,
10866         * device/lib/pic16/startup/crt0iz.c: added global char variable
10867         __uflags to force the generation of an idata section
10868
10869 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
10870
10871         * doc/Makefile,
10872         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
10873         * doc/sdccman.lyx: updated sdcc version to 2.4.4
10874
10875 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10876
10877         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
10878         Frieder) and clarified the default code optimization mode
10879
10880 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10881
10882         * src/SDCC.lex (doPragma, process_pragma),
10883         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
10884         "opt_code_size", and "opt_code_balanced"
10885         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
10886         regrouped options by category, added support for category headers
10887         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
10888         and "--opt-code-size"
10889         * doc/sdccman.lyx: documented these new options and pragmas
10890         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
10891         preference into account
10892
10893 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10894
10895         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
10896           geniCodePreDec): Fixed bug 904237 by generating a warning
10897         * src/SDCCerr.h,
10898         * src/SDCCerr.c: added warning W_SIZEOF_VOID
10899
10900 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
10901
10902         * src/pic/device.c : When no max ram set validate full memory range.
10903         * src/pic/pcode.c,
10904         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
10905
10906 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10907
10908         * device/lib/_gptrget.c,
10909         * device/lib/_gptrput.c: updated comment
10910         * device/lib/calloc.c,
10911         * device/lib/free.c,
10912         * device/lib/malloc.c,
10913         * device/lib/realloc.c: added LGPL, made them reentrant-safe
10914         * src/SDCCcse.c (cseBBlock),
10915         * src/SDCCicode.c (printOperand, geniCodeArray),
10916         * src/SDCCicode.h (struct operand): fixed bug 868103
10917         * support/regression/tests/bug-868103.c: added
10918         * src/SDCCast.c (searchLitOp),
10919         * src/SDCCcse.h (struct cseDef),
10920         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
10921         * src/SDCCicode.h (struct operand),
10922         * src/SDCCsymt.h (struct sym_link),
10923         * src/avr/gen.c (hasInc),
10924         * src/ds390/gen.c (hasInc),
10925         * src/hc08/gen.c (genPlusIncr, hasInc),
10926         * src/mcs51/gen.c (hasInc),
10927         * src/pic16/glue.c (pic16_printIvalChar),
10928         * src/pic16/ralloc.c (regWithIdx),
10929         * src/xa51/gen.c (hasInc) : removed warnings
10930         * src/SDCCast.c (createBlock): added comment ???
10931         * src/hc08/ralloc.c: updated comments
10932
10933 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10934
10935         * doc/sdccman.lyx: updated section on switch statements, added
10936         section about semaphore locking
10937         * doc/Makefile: added option -info for latex2html
10938         * device/lib/_gptrget.c,
10939         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
10940
10941 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10942
10943         * src/pic/device.h,
10944         * src/pic/device.c,
10945         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
10946          maxram is less than 0x100.
10947
10948 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10949
10950         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
10951
10952 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10953
10954         * src/port.h,
10955         * src/mcs51/main.c,
10956         * src/ds390/main.c,
10957         * src/z80/main.c,
10958         * src/hc08/main.c,
10959         * src/pic/main.c,
10960         * src/pic16/main.c,
10961         * src/avr/main.c,
10962         * src/xa51/main.c
10963         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
10964         a jump table is the best form for a switch statement, including
10965         automatic insertion of missing cases to make the case range
10966         continuous. Developed in collaboration with Frieder Ferlemann.
10967
10968 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10969
10970         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
10971         accumulator result if it needs sign extension
10972
10973 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10974
10975         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
10976
10977 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10978
10979         * device/lib/gbz80/printf.c,
10980         * device/lib/z80/printf.c: removed define for NULL
10981
10982 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10983
10984         * as/xa51/xa_link.c,
10985         * device/examples/ds390/ow390/ad26.c,
10986         * device/examples/ds390/ow390/cnt1d.c,
10987         * device/examples/ds390/ow390/counter.c,
10988         * device/examples/ds390/ow390/ds2480.h,
10989         * device/examples/ds390/ow390/ds2480ut.c,
10990         * device/examples/ds390/ow390/findtype.c,
10991         * device/examples/ds390/ow390/gethumd.c,
10992         * device/examples/ds390/ow390/owllu.c,
10993         * device/examples/ds390/ow390/ownetu.c,
10994         * device/examples/ds390/ow390/swt12.c,
10995         * device/examples/ds390/ow390/swtloop.c,
10996         * device/examples/ds390/ow390/temp.c,
10997         * device/examples/ds390/ow390/temp10.c,
10998         * device/examples/ds390/ow390/thermo21.c,
10999         * device/examples/ds390/ow390/tinilnk.c,
11000         * device/examples/ds390/ow390/tstfind.c,
11001         * device/examples/serialcomm/windows/serial.cpp,
11002         * device/examples/serialcomm/windows/test_serialcomm.cpp,
11003         * device/include/reg51.h: fixed line endings for cvs
11004
11005 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11006
11007         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
11008         packRegsForAccUse, packRegisters): new accumulator register
11009         packing algorithm
11010         * support/regression/ports/hc08/support.c (_putchar): suppress
11011         warning of unused variable
11012         * src/SDCCicode.c: added SWAP entry to codeTable
11013
11014 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
11015
11016         * device/lib/sprintf.c: forgot to add this file before previous commit
11017
11018 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
11019
11020         * src/pic16/gen.c (genPackBits): added operand right in function
11021         parameters, load result directly if p_type is POINTER (that is
11022         called by genNearPointerSet)
11023         * (genUnPackBits): added operand left in function parameters,
11024         * (genNearPointerGet, genNearPointerSet): prevent the loading of
11025         FSR0 if accessing bitfields,
11026
11027 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
11028
11029         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
11030           _print_format; updated printf, sprintf, vsprintf
11031         * device/include/asm/default/features.h: corrected comment/define
11032         * device/lib/Makefile.in: added sprintf.c
11033         * device/lib/libsdcc.lib: added sprintf module
11034         * device/lib/printf_large.c,
11035         * device/lib/vprintf.c,
11036         * device/lib/sprintf.c: totally refactored printf_large and vprintf
11037           into these 3 files
11038         * support/regression/Makefile: changed ALL_PORTS into a usefull default
11039         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
11040         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
11041           hc08 test
11042         * support/regression/tests/zeropad.c: define idata as data for hc08
11043
11044 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11045
11046         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
11047         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
11048         labels are referenced at least once (even if a reference is not found)
11049         * src/hc08/gen.c (emitcode): set isComment flag for comments
11050         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
11051         loads), rules 6a..6b (optimize jumps to return)
11052
11053 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11054
11055         * device/lib/acosf.c (acosf),
11056         * device/lib/asinf.c (asinf),
11057         * device/lib/atanf.c (atanf),
11058         * device/lib/ceilf.c (ceilf),
11059         * device/lib/cosf.c (cosf),
11060         * device/lib/coshf.c (coshf),
11061         * device/lib/cotf.c (cotf),
11062         * device/lib/fabsf.c (fabsf),
11063         * device/lib/floorf.c (floorf),
11064         * device/lib/log10f.c (log10f),
11065         * device/lib/logf.c (logf),
11066         * device/lib/sinf.c (sinf),
11067         * device/lib/sinhf.c (sinhf),
11068         * device/lib/sqrtf.c (sqrtf),
11069         * device/lib/tanf.c (tanf),
11070         * device/lib/tanhf.c (tanhf),
11071         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
11072         replaced all instances of "reentrant" in the library functions
11073         defined in math.h with this macro.
11074         * support/regression/tests/float_trans.c: reenabled test for hc08
11075
11076 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
11077
11078         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
11079         erroneously deleted
11080
11081 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11082
11083         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
11084         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
11085         multi-byte volatile operands are used
11086         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
11087         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
11088         initialization to area GSINIT0 so that it would always precede
11089         any static initializers in GSINIT
11090         * support/regression/tests/zeropad.c: fixed idata define for hc08
11091         * support/regression/tests/bug-927659.c,
11092         * support/regression/tests/float_trans.c: disabled tests for hc08
11093         pending missing library routines
11094         * .version: increased version number to 2.4.4 - hc08 port now passes
11095         regression tests
11096
11097
11098 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
11099
11100         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
11101         * Makefile.common.in,
11102         * as/Makefile,
11103         * as/hc08/Makefile.in,
11104         * as/mcs51/Makefile.in,
11105         * as/z80/Makefile.in,
11106         * debugger/mcs51/Makefile.in,
11107         * device/include/Makefile.in,
11108         * device/lib/Makefile.in,
11109         * doc/Makefile,
11110         * link/Makefile,
11111         * link/z80/Makefile.in,
11112         * packihx/Makefile.in,
11113         * sim/ucsim/main_in.mk,
11114         * sim/ucsim/avr.src/Makefile.in,
11115         * sim/ucsim/doc/Makefile.in,
11116         * sim/ucsim/gui.src/serio.src/Makefile.in,
11117         * sim/ucsim/hc08.src/Makefile.in,
11118         * sim/ucsim/s51.src/Makefile.in,
11119         * sim/ucsim/xa.src/Makefile.in,
11120         * sim/ucsim/z80.src/Makefile.in,
11121         * src/Makefile.in,
11122         * support/cpp2/Makefile.in,
11123         * support/librarian/Makefile,
11124         * support/makebin/Makefile: added DESTDIR to the install path proposed
11125         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
11126         * doc/sdccman.lyx: added DESTDIR documentation
11127
11128 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
11129
11130         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
11131         instruction for interrupt handlers, use fast returns when returning
11132         from high priority interrupts
11133
11134 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11135
11136         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
11137         code generation
11138         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
11139         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
11140         bugs, ported much of Bernhard's code from mcs51
11141         * src/mcs51/gen.c (genSend),
11142         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
11143         than one when calling a reentrant function
11144         * device/lib/_mullong.c: defined an alternate struct layout for big
11145         endian ports (hc08)
11146
11147 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11148
11149         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
11150         test
11151
11152 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11153
11154         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
11155         are sane and complete before asking the port its prefered parameter
11156         passing method (fixes bug #1017633)
11157         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
11158         and _ret3
11159
11160 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11161
11162         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
11163         problem in bitfields >= 8 bits.
11164
11165 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
11166
11167         * src/SDCCsymt.c: undid changes that were not meant to be committed
11168
11169 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
11170
11171         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
11172
11173 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
11174
11175         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
11176           copied and wrong bit got inverted
11177
11178 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11179
11180         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
11181         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
11182         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
11183         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
11184         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
11185         assignments to bitfields at known addresses
11186         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
11187         reads from bitfields at known addresses
11188         * src/hc08/ralloc.c (packRegisters),
11189         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
11190         genhc08Code): optimize pointer get values used as conditionals
11191         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
11192         and branch
11193
11194 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11195
11196         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
11197         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
11198         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
11199         as conditionals
11200
11201 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11202
11203         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
11204
11205 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11206
11207         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
11208         related problems
11209
11210 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
11211
11212         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
11213
11214 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11215
11216         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
11217         mcs51 port
11218
11219 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
11220
11221         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
11222
11223 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11224
11225         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
11226         cases use more compact code.
11227
11228 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
11229
11230         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
11231
11232 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11233
11234         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
11235
11236 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11237
11238         * src/SDCCsymt.h,
11239         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
11240         parameter of changePointer() from symbol* to sym_link*
11241         * src/SDCCast.c (decorateType): call changePointer() for CAST op
11242         * src/SDCCsymt.c (compareType): void* type is castable to other
11243         pointers, but not necesarily an exact match.
11244         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
11245         is no longer blindly treated as an exact match.
11246         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
11247
11248 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
11249
11250         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
11251
11252 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
11253
11254         * src/pic/gen.c,
11255         * src/pic/pcode.c,
11256         * src/pic/ralloc.h,
11257         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
11258
11259 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
11260
11261         * src/pic/device.c,
11262         * src/pic/device.h,
11263         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
11264
11265 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11266
11267         * src/mcs51/gen.c (emitcode): fixed bug #992819
11268
11269 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
11270
11271         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
11272           there's no need to make it worse
11273
11274 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11275
11276         * src/mcs51/ralloc.c (deassignLR),
11277         * src/ds390/ralloc.c (deassignLR),
11278         * src/hc08/ralloc.c (deassignLR),
11279         * src/z80/ralloc.c (deassignLR),
11280         * src/pic/ralloc.c (deassignLR),
11281         * src/pic16/ralloc.c (deassignLR),
11282         * src/avr/ralloc.c (deassignLR),
11283         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
11284         rlivePoint): fixed another part of bug #971834
11285
11286 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11287
11288         * src/z80/main.c: enabled "critical" keyword
11289         * src/z80/mappings.i,
11290         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
11291         functions (fixes bug #979646)
11292         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
11293
11294 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11295
11296         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
11297           such as c:\mydir.
11298
11299 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
11300
11301         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
11302           doesn't disable too much optimizations
11303
11304 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
11305
11306         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
11307
11308 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
11309
11310         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
11311
11312 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
11313
11314         * src/pic/gen.c tidied up tabs
11315         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
11316         * src/pic/main.c tidied up tabs
11317         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
11318         * src/pic/pcoderegs.c tidied up tabs
11319         * src/pic/ralloc.c tidied up tabs
11320
11321 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
11322
11323         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
11324         to S_FIXED for pic16 port and when symbol is not in level 0,
11325         allocate for S_REGISTER storage class and pic16 port, too,
11326         * src/pic16/device.h: prototype for checkSym,
11327         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
11328         * (pic16_assignConfigWordValue): test the value and the mask to
11329         validate that the value is suitable for the configuration word,
11330         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
11331         collect extern declared symbols, don't emit symbol twice, check
11332         first if symbol is in publics set first,
11333         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
11334         * added command line '--fstack' which enables an experimental
11335         feature for stack access, too buggy to be used yet...
11336         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
11337         * (pic16_allocDirReg): when register has storage class S_REGISTER
11338         allocate in pic16_dynAccessRegs,
11339         * device/include/pic16/pic18f????.h: modified configuration word
11340         naming convention, words started as CONFIG0H but should be CONFIG1H
11341
11342 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
11343
11344         * device/include/mcs51reg.h: fixed bug 970993
11345
11346 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
11347
11348         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
11349         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
11350         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
11351         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
11352         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
11353         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
11354           error/warning numbers,
11355           added function setWarningDisabled()
11356         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
11357         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
11358           _memcmp.c _memmove.c calloc.c realloc.c free.c
11359         * support/regression/tests/malloc.c: added tests for new functionality
11360         * support/regression/tests/zeropad.c: added tests for truncated initializers
11361           and initialized char arrays starting with '\x0'
11362         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
11363
11364 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
11365
11366         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
11367
11368 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11369
11370         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
11371         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
11372         peephole 177.e. Thanks to anonymous
11373
11374 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
11375
11376         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
11377         function isn't used in the source but referenced as a
11378         variable initializer then declare it as extern in .asm file
11379
11380 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
11381
11382         * .version: increased version number to 2.4.3
11383
11384         Adding version extension according to ChangeLog CVS revision
11385         * src/Makefile.in (target all): added dependency 'version.h'
11386         * (rule version.h): added rule to create version.h from ChangeLog,
11387         * (rule dep): added dependency version.h,
11388         * src/version.awk: AWK script to create version.h
11389         * src/SDCCdwarf2.c (dwWriteModule),
11390         * src/SDCCglue.c (initialComments),
11391         * src/SDCCmain.c (printVersionInfo): modified to write after
11392         version string the version extension number,
11393         * src/SDCCutil.c: included "version.h"
11394         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
11395         number,
11396         * src/SDCCutil.h: added prototype for getBuildNumber
11397
11398         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
11399         includeDirsSet, too,
11400         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
11401         const char [] is found in function prototype...
11402
11403         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
11404         moving to WREG with source is already in WREG,
11405         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
11406         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
11407         * (aopForSym): stack'ed symbols are partially supported, added
11408         if-clause to support symbols in FARSPACE,
11409         * (sameRegs): added test for AOP_ACC to see if registers are same,
11410         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
11411         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
11412         * (pic16_popRegFromString): will not allocate a new register if it
11413         doesn't find one by name, bug may have introduced...
11414         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
11415         * (genIpush): revived to use pic16 port's stack,
11416         * (genAddrOf): added incomplete case for stack'ed operand,
11417         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
11418         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
11419         can handle multibyte operands,
11420         * src/pic16/glue.c (pic16_printIval*): some debug info added,
11421         * (pic16initialComments): added message for MPLAB compatibility
11422         mode enabled,
11423         * src/pic16/main.h: prototype for pic16_mplab_comp,
11424         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
11425         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
11426         * (_pic16_linkEdit): NEW, handles link stage, transferred here
11427         because of increased complexity of procedure,
11428         * (_process_pragma): stack pragma changed to format 'stack pos len',
11429         emit symbol '_stack_end' to conform with gplink,
11430         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
11431         to search for register,
11432         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
11433         PO_GPR_REGISTER,
11434         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
11435         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
11436         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
11437         case for PO_GPR_REGISTER,
11438         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
11439         dies, the new era is ahead !...
11440         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
11441         pic16_dynInternalRegs,
11442         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
11443         * (pic16_allocDirReg): minor optimizations and bug fixes,
11444         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
11445
11446         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
11447         load stack and frame pointer with address of 'stack_end' symbol
11448
11449 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
11450
11451         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
11452         without source code but only variable initializers
11453
11454 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
11455
11456         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
11457         external are not declared as extern to reduce overhead while linking
11458
11459 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
11460
11461         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
11462
11463 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
11464
11465         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
11466           Yee Keat for the patch
11467         * src/SDCCast.c (decorateType): fixed bug #979599
11468         * src/ds390/gen.h: removed local fReturnSizeDS390
11469         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
11470         * src/ds390/gen.c (genAnd, genOr, genXor),
11471         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
11472
11473 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
11474
11475         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
11476         add relFilesSet to $3, manipulate $2 to handle linking of object
11477         files without source files in command line,
11478         * device/include/pic16 (all headers): added ID location macros,
11479         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
11480         entries for ID location bytes,
11481         * (pic16_assignIdByteValue): NEW,
11482         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
11483         added field dumpcalltree to pic16_options_t,
11484         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
11485         is used instead of pic16_Gstack_base_addr, check if (ifx) before
11486         emitting rFalseIfx label after check_carry label,
11487         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
11488         pic16_emitDIRegs), NEW
11489         * (pic16glue): dump .calltree file when option --calltree found,
11490         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
11491         * (_pic16_genAssemblerPreamble): emit ID locations after
11492         configuration registers,
11493         * (pic16_linkCmd): modifications of the link command,
11494         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
11495         * (pic16_pCodeInitRegisters): don't init stack registers,
11496         * (pic16_findPrevInstruction): fixed bug,
11497         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
11498         bug with immediate registers,
11499         * (buildCallTree): traces stack push and pop,
11500         * (pct2): dump also stack usage for each function,
11501         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
11502         * (pic16_allocDirReg): various modifications,
11503         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
11504         fixed to 1,
11505
11506 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
11507
11508         * src/pic16/pcode.c: removed buggy double colon
11509
11510 2004-07-01 Borut Razem <borut.razem AT siol.net>
11511
11512         * support/scripts/sdcc.nsi: added include/pic16 to setup
11513
11514 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
11515
11516         * device/lib/Makefile.in: fixed bug in target objects-pic16,
11517         * device/lib/pic16/Makefile: prefixed with dash (-) command under
11518         target 'clean',
11519         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
11520         specific command line arguments. Also added sample lkr script
11521         for placing a variable at a specific memory bank.
11522         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
11523         at a specific memory bank,
11524         * (pic16_dump_isection): fixed bug which caused string literals to
11525         be omitted when dumping idata section,
11526         * (pic16_groupRegistersInSection): added code to handle registers
11527         in specific memory banks,
11528         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
11529         public, all references are renamed too,
11530         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
11531         AOP_DPTR2,
11532         * (pic16_storeForReturn): added case to handle when dest is WREG,
11533         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
11534         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
11535         pic16_rel_udata, check to see if that register is marked as being
11536         a member of a specific memory bank,
11537         * (pic16_printIvalCharPtr): added code to add string literals either
11538         to code or the idata sections,
11539         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
11540         also accept the 'udata' pragma,
11541         * src/pic16/main.h: new structure types sectName and sectSym
11542         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
11543         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
11544         * (pic16_findPrevInstruction): fixed, it returned nothing,
11545         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
11546         instruction combinations,
11547         * (pic16_FixRegisterBanking): heavily reorganised,
11548         * (pic16_AnalyzeBanking): if generating banksel directives is
11549         disabled, then don't call FixRegisterBanking at all,
11550         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
11551         completely removed,
11552         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
11553
11554 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
11555
11556         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
11557         Phuah Yee Keat <yk.phuah AT nestac.com>
11558
11559 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
11560
11561         * src/pic16/glue.c (pic16createInterruptVect): function now emits
11562         correctly the IVT even if it is relocated to some other location
11563
11564 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
11565
11566         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
11567         * device/include/pic16/pic18f2220.h: NEW,
11568         * device/lib/pic16/libdev/pic18f2220.c: NEW,
11569         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
11570         * src/pic16/device.c (struct Pics16): added info for 18f2220,
11571         * src/pic16/device.h (struct pic16_options): added ivt_loc and
11572         nodefaultlibs, ivt_loc is the location of the interrupt vector
11573         table, and nodefaultlibs signs that default libraries should not be
11574         linked in link stage,
11575         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
11576         according to --ivt-loc argument,
11577         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
11578         when pragma stack is found,
11579
11580 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11581
11582         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
11583         256 (range check), 257 (do while), 258.a-f (bit banging
11584         f.e. on 3-wire SPI bus)
11585
11586 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11587
11588         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
11589         variables used exclusively within a loop
11590
11591 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
11592
11593         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
11594
11595 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11596
11597         * src/SDCClrange.c (computeClash): fixed bug #971834
11598
11599 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11600
11601         * src/mcs51/gen.c (genCmp): fixed bug #975903
11602         * src/hc08/gen.c (operandsEqu),
11603         * src/ds390/gen.c (operandsEqu),
11604         * src/z80/gen.c (operandsEqu),
11605         * src/pic/gen.c (operandsEqu),
11606         * src/pic16/gen.c (operandsEqu),
11607         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
11608         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
11609
11610 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11611
11612         * src/SDCCcse.c (cseBBlock): fixed bug #966963
11613
11614 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
11615
11616         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
11617         default case in switch statement,
11618         * glue.c (pic16_initPointer): expr is initialised via decoarteType
11619         to eliminate problem with initialisation of pointers, but problem
11620         still exists,
11621         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
11622         * (emitStaticSegment): removed various lines emitting debug info,
11623         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
11624         added processor registers for utilizing EEPROM,
11625         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
11626         configurable and set 8
11627
11628 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
11629
11630         * .version: increased version number to 2.4.2,
11631
11632         Cumulative patch for pic16 port
11633         * src/pic16/device.c: changed scheme to dump initial values for
11634         variables in idata segment, all print_idata* functions were removed,
11635         now the pic16_printIval* will be called,
11636         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
11637         * _pic16_printPointerType, pic16_printPointerType,
11638         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
11639         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
11640         NEW, similar to the respective functions in SDCCglue.c,
11641         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
11642         way, emitting hex bytes,
11643         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
11644
11645 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11646
11647         * src/avr/ralloc.c (serialRegAssign),
11648         * src/xa51/ralloc.c (serialRegAssign),
11649         * src/pic/ralloc.c (serialRegAssign),
11650         * src/pic16/ralloc.c (serialRegAssign),
11651         * src/hc08/ralloc.c (serialRegAssign),
11652         * src/z80/ralloc.c (serialRegAssign),
11653         * src/ds390/ralloc.c (serialRegAssign),
11654         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
11655
11656 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11657
11658         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
11659         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
11660
11661 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
11662
11663         Cumulative patch for pic16 port:
11664         * src/pic16/device.h (typedef PIC16_device) modified fields for
11665         defining microcontrollers,
11666         * src/pic16/device.c: added new info for all devices in Pics16 array,
11667         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
11668         to be optimised out by the pCode optimiser,
11669         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
11670         specially, bug reported by G.M. Gallant,
11671         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
11672         as force'd so that cannot be optimised out by pCode optimiser,
11673         * src/pic16/pcode.c,
11674         * src/pic16/pcodepeeph.c,
11675         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
11676         they are disabled by default, but can be enabled explicit with
11677         command argument --denable-peeps, for testing,
11678         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
11679         --pomit-ivt in COMPILE_FLAGS
11680
11681 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
11682
11683         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
11684           compilation on MSVC
11685
11686 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
11687
11688         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
11689
11690 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11691
11692         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
11693         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
11694
11695 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
11696
11697         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
11698         would only assign 0x300001 register.
11699
11700 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
11701
11702         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
11703         in COMPILE_FLAGS. Thanks to G. Gallant for report.
11704
11705 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11706
11707         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
11708         for ds80c400
11709         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
11710         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
11711         added peephole 254 (left shift), 255 (jump table)
11712
11713 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
11714
11715         * device/lib/Makefile.in: removed comment line with model-pic16,
11716         * (target port-specific-objects-pic16): the libraries and objects
11717         are copied to the build directory form the device/lib/pic16/bin
11718         directory
11719
11720         Cumulative patch concerning pic16 port:
11721         * library directory has been re-organized,
11722         * added support for PIC18F1220,
11723         * added headers and library sources for chips 18f1220,18f6520,
11724         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
11725
11726         * configuration registers setting has changed, now each supported
11727         device has a complete description of the registers it uses,
11728         * all initialisations are moved to idata sections, these section
11729         can be absolute or relocatable,
11730         * fixed initialisation of codespace variables,
11731         * fixed warning about PCLATU and gpsim,
11732         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
11733         * (genAssign): use table reads when assigning from variables in codespace,
11734         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
11735         char/int variables placed in codespace,
11736         * (pic16_emitConfigRegs): NEW, emits a list with configuration
11737         registers set in .asm file, no need for --pomit-config-words anymore,
11738         * (pic16glue): some 8051 legacy segments are commented out
11739         (to be removed completely),
11740         * added support for alternative assembler and linker with --asm=
11741         and --link= command line arguments,
11742         * peepholes are disabled automatically in the port, no need to
11743         specify on command line,
11744         * port supports natively char/int/long multiplication, but converts
11745         all divisions to support functions,
11746         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
11747         to the file set in variable $2,
11748         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
11749         strings in ASCII format and not in hex,
11750         * ralloc.c (serialRegAssign): added a triplet of conditional calls
11751         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
11752         allocate proper register if iCodes aren't temporary,
11753
11754 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
11755
11756         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
11757
11758 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
11759
11760         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
11761         is commented out
11762
11763 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11764
11765         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
11766         computed address is reused
11767         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
11768         multi-byte bitfields
11769
11770 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11771
11772         * src/z80/gen.c: (genArrayInit): must check for pointers too
11773
11774 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11775
11776         * support/regression/tests/zeropad.c: never meant to commit the
11777           nestedstruct test: removed, added check for GCC version
11778
11779 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
11780
11781         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
11782         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
11783         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
11784           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
11785           bugs 928906 and 954082 half-empty initializers
11786         * src/SDCCsymt.h,
11787         * src/SDCCsymt.c (getAllocSize): added for above fix
11788         * src/z80/gen.c (genArrayInit): fixed bug 741044
11789         * support/regression/tests/zeropad.c: added tests
11790
11791 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
11792
11793         * src/pic16/device.c (pic16_dump_section): corrected bug which
11794         caused some symbols of the libraries to be misplaced
11795
11796 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11797
11798         * src/pic16/glue.c,
11799         * src/pic16/ralloc.h,
11800         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
11801         to fix conflict with pic port
11802
11803 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11804
11805         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
11806         externs configuration variables,
11807         * src/pic16/ralloc.h,
11808         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
11809         prototype in header, commented out some debug messages
11810
11811 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
11812
11813         * src/pic16/glue.c,
11814         * src/pic16/main.c,
11815         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
11816         for gpasm COFF object generation. Thanks to D. Hawkins for
11817         his patch info
11818
11819 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11820
11821         * src/ds390/main.c,
11822         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
11823         Brock for spotting this)
11824         * src/ds390/gen.c (genEndFunction),
11825         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
11826         interrupt handler and critical. Disable push/pop optimizations when
11827         peephole optimizations disabled.
11828
11829 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11830
11831         Updated pic16 library sources and headers.
11832         * device/lib/pic16/pic18f*/ ,
11833         * device/include/pic16/*.h: modified to handle structured SFR
11834         definitions
11835
11836 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11837
11838         * src/port.h (PORT structure): added hook initPaths, now each
11839         port can declare its own default search paths,
11840         which can been seen with the --print-search-dirs option,
11841         see pic16 port for example,
11842         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
11843         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
11844         * (doPrintSearchDirs): NEW, replaces in a central manner the
11845         printing of search dirs which was split in set*Paths functions,
11846         * (main): added call to port->initPaths and doPrintSearchDirs,
11847         * src/avr/main.c,
11848         * src/ds390/main.c,
11849         * src/hc08/main.c,
11850         * src/izt/i186.c,
11851         * src/izt/tlcs900h.c,
11852         * src/mcs51/main.c,
11853         * src/pic/main.c,
11854         * src/pic16/main.c: modified port structures to reflect addition of
11855         initPaths hook,
11856
11857         * src/pic16/device.c (regCompare): registers are finally sorted by name,
11858         * (pic16_dump_section): for registers in same address reserve memory once,
11859         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
11860         to no_banksel,
11861         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
11862         result is greater in size than right or left,
11863         * (pic16_genUMult8X8_8): there are some cases where the result can
11864         be 16 bits size, so handle these,
11865         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
11866         * (pic16_outBitC): modified to emit pcodes,
11867         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
11868         or not,
11869         * (genDivOneByte): implemented algorithm to divide 8-bits,
11870         * (genCmp): uncommented goto, but issues still exist,
11871         * (genAnd): fixed a bug with variables >8bits,
11872         * (genPackBits): optimization added that uses BCF/BSF to change a
11873         single bit,
11874         * (genAssign): fixed bug when assigning floating point literals,
11875         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
11876         __sdcc_gsinit_startup label,
11877         * src/pic16/main.c (_pic16_init): removed search directory
11878         initialisations,
11879         * (_pic16_initPaths): NEW, used to initialise search directories,
11880         * (_hasNativeMulFor): support functions for all except char/int
11881         multiplication, and char division,
11882         * (PIC16_port struct): modified entry for native mul support,
11883         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
11884         no_banksel option,
11885         * (buildCallTree): call to register_usage is ifdef'ed out,
11886
11887 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11888
11889         * device/include/string.h: applied Stas Sergeev's patch to make this
11890         header file compatible with the preprocessor -Wundef option
11891         * src/SDCCmain.c (main): abort compilation if preprocessor reports
11892         failure (fixes bug #941458)
11893
11894 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11895
11896         * src/SDCCopt.c (killDeadCode): fixed bug #907733
11897         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
11898         that the variable, not the function, should be static
11899         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
11900         to be consistent with non-literal case
11901
11902 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11903
11904         * src/SDCCast.c (isConformingBody): fixed bug #949967
11905         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
11906         convilong): fixed bug #952086
11907
11908 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11909
11910         * src/SDCCmem.c (allocVariables): fixed bug #955321
11911
11912 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11913
11914         * src/hc08/main.c (_hc08_genAssemblerEnd),
11915         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
11916         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
11917         completely eliminated the use of a temporary file
11918         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
11919         when more than one file linked
11920         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
11921
11922 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11923
11924         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
11925         which fixes bug #543481
11926         * support/regression/tests/bug-751703.c: fixed comments left from a
11927         cut and paste error
11928         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
11929         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
11930         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
11931         scopes
11932         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
11933         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
11934         are now changed to underscores in moduleName
11935
11936 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11937
11938         * as/mcs51/lkmem.c: better fix for bug #954173
11939
11940 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
11941         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11942
11943         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
11944         * device/include/c8051f000.h,
11945         * device/include/c8051f120.h,
11946         * device/include/c8051f300.h,
11947         * device/include/c8051f310.h,
11948         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
11949         PWM16) and detab'ed
11950
11951 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11952
11953         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
11954         and mailing lists, doc'ed --no-peep-comments, removed reference
11955         to knoppix (newest version has no LyX/LaTeX), other minor changes
11956         * src/SDCCglue.c (glue): save 2 bytes stack space with
11957         option --main-return. The ljmp could probably be avoided too
11958
11959 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11960
11961         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
11962
11963 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11964
11965         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
11966         * src/SDCCopt.c (isLocalWithoutDef),
11967         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
11968         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
11969         (credit to Maarten Brock for patch #949363, on which this is based)
11970         * support/regression/tests/bug-751703.c: some test cases of extern used
11971         within inner scopes.
11972
11973 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11974
11975         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
11976         SPEC_STRUCT
11977         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
11978         struct definitions
11979         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
11980         dwWriteLabel): fix to create valid debugger symbols even when
11981         the module name has non-alphanumeric symbols in it
11982         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
11983         when a variable's allocation has been optimized away
11984
11985
11986 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11987
11988         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
11989         * src/hc08/main.c,
11990         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
11991         * src/mcs51/main.c,
11992         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
11993         * src/ds390/main.c,
11994         * src/z80/gen.c (z80_emitDebuggerSymbol),
11995         * src/z80/main.c,
11996         * src/pic/gen.c (pic14_emitDebuggerSymbol),
11997         * src/pic/main.c,
11998         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
11999         * src/pic16/main.c,
12000         * src/avr/gen.c (avr_emitDebuggerSymbol),
12001         * src/avr/main.c,
12002         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
12003         * src/xa51/main.c,
12004         * src/SDCCdebug.c (emitDebuggerSymbol),
12005         * src/SDCCdebug.h,
12006         * src/port.h: added a debugger struct to the port struct. Added a
12007         callback for defining debugger symbols
12008
12009         * src/SDCCast.c (createLabel),
12010         * src/SDCC.y (labeled_statement): mark all compiler generated labels
12011         with isitmp = 1
12012         * src/SDCCicode.h,
12013         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
12014         iCode back to the ast for the function
12015
12016         * src/hc08/ralloc.c (hc08_assignRegisters),
12017         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
12018         unneeded fields from the regs struct.
12019         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
12020         pushReg() & pullReg() functions instead of emitcode()
12021
12022         * src/hc08/gen.c (genLabel, genhc08Code),
12023         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
12024
12025         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
12026         debugger hooks
12027
12028         * src/hc08/gen.c (genEndFunction, genhc08Code),
12029         * src/hc08/gen.h,
12030         * src/mcs51/gen.c (genEndFunction, gen51Code),
12031         * src/mcs51/gen.h,
12032         * src/ds390/gen.c (genEndFunction, gen390Code),
12033         * src/ds390/gen.h,
12034         * src/z80/gen.c (genEndFunction, genZ80Code),
12035         * src/z80/gen.h,
12036         * src/z80/z80.h,
12037         * src/pic/gen.c (genEndFunction, genpic14Code),
12038         * src/pic/gen.h,
12039         * src/pic16/gen.c (genEndFunction, genpic16Code),
12040         * src/pic16/gen.h,
12041         * src/avr/gen.c (genEndFunction, genAVRCode),
12042         * src/avr/gen.h,
12043         * src/xa51/gen.c (genEndFunction, genXA51Code),
12044         * src/xa51/gen.h,
12045         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
12046         specific code to cdbFile.c and out of the backend code generators
12047
12048         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
12049         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
12050         starting address is now 0
12051
12052         * as/hc08/asm.h,
12053         * as/hc08/m08pst.c,
12054         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
12055         assembler directive for DWARF support
12056         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
12057
12058         * src/src.dsp,
12059         * src/Makefile.in,
12060         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
12061
12062 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12063
12064         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
12065         and inappropriate peephole optimization in jump tables
12066
12067 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12068
12069         * as/hc08/m08pst.c,
12070         * src/SDCCglue.c: sdccopt works for the hc08 port now
12071
12072 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
12073
12074         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
12075
12076 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12077
12078         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
12079
12080 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12081
12082         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
12083         rules
12084         * src/SDCCmain.c,
12085         * src/SDCCglobl.h,
12086         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
12087         comments from the peephole optimizer replacement rules
12088         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
12089         symbols
12090         * src/SDCCcse.c (updateSpillLocation),
12091         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
12092         equivalents
12093         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
12094         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
12095         objects far pointers
12096
12097 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12098
12099         * src/SDCCsymt.h: a missing part of my last change
12100         * src/pic/ralloc.c (regTypeNum),
12101         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
12102
12103 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12104
12105         * src/SDCCicode.h,
12106         * src/SDCCicode.c (aggrToPtrDclType),
12107         * src/SDCCptropt.h,
12108         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
12109         ptrPseudoSymConvert),
12110         * src/pic/ralloc.c (regTypeNum),
12111         * src/pic16/ralloc.c (regTypeNum),
12112         * src/hc08/ralloc.c (regTypeNum),
12113         * src/ds390/ralloc.c (regTypeNum),
12114         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
12115         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
12116
12117 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12118
12119         * link/z80/lkmain.c (afile),
12120         * as/hc08/lkmain.c (afile),
12121         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
12122         prevent a pointer problem when a filename has no directory and
12123         no extension specified.
12124
12125 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12126
12127         * link/z80/lkmain.c (afile): allow periods in directory names
12128         * link/z80/lkmain.c (afile),
12129         * as/mcs51/lkmain.c (afile),
12130         * as/hc08/lkmain.c (afile): allow linker script file to have an
12131         extension other than ".lnk"
12132         * link/z80/lklex.c (getfid),
12133         * link/z80/lkmain.c (parse),
12134         * as/mcs51/lklex.c (getfid),
12135         * as/mcs51/lkmain.c (parse),
12136         * as/hc08/lklex.c (getfid),
12137         * as/hc08/lkmain.c (parse): Support comments in the linker script
12138         file on lines by themselves and after filenames
12139
12140 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12141
12142         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
12143
12144 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12145
12146         * src/z80/peeph-z80.def: removed some peephole rules that don't
12147         work with multibyte arithmetic (fixed bug #937126)
12148         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
12149         to registers and not global variables
12150         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
12151         geniCodePreInc, geniCodePostDec, geniCodePreDec,
12152         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
12153         checking for assignments not internally generated (fixed bug #931895)
12154         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
12155         structure member (fixed bug #930072)
12156
12157 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12158
12159         * src/SDCCmain.c (linkEdit),
12160         * src/hc08/main.c (_hc08_parseOptions),
12161         * as/hc08/Makefile.in,
12162         * as/hc08/aslink.h,
12163         * as/hc08/asm.h,
12164         * as/hc08/m08pst.c,
12165         * as/hc08/lkrloc.c (relr, rele),
12166         * as/hc08/lkarea.c (lnkarea)
12167         * as/hc08/lkmain.c (afile, parse),
12168         * as/hc08/lkelf.c: support for ELF output
12169         * as/hc08/lks19.c (s19),
12170         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
12171
12172 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12173
12174         * as/mcs51/lkihx.c: Fixed bug #899105.
12175
12176 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12177
12178         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
12179         .dsp files from Unix to DOS.
12180
12181 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12182
12183         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
12184         function pointers; we have been compliant for several months now.
12185         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
12186         change that was accidently commented out
12187         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
12188         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
12189         bug #922319
12190
12191 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12192
12193         * src/hc08/gen.c: output of all of the internal debugging information
12194         is now controlled by the D() macro; it is disabled by default
12195
12196 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12197
12198         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
12199         harder to keep the same registers during a CAST iCode
12200         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
12201         long via int can be done in a single cast, if the signedness is
12202         correct.
12203         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
12204         putchar() in tinibios.c in ds390's library
12205
12206 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
12207
12208         * src/SDCCast.c (decorateType): fixed bug #898889,
12209         cast result of a literal complement too
12210         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
12211         fixed check for bitfields
12212
12213 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
12214
12215         * src/SDCCicode.c (geniCodeLogic): made it static,
12216         (geniCodeLogicAndOr): added in order to fix bug #905492,
12217         (ast2iCode): fixed bug #905492
12218         * support/regression/tests/bug-905492.c: added
12219         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
12220         (processParms): fixed bug #927659: don't copy parms, this will clear
12221         decorated flag
12222         * support/regression/tests/bug-927659.c: added
12223
12224 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
12225
12226         * src/SDCCast.c (addCast): don't cast float to char
12227         * device/lib/libsdcc.lib: added _memmove
12228
12229 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
12230
12231         * device/lib/large/Makefile: fixed parallel execution by
12232         replacing `make` by `$(MAKE)`
12233
12234 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12235
12236         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
12237         offsets (fixes bug #923936)
12238
12239 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
12240
12241         * device/lib/small/Makefile: fixed parallel execution by
12242         replacing `make` by `$(MAKE)`
12243
12244 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
12245
12246         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
12247
12248 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
12249
12250         * src/pic/gen.c (genCpl): multi-byte complements were not working.
12251         * src/regression/Makefile: Regression test was not running.
12252
12253 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
12254
12255         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
12256         complement if possible
12257         * src/SDCCval.c (valComplement),
12258         * src/SDCCicode.c (operandOperation): fixed complement of literal
12259         * support/regression/tests/onebyte.c (testComplement): added
12260
12261 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
12262
12263         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
12264         return an optimized tree; actually replace actParm with the new tree
12265         * src/SDCCast.h: added some parantheses to remove side effects
12266         * support/regression/tests/bug-920866.c
12267
12268 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
12269         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
12270         Bit operands were not being handled properly in the pic14 port.
12271         (now src/regression/add.c passes again).
12272
12273 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12274
12275         * src/SDCC.y (labeled_statement): case and default no longer require
12276         a following statement (RFE #893037)
12277
12278 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12279
12280         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
12281         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
12282         disabled (fixes bug #916294)
12283         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
12284         "mov a,acc"; patch provided by Lenny Story
12285         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
12286
12287 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12288
12289         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
12290         functions
12291         * src/ds390/gen.c (genFunction, genEndFunction),
12292         * src/ds390/ralloc.c (ds390_assignRegisters),
12293         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
12294         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
12295         pushed if there are parameters passed on the stack. Also, a cleaner
12296         way to decide if r0/r1 should be pushed/popped. (Together they fix
12297         bug #918693)
12298
12299 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12300
12301         * doc/sdccman.lyx,
12302         * device/lib/mcs51/crtpagesfr.asm,
12303         * device/lib/mcs51/crtxinit.asm,
12304         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
12305         to avoid confusion with Si Lab's SFRPAGE register.
12306
12307 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12308
12309         * src/SDCCglue.c (emitMaps): allow public sfr variables
12310         * src/SDCCglue.c (initialComments): include compiler build date
12311         with compiler version and put the timestamp of the generated
12312         assembly file on a serperate line to be less confusing.
12313         * src/port.h: added genInitStartup hook
12314         * src/avr/main.c,
12315         * src/ds390/main.c,
12316         * src/hc08/main.c,
12317         * src/pic/main.c,
12318         * src/pic16/main.c,
12319         * src/xa51/main.c,
12320         * src/z80/main.c: genInitStartup initialize as NULL (default to
12321         historical behaviour)
12322         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
12323         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
12324         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
12325         library instead of hard coding it into the compiler.
12326         * support/regression/ports/mcs51-stack-auto/spec.mk,
12327         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
12328         * device/lib/mcs51/Makefile,
12329         * device/lib/small/Makefile,
12330         * device/lib/large/Makefile,
12331         * device/lib/mcs51/crtpagesfr.asm,
12332         * device/lib/mcs51/crtstart.asm,
12333         * device/lib/mcs51/crtxclear.asm,
12334         * device/lib/mcs51/crtxinit.asm,
12335         * device/lib/mcs51/crtclear.asm,
12336         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
12337         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
12338         and into user configurable files.
12339         * device/lib/clean.mk: clean mcs51 directory too
12340         * support/regression/tests/longlit.c: added static to T1 declaration
12341         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
12342         accesses in the initialization code
12343
12344 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12345
12346         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
12347         OSCTRIMVAL as noted in bug #916008
12348
12349 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12350
12351         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
12352         in loops with multiple exits (reported as incorrect registers
12353         used by Martin Helmling in Sdcc-user list)
12354
12355 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12356
12357         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
12358         made ds390 register extensions look less like error messages
12359
12360 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12361
12362         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
12363         reported by Adam Wozniak in Sdcc-user list
12364
12365 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
12366
12367         * src/SDCCast.c (decorateType): fixed with bug and promotion in
12368         arithmetic optimizations, added debug output
12369
12370 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
12371
12372         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
12373         * sdcc.spec: updated and split sdcc into 3 rpms
12374         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
12375         needed for literals of LEFT_OP and '+'
12376         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
12377         introduced RESULT_TYPE_NOPROM
12378         (geniCodeMultiply): fixed logic for decision if mul is optimized to
12379         left shift
12380         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
12381         limited promotion to int only for '*'
12382         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
12383
12384 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
12385
12386         * src/pic16/gen.c (genSkip),
12387         (genc16bit2lit), (gencjneshort): commented out
12388         (is_LitOp): new helper function, checks operand type
12389         (genCmpEq): rewritten
12390
12391 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
12392
12393         * support/regression/tests/bug-908454.c: added
12394
12395 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
12396
12397         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
12398         * src/SDCCicode.c (usualBinaryConversions): op needs int type
12399         (geniCodeCast): cosmetic, don't preserve bit storage class
12400         (geniCodeLeftShift): added promotion
12401         (geniCodeLogic): fixed regression
12402         * src/SDCCsymt.c (computeTypeOr): accept bits too
12403         (compareType): 2nd part of fix for bug #908454, needed for bitfields
12404
12405 2004-03-07  Borut Razem <borut.razem AT siol.net>
12406
12407         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
12408
12409 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
12410
12411         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
12412         version of pic16_genPackRegisters which does not check if ic is a
12413         CAST operator,
12414         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
12415         function cause string1.c regression test fails
12416
12417 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
12418
12419         * sim/ucsim/configure.in,
12420         * sim/ucsim/configure,
12421         * sim/ucsim/doc/Makefile.in: use docdir
12422         * src/SDCC.y: fixed sbit atrributes
12423         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
12424         * src/SDCCast.c (decorateType): |^& need special promotion handling
12425         * src/SDCCast.h,
12426         * src/SDCCsymt.h: moved definition of RESULT_TYPE
12427         * src/SDCCsymt.h (computeType),
12428         * src/SDCCicode.c: computeType() needs op
12429         * src/SDCCsymt.c (checkTypeSanity),
12430         * doc/sddman.lyx: "plain" bitfields are unsigned
12431         * src/SDCCsymt.c (computeTypeOr): added
12432         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
12433         |^& ops
12434         * src/SDCCval.c (val*): computeType() needs op
12435         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
12436         * support/regression/tests/onebyte.c: added tests for |^&
12437
12438 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
12439
12440         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
12441         for writing icode into asm output.
12442
12443 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
12444
12445         * src/pic16/device.c: added some debug lines enabled
12446         with macro DEBUG_CHECK,
12447         * src/pic16/genarith.c: more debug in genPlus,
12448         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
12449         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
12450         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
12451         * (aopForSym): onStack symbols are re-placed in data memspace,
12452         and onStack flag is cleared,
12453         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
12454         copy temporary pcodeop,
12455         * (genPcall): added warning for not updating PCLATU,
12456         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
12457         always true for pic16 port,
12458         * (genMultOneWord): NEW, supports integer multiplication,
12459         * (genMult): modified to call genMultOneWord,
12460         * (ifxForOp): added warning when return NULL,
12461         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
12462         flag is set before call to operandFromSymbol for implicit
12463         added structures,
12464         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
12465         options.intlong_rent are set by default,
12466         * (_hasNativeMulFor): modified to allow port generation of integer
12467         multiplication,
12468         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
12469         set regtype to REG_SFR for all registers, restricting seting the
12470         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
12471
12472 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12473
12474         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
12475         more than 500 times in the regression tests
12476
12477 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12478
12479         * support/Util/SDCCerr.h,
12480         * support/Util/SDCCerr.c,
12481         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
12482         enumerator_list),
12483         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
12484         for symbol conflicts.
12485         * support/valdiags/tests/enum.c,
12486         * support/valdiags/tests/tentdecl.c,
12487         * support/valdiags/tests/struct.c: expect possible error messages
12488         referring to original symbol definitions.
12489         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
12490         * src/SDCCsymt.h,
12491         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
12492
12493 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
12494
12495         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
12496
12497 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
12498
12499         * src/pic16/ralloc.c (newReg): fixed bug #908929
12500
12501 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12502
12503         * src/ds390/gen.c: added missing #include "main.h"
12504
12505 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
12506
12507         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
12508         checking if symbol is already in set,
12509         * src/pic16/device.h: prototype for checkAddSym,
12510         * src/pic16/gen.c: (_G): added entry interruptvector,
12511         * (assignResultValue): removed some commented out lines,
12512         * (genFunction): check for ISR via sym->type, absolute section for
12513         interrupt code is created via a new pBlock, the goto instruction is
12514         placed now correctly at the interrupt vector position, changed all
12515         references from ivec to _G.interruptvector,
12516         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
12517         is the interrupt is a high priority one, same for return from ISR,
12518         * src/pic16/glue.c: changed all calls of addSetHead for publics and
12519         externs to calls of checkAddSym,
12520         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
12521         pic16_pcode_verbose flag is set,
12522         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
12523         * src/pic16/pcoderegs.c: message about how many registers are saved
12524         will only be emitted if pic16_pcode_verbose flag is set,
12525
12526 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12527
12528         * src/ds390/ralloc.h,
12529         * src/ds390/ralloc.c (ds390_regWithIdx),
12530         * src/ds390/gen.c (emitcode),
12531         * src/ds390/main.h,
12532         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
12533         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
12534         ds390operandCompare, getRegsRead, getRegsWritten,
12535         initializeAsmLineNode): customized instruction size calculation for
12536         ds390, started basis for some register optimizations
12537         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
12538         corresponding assembly output
12539         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
12540         missing push/pop of r0/r1. Optimized push/pops
12541
12542 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12543
12544         * src/mcs51/main.c (instructionSize): fixed ACALL size
12545         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
12546
12547 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
12548
12549         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
12550         the sorting of rlist with NULL elements
12551         * (print_idataType, print_idata): NEW to create idata sections
12552         * src/pic16/device.h: idataSymSet new variable
12553         * src/pic16/gen.c (genFunction): fixed some bugs in string
12554         comparing, improved the absolute section creation for ISRs,
12555         added FSR0L/FSR0H in registers that are saved in an ISR,
12556         * (genInline): fixed the processing of inline snippets,
12557         now they undergo no process by the peephole optimizer
12558         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
12559         are placed in idataSymSet,
12560         * (pic16emitStaticSeg): extern symbols are added in externs,
12561         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
12562         switching when aboslute variables are placed in access bank memory
12563         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
12564         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
12565         commented out with #if,
12566         * (pic16_packRegisters): reintroduce the check for CAST because some
12567         symbols are not correctly handled,
12568         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
12569         pCodeInstruction instead of pCode,
12570         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
12571         pCodeAsmDir definition,
12572         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
12573         directive, then the argument directive is emitted without the leading
12574         tab, hack for inline labels which must be in the first column,
12575         * (compareLabel,pic16_findNextInstruction),
12576         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
12577         * (insertBankSwitch): modified for the new pCodeAsmDir,
12578
12579 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12580         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
12581
12582         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
12583         instance,
12584         * (pushSide): commented out with #if,
12585         * (assignResultValue): fixed some typos in saving
12586         registers,
12587         * (genPcall): FIXED and sync'ed with genCall,
12588         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
12589         * (genNearPointerGet): fixed to handle some more cases,
12590         implementation scheme via table reads,
12591         * (genConstPointerGet): modified to access code memory correct,
12592         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
12593         and improved to handle some cases
12594         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
12595         instead of "RETLW" for init data
12596         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
12597         not IN_DIRSPACE, work around to reduce bank switching when aboslute
12598         variables are placed in access bank memory (<0x80 and >=0xf80),
12599         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
12600         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
12601         TBLWT_POSTDEC,TBLWT_PREINC
12602         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
12603         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
12604         directives
12605         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
12606         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
12607         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
12608         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
12609
12610 2004-02-29  Borut Razem <borut.razem AT siol.net>
12611
12612         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
12613         support/Util/findme.h, support/Util/system.h: enhance binary relative
12614         search for lib and include by using findProgramPath()
12615
12616 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12617
12618         * src/SDCCpeeph.h,
12619         * src/SDCCpeeph.c (pcDistance),
12620         * src/port.h,
12621         * src/mcs51/ralloc.h,
12622         * src/mcs51/ralloc.c (mcs51_regWithIdx),
12623         * src/mcs51/main.h,
12624         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
12625         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
12626         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
12627         size calculation port specific, started basis for some register
12628         optimizations
12629         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
12630         missing push/pop of r0/r1. Optimized push/pops
12631         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
12632         * device/lib/_modsint.c (_modsint),
12633         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
12634         and stack version so regression tests pass
12635
12636 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
12637
12638         * src/Makefile.in (dep): include SLIBOBJS in dependency check
12639         * src/SDCCast.c (decorateType): catch another small optimization
12640         with '?' operator
12641         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
12642         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
12643         modified to finally use computeType() all over SDCC,
12644         see Feature Request #877103
12645         * src/SDCCval.h: cosmetic
12646         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
12647         valCompare(); regression tested in muldiv.c
12648         * support/regression/tests/muldiv.c (testMod): mod sign follows
12649         dividend only
12650
12651 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
12652
12653         * src/SDCCast.c (decorateType): fixed bug #902362
12654         * doc/INSTALL.txt: fixed install instructions for win32
12655
12656 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
12657
12658         * device/include/Makefile.in (install): fixed by replacing spaces
12659         by tabs
12660         * doc/README.txt,
12661         * doc/INSTALL.txt: updated for release
12662         * doc/sdccman.lyx: added warning for --xstack being buggy
12663
12664 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
12665
12666         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
12667         to eliminate build warnings.
12668         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
12669
12670 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
12671            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12672
12673         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
12674         removed -penable-stack, added comment for stack pragma, added
12675         warning for not initializing the stack/frame registers, removed
12676         comment at interrupts section
12677
12678         Stack is made permanent, there is no ability to disable stack usage.
12679         * src/pic16/device.h,
12680         * src/pic16/device.c: removed all references to USE_STACK macro,
12681         * src/pic16/device.c (pic16_dump_section): when no elements in
12682         rlist, free rlist before return,
12683         * (pic16_dump_int_registers): NEW, internal registers are a new set
12684         of general purpose registers reused by each function,
12685         * (checkAddReg): returns 1 if registers is added to set,
12686         * (pic16_groupRegistersInSection): when a registers is of type
12687         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
12688         * src/pic16/device.h: memRange and Assigned Memory are deleted,
12689         SRCASECMP macro is moved here from device.c
12690         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
12691         PO_PCLATU, PO_PRODL, PO_PRODH,
12692         * (pic16_pCodeOpType, genMinus,
12693         changed compares to "a" register, with AOP_ACC,
12694         * (pic16_genPlus): fixed some bugs and indented properly,
12695         * (pic16_addSign): changed size to size+offset in the MOVWF
12696         instruction,
12697         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
12698         multiply 8-bit operand by literal, result is 8-bit,
12699         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
12700         multiply 2 8-bit operand, result is 8-bit,
12701         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
12702         genUMult8X*_16,
12703         * src/pic16/gen.c: changed accUse to contain WREG only,
12704         * (pic16_emitcomment): renamed to pic16_emitpcomment,
12705         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
12706         true, do not use immediate addressing any more unless sym is a
12707         pointer in codespace,
12708         * (aopForRemat): do not use immediate addressing when symbol not in
12709         codespace and when symbol's address is requested,
12710         * (aopOp): for-loop in if(sym->accUse) is modified for the new
12711         accUse size (= 1),
12712         * (aopGet): added case for AOP_ACC and don't return "accumulator
12713         bug" but WREG instead,
12714         * (popGetTempReg): pushes contents of temporary register in stack,
12715         * (popReleaseTempReg): pops contents of temporary register from
12716         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
12717         * (pic16_popGet): separated case AOP_ACC to return register WREG
12718         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
12719         or PO_IMMEDIATE and initializes their instance/offset appropriately,
12720         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
12721         the use of immediate pointers to certain cases only.
12722
12723         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
12724         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
12725         * (assignResultValue, genCall, genRet): modified to use the new
12726         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
12727         genPcall is still broken,
12728         * (genFunction): added code to create 'A' type pBlocks when
12729         interrupt functions are generated, code not extensively tested yet,
12730         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
12731         * (genEndFunction): modified so ISRs pop stored registers from stack,
12732         * (genMultOneByte): cleanup,
12733         * (AccRsh): added flag andmask, to and result with appropriate mask,
12734         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
12735         * (genDataPointerGet): fixed and reenabled its use,
12736         * (genNearDataPointerGet): bugs fixed,
12737         * (genDataPointerSet): bugs fixed,
12738         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
12739         pic16_DumpSymbol, pic16_DumpOp,
12740         * src/pic16/genutils.h: function prototypes for the above functions,
12741         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
12742         pointers,
12743         * (pic16emitRegularMap): many many many improvements, but needs a
12744         major cleanup,
12745         * src/pic16/main.c: enable_stack in pic16_options is removed,
12746         * (_pic16_parseOptions): removed command line options -penable-stack,
12747         * (_process_pragma): emit stack symbol only when stack pragma is
12748         processed,
12749         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
12750         redirected to FSR0L/FSR0H pair,
12751         * (pic16_get_op, pic16_get_op2): modifications and improvements,
12752         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
12753         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
12754         for immediates,
12755         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
12756         * (dumpPicOptype): NEW,
12757         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
12758         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
12759         with movff instruction,
12760         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
12761         added pic16_int_regs, some packRegsFor* functions are commented out,
12762         because produce errors,
12763         * src/pic16/NOTES: minor modifications
12764
12765 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12766
12767         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
12768         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
12769         --pack-iram.
12770         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
12771         * as/mcs51/lkaomf51.c: fixed bug #895763
12772
12773 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
12774
12775         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
12776
12777 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12778
12779         * doc/sdccman.lyx: added details about the HC08 storage classes and
12780         interrupts, fixed the register usage info for z80 & gbz80
12781
12782 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
12783
12784         * doc/sdccman.lyx: added more pic16 port documentation
12785         * device/include/pic16/: added header pic18fregs.h
12786
12787 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
12788
12789         * doc/sdccman.lyx: added Vangelis' contribution
12790
12791 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12792
12793         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
12794         extend to the next CALL or PCALL, not just to the next CALL.
12795
12796 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
12797
12798         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
12799
12800 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12801
12802         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
12803         bug #895752 and a better fix for bug #716790
12804
12805 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12806
12807         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
12808
12809 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12810
12811         * doc/sdccman.lyx: minor changes, minor changed
12812
12813 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
12814
12815         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
12816         which can't handle SDCC_NEWONEBYTEOPS,
12817         (geniCodeMultiply): removed conversion from mult to shift for pic14
12818         and pic16
12819
12820 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12821
12822         * src/hc08/gen.h,
12823         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
12824         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
12825         thus fixing bug #895406
12826
12827 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
12828
12829         * device/lib/_modsint.c,
12830         * device/lib/_modslong.c: sign follows divisor only
12831         * src/hc08/gen.c (genMultOneByte): if result size is 1,
12832         signs or signedness can be ignored
12833         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
12834         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
12835         added optimization for IFX,
12836         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
12837         arguments;
12838         reenabled optimization for IFX, which was removed on 2004-01-11
12839         * src/SDCCast.h: added return type IFX
12840         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
12841         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
12842         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
12843         SDCC_OLDONEBYTEOPS selects the old behaviour
12844         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
12845         changed again and commented promotion rule
12846         * src/SDCCval.c (valDiv): promotion no longer necessary
12847         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
12848         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
12849         rewritten
12850         * support/regression/tests/onebyte.c: added
12851
12852 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
12853
12854         * gen.c (genInline): reverted to old code for assemnling inline
12855         code because of bug reported James Chadd
12856
12857 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
12858
12859         * ralloc.h: missing declarations from previous patch,
12860         seems that patch for ralloc.h was never applied, fixed
12861
12862 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12863            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
12864
12865         * pcode.c,
12866         * pcode.h,
12867         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
12868         indirect addressing. Marked FSR0 as deprecated
12869         * gen.c (pointerCode): commented out, not needed now
12870         (pic16_popGet2p): new MOVFF helper function
12871         (genGenPointerGet),
12872         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
12873         (shiftRLong): removed duplicate debugging info
12874
12875 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12876
12877         * src/ds390/gen.c (genNearPointerGet),
12878         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
12879         optimization with bits, but not bitfields.
12880         * src/ds390/ralloc.c (packRegisters),
12881         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
12882
12883 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
12884
12885         * src/SDCCcse.c (algebraicOpts): copy operands before modification
12886
12887 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12888
12889         * src/SDCCsymt.h,
12890         * src/SDCCicode.c (operandFromSymbol),
12891         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
12892         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
12893         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
12894         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
12895         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
12896         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
12897         bug #892038
12898         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
12899         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
12900         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
12901         * src/SDCCsymt.c (newSymbol),
12902         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
12903         enumerator_list),
12904         * src/SDCCval.h,
12905         * src/SDCCval.c (newiList): fixed bug #885705
12906
12907 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12908
12909         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
12910         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
12911
12912 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12913
12914         * device/include/c8051f120.h,
12915         * device/include/c8051f300.h,
12916         * device/include/c8051f310.h: added/updated header files for Silicon
12917         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
12918         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
12919         in new section Submitting patches
12920
12921 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12922
12923         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
12924         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12925         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12926         genGenPointerSet),
12927         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
12928         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12929         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12930         genGenPointerSet),
12931         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
12932         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12933         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12934         genGenPointerSet),
12935         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
12936         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12937         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12938         genGenPointerSet): fixed bug #892400
12939         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
12940         to eliminate build warnings.
12941         * src/SDCCast.c (processParms),
12942         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
12943         fixed bug 751859
12944         * support/valdiag/valdiag.py: added GCC to the list of defines active
12945         when compiling with gcc
12946
12947 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12948
12949         * support/Util/SDCCerr.h,
12950         * support/Util/SDCCerr.c,
12951         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
12952         with an incomplete type (fixed bug #883734)
12953         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
12954
12955 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12956
12957         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
12958
12959 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12960
12961         * src/SDCCast.c (decorateType),
12962         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
12963         function pointer implementation
12964         * support/regression/tests/funptrs.c: added tests to verify both forms
12965         of function pointers work correctly. Added tests to verify parameters
12966         are passed in the correct order.
12967
12968 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
12969
12970         * device.c (regCompare): registers are sorted by ascending
12971         address and increasing size,
12972         * main.c (_pic16_finaliseOptions): removed the declaration
12973         of compiler macro MCU. Now a macro of the format pic18fxxxx
12974         will be defined from the command line
12975
12976 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12977             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
12978
12979         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
12980         PCOP_RLCF was overwritten!
12981         * gen.c (genSkip): commented out calls to pic16_emitcode,
12982         * (genCmpEQ): fixed "long" compares, only high word did get compared,
12983         * (genlshTwo),
12984         * (genRRC): added debugging info,
12985         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
12986         overwritten while shifting,
12987         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
12988         overwritten while shifting,
12989         * (AccLsh),
12990         * (AccRsh),
12991         * (shiftLLeftOrResult),
12992         * (shiftRLeftOrResult),
12993         * (shiftRLong),
12994         * (shiftLLong): Implemented with pic16_emitpcode
12995         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
12996         * (genLeftShift): Fixed bug, operand for shift by variable always
12997         was "and"ed with 0x0f,
12998         * (genLeftShiftLiteral),
12999         * (genrshTwo),
13000         * (genRightShiftLiteral): added debugging info,
13001         * (genrshFour): added comment,
13002         * (genRightShift): determined signedness from operand "left"
13003         instead of "result"
13004
13005 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13006
13007         * src/SDCCicode.c (geniCodeParms),
13008         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
13009         function pointers, fixed function pointer bugs #861242 and #861896
13010
13011 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13012
13013         * device/include/c8051f000.h,
13014         * device/include/c8051f120.h,
13015         * device/include/c8051f300.h: added header files for Silicon
13016         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
13017
13018 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
13019
13020         * src/SDCCast.c (processParams): added new type flow and restructured
13021         (gatherAutoInit): added new type flow
13022         (addCast): cosmetic changes
13023         (getLeftResultType): added new type flow for array indices, patch
13024         provided by Stas, see FR #877103
13025         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
13026         array index patch by Stas
13027         * src/SDCCast.h: added prototype getResultTypeFromType()
13028         * src/SDCCval.h,
13029         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
13030         * src/pic/glue.c (pic14emitStaticSeg),
13031         * src/pic16/glue.c (pic16emitStaticSeg),
13032         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
13033         for initialization of symbols
13034         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
13035         * support/Util/SDCCerr.h:
13036         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
13037         * .version: bumped version number to 2.3.8
13038         * device/include/Makefile.in (install),
13039         * doc/Makefile (install): changed to 'rm `find ...`' construct to
13040         avoid warnings
13041
13042 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
13043
13044         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
13045         Slade Rich fixed an optimization bug
13046         * src/pic/pcodepeep.c,
13047         * src/pic/pcoderegs.c
13048         * doc/Makefile (install): added test for directory
13049
13050 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13051
13052         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
13053         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
13054         * src/pic/ralloc.c (getRegPtr, getRegGpr),
13055         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
13056         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
13057         * as/mcs51/asexpr.c (term),
13058         * as/hc08/asexpr.c (term): fixed bug #887146
13059
13060 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13061
13062         * src/z80/gen.c (genMult): handle single byte result product
13063         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
13064         DUMMY_READ_VOLATILE (fixed bug #886367)
13065
13066 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
13067
13068         * support/regression/tests/libmullong.c: fixed logic, on little endian
13069         hosts we ended without a mullong_wrapper()
13070
13071 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13072
13073         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
13074         virus/worm forged address usage.
13075
13076 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
13077
13078         Fixed promotion, it should be done on AST level:
13079         * src/SDCCast.c (addCast): added promotion to int
13080         (decorateType): updated call to upCast()
13081         * src/SDCCicode.c (geniCodeLeftShift): removed call to
13082         usualUnaryConversions()
13083
13084 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
13085
13086         * support/regression/tests/literalop.c (mulWrapper): Added a
13087         wrapper to remove integer overflow warnings.
13088
13089         * support/regression/tests/float_trans.c: Made work on host.
13090
13091         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
13092         location of sz80.
13093
13094         * support/regression/generate-cases.py (main): Changed from inline
13095         to a main method.
13096
13097         * doc/Makefile (install): Changed to depth first to get rid of
13098         missing directory install warning.
13099
13100         * as/Makefile (install-doc): Made work on Mac.
13101
13102 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
13103
13104         * src/SDCCast.c: added an additional type flow in decorateType() of
13105         opposite direction, see feature request #860006; it's enabled at runtime
13106         by setting the environment variable SDCC_NEWTYPEFLOW
13107         * src/SDCCast.h: changed prototype of decorateType()
13108         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
13109         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
13110         'char' to 'int' can be omitted, if both operands are 'unsigned char';
13111         see feature request #877103
13112         * src/SDCCval.c: updated call of decorateType()
13113         (valBitwise): fixed bug #882876
13114         (valMinus): added promotion
13115         (valLogicAndOr): result is unsigned
13116         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
13117         * src/SDCCsymt.c (computeType),
13118         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
13119         must not cause an unsigned operation
13120         * src/pic/glue (pic14emitRegularMap),
13121         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
13122
13123 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
13124
13125         * src/pic/pcode.c (PCodeID): commented out left over debug code
13126
13127 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
13128
13129         * support/valdiag/tests/overflow.c: added shift tests
13130         * src/pic/device.c,
13131         * src/pic/gen.c,
13132         * src/pic/gen.h,
13133         * src/pic/glue.c,
13134         * src/pic/main.c,
13135         * src/pic/pcode.c,
13136         * src/pic/pcode.h,
13137         * src/pic/pcodepeep.c,
13138         * src/pic/pcoderegs.c,
13139         * src/pic/ralloc.c,
13140         * src/pic/ralloc.h: applied patch from Slade Rich;
13141         added support for multiple code pages and multiple RAM banks on the
13142         PIC 14 port. The ASM files now no longer simply assume all the
13143         code / RAM are in the same page / bank. This means the linker can
13144         safely allocate code/RAM of separate ASM files to different pages/banks.
13145         * doc/sdccman.lyx: added Slade's tips
13146         * src/mcs51/peeph.def: fixed bug #880768
13147
13148 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13149
13150         * src/hc08/ralloc.c (rematStr): fixed bug #879282
13151         * src/SDCCast.c (decorateType): fixed bug #880197
13152
13153 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
13154
13155         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
13156         getopt.h.
13157
13158         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
13159         strtof is not part of C89 and isn't included with Mac OS X.
13160
13161 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13162
13163         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
13164         shiftL2Left2Result): fixed bug #879326
13165         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
13166         (genMultOneByte): fixed bug in signed vs unsigned multiplication
13167         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
13168         address fetch for clr instruction
13169         * device/lib/hc08/_mulint.c: created optimized assembly version
13170         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
13171
13172 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
13173
13174         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
13175         proposed in FR #877103
13176
13177 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
13178
13179         * src/SDCCval.c (cheapestVal): added missing checks
13180         * src/SDCCicode.c (usualBinaryConversions): fixed condition
13181         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
13182
13183 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
13184
13185         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
13186         equal operands
13187
13188 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
13189
13190         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
13191         loaded with the linker search paths (-L arguments) and the libraries
13192         to be linked with the current source (-l arguments). Changes
13193         currently will affect only the pic16 port.
13194         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
13195         include path the port specific paths and port specific libraries,
13196         * gplink command now contains the $3 argument,
13197         * src/pic16/device.h,
13198         * src/pic16/device.c,: structure PIC_device is made public and
13199         renamed to PIC16_device, the same for variable Pics which is renamed
13200         to Pics16. Updated all references to them.
13201         * src/pic16/glue.c (pic16glue): corrected bug with code
13202         initialization which bypassed the variable initializations block.
13203
13204         * device/lib/pic16/Makefile.rules: removed --penable-stack from
13205         COMPILE_FLAGS and added the --nostdinc option
13206
13207 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13208
13209         * device/include/mc68hc908jb8.h: Register defs for another member
13210         of the hc08 family. Contributed by Bjorn Bringert - thanks!
13211
13212 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
13213
13214         Documenting changes from previous commits.
13215         * configure.in (version 1.56),
13216         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
13217         when generating output files to configure the pic16 library,
13218         but now I've commented it out, since gputils aren't installed in the
13219         SF compile farm, so library won't compile
13220
13221         * device/lib/Makefile.in (version 1.56): initially I've added in
13222         target 'all' the prerequestive 'model-pic16' so it compiled the
13223         pic16 library, but now I've commented it out for the same reasons
13224         above,
13225         * added targets 'model-pic16' and 'objects-pic16' to compile the
13226         library
13227         * added target 'port-specific-objects-pic16' to handle the
13228         generated libraries and copy them into the build/ directory
13229         * added target 'clean-intermediate-pic16' to clean intermediate
13230         files into pic16 directory
13231         * in target 'installdirs' added line to create directory pic16 in
13232         the installation path
13233
13234         * device/include/Makefile.in (version 1.11): in target 'install'
13235         added lines to copy all header files to installation path,
13236         * in target 'installdirs' added line create directory for pic16
13237         headers in the installation path
13238
13239 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
13240
13241         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
13242          a function call
13243
13244 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
13245
13246         * configure,
13247         * device/lib/configure.in,
13248         * device/lib/configure: fixed for autoconf 2.57
13249
13250 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13251
13252         * src/z80/main.c (_parseOptions): fixed the portmode= command line
13253         option so that it actually works. Made it specific to the z80, since
13254         the gbz80 doesn't have these kinds of I/O ports.
13255
13256 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13257
13258         * device/include/z180.h,
13259         * device/lib/_memcpy.c,
13260         * device/lib/_memmove.c,
13261         * device/lib/_mulint.c,
13262         * device/lib/ser_ir.c,
13263         * device/lib/ser_ir_cts_rts.c,
13264         * device/lib/_strcmp.c,
13265         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
13266         * src/z80/main.c (_process_pragma): add support for pragmas bank and
13267         portmode; added deprecation warning for bank= and protmode= forms.
13268         Also, guard against buffer overflow.
13269         * src/z80/gen.c (aopGet): generate better code for sfr banked read
13270
13271 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13272
13273         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
13274         changed interrupt vector table generation to only emit declared vectors.
13275         * device/include/Makefile.in: added missing backslash
13276         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
13277
13278 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
13279
13280         Mainly changes to support compilation of the device libraries
13281         * src/pic16/device.c: stack is allocated via symbol and not
13282         via literal number. The symbol is placed in the corresponding
13283         position of the data ram
13284         * (pic16_dump_section): relocatable and absolute uninitialized
13285         data are now emitted in sorted order to reduce section naming,
13286         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
13287         weren't marked as being in the access bank,
13288
13289 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
13290
13291         Added portion of GNU PIC Library under the directory
13292         device/include/pic16 and device/lib/pic16. These files
13293         contain the declarations of SFRs for the PIC18Fxx2 devices.
13294         The directory is initialized via configure from toplevel.
13295
13296 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
13297
13298         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
13299         the spilllocations to be compared correctly
13300
13301 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
13302
13303         * src/SDCCast.c (decorateType): fixed bug introduced today
13304
13305 2004-01-12  Borut Razem <borut.razem AT siol.net>
13306
13307         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
13308         doc/sdccman.lyx: upper case pragmas are deprecated
13309
13310 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
13311
13312         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
13313         in simpler and even better code
13314
13315 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
13316
13317         * src/SDCCicode.c (operandOperation): fixed bug #874819
13318         * src/SDCCast.c (decorateType): fixed
13319         char foo (unsigned long ul) { return ul > 0; }
13320
13321 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13322
13323         * doc/sdccman.lyx: Moved and added some sections, small changes
13324         all over. Telling LaTeX to be less strict with word spacing
13325         to better keep the right margin. Changed some notes about
13326         maintainance of the ports in section 3.2.1 - is it OK like this?
13327
13328 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
13329
13330         SDCC source changes:
13331         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
13332         convilong): modified to inform the pic16 port that builtin functions
13333         are external
13334
13335         PIC16 PORT specific changes:
13336         * src/pic16/device.c pic16_dump_equates() added,
13337         processor registers declared internally by the port are emitted in
13338         the translation as equates,
13339         * src/pic16/gen.c: inline code is passed unprocessed to the
13340         translation,
13341         * (pic16_popGetLit2): fnuction modified to take second operand as
13342         pCodeOp pointer and not as literal,
13343         * (popRegFromIdx): prefixed with pic16_,
13344         * (pic16_popCombine2): modified to receive already allocated pCode
13345         operands,
13346         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
13347         * (genFunction): initializes local stack frame and pushes on stack
13348         all the registers used by this function,
13349         * (genEndFunction): restores all registers from stack and restores
13350         stack frame,
13351         * src/pic16/glue.c (pic16emitRegularMap): various changes and
13352         improvements,
13353         * (pic16glue): changed the program startup sequence,
13354         * added new dbName code 'A' for functions placed in absolute section
13355         * src/pic16/main.c: added function attribute _naked,
13356         * added pragma 'code' to place a fnuction at an absolute address,
13357         * added command line arguments --debug-ralloc and --pcode-verbose,
13358         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
13359         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
13360         * (pic16_newpCodeOpLit2): modified to take the second operand as
13361         pCodeOp pointer,
13362         * (pic16_printpBlock): modified to emit each function in a separate
13363         section,
13364         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
13365         UPPER for immediate operands,
13366         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
13367         instruction,
13368         * src/pic16/peeph.def: all peepholes with movff are commented out,
13369         because there is a problem in the pcode peep optimizer,
13370         * src/pic16/ralloc.c: the register allocator can now reuse local
13371         function symbols for another function. This saves register usage.
13372         * src/pic16/ralloc.h: added flag isLocal in structure regs,
13373
13374         Added file src/pic16/NOTES with information about program writing on
13375         the current port version.
13376
13377 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13378
13379         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
13380         and peephole 252 (array access)
13381
13382 2004-01-09  Borut Razem <borut.razem AT siol.net>
13383
13384         * src/SDCCmain.c : fixed #872250: -l command line defined library
13385           files are scanned before standard library files
13386
13387 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13388
13389         * src/SDCCast.c (decorateType): fixed bug #874046
13390
13391 2004-01-09  Borut Razem <borut.razem AT siol.net>
13392
13393         * support/scripts/sdcc.nsi: remove previous installation
13394
13395 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13396
13397         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
13398         bytes for last interrupt vector (mcs51)
13399         * sdcc.spec: fixed typo
13400
13401 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13402
13403         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
13404         gen51Code): more efficient parameter receive for --model-large
13405         ("bug" #845294)
13406
13407 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13408
13409         * src/ds390/main.c,
13410         * src/z80/main.c: added missed needLinkerScript flags (more than
13411         one port structure defined in these file)
13412         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
13413         bug #795325
13414
13415 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
13416
13417         * src/SDCCmain.c: removed various references to DEFAULT_PORT
13418         * src/port.h: added flag needLinkerScript in port->linker
13419         structure to inform whether to create a .lnk file or not,
13420         * src/avr/main.c,
13421         * src/ds390/main.c,
13422         * src/hc08/main.c,
13423         * src/mcs51/main.c,
13424         * src/pic/main.c,
13425         * src/pic16/main.c,
13426         * src/xa51/main.c,
13427         * src/z80/main.c: changed appropriately to configure
13428         needLinkerScript flag
13429         * src/pic/gen.c,
13430         * src/pic16/gen.c (genAddrOf): fixed bug #863624
13431         * src/pic/glue.c: added variable udata_section_name to
13432         override default uninitialized data segment definition for
13433         devices only with SHAREBANK memory (reported from Erik Epetrich)
13434         * (pic14emitOverlay): modified to emit a commented overlay segment
13435         directive when no overlay data exist
13436         * (picglue): modified to emit uninitialized data segment
13437         according to udata_section_name
13438         * src/pic/main.c (_pic14_parseOptions): added command line
13439         options --udata-section-name=[name] to override default
13440         udata definition name
13441         * modified _linkCmd and _asmCmd to include compiler passed
13442         arguments via -W option
13443         * src/pic16/main.c: added $l in _asmCmd, changed extension for
13444         object file from '.rel' to '.o' in port->linker structure,
13445         changed size of fptr from 2 to 3 in port structure
13446
13447 2004-01-07  Borut Razem <borut.razem AT siol.net>
13448
13449         * support/scripts/sdcc.nsi: update PATH
13450         * support/scripts/sdcc.ico: craeted
13451
13452 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
13453
13454         * device/include/Makefile.in: fix install
13455         * doc/Makefile: fix install
13456
13457 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13458
13459         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
13460         in bug #860505
13461         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
13462         how the function variable allocation summary is displayed; also
13463         include information about variables allocated to the overlay
13464         segment
13465
13466 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13467
13468         * as/mcs51/lkmain.c: Help about -Y option
13469         * as/mcs51/lkarea.c: Fixed gcc warnings
13470
13471 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
13472
13473         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
13474         fixed warning
13475         * support/valdiag/tests/overflow.c: added
13476         * src/SDCCast.c (decorateType),
13477         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
13478         LEFT_OP (left shift)
13479
13480 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13481
13482         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
13483         (default behaviour).
13484
13485 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13486
13487         A python script to validate compiler diagnostic messages. It can be
13488         used to verify that sdcc complains about bad c source code and
13489         gives a good location of the error.
13490         * support/valdiag/Makefile,
13491         * support/valdiag/valdiag.py,
13492         * support/valdiag/tests/*
13493
13494 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13495
13496         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
13497         * src/SDCCsymt.c (newEnumType),
13498         * src/SDCCsymt.h
13499         * support/Util/SDCCerr.c,
13500         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
13501         enum related bugs.
13502         * support/regression/tests/enum.c: added test for enum values that
13503         require at least 2 bytes of storage.
13504
13505 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
13506
13507         * src/common.h: added ifndef/define/endif macros
13508         around the header file.
13509         Bug reported from Jesus Calvino-Fraga
13510
13511 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
13512
13513         * sdcc.spec: updated
13514         * device/include/Makefile.in: don't install CVS directories
13515         * device/lib/Makefile.in: added removal of CVS directories after install
13516         * doc/Makefile: fixed install, added local_icons
13517         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
13518         * src/mcs51/gen.c (genRightShift): fixed bug #870788
13519         * src/ds390/gen.c (genRightShift): fixed bug #870788
13520         * src/SDCCast.c (decorateType): fixed bug #870781
13521
13522 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
13523
13524         PIC16 port related changes:
13525         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
13526         added variable stackPos,
13527
13528         * gen.c: genCall, assignResultValue: added support for
13529         pushing/retrieving function parameters to/from stack,
13530         genFunction,genEndFunction: setup stack frame for the
13531         generated function,
13532         genAddrOf: will be changed according to bug 863624
13533
13534         * added files genutils.c and genutils.h which contain gen*
13535         debugged and optimised functions extracted from gen.c
13536
13537         * glue.c: added variable 'externs' which holds extern symbols,
13538         pic16emitRegularMap: is modified to properly handle relocatable
13539          symbols under the new scheme,
13540         pic16createInterruptVect: is modified
13541         pic16printPublics: is modified to emit 'global' assembler directives,
13542         added pic16_printExterns to print extern symbols,
13543         pic16glue: initializes stack/frame pointer in the beginning of
13544         the assembly output. Temporary hack, will be corrected later,
13545         because gplink yet does not support stack and SDCC does not
13546         yet support a type of crt0.o object to create the final binary.
13547
13548         * Removed many lines that contain 8051 legacy code.
13549         * The code is finally placed under a 'code' directive.
13550         * Added port specific options.
13551
13552         * _process_pragma: simplified since now we do not need *special*
13553         include file to define SFR registers. But a separate header
13554         will be needed. This will be developed later.
13555         * _pic16_parseOptions: added, parses port specific options:
13556         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
13557         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
13558         --preplace-udata-with=
13559
13560         * _pic16_setDefaultOptions: modified to initialize section names,
13561         but hack is temporarly out of order since it needs improvement.
13562         * _pic16_genAssemblerPreamble: configuration words are emitted by
13563         their address instead of their name. This part is incomplete and
13564         supports only the 18Fxx2 devices. Other devices will emit an error
13565         during assembly since they do not contain the same set of config
13566         registers
13567         * _pic16_genIVT: is modified,
13568
13569         * pcode.c: added definitions for some hardware registers that are needed
13570         for stack support
13571         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
13572         All PCI entries are updated. Now LFSR is supported.
13573         * Removed pic16_pciTRIS is mentioned by mdubuc in source
13574         * added pic16_newpCodeOpLit2 to support instructions with
13575         two literal arguments
13576         * pic16_pCode2str: corrected code that emits assembler instructions
13577         with two literal operands and those that have an access bit modifier
13578         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
13579         this fixes a bug which caused some labels to be lost, when an
13580         assembler directive was added, i.e. banksel,
13581         * pic16_FixRegisterBanking: improved logic that causes the insertion
13582         of bank switching,
13583         * InlineFunction: functions that are called once, are not any more
13584         inlined. This can be a port option in the future,
13585
13586         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
13587
13588         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
13589         hold the corresponding uninitialized symbols,
13590         * pic16_allocProcessorRegister: registers have explicit marked the
13591         accessBank field,
13592         * pic16_allocInternalRegister: registers are explicit marked as
13593         not used,
13594         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
13595         processing list, so bit registers were lost,
13596         *
13597
13598         * ralloc.h: added field 'accessBank' and original symbol operand
13599         in register definition,
13600         * removed the field isMapped from register definition,
13601
13602         ** Several functions have been removed from various sources:
13603         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
13604         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
13605         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
13606         pic16_assignRelocatableRegisters
13607
13608         ** others have been introduced:
13609         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
13610         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
13611
13612 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
13613
13614         * support/scripts/inc2h.pl: changed definition of BIT_AT
13615         to emit 'sbit at' instead of 'bit at'. This was a request.
13616
13617         PIC16 port related preliminary changes:
13618         * gen.c: prefixed function popRegFromString with
13619         pic16_ and all references to it corrected
13620         * pcode.c: all pic16_pc_* hardware registers prefixed
13621         with underscore (_),
13622         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
13623         * ralloc.c: newReg(): when register is REG_SFR then
13624         set address to rIdx,
13625         pic16_allocProcessorRegister(): marks register wasUsed=0
13626         pic16_writeUsedRegs(): added a call to assign processor
13627         registers via pic16_assignFixedRegisters
13628
13629 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13630
13631         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
13632         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
13633         variables in unused register banks.  Also the SSEG is placed
13634         wherever there is enough space for it, and IDATA can be anywhere
13635         in internal RAM.  For now compile using -Wl-Y[stack_size].
13636         The mem file is different for this option as well, since it
13637         makes no sense of talking about DSEG lenght.
13638
13639 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
13640
13641         * src/SDCClrange.c: fixed bug 869095 that caused segfault
13642         in certain cases, e.g. when ROM assignment, patch provided
13643         from Albert den Haan.
13644
13645 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
13646
13647         Many signedness and type propagation fixes:
13648         * src/SDCCicode.c: made geniCodeCast() static
13649         replaced SPEC_ by IS_ (cosmetic)
13650         (operandOperation): fixed div and mod operation
13651         (usualBinaryConversions): added support for promotion of char
13652         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
13653         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
13654         (geniCodeAdd): an array index will stay unsigned, even if promoted
13655         from char to int
13656         (geniCodeArray): ditto
13657         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
13658         * src/SDCCsymt.c (computeType): added more support for char;
13659         promotion of char is selectable by promoteCharToInt, fixed signedness
13660         for all cases
13661         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
13662         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
13663         * src/SDCCval (val*): replaced signedness calculation by
13664         computeType()
13665         rearranged if-branches (cosmetic)
13666         (valShift): added warning W_SHIFT_CHANGED
13667         (valCompare): fixed problem with different types
13668         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
13669         * support/regression/tests/literalop.c: added many cases
13670         * support/regression/tests/ast_constant_folding.c: changed finally to
13671         'unsigned int'
13672         * .version: new year, new version: 2.3.7
13673         * src/SDCCmain.c (main): applied patch #866468
13674         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
13675         provided by Scott Bronson
13676         * doc/sdccman.lyx: updated documentation for sdcdb
13677         updated and added chapter tips
13678
13679 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13680
13681         * src/SDCCsymt.h: missing from yesterday's commits
13682
13683 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13684
13685         * src/SDCC.y (struct_or_union_specifier),
13686         * support/Util/SDCCerr.c,
13687         * support/Util/SDCCerr.h: verify that struct & union tags are used
13688         as declared.
13689
13690 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13691
13692         * src/SDCCglobl.h: missing from yesterday's commits
13693
13694 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13695
13696         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
13697         sft_attributes, struct_declaration, parameter_declaration,
13698         type_name, start_block, declaration_list),
13699         * src/SDCC.lex (check_type): support redefinition of typedef names
13700
13701 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13702
13703         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
13704         aligned xdata arrays. Erik helped me with the if clause.
13705
13706 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13707
13708         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
13709         warning
13710
13711 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13712
13713         * src/SDCCast.h,
13714         * src/SDCCast.c (newAst_),
13715         * src/SDCCicode.h,
13716         * src/SDCCicode.c (ast2iCode, newiCode),
13717         * src/SDCCglobl.h,
13718         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
13719         expr, statement, expression_statement, selection_statement,
13720         iteration_statement, expr_opt, jump_statement): foundation for tracking
13721         sequence points
13722         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
13723         point code too)
13724
13725 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13726
13727         * support/Util/SDCCerr.c,
13728         * src/SDCCast.h,
13729         * src/SDCCast.c (createCase, createDefault, decorateType),
13730         * src/SDCClabel.c (labelUnreach),
13731         * src/SDCC.y (labeled_statement, jump_statement): More improvements
13732         to error messages.
13733         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
13734         (with thanks to Stas Sergeev)
13735         * device/include/time.h,
13736         * device/lib/time.c (CheckTime): suppress unreachable code warning
13737
13738 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13739
13740         * src/SDCCast.c (createIvalCharPtr),
13741         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
13742         bug #753752)
13743         * support/regression/tests/nullstring.c: tests for these two bugs
13744
13745 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13746
13747         * support/Util/SDCCerr.h,
13748         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
13749         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
13750         about storage class and 'at' used inside struct or union
13751         * src/SDCCBBlock.c (iCodeFromeBBlock),
13752         * src/SDCCcse.c (ifxOptimize),
13753         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
13754         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
13755         printIval, emitStaticSeg, emitOverlay),
13756         * src/SDCClabel.c (deleteIfx),
13757         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
13758         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
13759         gatherAutoInit, processParms),
13760         * support/Util/SDCCerr.h,
13761         * support/Util/SDCCerr.c (werrorfl): Support for better error location
13762         reporting for post-parse errors.
13763
13764 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13765
13766         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
13767         implicit casts via union; they don't work on big endian systems
13768         (possible fix for bug #861138)
13769
13770 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13771
13772         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
13773         * src/mcs51/main.c: fixed the fix for bug #737001
13774
13775 2003-12-15  Borut Razem <borut.razem AT siol.net>
13776
13777         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
13778
13779 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13780
13781         * support/makebin/makebin.c: put output in binary mode
13782
13783 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13784
13785         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
13786         xdata and data memory on startup. Set the environment variable
13787         SDCC_NOGENRAMCLEAR to disable this.
13788         * src/mcs51/peephole.def,
13789         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
13790         (allows non-interrupt and interrupt code to safely compete for a resource
13791         without the non-interrupt code having to disable interrupts)
13792
13793 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13794
13795         * src/SDCCicode.c (geniCodeAdd),
13796         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
13797         with valFromType if type might be a pointer and host is big endian).
13798         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
13799         types, not just integer types.
13800         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
13801         multiply defined with mismatching "at" address.
13802
13803 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13804
13805         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
13806         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
13807         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
13808         with embedded nulls (fixed bug #753752)
13809
13810 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13811
13812         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
13813         Apparently this did not see much testing (endless loop)
13814
13815 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13816
13817         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
13818
13819 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13820
13821         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
13822         gracefully handle NULL memmap pointers
13823
13824 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13825
13826         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
13827         instead of deleting the iCode when an operand is volatile
13828         * src/z80/gen.c (genDummyRead),
13829         * src/mcs51/gen.c (genDummyRead),
13830         * src/ds390/gen.c (genDummyRead),
13831         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
13832         not just IC_RIGHT
13833         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
13834         * src/SDCC.y: fixed bug #850420
13835
13836 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13837
13838         Applied z80 i/o port patch from Peter Townson and fixed some operators
13839         to better handle operands in A register.
13840         * device/include/z180.h
13841         * src/SDCC.y
13842         * src/SDCCglue.c
13843         * src/z80/gen.c
13844         * src/z80/gen.h
13845         * src/z80/main.c
13846         * src/z80/peeph-z80.def
13847         * src/z80/peeph.def
13848         * src/z80/z80.h
13849
13850 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13851
13852         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
13853
13854 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13855
13856         * device/lib/hc08/_mullong.c: Removed extra #endif
13857
13858 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13859
13860         * sim/ucsim/hc08.src/inst.cc,
13861         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
13862         carries from x to h
13863         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
13864         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
13865         * device/include/stdarg.h: fixed varargs for hc08
13866         * device/lib/Makefile.in,
13867         * device/lib/hc08/Makefile,
13868         * device/lib/hc08/_mulint.c,
13869         * device/lib/hc08/_mullong.c: fixed some endian problems
13870
13871 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13872
13873         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
13874         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
13875         * device/lib/_gptrget.c,
13876         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
13877
13878 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13879
13880         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
13881         * src/SDCCast.c (astErrors): fixed bug #846007
13882         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
13883
13884 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13885
13886         * src/SDCCast.c (decorateType): disabled a transformation I added in
13887         revision 1.188 (access to fields of a structure at an absolute address);
13888         it breaks with bitfields, extern declarations, and gcse analysis.
13889         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
13890         could be assigned through a pointer, so don't complain.
13891         * src/SDCCast.c (astErrors),
13892         * src/SDCCast.h,
13893         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
13894
13895 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
13896
13897         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
13898         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
13899         output of __config directives, since gpasm now supports them
13900         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
13901         pre-processor macro, i.e. -DMCU=p18f452
13902         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
13903         and modified to handle 'cast' icode similarly to '=' icode
13904         * src/pic16/device.h (typedef struct PIC_device): added field
13905         'extMIface' to indicate that chip has external memory interface
13906         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
13907         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
13908         18F8720
13909
13910 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13911
13912         * src/SDCC.y (pointer): fixed bug #846006
13913         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
13914         * src/SDCCast.c (decorateType): fixed bug #846009
13915         * src/ds390/peeph.def,
13916         * src/ds390/gen.c (genAnd, genOr),
13917         * src/mcs51/peeph.def,
13918         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
13919
13920 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13921
13922         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
13923         * src/SDCCdflow.c
13924         * src/SDCCcse.c
13925         * src/SDCCcse.h
13926         * src/SDCCBBlock.h
13927         * src/SDCCBBlock.c
13928
13929 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
13930
13931         fixed bug #845089
13932         * src/SDCCbitv.h,
13933         * src/SDCCbitv.c: added function to free a bitvector
13934         * src/SDCClrange.h,
13935         * src/SDCClrange.c: added function to recompute the liveranges
13936         * src/avr/ralloc.c,
13937         * src/ds390/ralloc.c,
13938         * src/hc08/ralloc.c,
13939         * src/mcs51/ralloc.c,
13940         * src/pic/ralloc.c,
13941         * src/pic16/ralloc.c,
13942         * src/xa51/ralloc.c,
13943         * src/z80/ralloc.c: recompute the liveranges after register packing
13944
13945 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
13946
13947         * src/SDCCloop.c (newInduction): fixed bug #845630
13948
13949 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13950
13951         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
13952         inadvertantly left behind from my 2003-11-12 change
13953
13954 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13955
13956         Updated headers I neglected to commit yesterday.
13957         * src/SDCClrange.h,
13958         * src/SDCCicode.h
13959
13960 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13961
13962         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
13963         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
13964         * src/SDCCopt.c (eBBlockFromiCode),
13965         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
13966         the creation of the key hash table from the sequencing so it can be used
13967         earlier (for some GCSE bug fixes still pending)
13968
13969 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13970
13971         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
13972         * support/regression/tests/addsub.c: testing genPlus shortcut
13973
13974 2003-11-15  Borut Razem <borut.razem AT siol.net>
13975
13976         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
13977
13978 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13979
13980         * src/SDCCcse.c (cseBBlock): fixed bug #527779
13981         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
13982         ordering is immaterial.
13983         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
13984
13985 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13986
13987         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
13988         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
13989         (SIGSEV) of bug #840381
13990         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
13991         unlink new file before rename if new and old filenames are the same)
13992
13993 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13994
13995         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
13996         uninitialized variables) for the mcs51. Set environment variable
13997         SDCC_GENRAMCLEAR to test.
13998         xdata initialization slightly shorter
13999
14000 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14001
14002         * src/SDCCsymt.h,
14003         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
14004         #838241 & 780691 (basicly the same bug)
14005         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
14006         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
14007
14008 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
14009
14010         * src/SDCCmain.c (linkEdit): "fix" #834252
14011
14012 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14013
14014         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
14015         * src/SDCCast.h,
14016         * src/SDCC.y: fixed bug #819403
14017
14018 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14019
14020         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
14021         the reentrant attribute.
14022         * src/hc08/gen.c (genPackBits): added missing stack readjustment
14023         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
14024         simulation
14025         * src/SDCCast.c (decorateType): fixed bug with storage class not being
14026         updated during pointer dereference; f.e. ~(((char *)1)*) was being
14027         erroneously reduced to a literal.
14028         * src/hc08/ralloc.c (packRegisters, rematStr),
14029         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
14030         some cases
14031
14032 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14033
14034         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
14035         * doc/sdccman.lyx: changed from 'article' to 'book'
14036         * doc/Makefile: readded test_suite_spec and cdbfileformat
14037
14038 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
14039
14040         * device/include/stdlib.h: include malloc.h to comply with ANSI
14041         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
14042
14043 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14044
14045         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
14046         * doc/clean.mk: also remove *.out files
14047         * doc/sdccman.lyx: some additions, larger top/bottom margins
14048
14049 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14050
14051         * src/SDCC.y: fixed bug #837365
14052         * support/regression/tests/bitopcse.c
14053         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
14054         a symbol (might be valop instead)
14055         * device/lib/Makefile.in: added errno.c to HC08SOURCES
14056         * device/lib/clean.mk: added hc08 to the cleaning list
14057
14058 2003-11-04  Borut Razem <borut.razem AT siol.net>
14059
14060         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
14061           made 2003-11-04
14062         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
14063           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
14064           malloc is declared in standard stdlib.h
14065
14066 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14067
14068         * device/lib/hc08/Makefile: need to clean .rel not .o files
14069         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
14070
14071 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14072
14073         * src/port.h,
14074         * src/hc08/main.c,
14075         * src/mcs51/main.c,
14076         * src/ds390/main.c,
14077         * src/z80/main.c,
14078         * src/avr/main.c,
14079         * src/pic/main.c,
14080         * src/pic16/main.c,
14081         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
14082         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
14083         tests (which uses the port's oclsExpense function)
14084         * src/SDCC.y,
14085         * src/SDCCast.c,
14086         * src/SDCCicode.c,
14087         * src/hc08/gen.c,
14088         * src/ds390/gen.c,
14089         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
14090
14091 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14092
14093         * src/SDCCcse.c (ifxOptimize),
14094         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
14095         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
14096         deleting the IFX iCode.
14097         * src/hc08/ralloc.c: reduced unneeded slocs
14098         * src/hc08/gen.c: fixed bug in asmopToBoolean
14099
14100 2003-11-04  Borut Razem <borut.razem AT siol.net>
14101
14102         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
14103           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
14104           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
14105           transferred to configure
14106
14107 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
14108
14109         Use headers defined in the C[++] standards:
14110         * sim/ucsim/gui.src/serio.src/fileio.cc
14111         * sim/ucsim/gui.src/serio.src/frontend.cc
14112         * sim/ucsim/gui.src/serio.src/main.cc
14113         * sim/ucsim/gui.src/serio.src/posix_signal.cc
14114         * support/Util/NewAlloc.c
14115         * as/hc08/lklibr.c
14116         * as/mcs51/lklibr.c
14117         * as/z80/aslist.c
14118         * as/z80/assym.c
14119
14120 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14121
14122         * Added MSVC projects for hc08 assembler and linker:
14123         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
14124         /as/hc08/link_hc08.dsp
14125
14126 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
14127
14128         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
14129
14130 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
14131
14132         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
14133
14134 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14135
14136         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
14137
14138 2003-10-31  Borut Razem <borut.razem AT siol.net>
14139
14140         * support/cpp2/cpplib.h,
14141           support/cpp2/cpplib.c,
14142           support/cpp2/cpplex.c,
14143           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
14144           to switch _asm block preprocessing on / off. Default is
14145           #pragma preproc_asm +
14146
14147 2003-10-31  Borut Razem <borut.razem AT siol.net>
14148
14149         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
14150           when outputting comment blocks (when executed with -C option) and
14151           _asm (SDCPP specific) blocks
14152
14153 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14154
14155         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
14156
14157 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
14158
14159         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
14160
14161 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
14162
14163         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
14164         * src/SDCCast.c (decorateType): fixed bug #832664
14165
14166 2003-10-31  Borut Razem <borut.razem AT siol.net>
14167
14168         * support/cpp2/cpplex.c: fixed for SDCPP:
14169           comments(when executed with -C option) and _asm blocks
14170           were included even if they where in skipped #if block.
14171           Applied solution from GCC cpp 3.3.2
14172
14173 2003-10-31  Borut Razem <borut.razem AT siol.net>
14174
14175         * src/SDCC.lex: sdcc now understands both formats:
14176           '# <line_number> <file_name>' and
14177           '#line <line_number> <file_name>'
14178         * support/cpp2/cppmain.c: sdcpp now generates the standard
14179           '# <line_number> <file_name>' instead of former
14180           '#line <line_number> <file_name>'
14181
14182 2003-10-30  Borut Razem <borut.razem AT siol.net>
14183
14184         * support/cpp2/cpphash.h,
14185         * support/cpp2/cpplib.h
14186         * support/cpp2/cpplex.c,
14187         * support/cpp2/cppmain.c,
14188         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
14189
14190 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14191
14192         Fixed a number of problems revealed by bug #827883.
14193         * src/SDCCloop.c (loopInvariants): Spill location of the
14194         result operand should be recomputed if extracted from
14195         a loop. Also, don't extract assignments of an iTemp
14196         from a literal.
14197         * src/SDCCast.c (isConformingBody): loop reversal should
14198         not occur if the control variable is involved with a
14199         relational operator.
14200
14201 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
14202
14203         * .version: bumped to 2.3.6 to reflect the big improvements
14204         made by Erik and Klaus. Thanks!
14205
14206 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
14207
14208         Replaced the livrange code.
14209         * src/SDCClrange.c: added new LR code
14210         * src/SDCCloop.c,
14211         * src/SDCCBBlock.h: removed remainig parts from old LR code
14212         * src/ds390/ralloc.c,
14213         * src/ds390/gen.c: minor fixes to make it work with new code
14214
14215 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14216
14217         * as/hc08/asm.h,
14218         * as/hc08/lkrloc.c,
14219         * src/hc08/gen.c,
14220         * src/hc08/ralloc.c: Fix various warnings related to the hc08
14221         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
14222         (tweaked fix for bug #818696)
14223
14224 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14225
14226         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
14227
14228 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14229
14230         * src/SDCCmain.c,
14231         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
14232         * src/mcs51/gen.c (gencjneshort),
14233         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
14234         more efficient (per Scott Bronson's suggestion)
14235
14236 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14237
14238         Extended the semantics of the critical keyword to include
14239         individual statements. See RFE #827755 and #799831
14240         * src/SDCC.y
14241         * src/SDCCicode.c
14242         * src/SDCCopt.c
14243         * src/SDCCast.c
14244         * support/Util/SDCCerr.c
14245         * support/Util/SDCCerr.h
14246         * src/mcs51/gen.c
14247         * src/ds390/gen.c
14248         * src/hc08/gen.c
14249
14250 2003-10-19  Borut Razem <borut.razem AT siol.net>
14251
14252         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
14253
14254 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14255
14256         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
14257         Fixed bug #818696
14258         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
14259         and predecrement operand is displayed
14260
14261 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
14262
14263         * src/SDCCval.c (valMinus): fixed bug #826041
14264
14265 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14266
14267         Some hc08 related updates that I missed earlier
14268         * sim/ucsim/stypes.h
14269         * support/regression/ports/hc08/spec.mk
14270
14271 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14272
14273         New target "hc08" for the Motorola 68hc08 family of micros
14274
14275         * configure
14276         * configure.in
14277         * Makefile
14278         * src/hc08/*
14279         * src/SDCCmain.c
14280         * src/port.h
14281         * sim/ucsim/hc08.src/*
14282         * sim/ucsim/configure.in
14283         * src/ucsim/configure
14284         * sim/ucsim/packages_in.mk
14285         * as/hc08/*
14286         * as/Makefile
14287         * device/include/mc68hc908qy.h
14288         * device/lib/hc08/*
14289         * device/lib/Makefile.in
14290         * support/regression/ports/hc08/*
14291         * support/regression/Makefile
14292
14293 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14294
14295         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
14296         regression test
14297         * src/ds390/gen.c (genCast): fixed bug #821957
14298
14299 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
14300
14301         * device/lib/logf.c: "fixed" overlay bug
14302         * support/regression/ports/host/spec.mk: added m library
14303         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
14304         * support/regression/tests/float_trans: added (for Eric)
14305
14306 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
14307
14308         * src/mcs51/gen.c (genCpl): fixed bug
14309         http://sf.net/mailarchive/message.php?msg_id=6263915
14310
14311 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
14312
14313         * src/SDCCast.c (decorateType): added extended constant folding
14314         * src/SDCCsymt.c (computeType): cleanup
14315         * src/SDCCval.c (valShift): minor optimization
14316         * support/regression/tests/ast_constant_folding.c: added
14317
14318 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14319
14320         * src/SDCCmain.c: removed some unintended changes
14321
14322 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14323
14324         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
14325         * src/z80/gen.c: fixed part of bug #817589
14326         * src/SDCCsymt.c (checkFunction): fixed bug #817895
14327
14328 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
14329
14330         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
14331         * src/SDCCcflow.c
14332         * src/SDCCcse.c
14333         * src/SDCCdflow.c
14334         * src/SDCClabel.c
14335         * src/SDCClrange.c
14336         * src/SDCCmem.c
14337         * src/SDCCopt.c
14338         * src/SDCCpeeph.c
14339         * src/SDCCset.c
14340         * src/avr/ralloc.c
14341         * src/ds390/ralloc.c
14342         * src/izt/ralloc.c
14343         * src/mcs51/ralloc.c
14344         * src/pic/ralloc.c
14345         * src/pic16/ralloc.c
14346         * src/xa51/ralloc.c
14347         * src/z80/ralloc.c
14348         * src/z80/gen.c: removed unused label "release:"
14349
14350 2003-10-06  Borut Razem <borut.razem AT siol.net>
14351
14352         * src/SDCC.lex: removed definition of unused variables
14353           save_optimize and save_options
14354
14355 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
14356
14357         * clean.mk: removed '=' in "-maxdepth=1"
14358         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
14359         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
14360
14361 2003-10-06  Borut Razem <borut.razem AT siol.net>
14362
14363         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
14364           my_unput() replaced by unput()
14365
14366 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
14367
14368         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
14369         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
14370         type-punned pointer will break strict-aliasing rules"
14371         Old LR behaviour is again default; Klaus' LR can be choosen by
14372         defining the environment variable LRKLAUS
14373         * src/SDCCBBlock.h
14374         * src/SDCCloop.c
14375         * src/SDCClrange.c
14376         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
14377         * clean.mk: fixed removal of files in bin/CVS/
14378         * device/lib/clean.mk: fixed removal of directories small and large
14379         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
14380         * src/SDCCicode.c,
14381         * src/SDCCval.c: removed superflous test for pedantic
14382
14383 2003-10-05  Borut Razem <borut.razem AT siol.net>
14384
14385         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
14386           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
14387           message "unmatched #pragma SAVE and #pragma RESTORE"
14388
14389 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14390
14391         * doc/sdccman.lyx: various additions and updates (interrupts, inline
14392           assembly, critical functions, atomic, nojtbound)
14393
14394 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
14395
14396         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
14397         * src/SDCCBBlock.h
14398         * src/SDCCloop.c
14399         * src/SDCCloop.h
14400         * src/SDCClrange.c
14401
14402 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14403
14404         * src/z80/gen.h,
14405         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14406         * src/mcs51/gen.h
14407         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14408         * src/ds390/gen.h
14409         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14410         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
14411         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
14412
14413 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14414
14415         * src/z80/gen.c (genRet): fixed bug #524753
14416         * src/z80/gen.c (genCast): fixed internal error on cast from
14417         pointer to long
14418         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
14419         fix for bug #477835 to the z80
14420         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
14421         for tracking iCodes in the peephole optimizer for z80
14422
14423 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14424
14425         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
14426         the other part of bug #814548
14427         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
14428
14429 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
14430
14431         * src/SDCCcse.c: fixed part of bug #814548
14432
14433 2003-09-28  Borut Razem <borut.razem AT siol.net>
14434
14435         * src/asm.c: rewrite of printILine() to use temporary file instead
14436           a pipe
14437         * src/xa51/main.c: commented out declaration of int rewinds
14438
14439 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14440
14441         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
14442
14443 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14444
14445         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
14446         * src/asm.c (printILine): Fixed bug #811015
14447
14448 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14449
14450         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
14451         freeing.
14452
14453 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14454
14455         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
14456         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
14457         to correctly handle general case of AOP_PAIRPTR
14458         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
14459
14460 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14461
14462         * src/mcs51/ralloc.c (fillGaps),
14463         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
14464         register positioning bug)
14465
14466 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
14467
14468         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
14469
14470 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14471
14472         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
14473         genCodePointerGet, genGenPointerGet, genFarPointerSet,
14474         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
14475         (ralloc doesn't intentionally do this now, but perhaps later)
14476         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
14477         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
14478         register positioning bugs (Fixed bug #762602 and #795325)
14479         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
14480         (Fixed bug #808779)
14481         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
14482         lines that --i-code-in-asm generates
14483
14484 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14485
14486         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
14487         trying to fclose a FILE* that was already closed.
14488
14489 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14490
14491         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
14492         of const struct should be treated as if const themselves)
14493
14494 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
14495
14496         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
14497
14498 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14499
14500         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
14501         Unix (/n) and DOS (/r/n) line terminations.
14502
14503 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14504
14505         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
14506         bug #613775
14507
14508 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14509
14510         * src/mcs51/gen.c (genFunction, genEndFunction),
14511         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
14512         and restore of EA so that stack offsets to parameters are
14513         correct when using both critical and reentrant/stack-auto.
14514         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
14515         size (can be triggered in error if sloc is shared between
14516         different sized objects)
14517         * device/include/float.h: fixed macros to explicitly use
14518         unsigned long where needed
14519
14520 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
14521
14522         Feature req. 799831: added code to allow nesting of critical functions
14523         * src/mcs51/gen.c (genFunction, genEndFunction)
14524         * src/ds390/gen.c (genFunction, genEndFunction)
14525
14526 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14527
14528         * src/SDCCsymt.c (sclsFromPtr),
14529         * src/SDCCsymt.h,
14530         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
14531         support for standard C idiom of memory mapped variables; for
14532         example, *((xdata int*)0x1234) = 1 is now internally equivalent
14533         to xdata int at 0x1234 tempvar = 1.
14534         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
14535         provided by Akiya ISHIDA
14536
14537 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
14538
14539         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
14540         * src/SDCCval.c (constVal): added reduction from int to char
14541         * src/SDCCval.c (valMult, valDiv): fixed sign handling
14542         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
14543         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
14544         to ignore the sign
14545         * support/regression/tests/shifts.c: fixed
14546
14547 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14548
14549         * src/z80/gen.c (genXor): Fixed bug #805445
14550
14551 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14552
14553         Fixed bug #621531 (const & volatile confusion in the type chain).
14554         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
14555         refer to the const or volatile state of the pointer itself.
14556
14557         * src/SDCCast.c
14558         * src/SDCCglue.c
14559         * src/SDCCicode.c
14560         * src/SDCCsymt.c
14561         * src/SDCCval.c
14562         * src/SDCC.y
14563         * src/SDCCsymt.h
14564         * src/pic/gen.c
14565         * src/pic/ralloc.c
14566         * src/pic16/gen.c
14567         * src/pic16/ralloc.c
14568         * support/regression/tests/const.c
14569
14570 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14571
14572         When checking for duplicated modules, use absolute paths
14573         instead of relative paths.  Files changed:
14574
14575         * as/mcs51/lklib.c
14576         * link/z80/lklib.c
14577
14578 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14579
14580         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
14581
14582 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14583
14584         * device/include/string.h: added size_t typedef, changed
14585         prototypes to use size_t, eliminated separate reentrant and
14586         non-reentrant declarations, added _memmove declaration
14587         * device/lib/_memcpy.c: changed to use size_t instead of int,
14588         changed /4 to >>2 to avoid division library call
14589         * device/lib/_memcmp.c,
14590         * device/lib/_memset.c,
14591         * device/lib/_strncat.c,
14592         * device/lib/_strncpy.c,
14593         * device/lib/_strncmp.c: changed to use size_t instead of int
14594         * device/lib/_memmove.c: new file (fixed bug #772294)
14595         * device/lib/Makefile.in: added _memmove.c
14596         * device/lib/z80/asm_strings.s: fixed bug #772290
14597         * support/regression/tests/bitfields.c: attempt to fix host assertion
14598         failure on amd64-unknown-linux2.2
14599
14600 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14601
14602         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
14603         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
14604         * as/z80/asmain.c (main): fixed bug #801766
14605
14606 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
14607
14608         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
14609         compilers
14610
14611 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14612
14613         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
14614         reported in bug #800609
14615
14616 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
14617
14618         * Top header beautifications in src/pic16 directory:
14619           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
14620           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
14621           pcoderegs.h, ralloc.c, ralloc.h
14622         * main.c: added top header and GPL license notice
14623         * pcode.c: fixed the if-conditional warning
14624
14625 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
14626
14627         * device/lib/_mullong.c: replaced int by short for gcc
14628
14629 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14630
14631         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
14632         and JUMPTABLE iCodes properly now (worked by accident before)
14633         * src/mcs51/gen.c (leftRightUseAcc),
14634         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
14635         iCode properly now. Use getSize instead of nRegs since a & b
14636         aren't part of the nRegs tally.
14637
14638 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
14639
14640         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
14641         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
14642           before instructions that use the _STATUS register
14643
14644 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
14645
14646         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
14647         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
14648         fetching of the pointer
14649         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
14650         copied from genNearPointerSet()
14651         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
14652         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
14653         If they pop r0/r1 they must be called in the opposite order than aopOp().
14654         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
14655         (resp. --stack-auto), prepared for --xstack
14656
14657 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14658
14659         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
14660
14661 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
14662
14663         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
14664         these ports have their own __sdcc_external_start()
14665
14666 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
14667
14668         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
14669         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
14670         type for bits was changed. It resulted in bit variables becoming
14671         global, which is not permitted in PIC 14 assembly output.
14672
14673 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14674
14675         * doc/sdccman.lyx: various additions and updates. Rearranged sections
14676
14677 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14678
14679         Z80 and MCS51 linkers complaint if a public symbol is defined
14680         in more than one library module:
14681
14682         * as/mcs51/lklib.c
14683         * link/z80/lklib.c
14684         * as/mcs51/Makefile.in
14685
14686 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14687
14688         A few small changes that speed up the peephole optimizer.
14689
14690         * src/SDCCpeeph.c
14691
14692 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14693
14694         Try to make the peephole optimizer smarter by maintaining
14695         an association between the assembly source code and the
14696         iCodes that originated them. Put this information to use
14697         with a new peephole rule condition "notVolatile" so that
14698         the rules can be aggressive yet still safe.
14699
14700         * src/SDCCpeeph.c
14701         * src/SDCCpeeph.h
14702         * src/mcs51/gen.c
14703         * src/mcs51/peeph.def
14704
14705 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14706
14707         Fixed bug #741761
14708
14709         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
14710         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
14711         if the left or right operand symbols have the accuse flag set.
14712
14713 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14714
14715         Changed the type of the result of the ! (NOT) operator to char;
14716         previously it returned the same type as the source. This allows
14717         us to eliminate all the genFloatNot functions (all of its target
14718         implementations were very buggy) since !float can use the same
14719         code as !long now.
14720
14721         * src/SDCCicode.c (ast2iCode): ! returns char
14722         * src/mcs51/gen.c (genNot, genNotFloat),
14723         * src/ds390/gen.c (genNot, genNotFloat),
14724         * src/z80/gen.c (genNot, genNotFloat),
14725         * src/pic/gen.c (genNot, genNotFloat),
14726         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
14727
14728 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
14729
14730         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
14731         1. Interrupt would not compile properly. Ensure PCLATH register is saved
14732            during interrupts. Ensure WSAVE is located at a shared bank address.
14733         2. Fixed page selection in some places
14734         3. Fixed BTFSS/C to where necessary use registers directly and not simply
14735            the registers name strings.
14736         4. Fixed "signed / unsigned compare" compiler warnings.
14737         5. The PIC port manages its own allocation of the general purpose
14738            registers, but makes no attempt to reuse them. As a result when
14739            compiling it soon runs out of general purpose registers. Some
14740            additional code was added to the files pcode.c and device.c to walk
14741            through the function call tree and rename the registers so that they
14742            get reused.
14743
14744         * src/pic/device.c
14745         * src/pic/gen.c
14746         * src/pic/glue.c
14747         * src/pic/pcode.c
14748         * src/pic/pcode.h
14749         * src/pic/ralloc.c
14750         * src/pic/ralloc.h
14751         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
14752         genPlus() & genMinus() when the result is the same as left or right
14753
14754 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14755
14756         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
14757
14758 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14759
14760         Made bitfield a distinct type from bit so that bitfields
14761         convert as per ANSI C and bits retain their traditional
14762         boolean style behaviour. Implemented bitfield support in
14763         the z80 port.
14764
14765         * src/SDCCsymt.h,
14766         * src/SDCCsymt.c,
14767         * src/SDCCast.c,
14768         * src/cdbFile.c,
14769         * src/mcs51/gen.c,
14770         * src/ds390/gen.c: bit v bitfield split
14771         * src/z80/gen.c: New support for bitfields
14772         * support/regression/tests/bitfields.c: reenabled z80,
14773         added more tests
14774
14775 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14776
14777         Rules 246.x, 247.x relate to bitfields, the others speed up
14778         access to xdata mapped I/O devices.
14779
14780         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
14781
14782 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14783
14784         Cleaned up genPackBits and genUnpackBits and added two helper
14785         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
14786         for literal assignments in genPackBits (thanks to Frieder for
14787         reminding me).
14788
14789         * src/mcs51/gen.c
14790         * src/ds390/gen.c
14791
14792 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14793
14794         Fixed bug #748310 (pointer to function type mishandled when the
14795         function name is omitted). Also fixed a SIGSEGV when a function
14796         attribute (reentrant, etc) is used on a non-function or on a
14797         function but misplaced before the parameter list.
14798
14799         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
14800         bug #748310
14801         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
14802         * support/Util/SDCCerr.h,
14803         * support/Util/SDCCerr.c: Added func attr misuse error msg
14804
14805 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
14806
14807         Fixed bug #787649 by anonymous
14808         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
14809         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
14810
14811 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14812
14813         Fixed numerous bitfield problems.
14814
14815         * src/SDCC.y: More bitfield related error checking
14816         * src/SDCCsymt.h,
14817         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
14818         * support/Util/SDCCerr.h,
14819         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
14820         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14821         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14822         * support/regression/tests/bitfields.c: tests added
14823
14824 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14825
14826         Made the constant following the "interrupt" keyword optional. If
14827         omitted, the function will not automatically be given an entry
14828         in the interrupt vector table (similar to #pragma NOIV, but
14829         less syntacticly kludgy). The interrupt number is also now
14830         range checked. Also fixed a bug in the high order bit example
14831         in the manual.
14832
14833         * src/SDCC.y
14834         * src/SDCCmem.c
14835         * src/SDCCglue.c
14836         * src/SDCCsymt.h
14837         * support/Util/SDCCerr.c
14838         * support/Util/SDCCerr.h
14839         * doc/sdccman.lyx
14840
14841 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
14842
14843         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
14844         * src/SDCCicode.c (operandOperation): rewritten some ops
14845         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
14846         * src/SDCCsymt.c (computeType): literals are handled the same way as any
14847         other type
14848         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
14849         be re-activated by defining REDUCE_LITERALS)
14850         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
14851         unsigned, but are signed by default
14852         * src/SDCCval.c (constVal): rearranged
14853         * src/SDCCval.c (valMod): preliminary fix
14854         * src/SDCCval.c (valCastLiteral): use TYPE_* types
14855         * support/regression/literalop.c: added, work in progress
14856
14857 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14858
14859         Generate warnings for useless declarations like "char data;"
14860         that don't do what new users expect.
14861
14862         * src/SDCC.y
14863         * support/Util/SDCCerr.h
14864         * support/Util/SDCCerr.c
14865
14866 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
14867
14868         * src/SDCCval.c (valMult): fix overflow detection of negative int
14869
14870 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14871
14872         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
14873
14874         Changes to support big endian targets:
14875
14876         * src/ports.h
14877         * src/SDCCglue.c
14878         * src/avr/main.c
14879         * src/ds390/main.c
14880         * src/izt/i186.c
14881         * src/mcs51/main.c
14882         * src/pic/main.c
14883         * src/pic16/main.c
14884         * src/xa51/main.c
14885         * src/z80/main.c
14886
14887 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
14888
14889         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
14890         * device/lib/time.c: fixed warning "integer overflow in expression"
14891
14892 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
14893
14894         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
14895         * src/SDCCval.c (constVal): changed default to signed; hex and octal
14896         constants are unsigned; added recognition of "u" flag for unsigned
14897         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
14898         * src/SDCCval.c (valDiv, valMod): fixed signdness
14899         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
14900         signedness of modulo, left and right shift
14901         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
14902         * support/Util/SDCCerr.h: added warning W_INT_OVL
14903         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
14904         * src/SDCCast.c (ast_print): improved output of constants
14905
14906 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14907
14908         Fixed some warnings when building with MSVC:
14909
14910         * as/mcs51/asdata.c
14911         * as/z80/asdata.c
14912         * as/mcs51/asm.h
14913         * as/z80/asm.h
14914         * link/z80/aslink.h
14915         * link/z80/lkdata.c
14916         * link/z80/lkeval.c
14917         * link/z80/lkgb.c
14918         * link/z80/lkihx.c
14919         * link/z80/lks19.c
14920         * link/z80/lksym.c
14921         * support/cpp2/cpplib.c
14922         * src/ds390/gen.c
14923         * src/mcs51/gen.c
14924
14925 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
14926
14927         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
14928
14929 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14930
14931         * support/librarian/clean.mk: Do not remove Makefile.
14932         * support/librarian/Makefile: added.
14933
14934 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14935
14936         Added librarian to MSVC build:
14937         * all.dsp
14938         * sdcc.dsw
14939         * support/librarian/librarian.dsp
14940
14941         'configure' not needed for librarian, removed:
14942         * support/librarian/configure
14943         * support/librarian/configure.in
14944         * support/librarian/config_in.h
14945         * support/librarian/Makefile.in
14946
14947         Hopefully these ones built the librarian and the rest of sdcc properly:
14948         * Makefile
14949         * Makefile.common.in
14950
14951         Messed up 'configure', so revert to previous version:
14952         * configure
14953         * configure.in
14954
14955 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
14956
14957         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
14958         there, while the mantissa of a double is "only" 53 bits wide.
14959
14960 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14961
14962         Adding sdcclib to the build.  MSVC project coming soon.
14963         Files added/changed:
14964
14965         * support/librarian/clean.mk
14966         * support/librarian/configure
14967         * support/librarian/configure.in
14968         * support/librarian/config_in.h
14969         * support/librarian/Makefile.bcc
14970         * support/librarian/Makefile.in
14971         * support/librarian/sdcclib.c
14972         * Makefile.bcc
14973         * Makefile
14974         * Makefile.common.in
14975         * configure
14976         * configure.in
14977
14978 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14979
14980         Linker now complaints if linked modules have conflicting options, for
14981         example, one compiled using --model-large and another one compiled with
14982         --model-small.  The following files were modified:
14983
14984         * as/mcs51/asdata.c
14985         * as/mcs51/aslink.h
14986         * as/mcs51/asm.h
14987         * as/mcs51/asmain.c
14988         * as/mcs51/asout.c
14989         * as/mcs51/i51pst.c
14990         * as/mcs51/lkdata.c
14991         * as/mcs51/lklibr.c
14992         * as/mcs51/lkmain.c
14993         * as/z80/asdata.c
14994         * as/z80/asm.h
14995         * as/z80/asmain.c
14996         * as/z80/asout.c
14997         * as/z80/z80pst.c
14998         * link/z80/aslink.h
14999         * link/z80/lkdata.c
15000         * link/z80/lklibr.c
15001         * link/z80/lkmain.c
15002         * src/SDCCglue.c
15003
15004 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15005
15006         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
15007         as/mcs51/lklibr.c: Generate a warning when a library is not found.
15008
15009 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
15010
15011         * src/z80/mappings.i: fix _mul[us][int,long] entries
15012
15013 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15014
15015         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
15016
15017 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
15018
15019         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
15020         * support/regression/tests/bitopcse.c: added
15021         fixed warning:
15022         * src/avr/gen.c:
15023         * src/pic/gen.c:
15024         * src/pic16/gen.c:
15025         * src/z80/gen.c:
15026         * src/xa51/gen.c:
15027
15028 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15029
15030         added support for new library format to z80, gbz80 linkers:
15031         *link/z80/aslink.h
15032         *link/z80/lklex.c
15033         *link/z80/lklib.c
15034         *link/z80/lklist.c
15035
15036 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
15037
15038         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
15039         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
15040
15041 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
15042
15043         added DUMMY_READ_VOLATILE:
15044         * src/SDCC.y:
15045         * src/avr/gen.c:
15046         * src/xa51/gen.c:
15047         * src/z80/gen.c:
15048         * src/pic/gen.c:
15049         * src/pic16/gen.c:
15050         * src/mcs51/gen.c:
15051         * src/ds390/gen.c:
15052         * src/SDCCcse.c (algebraicOpts): many improvements
15053         * src/SDCCcse.h: removed algebraicOpts()
15054         * src/SDCCicode.c (picDummyRead): added
15055
15056 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15057
15058         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
15059         "Insufficient space in data memory".
15060
15061 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
15062
15063         * src/mcs51/gen.c: fixed bug #771358
15064         * src/z80/gen.c: fixed bug #759087
15065
15066 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
15067
15068         * src/pic16/glue.c: minor cleanup by Vangelis
15069
15070 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15071
15072         * device/include/regc515c.h: fixed #758477
15073         * device/lib/_gptrget.c: saving some cycles in generic pointer get
15074         * device/lib/_gptrput.c: saved a few bytes
15075         * my tab spacing is 8, yours too?)
15076         * device/lib/_ser.c: process RX bytes earlier than TX bytes
15077         * device/lib/serial.c: process RX bytes earlier than TX bytes
15078         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
15079
15080 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
15081
15082         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
15083
15084 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15085
15086         * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
15087
15088 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
15089
15090         * device/lib/Makefile.in: bad fix, reverted to 1.43
15091
15092 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
15093
15094         * device/lib/Makefile.in: added missing z80 object files
15095
15096 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
15097
15098         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
15099         pic16 progress by Vangelis:
15100         * src/SDCCglobl.h:
15101         * src/SDCCmain.c:
15102         * src/pic/Makefile:
15103         * src/pic:
15104         * pic/Makefile:
15105         * pic16/device.c:
15106         * pic16/device.h:
15107         * pic16/gen.c:
15108         * pic16/gen.h:
15109         * pic16/genarith.c:
15110         * pic16/glue.c:
15111         * pic16/main.c:
15112         * pic16/pcode.c:
15113         * pic16/pcode.h:
15114         * pic16/pcodepeep.c:
15115         * pic16/peeph.def:
15116
15117 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15118
15119         * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
15120
15121 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15122
15123         * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
15124         added gbz80 build to MSVC project.
15125         * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
15126         link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
15127         from 8051 stuff and setup so it links using a .lnk file.
15128
15129 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15130
15131         * support/librarian/sdcclib.c: sdcc librarian.
15132         * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
15133         with sdcclib.
15134
15135 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15136
15137         * as/mcs51/lkmain.c: properly handle extensions in function afile.
15138
15139 2003-07-02  Borut Razem <borut.razem AT siol.net>
15140
15141         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
15142         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
15143         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
15144         src/xa51/main.c, src/z80/main.c:
15145         virtualization of glue() function: each port has it's own glue function,
15146         which is accessed by do_glue function pointer in PORT.general structure
15147
15148 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
15149
15150         * DS800C400 fun, improved ROM interface and tinibios.
15151
15152 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
15153
15154         * More support for DS80C400. Now includes beginning of interface to ROM.
15155
15156 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
15157
15158         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
15159
15160 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15161
15162         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
15163
15164 2003-06-19  Borut Razem <borut.razem AT siol.net>
15165
15166         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
15167
15168 2003-06-19  Borut Razem <borut.razem AT siol.net>
15169
15170         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
15171         fixed Z80 port - crt0.o: cannot open.
15172
15173 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
15174
15175         * support/Util/MySystem.c (merge_command): revert bad fix
15176
15177 2003-06-18  Borut Razem <borut.razem AT siol.net>
15178
15179         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
15180
15181 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15182
15183         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
15184         option --use-stdout sends errors to stdout instead of stderr.
15185
15186 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
15187
15188         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
15189
15190 2003-06-15  Borut Razem <borut.razem AT siol.net>
15191
15192         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
15193         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
15194         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
15195         fixed width array of pointers replaced with sets;
15196         multiple include and lib paths ared transferred to preprocessor and linker
15197         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
15198         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
15199         fixed width array of pointers
15200         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
15201         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
15202         fixupPath(), getPathDifference()
15203         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
15204         fixed width array of pointers
15205
15206 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
15207
15208         * src/pic16/ralloc.c: fix warnings
15209         * src/pic16/pcode.c: fix warning
15210
15211 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
15212
15213          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
15214         know all the details, but essentially this set of changes enable
15215         the pic16 port to generate movff instructions and generate assembler
15216         directives,
15217         * src/SDCCmain.c:
15218         * src/pic16/gen.c:
15219         * src/pic16/glue.c:
15220         * src/pic16/pcode.c:
15221         * src/pic16/device.c:
15222         * src/pic16/main.c:
15223         * src/pic16/pcode.h:
15224         * src/pic16/pcoderegs.c:
15225         * src/pic16/ralloc.c:
15226         * src/pic16/ralloc.h:
15227
15228 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15229
15230         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
15231         added option --vc, so sdcc errors and warnings are compatible with
15232         Microsoft Visual Studio.
15233
15234 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15235
15236         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
15237           device/lib/libfloat.lib: added atof function.
15238
15239 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
15240
15241         * doc/sdccman.lyx: updated to Lyx 1.3
15242         * doc/cdbfileformat.lyx: updated to Lyx 1.3
15243         * doc/test_suite_spec.lyx: updated to Lyx 1.3
15244         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
15245
15246 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
15247
15248         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
15249
15250 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15251
15252         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
15253           additions to the "related tools/documentation" section
15254
15255 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
15256
15257         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
15258
15259 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
15260
15261         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
15262         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
15263
15264 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
15265
15266         * doc/sdccman.lyx: fix double dash and other minor things
15267         * doc/Makefile: fix double dash
15268
15269 2003-05-28  Karl Bongers(patches from Martin Helmling)
15270         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
15271           condition and ignore commands.
15272
15273 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15274
15275         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
15276           is in parts still quite out of date, I did changes as far as I felt makes sense
15277           for a non-native english speaker.
15278           Please feel free to add to the manual or to correct my changes.
15279         * doc/Makefile: undid touching the date of intermediate tex files.
15280
15281 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15282
15283         * doc/sdccman.lyx: Manual has an index now
15284
15285 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
15286
15287         Finalize muluint/mulsint and mululong/mulslong merging:
15288         * device/lib/_mulint.c
15289         * device/lib/_mullong.c
15290         * device/lib/gbz80/mul.s
15291         * device/lib/gbz80/stubs.s
15292         * device/lib/z80/mul.s
15293         * device/lib/z80/stubs.s
15294         * src/SDCCsymt.c (initCSupport)
15295
15296 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15297
15298         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
15299         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
15300           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
15301           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
15302           instead of /Zm500.
15303
15304 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15305
15306         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
15307           the regression tests I'm not brave enough to enable 245.b, 245.c
15308         * doc/sdccman.lyx: added latex preamble for hyperref package.
15309           Using pdflatex this will give you a hyperlinked pdf file with
15310           bookmarks. (prepend '%' before /usepackage if this breaks something)
15311
15312 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15313
15314          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
15315
15316 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
15317
15318         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
15319
15320 2003-05-21    <johan AT balder>
15321
15322         * src/SDCCglue.c (printIval): fixed bug #739934
15323
15324 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
15325
15326         Applied patch from bug 737905 (renamed yylineo to mylineno):
15327         * src/altlex.c
15328         * src/SDCCast.c
15329         * src/SDCglobl.h
15330         * src/SDCC.lex
15331         * src/SDCCsymt.c
15332         * src/SDCCval.c
15333         * src/pic16/pcode.c: Cleaned warnings
15334         * src/pic16/pcodeflow.c: Cleaned warnings
15335         * src/pic16/pcoderegs.c: Cleaned warnings
15336
15337 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
15338
15339         * src/pic16/pcode.c: Cleaned warnings
15340         * src/pic16/pcodepeep.c: Cleaned warnings
15341         * src/pic16/ralloc.c: Cleaned warnings
15342
15343 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
15344
15345         * doc/sdccman.lyx: fixed bug 739745
15346         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
15347
15348 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
15349
15350         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
15351         it can be defined with CFLAGS when running configure
15352         * src/SDCCmain.c: fixed compiling + linking with object files
15353
15354 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
15355
15356         * configure.in: configure for pic16 port,
15357             added --disable-pic16-port
15358         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
15359         * src/SDCCmain.c: linkOptions is changed to set *,
15360             added if/endif conditional macros to remove options help
15361             messages from optionsTable when a port is not configured, added
15362             support for the PIc16 port in the ports table, when executing
15363             the compiler with no port specified on command line, a default
15364             port is selected with the new macro DEFAULT_PORT which is
15365             defined in port.h, in setDefaultOptions() linkOptions is removed
15366             from initialization assignment, since now it is a set,
15367             parseCmdLine uses setParseWithComma for linkOptions, in
15368             linkEdit() linkOptions are accessed with new function indexSet()
15369             which returns the i'th item of a set variable. See SDCCset.c, in
15370             linkEdit() when calling buildCmdLine(), added linkOptions as
15371             last argument. Now users can pass arguments to gplink via the
15372             -Wl option, main() uses pic16glue() to glue up pic16 programs
15373         * src/SDCCpeeph.c: various changes to support pic16
15374         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
15375             return the i'th item of the set
15376         * src/SDCCset.h: added function prototype for indexSet()
15377         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
15378         * src/clean.mk: added pic16 in CLEANALLPORTS variable
15379         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
15380             added macro DEFAULT_PORT
15381         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
15382         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
15383             generated
15384         * src/pic16/glue.c: commented out some error producing lines
15385         * src/pic16/main.c: __config directives are commented out to stop
15386             gpasm complaining and test the linkage with gplink, _linkCmd and
15387             _asmCmd changed to be more gplink and gpasm friendly
15388         * src/pic16/peeph.def: peep rule 3 is commented out, since it
15389             produced an error when parsed, peep rule 12 is added to utilize
15390             movff, but it is commented out since the pCode does not support
15391             yet a command with 2 address arguments
15392
15393 2003-05-18    <johan AT balder>
15394
15395         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
15396         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
15397 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
15398
15399         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
15400         Added feature to script commands from file.
15401
15402 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
15403
15404         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
15405         * src/SDCCutil.c: include ctype.h for win32
15406
15407 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
15408
15409         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
15410
15411 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
15412
15413         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
15414         Fixed so you can set breakpoints prior to run, run does not stop
15415         on entry now.  Add tbreak.  Other enhancements and fixes for use
15416         with ddd.
15417
15418 2003-05-12  Borut Razem <borut.razem AT siol.net>
15419
15420         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
15421
15422 2003-05-11  Borut Razem <borut.razem AT siol.net>
15423
15424         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
15425         the path of bin directory, so that PATH is the only env. variable, which has to be set
15426         in case of standard installation.
15427         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
15428         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
15429         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
15430
15431 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
15432
15433         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
15434         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
15435         temp files are in the port dir; clean the gen/test directory when
15436         generating new test.c
15437         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
15438         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
15439         * support/regression/tests/zeropad.c: added
15440
15441 2003-05-09    <johan AT balder>
15442
15443         * src/SDCCglue.c: fixed bug #597940
15444
15445 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
15446
15447         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
15448         cache sfr, optimize next,step, fix off by one sourceline,
15449         support ddd list function.
15450         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
15451
15452 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
15453
15454         * support/regression/HTMLgen.py: added compare_s2f()
15455         * support/regression/Makefile: redo 1.27
15456         * support/regression/generate-cases.py: redo 1.5
15457
15458 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
15459
15460         * support/regression/tests/float.c: workaround 33 bit hex constant
15461         * support/regression/tests/simplefloat.c: fix division for host
15462
15463 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
15464
15465         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
15466         that tame's the PIC's over-aggressive optimizer.
15467
15468 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15469
15470          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
15471          support for MSVC.
15472
15473 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
15474
15475         Initial support for DS80C400. "Hello world" runs on TINIm400
15476         (with polled I/O).
15477
15478 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
15479
15480          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
15481          * Some notes on ddd usage added in debugger/README
15482          Martin Helmling adding more features and fixes for ddd GUI debugger.
15483          Code added for nexti, stepi, up, down, and other adjustments.
15484
15485 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
15486
15487         * src/pic/pCodepeep.c non-wildcard asmops are now handled
15488         * src/pic/peeph.def Added two rules to optimize carry manipulation
15489         * src/pic/* removed debug printfs
15490
15491 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
15492
15493         * debugger/mcs51/cmd.c: added header newalloc.h
15494
15495 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
15496
15497         * as/Makefile: new EXEEXT
15498         * as/z80/Makefile: remove trailing slash of BUILDIR
15499         * as/z80/clean.mk: new EXEEXT
15500         * Makefile.common.in: add to CFLAGS (and others), don't replace it
15501         * support/cpp2/Makefile.in: new EXEEXT
15502         * src/pic/glue.c (pic14emitRegularMap): fixed warning
15503
15504 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
15505
15506         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
15507         EXEEXT was introduced to fix all related problems with targets
15508         "clean", "install" and "uninstall"; a couple of further flaws
15509         especially with "clean" have been fixed too
15510         * as/mcs51/Makefile.in
15511         * as/mcs51/clean.mk
15512         * as/z80/Makefile
15513         * Makefile
15514         * clean.mk
15515         * debugger/mcs51/Makefile.in
15516         * debugger/mcs51/clean.mk
15517         * link/z80/Makefile
15518         * link/z80/Makefile.in
15519         * link/z80/clean.mk
15520         * link/Makefile
15521         * packihx/Makefile.in
15522         * packihx/clean.mk
15523         * sim/ucsim/Makefile
15524         * sim/ucsim/clean.mk
15525         * sim/ucsim/avr.src/Makefile.in
15526         * sim/ucsim/avr.src/clean.mk
15527         * sim/ucsim/s51.src/Makefile.in
15528         * sim/ucsim/s51.src/clean.mk
15529         * sim/ucsim/xa.src/Makefile.in
15530         * sim/ucsim/xa.src/clean.mk
15531         * sim/ucsim/z80.src/Makefile.in
15532         * sim/ucsim/z80.src/clean.mk
15533         * sim/ucsim/main_in.mk
15534         * sim/ucsim/packages_in.mk
15535         * sim/ucsim/gui.src/Makefile.in
15536         * sim/ucsim/gui.src/serio.src/Makefile.in
15537         * sim/ucsim/gui.src/serio.src/clean.mk
15538         * src/Makefile.in
15539         * src/clean.mk
15540         * support/cpp2/Makefile.in
15541         * support/cpp2/clean.mk
15542         * support/makebin/Makefile
15543         * support/makebin/clean.mk
15544         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
15545         * doc/sdccman.lyx: --program-suffix no longer needed
15546
15547 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
15548
15549          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
15550          Martin Helmling added support for ddd GUI debugger.
15551          Code added to display assembly, set variables, and other commands
15552          to interface to ddd.
15553
15554 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
15555
15556         * as/Makefile: fix target clean
15557         * as/clean.mk: fix target clean
15558         * as/z80/clean.mk: fix target clean
15559
15560 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
15561
15562         * Makefile.common.in: added  AT EXEEXT AT
15563         * configure.in: removed all mingw32 stuff
15564         * configure: rebuilt from configure.in
15565         * doc/sdccman.lyx: updated section "installation"
15566         * support/scripts/sdcc_mingw32: adapted to configure
15567         * support/scripts/sdcc_cygwin_mingw32: added
15568
15569 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
15570
15571         * src/pic Added object file support for the PIC port
15572         * src/pic Applied patch from Craig Franklin (this started the object file support)
15573         * src/regression Updated the PIC regression tests for object files
15574
15575 2003-04-20  Borut Razem <borut.razem AT siol.net>
15576
15577         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
15578           lklex.c: In function `getfid':
15579           lklex.c:203: warning: array subscript has type `char'
15580         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
15581           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
15582         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
15583           stack handling macros
15584
15585 2003-04-19  Borut Razem <borut.razem AT siol.net>
15586
15587         * "handling space characters in file path" task:
15588         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
15589         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
15590         * support/Util/MySystem.h: make it self-sufficient
15591         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
15592           src/z80/main.c, sdcc/as/mcs51/lklex.c:
15593           handling space characters in file path
15594         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
15595           (it will be used by assemblers, which have their own includes, e.g. gpasm)
15596         * support/Util/MySystem.c: handling space characters in executable's path
15597
15598 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
15599
15600         * as/z80/Makefile: fix permanent rebuild of z80
15601         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
15602         * support/regression/tests/bitfields.c: added Johan's bitfields.c
15603
15604 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
15605
15606         * src/SDCCopt.c: add special case optimization to replace modulo by
15607           a power of two with a bitwise AND.
15608
15609 2003-04-18    <johan AT balder>
15610
15611         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
15612
15613 2003-04-17    <johan AT balder>
15614
15615         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
15616         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
15617
15618 2003-04-13  Borut Razem <borut.razem AT siol.net>
15619
15620         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
15621         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
15622           fixed mingw problem in adl_NORMALIZE_PATH
15623
15624 2003-04-12  Borut Razem <borut.razem AT siol.net>
15625
15626         * fixed "#pragma SAVE/RESTORE can not be nested":
15627         * src/SDCC.lex: reworked pragma handling functions
15628         * sdcc/src/SDCCglobl.h: reworked stack handling macros
15629         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
15630
15631 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
15632
15633         * src/SDCCutil.c (pathEquivalent): defined but not used
15634         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
15635         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
15636         * configure: rebuilt from configure.in
15637         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
15638         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
15639         * device/include/Makefile.in: replace sdcc_datadir
15640         * device/lib/Makefile.in: replace sdcc_datadir
15641         * Makefile.common.in: add LDFLAGS from configure
15642         * packihx/Makefile.in: use LDFLAGS
15643         * src/Makefile.in: use LDFLAGS
15644         * support/cpp2/Makefile.in: add LDFLAGS from configure
15645         * support/makebin/Makefile: use LDFLAGS
15646         * .version: bumped version number to 2.3.5
15647
15648 2003-04-12  Borut Razem <borut.razem AT siol.net>
15649
15650         * completed "different paths" task:
15651         * src/SDCCmacro.c: fixed bug in handling quotes
15652         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
15653         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
15654
15655 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
15656
15657         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
15658
15659 2003-04-11 kevin Vigor <kevin AT vigor.nu>
15660
15661         * ds390/gen.c ds390/peeph.def: fix bug 706781
15662
15663 2003-04-11  Borut Razem <borut.razem AT siol.net>
15664
15665         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
15666
15667 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
15668
15669         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
15670         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
15671          set - this bit used to not be set...).
15672         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
15673           bad code in PIC Port
15674         * src/regression/and2.c added to test bug 609268
15675         * src/regression/Makefile added and2.c to regression test
15676
15677
15678 2003-04-08    <johan AT CP255758-A>
15679
15680         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
15681         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
15682         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
15683
15684 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
15685
15686         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
15687         fix bug #487815
15688         * support/cpp2/Makefile.in: fix bug #487815
15689         * configure: rebuilt from configure.in
15690         * Makefile.common.in: docdir changed, new path suffixes
15691         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15692         * sdcc_vc_in.h: reflect changes from sdccconf.h
15693         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
15694         * src/SDCCutil.h: remove BINDIR hack
15695         * doc/sdccman.lyx: update new path hierarchy
15696
15697 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15698
15699         * src/SDCCpeeph.c: added okToRemoveSLOC test
15700
15701 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15702
15703         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
15704
15705 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15706
15707         * src/SDCCpeeph.c: added labelIsReturnOnly test
15708         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
15709
15710 2003-04-05    <johan AT balder>
15711
15712         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
15713         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
15714         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
15715         * src/SDCCast.c: fixed a warning
15716         * src/SDCCast.h: fixed a warning
15717         * src/SDCCicode.c (operandFromAst): fixed a warning
15718
15719 2003-04-04    <johan AT balder>
15720
15721         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
15722         * src/SDCCast.c (decorateType): fixed bug #715076
15723         * src/SDCC.y: fixed bug #702907
15724
15725 2003-04-03    <johan AT balder>
15726
15727         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
15728         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
15729         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
15730         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
15731         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
15732
15733 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
15734
15735         * _decdptr.c: fix return values
15736         * _gptrget.c: fix return values
15737         * _gptrgetc.c: fix return values
15738         * _gptrput.c: fix return values
15739         * _mulint.c: fix return values
15740         * as/z80/Makefile: fix 'make -j' problem
15741
15742 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
15743
15744         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
15745         * configure.in: big cleanup, updated to autoconf 2.5x
15746         * configure: rebuilt from configure.in
15747         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15748         * sdcc_vc_in.h: reflect changes from sdccconf.h
15749         * doc/Makefile: fixed a flaw in "make install"
15750
15751 2003-04-02    <johan AT balder>
15752
15753         * src/ds390/gen.c (genCmp): no comments
15754         * src/mcs51/gen.c (genCmp): no comments
15755         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
15756         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
15757
15758 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
15759
15760         * support/regression/generate-cases.py: place generated file in given sub directory
15761         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
15762         * support/regression/Makefile: improvements for 'make -j';
15763         side effect: it's simpler and faster now
15764
15765 2003-03-31  Borut Razem <borut.razem AT siol.net>
15766
15767         * src/z80/main.c: link-{port} and as-{port} defined without path
15768         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
15769
15770 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
15771
15772         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
15773
15774 2003-03-30  Borut Razem <borut.razem AT siol.net>
15775
15776         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
15777           changed type of list parameter to set
15778         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
15779         * src/port.h: changed type of do_assemble() parameter to set
15780         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
15781           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
15782           definition of "cppoutfilename" macro with NULL value in preProcess()
15783         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
15784         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
15785         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
15786           replaced with set *binPathSet
15787         * shash_add() deallocates the item, if allready exsists, before adding the new one
15788         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
15789
15790 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
15791
15792         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
15793           a nested for loop bug in the PIC port
15794         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
15795           for loops
15796
15797 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
15798
15799         * support/Util/dbuf.h: remove C++ stuff to make it portable
15800
15801 2003-03-28  Borut Razem <borut.razem AT siol.net>
15802
15803         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
15804           literal strings in stringLiteral()
15805         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
15806         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
15807           to the project
15808
15809 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
15810
15811         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
15812
15813 2003-03-26    <johan AT balder>
15814
15815         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
15816         * src/ds390/gen.c (saveRegisters): catched symbol abuse
15817         * src/SDCCast.c (decorateType): fixed " -v < 3"
15818
15819 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
15820
15821         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
15822         Added Lenny Story's debug infrastructure changes:
15823         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
15824         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
15825         * src/cdbFile.c: added
15826         * src/SDCCdebug.c: added
15827         * src/SDCCdebug.h: added
15828         * src/SDCCast.c (createFunction)
15829         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
15830         * src/SDCCmain.c (parseCmdLine, main)
15831         * src/SDCCmem.c (redoStackOffsets)
15832         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
15833         * src/SDCCsymt.h
15834         * src/common.h
15835         * src/avr/gen.c (genAVRCode)
15836         * src/ds390/gen.c (gen390Code)
15837         * src/mcs51/gen.c (gen51Code)
15838         * src/pic/gen.c (genpic14Code)
15839         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
15840         * src/xa51/gen.c (genXA51Code)
15841         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
15842
15843 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15844
15845         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
15846         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
15847
15848 2003-03-22    <johan AT balder>
15849
15850         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
15851
15852 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
15853
15854         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
15855         * doc/cdbfileformat.lyx: added, written by Lenny Story
15856         * doc/Makefile: added cdbfileformat.lyx
15857         * doc/clean.mk: added cdbfileformat.lyx
15858
15859 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
15860
15861         * src/mcs51/peeph.def: fix bug #705773
15862
15863 2003-03-20    <johan AT balder>
15864
15865         An sfr/sbit can have an "at #" AND an initializer
15866         * src/SDCCsymt.c (checkSClass):
15867         * src/SDCCmem.c (allocGlobal):
15868         * src/SDCCmem.c (allocLocal):
15869         * src/SDCCast.c (createBlock):
15870
15871 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
15872
15873         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
15874
15875 2003-03-16    <johan AT balder>
15876
15877         Undid the hackup of const and volatile, the problem is much bigger
15878         * src/SDCC.y:1.65
15879         * src/SDCCast.c:1.171
15880         * src/SDCCglue.c:1.138
15881         * src/SDCCicode.c:1.146
15882         * src/SDCCsymt.c:1.150
15883         * src/SDCCval.c:1.65
15884
15885 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
15886
15887         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
15888         * src/ds390/gen.c (genAddrOf): fixed bug #704087
15889
15890 2003-03-13    <johan AT balder>
15891
15892         Hackup const and volatile modifiers in type chains a bit:
15893         * src/SDCC.y:1.63
15894         * src/SDCCast.c:1.169
15895         * src/SDCCglue.c:1.136
15896         * src/SDCCicode.c:1.143
15897         * src/SDCCsymt.c1.146
15898         * src/SDCCsymt.h1.59
15899         * src/SDCCval.c:1.63
15900
15901 2003-03-12    <johan AT balder>
15902
15903         * src/SDCCBBlock.h: more LRH debugging junk
15904         * src/SDCCcflow.h: more LRH debugging junk
15905         * src/SDCCloop.c: more LRH debugging junk
15906         * src/SDCC.y (struct_declaration): fixed bug #697590
15907         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
15908         * src/ds390/gen.c (aopForRemat): fixed bug #700031
15909         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
15910
15911 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15912         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
15913         test function names must now match exactly).
15914         * src/SDCCcse.c: added special case in findCheaperOp to allow
15915         extending a short integer. Makes less awful code for bug 700121 test case.
15916
15917 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15918
15919         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
15920         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
15921
15922 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15923
15924         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
15925         actually called (operandsNotEqual() was called for all
15926         operandsNotEqualX tests).
15927
15928 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15929
15930         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
15931         with shorter literals. Fixes bug 700121.
15932
15933 2003-03-11    <johan AT balder>
15934
15935         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
15936
15937 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
15938
15939         * src/SDCCloop.c (mergeRegions): an evil beast is dead
15940         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
15941
15942 2003-03-10  Borut Razem <borut.razem AT siol.net>
15943
15944         * src/SDCCmain.c: pipe preprocessor's output
15945         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
15946         * sdcc_vc_in.h: define pclose as _pclose for WIN32
15947         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
15948         which closes all pipes in pipeSet set
15949         * src/SDCCset.c: free deleted item in function deleteSetItem()
15950         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
15951         moved from z80 to src subproject
15952         * .version: increased version number to 2.3.4
15953
15954 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
15955
15956         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
15957         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
15958         * support/regression/ports/xa51/spec.mk: fix typo
15959
15960 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
15961
15962         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
15963
15964 2003-03-09  Borut Razem <borut.razem AT siol.net>
15965
15966         * src/SDCCmain.c: pipe preprocessor's output
15967         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
15968         * sdcc_vc_in.h: define pclose as _pclose for WIN32
15969         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
15970         which closes all pipes in pipeSet set
15971         * src/SDCCset.c: free deleted item in function deleteSetItem()
15972         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
15973         moved from z80 to src subproject
15974
15975 2003-03-09  Borut Razem <borut.razem AT siol.net>
15976
15977         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
15978         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
15979         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
15980         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
15981         * src/SDCCglobl.h: unification of WIN32 native definitions
15982
15983 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15984
15985         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
15986
15987 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
15988
15989         * src/configure.in:   check for endianess (even while cross-compiling)
15990         * src/configure:      check for endianess (even while cross-compiling)
15991         * src/configure_in.h: check for endianess (even while cross-compiling)
15992         * src/avr/gen.c:        remove old endianess stuff
15993         * src/mcs51/gen.c:      remove old endianess stuff
15994         * src/ds390/gen.c:      remove old endianess stuff
15995         * src/pic/gen.c:        remove old endianess stuff
15996         * src/pic/genarith.c:   remove old endianess stuff
15997         * src/pic/glue.c:       fix endianess check
15998         * src/pic16/gen.c:      remove old endianess stuff
15999         * src/pic16/genarith.c: remove old endianess stuff
16000         * src/pic16/glue.c:     fix endianess check
16001         * src/xa51/gen.c:       remove old endianess stuff
16002         * src/z80/gen.c:        fix endianess check
16003         * src/SDCCglue.c:       fix endianess check
16004         * src/ds390/peeph.def: fix bug 700036
16005
16006 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
16007
16008         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
16009         * src/configure: find appropriate data-types on host for SDCC's int and long
16010         * src/configure.in: find appropriate data-types on host for SDCC's int and long
16011         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
16012         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
16013
16014 2003-03-07    <johan AT balder>
16015
16016         Just a big NOOP:
16017                 some minor cleanups before the big shot
16018                 OP_DEFS and OP_USES now use Kevin's protection
16019                 new option --nolabelopt
16020
16021         * src/SDCCBBlock.c:
16022         * src/SDCCast.c,:
16023         * src/SDCCcflow.c:
16024         * src/SDCCcse.c:
16025         * src/SDCCicode.c:
16026         * src/SDCCicode.h:
16027         * src/SDCClabel.c:
16028         * src/SDCCloop.c:
16029         * src/SDCCmain.c:
16030         * src/ds390/ralloc.c:
16031         * src/mcs51/ralloc.c:
16032         * src/pic/ralloc.c:
16033         * src/xa51/ralloc.c:
16034         * src/z80/ralloc.c:
16035
16036 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
16037
16038         * src/pic/pcode.c (get_op): fix 64 bit warnings
16039         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
16040         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
16041         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
16042         * support/regression/tests/malloc.c: fix 64 bit warnings
16043
16044 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
16045
16046         * src/mcs51/gen.c (genMinus): fixed bug 696436
16047
16048 2003-03-02  Borut Razem <borut.razem AT siol.net>
16049
16050         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
16051
16052 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
16053
16054         * configure.in: test for mkstemp
16055         * sdccconf_in.h: add HAVE_MKSTEMP
16056
16057 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
16058
16059         * device/include/ctype.h: removed warning while using --stack-auto
16060         * device/include/malloc.h: removed warning while using --stack-auto
16061         * device/include/string.h: removed warning while using --stack-auto
16062
16063 2003-02-23  Borut Razem <borut.razem AT siol.net>
16064
16065         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
16066         because NDEBUG is defined (see man assert)
16067         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
16068
16069 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
16070
16071         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
16072         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
16073
16074 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
16075
16076         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
16077         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
16078
16079 2003-02-18    <johan AT balder>
16080
16081         * as/mcs51/asmain.c (asmbl): module can start with a digit
16082         * as/z80/asmain.c (asmbl): module can start with a digit
16083
16084 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
16085
16086         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
16087         * src/asm.c: fix pipe() for Mingw32
16088
16089 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
16090
16091         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
16092         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
16093         make -V work again; --c1mode reads now from stdin
16094         * doc/sdccman.lyx: added --c1mode
16095         * support/Util/SDCCerr.c: new messages for c1 mode
16096         * support/Util/SDCCerr.h: new messages for c1 mode
16097         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
16098
16099 2003-02-15    <johan AT balder>
16100
16101         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
16102
16103 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
16104
16105         * doc/sdccman.lyx: Environment variables, -o and other minor things
16106
16107 2003-02-14    <johan AT balder>
16108
16109         * src/xa51/main.c: before anyone really tries to use it :)
16110
16111         * Install doc's in share/sdcc/doc
16112         * removed some obsolete files
16113         * Do a proper make distclean and uninstall
16114         M Makefile.common.in
16115         R sdccbuild.sh
16116         M as/Makefile
16117         M device/include/Makefile.in
16118         M device/lib/Makefile.in
16119         M doc/sdccman.lyx
16120         M link/Makefile
16121         M sim/ucsim/doc/Makefile.in
16122         M src/clean.mk
16123         R src/avr/peeph.rul
16124         R src/xa51/peeph.rul
16125         M support/cpp2/Makefile.in
16126         M support/makebin/Makefile
16127
16128
16129 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
16130
16131         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
16132
16133 2003-02-10  Borut Razem <borut.razem AT siol.net>
16134
16135         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
16136         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
16137         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
16138         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
16139         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
16140         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
16141         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
16142         src/z80/Makefile.bcc: Borland Makefile cleanup
16143         * as/z80/Makefile.bcc: Added Borland Makefile
16144         * support/cpp2/borland.h: Removed
16145
16146 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
16147
16148         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
16149         * src/SDCC.lex: new pragma NOIV
16150         * src/SDCCglobl.h: new pragma NOIV
16151         * src/SDCCmem.c: new pragma NOIV
16152
16153 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
16154
16155         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
16156
16157 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
16158
16159         * src/SDCCmain.c: signal handling is switched off by --debug
16160         * doc/Makefile: small fix for install; use clean.mk again
16161         * doc/clean.mk: clean *.pdf and *.html too
16162
16163 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
16164
16165         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
16166         * device/lib/printfl.c: fix a ds390 bug by making it portable
16167         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
16168         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
16169         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
16170         * debugger/mcs51/cmd.c: converted multi-line string literals
16171         * sim/ucsim/globals.cc: converted multi-line string literals
16172         * src/SDCCmain.c: introduced signal handler to remove temp files
16173         * doc/Makefile: small tweaks, implement clean
16174         * doc: removed generated files
16175
16176 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16177
16178         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
16179         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
16180         Address Record is not correctly generated for DS390."
16181
16182 2003-02-02  Borut Razem <borut.razem AT siol.net>
16183
16184         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
16185         * as/mcs51/asm.h: fixed compilation with Borland C
16186         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
16187         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
16188         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
16189         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
16190         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
16191         src/z80/Makefile.bcc: delete $(LIB) only if exist
16192         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
16193
16194 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
16195
16196         * device/include/malloc.h: introduced NULL
16197         * device/include/string.h: introduced NULL
16198         * device/include/stdlib.h: introduced NULL
16199         * device/lib/_memcpy.c: removed NULL
16200         * device/lib/_strcat.c: removed NULL
16201         * device/lib/_strchr.c: removed NULL
16202         * device/lib/_strcmp.c: removed NULL
16203         * device/lib/_strcpy.c: removed NULL
16204         * device/lib/_strcspn.c: removed NULL
16205         * device/lib/_strlen.c: removed NULL
16206         * device/lib/_strncat.c: removed NULL
16207         * device/lib/_strncmp.c: removed NULL
16208         * device/lib/_strncpy.c: removed NULL
16209         * device/lib/_strpbrk.c: removed NULL
16210         * device/lib/_strrchr.c: removed NULL
16211         * device/lib/_strspn.c: removed NULL
16212         * device/lib/_strstr.c: removed NULL
16213         * device/lib/_strtok.c: removed NULL
16214         * device/lib/malloc.c: removed NULL, include own header
16215
16216 2003-02-02    <johan AT balder>
16217
16218         * 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
16219         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
16220         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
16221         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
16222         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
16223         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
16224
16225 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16226
16227         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
16228         area 'DATA'"
16229
16230 2003-02-01    <johan AT balder>
16231
16232         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
16233
16234 2003-01-31    <johan AT CP255758-A>
16235
16236         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
16237
16238 2003-01-30    <johan AT balder>
16239
16240         * src/SDCCBBlock.c: automatic bug detection
16241         * src/SDCCicode.c: automatic bug detection
16242
16243 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16244
16245         * src/SDCCglobl.h:   now --xram-size 0 works
16246         * src/SDCCmain.c:    now --xram-size 0 works
16247
16248 2003-01-29    <johan AT balder>
16249
16250         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
16251
16252 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16253
16254         * as/mcs51/aslink.h: Added options --xram-size and --code-size
16255         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
16256         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
16257         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
16258         * src/SDCCglobl.h:   Added options --xram-size and --code-size
16259         * src/SDCCmain.c:    Added options --xram-size and --code-size
16260
16261 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
16262
16263         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
16264         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
16265
16266 2003-01-27    <johan AT balder>
16267
16268         * src/SDCC.y: fixed bug #613764
16269
16270 2003-01-26    <johan AT balder>
16271
16272         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
16273         * src/SDCCsymt.h: fixed bug #673374
16274         * src/SDCCglue.c: fixed bug #661910
16275         * src/SDCCast.c: fixed bug #458099 and 673374
16276
16277 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
16278
16279         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
16280         * as/mcs51/strcmpi.h: added
16281         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
16282         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
16283         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
16284         * as/mcs51/assym.c: strcmpi -> as_strcmpi
16285         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
16286         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
16287         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
16288         * as/mcs51/Makefile.aslink: new module strcmpi
16289         * as/mcs51/Makefile.asx8051: new module strcmpi
16290         * as/mcs51/Makefil.bcc: new module strcmpi
16291         * as/mcs51/Makefile.in: new module strcmpi
16292         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
16293
16294 2003-01-26    <johan AT balder>
16295
16296         * src/SDCCglue.c: reverted back to 1.124
16297         * src/SDCCast.c: reverted back to 1.156
16298         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
16299
16300 2003-01-25    <johan AT balder>
16301
16302         * src/SDCCglue.c: A better fix for bug #661910
16303         * src/SDCCast.c: A better fix for bug #661910
16304         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
16305
16306 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
16307
16308         * src/Makefile.in: remove spawn.o
16309         * src/SDCCmain.c: remove spawn.h
16310         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
16311         * src/spawn.c: removed
16312         * src/spawn.h: removed
16313         * support/regression/ports/ds390/spec.mk: link with -r
16314
16315 2003-01-24    <johan AT CP255758-A>
16316
16317         * src/ds390/gen.c (aopOp): fixed bug #667458
16318         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
16319         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
16320         (createIvalCharPtr): an ival doesn't always have a storage class anymore
16321
16322 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
16323
16324         * src/mcs51/peeph.def: better assembler identation by Frieder
16325         * src/mcs51/gen.c: better assembler identation by Frieder
16326
16327 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
16328
16329         * as/z80/string.h: removed for gcc 3.2
16330         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
16331         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
16332
16333 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
16334
16335         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
16336         * src/SDCCpeeph.c (replaceRule): fix bug #663503
16337         * support/regression/Makefile: separate temp files for ports
16338         * support/regression/generate-cases.py: separate temp files for ports
16339         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
16340         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
16341
16342 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
16343
16344         * moved tinitalk to device/examples/ds390
16345
16346 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
16347
16348         * as/mcs51/lkmem.c: rflag is for DS390
16349         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
16350         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
16351                          (linkEdit): move mem- and map-files the same way as ihx-files
16352         * src/z80/main.c (_setDefaultOptions): removed --generic
16353         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
16354         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
16355         * src/pic/glue.c (picglue): --c1mode works again
16356         * src/pic16/glue.c (pic16glue): --c1mode works again
16357         * src/asm.c (printCLine): fix #660034
16358
16359 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
16360
16361         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
16362         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
16363         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
16364         * as/mcs51/lkmem (summary): better fix for sp problem
16365         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
16366         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
16367         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
16368                                               remove --stack-after-data
16369
16370 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
16371
16372         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
16373         * src/SDCCutil.c (join): ugly bug: missing '\0'
16374         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
16375
16376 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
16377
16378         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
16379         * src/port.h: typo
16380         * src/pic/main.c (_asmCmd): gpasm supports -o
16381         * src/z80/main.c: more general macros
16382         * device/lib/Makefile.in: remove intermediate files
16383
16384 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
16385
16386         * .version: Bumped version number to 2.3.3
16387         * src/SDCCBBlock.c: new option -o
16388         * src/SDCCglobl.h: new option -o
16389         * src/SDCCglue.c: new option -o
16390         * src/SDCCmain.c: new option -o
16391         * src/asm.c: new option -o
16392         * src/ds390/main.c: new option -o
16393         * src/pic/glue.c: new option -o
16394         * src/pic/pcode.c: new option -o
16395         * src/pic/ralloc.c: new option -o
16396         * src/pic16/glue.c: new option -o
16397         * src/pic16/pcode.c: new option -o
16398         * src/pic16/ralloc.c: new option -o
16399         * src/z80/main.c: new option -o
16400         * device/lib/Makefile.in: use -o
16401         * support/regression/ports/ds390/spec.mk: use -o
16402         * support/regression/ports/gbz80/spec.mk: use -o
16403         * support/regression/ports/mcs51/spec.mk: use -o
16404         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
16405         * support/regression/ports/z80/spec.mk: use -o
16406         * support/regression/ports/ucz80/spec.mk: use -o
16407         * support/regression/ports/xa51/spec.mk: use -o
16408         * support/regression/fwk/lib/timeout.c: fix usage string
16409
16410 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
16411         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
16412
16413 2003-01-07    <johan AT balder>
16414
16415         * src/SDCCast.c (decorateType): fixed bug #600035
16416
16417 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
16418         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
16419         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
16420         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
16421         * src/pic/pcode.c: outcommented unused variable to remove warnings
16422         * src/pic/ralloc.c: outcommented unused variable to remove warnings
16423
16424 2003-01-06    <karl AT turbobit.com>
16425         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
16426         regression tests.
16427
16428 2003-01-06    <johan AT balder>
16429
16430         * src/SDCCicode.c: fixed array add
16431
16432 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
16433         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
16434         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
16435
16436 2003-01-04    <johan AT balder>
16437
16438         * src/SDCCval.c (getNelements): fixed the initialized array of structures
16439
16440 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16441         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
16442
16443 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
16444         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
16445         * support/regression/tests/bug-524697.c: fit mem usage into 8032
16446
16447 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
16448         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
16449
16450 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
16451         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
16452
16453 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
16454         * src/mcs51/main.c: removed {bindir}{sep} from aslink
16455
16456 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16457
16458         * in /sdcc/as/mcs51/ changed these files in order to create an
16459         aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
16460         lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
16461         following files to include the previous two files: aslink.dsp,
16462         Makefile.aslink, Makefile.bcc, and Makefile.in.
16463
16464         * Changed /sdcc/src/SDCCmain.c so it creates files with extension
16465         .adb instead of .cdb
16466
16467 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16468
16469         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
16470         value from option --iram-size.
16471
16472 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16473
16474         * /sdcc/as/mcs51/lklist.c: added boundary check before using
16475         dram[] array.
16476
16477 2002-09-18    <wiml AT hhhh.org>
16478
16479         * SDCClrange.h: exposed setFromRange() and setToRange()
16480         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
16481           packRegsForAccUse() (bug 542397)
16482         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
16483           multiple times and emitting the fetch operations more than once
16484           added aopGetUsesAcc() function to allow binary operators to
16485           fetch their operands in the correct order; made genMinus() emit
16486           compact code for X = LITERAL - Y
16487
16488 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16489         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
16490         sprintf() in line 1267.
16491
16492 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16493         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
16494         like ports.
16495
16496 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16497         Changes to aslink (All the changes are marked with 'JCF'):
16498
16499         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
16500         summary().
16501
16502         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
16503         area BSEG.  Also moves, if possible, the DATA area down into the internal
16504         ram so more space is available.
16505
16506         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
16507         sflag.
16508
16509         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
16510         not bytes.  Function summary() which creates a memory usage summary
16511         file with extension .mem.  Reports of overlaping stack and small stack
16512         size.  If the space for the stack is less than 16 bytes aslink trows a
16513         warning.
16514
16515         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
16516         the 8051.  Option 'y' for memory summary output file.
16517
16518         Changes to sdcc (All the changes are marked with 'JCF'):
16519
16520         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
16521
16522         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
16523         overlaying area for it (uses RegBankUsed[4]).
16524
16525         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
16526         bank zero as used by default.  By default aslink locates the stack
16527         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
16528         the creation of the .mem file.  Delegates the allocation of data area
16529         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
16530         the begining of the stack area to aslink.
16531
16532         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
16533         glue() in SDCCglue.c creates an area for it.
16534
16535 2002-09-03  Borut Razem <borut.razem AT siol.net>
16536         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
16537         sdcc/src/pic/glue.c:
16538         introduced atexit() handler for teporay files removal in case of
16539         errors, assertions, ...
16540
16541 2002-08-29  Borut Razem <borut.razem AT siol.net>
16542         * sdcc/support/cpp2/auto-host_vc_in.h:
16543         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
16544         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
16545         Maybe there is a similar problem with BORLANDC? It should be checked!
16546
16547         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
16548         corrected improper use of assert: the assignment to clr variable was done inside the assert.
16549         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
16550         was not executed, and the compiler (cl) launched a warning:
16551         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
16552
16553 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
16554         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
16555
16556 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
16557         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
16558
16559         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
16560           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
16561           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
16562           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
16563           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
16564           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
16565           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
16566         - added Release configuration in VS projects
16567         - review of compiler an linker options
16568         - VC .exe files are generated in bin_vc directory, not to interfere
16569           with binaries generated from other projects (cygwin, mingw, bcc ...)
16570
16571         * sdcc/src/yacc.dsp: added
16572
16573         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
16574         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
16575         and insert the version number definitions from .version
16576
16577         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
16578
16579         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
16580         added - genarate auto-host.h using auto-host_vc_in.h as template
16581
16582         * sdcc/sdcc_vc.h,
16583         removed from CVS, generated automatically
16584
16585 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
16586         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
16587
16588 2002-08-11  Borut Razem <borut.razem AT siol.net>
16589         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
16590
16591 2002-08-10  Borut Razem <borut.razem AT siol.net>
16592         * src/SDCCmain.c (main):
16593         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
16594         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
16595         The consequence was that some temporary files were not removed.
16596
16597         * src/SDCCglue.c:
16598         unification of code in functions tempfilename() and tempfile():
16599         function tempnam() is defined in Visual Studio 6.0 and .NET
16600
16601         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
16602
16603         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
16604           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
16605         - removed compiler command line option /WX: Treats all warnings as errors
16606         - update a list of source files, included into the project
16607
16608         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
16609           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
16610         changed project type to Generic Project so that can be correcly converted to VS.NET project
16611
16612         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
16613
16614         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
16615
16616         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
16617
16618         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
16619         added return 0 statements after assert() to make compiler happy
16620
16621         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
16622         added newline in the def file to keep MSC compiler satisfied
16623
16624         * sdcc/src/z80/gen.c:
16625         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
16626           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
16627         - solved MSC error in function aopDump()
16628
16629         * sdcc_vc.h: define PREFIX as "\\sdcc"
16630
16631 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
16632         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
16633
16634 2002-06-22  Scott Dattalo <scott AT dattalo.com>
16635         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
16636         - Rewrote the register banking algorithm.
16637         - Added pCode live-range analysis to registers (for now, only non-used and
16638         singly-used registers optimized away)
16639
16640         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
16641
16642         * 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.
16643
16644 2002-05-10  Scott Dattalo <scott AT dattalo.com>
16645         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
16646
16647 2002-04-22  Michael Hope  <michaelh AT vroom>
16648
16649         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
16650
16651         * configure.in (DD_COPT): Added include support required for gbdk.
16652
16653         * .version: Bumped version number just to increase it.
16654
16655         * src/SDCCmain.c: Added -nostdinc to the default options.
16656
16657 2002-04-15  Michael Hope  <michaelh AT vroom>
16658
16659         * device/lib/z80/printf.c (sprintf): Added.
16660
16661         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
16662
16663         * src/z80/peeph.def: Added transpose redundent load rule.
16664
16665         * src/z80/main.c: Added force callee saves for jaune.
16666
16667         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
16668
16669         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
16670
16671 2002-03-28  Johan Knol  <johan AT balder>
16672
16673         * src/SDCCval.c: fixed bug #532436
16674
16675 2002-03-14  Scott Dattalo <scott AT dattalo.com>
16676         * /src/port.h:
16677         Added "char *Processor" field to the port structure.
16678
16679         * /src/SDCCmain.c:
16680         Added -p option. Allows port dependent processor to be specified.
16681
16682         * all ports:
16683         Initialized the new field char *Processor field to NULL in all ports
16684
16685         * /src/pic/*:
16686         Compiler generated registers for interrupt context saving
16687         were not getting allocated.
16688
16689 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
16690
16691         * /src/SDCCast.c:
16692         Fixed left shift. Will promote the left side of a left shift
16693         if a) left shifting more than size of operand or b) when assigned
16694         to something size > size of left side
16695
16696 2002-03-14  Scott Dattalo <scott AT dattalo.com>
16697         * src/pic/*
16698         tons of changes. Register allocation has been
16699         rewritten. Added customization for the various PICs. Flow
16700         analysis is restructured. ...
16701
16702         * src/pic/device.h:
16703         Added
16704
16705         * src/pic/device.c:
16706         Added. device.c is a PIC port hack to accomodate variations
16707         in PIC devices.
16708
16709 2002-03-13  Michael Hope  <michaelh AT vroom>
16710
16711         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
16712
16713 2002-03-04  johanknol  <johanknol AT manik>
16714
16715         * /src/SDCCval.c: fixed
16716
16717         const unsigned char arr[][2] = { { 0, 1 } };
16718         t18.c:1: error: Initializer element is not constant
16719
16720 2002-03-04  bela  <bela AT manik>
16721
16722         * /device/include/mcs51reg.h:
16723         ds89c420 register definition update
16724
16725 2002-03-03    <johan AT FRIJA>
16726
16727         * support/Util/SDCCerr.c: did something, but don't no why anymore
16728
16729         * support/regression/tests/bug-524691.c: made it a little less shy
16730
16731         * src/SDCCast.c (decorateType): fixed bug #524697
16732
16733         * src/SDCCast.c: made some lineno improvements
16734
16735         * src/SDCCval.c (getNelements): changed warning to error
16736
16737         * src/SDCCglue.c (printIvalArray): changed warning to error
16738
16739         * src/SDCCicode.c: fixed a warning for mingw
16740
16741         * src/SDCCast.c (decorateType): fixed the << promotion for ops
16742
16743         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
16744
16745 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
16746
16747         * src/ds390/peeph.def:
16748         Added some more peephole rules
16749
16750         * src/ds390/gen.c: Various fixes & enhancements
16751
16752         * src/SDCClrange.c, src/SDCClrange.h:
16753         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
16754
16755         * src/ds390/ralloc.c:
16756         various fixes & enhancements (ds390) specific
16757
16758         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
16759         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
16760         from rallocs.
16761
16762         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
16763
16764 2002-03-02    <johan AT FRIJA>
16765
16766         * src/SDCCast.c (decorateType): fixed bug #524708
16767
16768         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
16769
16770         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
16771
16772 2002-03-01  Michael Hope  <michaelh AT vroom>
16773
16774         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
16775
16776         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
16777
16778 2002-03-01    <johan AT FRIJA>
16779
16780         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
16781
16782         * src/SDCCast.c (decorateType): fixed bug #524209
16783
16784         * src/SDCCval.c (valNot): fixed bug #524195
16785
16786 2002-02-26    <johan AT balder>
16787
16788         * src/xa51/gen.c: fixed a warning
16789
16790         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
16791
16792         * src/SDCCast.c (decorateType): fixed bug #522534
16793
16794 2002-02-23    <johan AT balder>
16795
16796         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
16797
16798 2002-02-22    <johan AT balder>
16799
16800         * src/SDCCast.c: fixed bug #514865
16801
16802         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
16803
16804 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
16805
16806         * sdcc/src/SDCCloop.c:
16807         Previous fix was not good. basic blocks that have "break" or "return" are
16808         not really partof a loop , but live ranges used in these blocks should
16809         be live thru the entire loop, so set partOfLoop but don't add them to
16810         loop region
16811
16812 2002-02-21    <johan AT FRIJA>
16813
16814         * src/SDCCcse.c: fixed bug #514308
16815
16816 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
16817
16818         * src/SDCCloop.c:
16819         Fixed BUG #519583. If a conditional block ended in a return/break
16820         statement inside a loop, it was not being considered part of the loop.
16821
16822         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
16823
16824 2002-02-10  Karl Bongers <karl AT turbobit.com>
16825
16826         * debugger/*:
16827         Fixed up SDCDB debugger somewhat.  Updated debugger/README
16828         with lots of comments and notes.
16829
16830         * device/examples/test2.c:
16831         Fix bug, "red" variable not being initialized(compiler complained).
16832
16833         * device/examples/Makefile, examples/test3.c:
16834         Add Makefile in device/examples folder, compiles test3.c
16835         for use as a multiple module SDCDB test case.
16836
16837         * sim/ucsim/cmd.src/cmdset.cc:
16838         Took out debug printfs in ucsim "next" command.
16839
16840         * sim/ucsim/xa.src:
16841         Karl and Johan start ucsim XA support.  Most dissassembly working,
16842         about 75% emulation done(plenty of work remaining).
16843
16844         * sim/ucsim/z80.src:
16845         Add Z80 support to ucsim, add test-ucz80 regression test,
16846         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
16847         Notice z80 compiler fails on examples/test3.c/crc code.
16848
16849 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
16850
16851         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
16852         Added support for --parms-in-bank1
16853
16854         * src/ds390/peeph.def:
16855         added a few more peephole optimzations
16856
16857         * src/ds390/main.c:
16858         1) added __builtin_inp & __builtin_outp used to read in data of given length
16859            from a memory mapped port
16860         2) added __builtin_memcmp
16861         3) added __builtin_swapw swap bytes of a short
16862
16863         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
16864         1) handle multiple send & receives from register bank1
16865         2) ralloc can now allocate DPTR1 to some liveRanges
16866
16867         * src/SDCCsymt.c, src/SDCCsymt.h:
16868         changes to handle multiple sends & receives
16869
16870         * src/SDCCptropt.h:
16871         added some pointer arithmetic optimization
16872
16873         * src/SDCCptropt.c:
16874         added some pointer arithmetic optimizations but not stable yet so not
16875         called from anywhere (will get this working shortly)
16876
16877         * src/SDCCopt.c: fixed for multiple sends & receives
16878
16879         * src/SDCCmain.c:
16880         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
16881         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
16882            set preprocessor defines (depending on options)
16883
16884         * src/SDCCicode.c, src/SDCCicode.h:
16885         changes made to handle multiple sends & receives
16886
16887         * src/SDCCglobl.h:
16888         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
16889
16890         * src/SDCCcse.c, src/SDCCcse.h:
16891         added function findbackward def (to be used in upcoming optimization)
16892
16893         * src/SDCCcflow.c, src/SDCCcflow.h:
16894         added function returnAtEnd - to determine if a basic block terminates with
16895         a RETURN iCode
16896
16897         * src/SDCCast.c, src/SDCCast.h:
16898         added option parms-in-bank1
16899
16900         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
16901         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
16902         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
16903         adjusted for --parms-in-bank1 option
16904
16905         * device/include/string.h:
16906         donot redefine "reentrant" keyword
16907
16908         * device/include/ds80c390.h: Added some more SFRs
16909
16910 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
16911
16912         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
16913
16914 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
16915
16916         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
16917
16918 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
16919
16920         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
16921
16922 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
16923
16924         * Added --xram-movc option
16925
16926 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
16927
16928         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
16929
16930 2002-01-11  Johan Knol
16931
16932         * Added math lib of Jesus Calvino-Fraga
16933
16934 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
16935
16936         * src/SDCCmain.c (processFile): fix processing of ../../src.c
16937         * support/regression/Makefile: new target test-mcs51-stack-auto
16938         * support/regression/ports/mcs51-stack-auto/spec.mk: added
16939
16940 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
16941
16942         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
16943
16944 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
16945
16946         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
16947
16948 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
16949
16950         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
16951
16952         * src/SDCCglue.h: add definition for printIvalChar()
16953
16954 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
16955
16956         * src/SDCCast.c: fix #498138 by Johan
16957
16958         * src/SDCCglue.c: fix #498138 by Johan
16959
16960 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
16961
16962         * support/regression/Makefile: fix clean
16963
16964         * support/regression/ports/ds390/support.c: fix transmission of last character
16965
16966 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
16967
16968         * /sdcc/src/ds390/gen.c:
16969         a) improved computing address of stack variable
16970         b) took out some #if 0 code
16971         c) improved parmBytes adjustment
16972         d) improved genPlusIncr & genMinusIncr
16973         e) genCmp could generate bad code (when left assigned to DPTR)
16974         f) Fixed bug in hasInc
16975
16976         * /sdcc/src/ds390/ralloc.c:
16977         a) packRegsForSupport could mess up live information (Fixed)
16978         b) packRegsDPTRuse could be incorrect for left & right shift
16979
16980         * /sdcc/src/mcs51/ralloc.c:
16981         packRegsForSupport could mess up the live information (Fixed)
16982
16983         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
16984
16985         * /sdcc/src/SDCCast.c:
16986         can reverse a loop even if function call is present as long
16987         as the loop control variable is local & is not passed as parameter
16988
16989 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16990
16991         * /sdcc/ChangeLog: *** empty log message ***
16992
16993         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
16994         More builtin function additions for TININative
16995
16996         * /sdcc/src/ds390/ralloc.c:
16997         Had broken the regression testsuite
16998
16999         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
17000
17001         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
17002         Added funcattr hasStackParms will be set for reentrant functions when there
17003         are paramteres on the stack, this helps in minimizing frame pointer generation
17004         typeFromStr can handle function pointers now
17005
17006         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
17007         *** empty log message ***
17008
17009 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
17010
17011         * /src/ds390/gen.c, /src/ds390/main.c:
17012         More builtin function additions for TININative
17013
17014         * /src/ds390/ralloc.c:
17015         Had broken the regression testsuite
17016
17017         * /src/SDCCast.c: Fixed a bug in dumptree
17018
17019         * /src/SDCCsymt.c, /src/SDCCsymt.h:
17020         Added funcattr hasStackParms will be set for reentrant functions when there
17021         are paramteres on the stack, this helps in minimizing frame pointer generation
17022         typeFromStr can handle function pointers now
17023
17024         * /doc/builtins.txt, /doc/TININative.txt:
17025         *** empty log message ***
17026
17027
17028 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
17029
17030         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
17031         ALPHA version for -mTININative
17032
17033         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
17034         updated to reflect changes in the port structure
17035
17036         * /src/port.h:
17037         added function do_assemble (similar to do_link) if non-null this function
17038         will be called to do assembly (-mTININative) requires a multi command
17039         assembly
17040         added function genAssemblerEnd will be called to generate assembler Epilogue
17041
17042         * /src/SDCCsymt.c:
17043         added _JavaNative to debug info printing
17044
17045         * /src/SDCCmain.c: added option --tini-libid
17046         added port->do_assemble function (-mTININative) has a multi command assemble
17047
17048         * /src/SDCCglue.c: Disabled "constExpr" check
17049         added port->genAssemblerEnd function
17050
17051         * /src/SDCCglobl.h: Added option --tini-libid value
17052
17053         * /src/SDCCast.h:
17054         tookout optimizeCompare from the header (has no external references)
17055
17056         * /src/SDCCast.c: made one more function "static"
17057
17058 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
17059
17060         * src/z80/mappings.i: Added z80asm support.
17061
17062         * src/z80/main.c: Added z80asm support on --asm=z80asm
17063
17064         * src/z80/gen.c: Fixed asm portability issues.
17065
17066         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
17067
17068         * src/SDCCglue.c (printExterns): Added global/extern split.
17069
17070 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
17071
17072         * support/regression/Makefile: added test for mcs51 model large
17073
17074         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
17075
17076         * support/regression/ports/gbz80/spec.mk: added -mgbz80
17077
17078 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
17079
17080         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
17081
17082 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
17083
17084         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
17085
17086         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
17087
17088 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
17089
17090         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
17091
17092         * support/regression/tests/simplefloat.c: Port to mcs51.
17093
17094 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
17095         * support/regression/tests/bug-485362.c: Added.
17096
17097         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
17098
17099         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
17100
17101         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
17102
17103         * src/z80/gen.c (aopDump): Added a dump function.
17104
17105 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
17106         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
17107
17108         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
17109
17110         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
17111
17112         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
17113
17114         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
17115
17116         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
17117
17118         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
17119
17120         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
17121
17122         * support/regression/ports/ds390/support.c: Use tinibios.
17123
17124         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
17125
17126 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
17127
17128         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
17129         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
17130
17131         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
17132
17133         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
17134
17135 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
17136
17137         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
17138
17139         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
17140         (packRegsForIYUse): Created and optimised.
17141
17142 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
17143
17144         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
17145 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
17146
17147         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
17148
17149         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
17150
17151         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
17152
17153 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
17154
17155         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
17156
17157         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
17158
17159 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
17160
17161         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
17162
17163         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
17164
17165         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
17166
17167 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
17168
17169         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
17170         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
17171         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
17172
17173         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
17174
17175         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
17176         (genNotFloat): Added.
17177         (genUminusFloat): Added.
17178
17179         * device/lib/z80/Makefile: Added floating pt stubs.
17180
17181         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
17182
17183         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
17184
17185         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
17186
17187 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
17188
17189         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
17190
17191         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
17192
17193         * sdcc/support/regression/Makefile: Add port ds390.
17194
17195         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
17196
17197         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
17198
17199         * sdcc/support/regression/ports/ds390/spec.mk: Added.
17200
17201         * sdcc/support/regression/ports/ds390/support.c: Added.
17202
17203         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
17204
17205         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
17206
17207         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
17208
17209 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
17210
17211         * device/include/malloc.h: Added z80 and gbz80 support.
17212
17213         * device/lib/gbz80/heap.s: Added.
17214
17215         * device/lib/z80/heap.s: Added.
17216
17217         * device/lib/malloc.c: Added z80 and gbz80 support.
17218
17219         * support/regression/tests/malloc.c (testMalloc): Added.
17220
17221         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
17222
17223         * support/regression/tests/bug-478094.c: Added.
17224
17225         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
17226
17227 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
17228
17229         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
17230
17231         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
17232
17233         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
17234
17235         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
17236
17237         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
17238
17239 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
17240
17241         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
17242
17243 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
17244
17245         * support/regression/tests/bug-477927.c: Added.
17246
17247         * src/z80/peeph.def: Added minor rules.
17248
17249         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
17250
17251         * src/z80/peeph.def: Added jump optimisation modification.
17252
17253 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
17254
17255         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
17256
17257 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
17258
17259         * support/regression/tests/funptrs.c: Added.
17260
17261 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
17262
17263         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
17264
17265 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
17266
17267         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
17268
17269         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
17270
17271         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
17272         (movLeft2ResultLong): Created.
17273
17274         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
17275         (joinPushes): Added.  Joins two char pushes into a word push.
17276
17277 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
17278
17279         * support/cpp2/Makefile.in (install): Added creation of dest dir.
17280
17281         * support/makebin/Makefile (install): Added creation of dest dir.
17282
17283 2001-10-24 Karl Bongers <karl AT turbobit.com>
17284
17285         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
17286
17287 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
17288
17289         * src/z80/ralloc.c: Turned off faulty pack for one use.
17290
17291         * src/z80/peeph-gbz80.def: Removed redundent restart options.
17292
17293         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
17294
17295 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
17296
17297         * support/regression/Makefile: Improved clean
17298
17299         * support/regression/ports/gbz80/spec.mk: Added clean
17300
17301         * support/regression/ports/host/spec.mk: Added clean
17302
17303         * support/regression/ports/z80/spec.mk: Added clean
17304
17305         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
17306
17307         * support/regression/ports/mcs51/timeout.c: little improvements
17308
17309 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
17310
17311         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
17312
17313         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
17314
17315         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
17316
17317 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
17318
17319         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
17320
17321         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
17322
17323 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
17324         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
17325
17326         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
17327
17328         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
17329
17330         * src/mcs51/main.c (_linkCmd): Added bin path to command.
17331
17332         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
17333
17334         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
17335
17336         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
17337
17338         * support/regression/tests/longor.c: Added.
17339
17340 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
17341
17342         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
17343
17344         * as/mcs51/aslink.h: define PATH_MAX
17345
17346         * as/mcs51/asm.h: define PATH_MAX
17347
17348         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
17349
17350         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
17351
17352         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
17353
17354         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
17355
17356         * src/SDCCglobl.h: define PATH_MAX
17357
17358         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
17359
17360         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
17361
17362 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
17363
17364         * src/z80/gen.c (gencjneshort): Fixed
17365
17366         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
17367
17368 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
17369
17370         * support/regression/tests/bug-469671.c: Added.
17371
17372         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
17373
17374 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
17375
17376         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
17377
17378         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
17379
17380 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
17381
17382         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
17383
17384         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
17385
17386         * src/device/lib/_mullong.c : removed hint: nooverlay bug
17387
17388         * src/device/lib/_divuint.c : removed hint: nooverlay bug
17389
17390         * src/device/lib/_divulong.c: removed hint: nooverlay bug
17391
17392         * src/device/lib/_moduint.c : removed hint: nooverlay bug
17393
17394         * src/device/lib/_modulong.c: removed hint: nooverlay bug
17395
17396 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
17397
17398         * 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.
17399
17400         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
17401
17402         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
17403
17404 2001-10-07    <johan AT FRIJA>
17405
17406         * device/lib/gets.c (gets): fixed the return value.
17407
17408 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
17409         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
17410
17411         * 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.
17412
17413         * 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.
17414
17415         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
17416
17417         * src/pic/gen.c: Removed Safe_strdup.
17418
17419         * configure.in: Added option to enable libgc support.
17420
17421         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
17422         (bitVectUnion): Optimised.
17423         (bitVectIntersect): Optimised.
17424         (bitVectBitsInCommon): Optimised.
17425         (bitVectCplAnd): Optimised.
17426
17427         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
17428
17429 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17430
17431         * src/SDCCmain.c: distinguish between assembler debug and plain options
17432
17433         * src/avr/main.c:   remove standard assembler options
17434
17435         * src/ds390/main.c: remove standard assembler options
17436
17437         * src/mcs51/main.c: remove standard assembler options
17438
17439         * src/port.h: removed "PENDING" comment
17440
17441 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17442
17443         * src/device/lib/_mulint.c  : new, with assember functions
17444
17445         * src/device/lib/_mullong.c : new, with assember functions
17446
17447         * src/device/lib/_divuint.c : with assember functions
17448
17449         * src/device/lib/_divsint.c : with assember functions
17450
17451         * src/device/lib/_divulong.c: with assember functions
17452
17453         * src/device/lib/_divslong.c: with assember functions
17454
17455         * src/device/lib/_moduint.c : with assember functions
17456
17457         * src/device/lib/_modsint.c : with assember functions
17458
17459         * src/device/lib/_modulong.c: with assember functions
17460
17461         * src/device/lib/_modslong.c: with assember functions
17462
17463         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
17464
17465         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
17466
17467         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
17468                                       replaced _mululong.c and _mulslong.c by _mullong.c
17469
17470 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17471
17472         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
17473
17474 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
17475
17476         * src/SDCCglue.c: test, if win32api is available for MINGW
17477
17478 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
17479
17480         * src/SDCCsymt.c: no more _modifier in printTypeChain()
17481         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
17482         * support/regression/ports/gbz80/spec.mk: removed GENERIC
17483         * support/regression/ports/host/spec.mk: removed GENERIC
17484         * support/regression/ports/mcs51/spec.mk: removed GENERIC
17485         * support/regression/ports/z80/spec.mk: removed GENERIC
17486
17487 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
17488
17489         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
17490
17491         * support/regression/tests/bug-467035.c: Created.
17492
17493 2001-10-01    <johan AT FRIJA>
17494
17495         * src/SDCC.y: fixed bug #466586 part 1
17496
17497 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
17498
17499         * SDCCicode.c: z80 has no generic pointers
17500         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
17501
17502 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
17503
17504         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
17505
17506 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
17507
17508         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
17509
17510         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
17511
17512 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
17513
17514         * configure.in: Fixed up so that ucsim is only configured once.
17515
17516         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
17517
17518         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
17519         (getPathDifference): As above.
17520
17521         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
17522
17523         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
17524
17525 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
17526         * .version: Updated to 2.3.1
17527
17528         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
17529         Added copyright header.
17530
17531         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
17532         (assemble): Added support for macro based assembler commands.
17533         (linkEdit): Added support for macro based linker commands.
17534         (preProcess): Changed the pre-processor to use macros.
17535         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
17536         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
17537
17538         * device/lib/z80/crt0.s: Added module name for debugging.
17539
17540 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
17541
17542         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
17543
17544         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
17545
17546         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
17547
17548         * src/Makefile.in: Added SDCCmacro and SDCCutil
17549
17550 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
17551
17552         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
17553
17554 2001-09-16    <johan AT FRIJA>
17555
17556         * 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.
17557
17558 2001-09-15    <johan AT FRIJA>
17559
17560         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
17561         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
17562
17563 2001-09-11    <johan AT FRIJA>
17564
17565         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
17566
17567 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
17568
17569         * support/regression/tests/bug-460444.c: Added test case.
17570
17571         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
17572         (genCast): Added justification for all of the asserts.
17573
17574 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
17575
17576         * support/regression/support.c: _xdata replaced by xdata
17577
17578         * support/regression/spec.mk: removed _generic
17579
17580 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
17581
17582         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
17583
17584         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
17585         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
17586
17587         * src/z80/peeph.def: Added a rule to optimise shift then compare.
17588
17589         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
17590
17591         * support/regression/tests/bug-460010.c: Added test case.
17592
17593         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
17594
17595 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
17596
17597         * support/regression/Makefile: inter-port-clean adjusted for mcs51
17598
17599         * support/regression/testfwk.c: removed workaround for bug #436344
17600
17601         * support/regression/tests/bp.c: use less memory with mcs51
17602
17603         * support/regression/tests/bug-441448.c: use less memory
17604
17605         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
17606
17607         * support/regression/collate-results.py: typo
17608
17609 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
17610
17611         * support/regression/tests/fetchoverlap.c: Added new test case.
17612
17613         * support/regression/tests/bp.c: Added new test case.
17614
17615         * support/regression/tests/bug-448984.c: Added new test case.
17616
17617         * support/regression/tests/pow2shifts.c: Added new test case.
17618
17619         * src/z80/gen.c: Turned off the noise it normally generates for the release.
17620         (genlshTwo): Fixed right shift for count > 8.
17621
17622         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
17623
17624 2001-09-08    <johan AT FRIJA>
17625
17626         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
17627
17628 2001-09-07    <johan AT FRIJA>
17629
17630         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
17631
17632         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
17633
17634 2001-09-06    <johan AT FRIJA>
17635
17636         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
17637         * bernhard noted me at this: "() equals to (void)" (1.38)
17638
17639 2001-09-05    <johan AT FRIJA>
17640
17641         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
17642
17643 2001-09-04    <johan AT FRIJA>
17644
17645         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
17646
17647
17648 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
17649
17650         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
17651
17652 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
17653
17654         * link/z80/aslink.h: Fixed path for PATH_MAX
17655
17656 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
17657
17658         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
17659
17660         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
17661
17662         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
17663
17664         * 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.
17665
17666 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
17667
17668         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
17669         (genCmp): Fixed up genCmp for the GB with longs.
17670
17671         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
17672
17673         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
17674
17675         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
17676
17677         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
17678
17679 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
17680
17681         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
17682
17683 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
17684
17685         * 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.
17686
17687         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
17688
17689 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
17690
17691         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
17692
17693         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
17694
17695 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
17696
17697         * sim/ucsim/configure:    little improvement of Cygwin-detection
17698         * sim/ucsim/configure.in: little improvement of Cygwin-detection
17699         * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
17700         * support/regression/tests/bug-221100.c: small changes for mcs51
17701         * support/regression/tests/bug-221168.c: small changes for mcs51
17702         * support/regression/tests/bug-227710.c: small changes for mcs51
17703         * support/regression/tests/staticinit.c: small changes for mcs51
17704         * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
17705         * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
17706         * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
17707
17708 $Revision$