Added some regression tests from patch #2321830
[fw/sdcc] / ChangeLog
1 2009-04-19 Philipp Klaus Krause <pkk AT spth.de>
2
3         * support/regression/tests/strtok.c,
4           support/regression/tests/strstr.c,
5           support/regression/tests/strspn.c,
6           support/regression/tests/strncmp.c,
7           support/regression/tests/strcpy.c,
8           support/regression/tests/strcmp.c:
9           Added some regression tests by Ruud van Silfhout from patch #2321830.
10
11 2009-04-13 Borut Razem <borut.razem AT siol.net>
12
13         * device/lib/Makefile.in, device/lib/ds390/Makefile.in,
14           device/lib/ds400/Makefile.in, device/lib/gbz80/Makefile.in,
15           device/lib/hc08/Makefile.in, device/lib/mcs51/Makefile.in,
16           device/lib/z80/Makefile.in: override PORTDIR in sub-makefiles
17
18 2009-04-13 Raphael Neider <rneider AT web.de>
19
20         * device/lib/pic16/bootstrap.sh: avoid symlinks
21         * device/lib/pic16/configure.ac,
22           device/lib/pic16/configure.gnu: removed obsolete configure-wrapper
23
24 2009-04-13 Borut Razem <borut.razem AT siol.net>
25
26         * device/lib/Makefile.in: remove abspath for PORTDIR, introduced in
27           svn revision #5341, since it makes asranlib to fail on cygming and
28           mingw builds: win32 native asranlib doesn't understand cygwin paths.
29
30 2009-04-10 Raphael Neider <rneider AT web.de>
31
32         * device/lib/pic/libsdcc/fs2ulong.c, device/lib/pic/libsdcc/fsadd.c,
33           device/lib/pic/libsdcc/fsdiv.c, device/lib/pic/libsdcc/fseq.c,
34           device/lib/pic/libsdcc/fsgt.c, device/lib/pic/libsdcc/fslt.c,
35           device/lib/pic/libsdcc/fsmul.c, device/lib/pic/libsdcc/fsneq.c,
36           device/lib/pic/libsdcc/fssub.c, device/lib/pic/libsdcc/ulong2fs.c,
37           device/lib/pic16/libsdcc/float/fs2ulong.c,
38           device/lib/pic16/libsdcc/float/fsadd.c,
39           device/lib/pic16/libsdcc/float/fsdiv.c,
40           device/lib/pic16/libsdcc/float/fsmul.c: fixed pic14 libraries, merge
41           changes from the pic16 port, minor code cleanup
42         * src/pic/gen.c: implemented genUminusFloat(), fixed warning and style
43
44 2009-04-09 Philipp Klaus Krause <pkk AT spth.de>
45
46         * device/lib/z80/mod.s,
47           device/lib/z80/Makefile.in,
48           device/lib/z80/div.s,
49           device/lib/z80/modsigned.s,
50           device/lib/z80/divsigned.s:
51           Applied patch #2741451 from Marco Bodrato
52           and moved functions for signed modulo into
53           separate file.
54
55 2009-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
56
57         * src/mcs51/peeph.def: disabled rule 270, fixing bug #2736282
58
59 2009-04-04 Philipp Klaus Krause <pkk AT spth.de>
60
61         * src/z80/gen.c,
62           src/z80/peeph-z80.def:
63           Improved caching of pointers in hl and iy.
64           device/lib/z80/div.s:
65           Applied patch #2727917 from Marco Bodrato.
66
67 2009-04-03 Philipp Klaus Krause <pkk AT spth.de>
68
69         * src/z80/ralloc.c:
70           Enabled use of hl as inter-i-code temporary.
71
72 2009-04-03 Philipp Klaus Krause <pkk AT spth.de>
73
74         * src/z80/peeph-z80.def:
75           Reenabled peephole 0t.
76
77 2009-04-03 Philipp Klaus Krause <pkk AT spth.de>
78
79         * src/z80/gen.c:
80           Fixed bugs #2728224, #2728218.
81           src/z80/peeph-z80.def:
82           Workaround for bug #2728445.
83           support/regression/tests/memory.c:
84           Added test for memcmp().
85
86 2009-04-03 Philipp Klaus Krause <pkk AT spth.de>
87
88         * device/lib/z80/mul.s,
89           device/lib/z80/memmove.s,
90           device/lib/z80/strlen.s:
91           Minor improvements, code cleanup and license clarification.
92
93 2009-04-01 Philipp Klaus Krause <pkk AT spth.de>
94
95         * device/lib/z80/mul.s: 
96           Minor improvement in Z80 16x16 bit multiplication.
97
98 2009-03-23 Borut Razem <borut.razem AT siol.net>
99
100         * src/SDCCval.c, src/SDCCmain.c, device/include/limits.h,
101           device/include/pic/limits.h, device/include/pic16/limits.h,
102           device/lib/_fs2schar.c, device/lib/pic/libsdcc/fs2schar.c,
103           device/lib/pic16/libsdcc/float/fs2schar.c, doc/sdccman.lyx,
104           support/regression/tests/funsigned-char.c:
105           applied patch 2704189: character constant sign fix
106           thanks to Robert Larice
107
108 2009-03-22 Borut Razem <borut.razem AT siol.net>
109
110         * Small Device C Compiler 2.9.0 released
111         * .version, doc/sdccman.lyx: changed sdcc version to 2.9.1
112
113 2009-03-15 Borut Razem <borut.razem AT siol.net>
114
115         * support/scripts/repack_release.sh: added
116
117 2009-03-13 Borut Razem <borut.razem AT siol.net>
118
119         * doc/sdccman.lyx: "freeware" replaced with "free open source"
120
121 2009-03-12 Borut Razem <borut.razem AT siol.net>
122
123         * src/z80/peep.c: #2652979: --debug crashes sdcc
124
125 2009-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
126
127         * src/SDCCglue.c,
128           support/regression/tests/bug2655200.c:
129           applied modified patch from Robert Larice <larice AT vidisys.de>
130           fixing original report of bug #2655200: pointer to pdata memory
131           not correctly initialized
132
133 2009-03-11 Borut Razem <borut.razem AT siol.net>
134
135         * as/asranlib/asranlib.c: retain the original file mode
136
137 2009-03-10 Borut Razem <borut.razem AT siol.net>
138
139         * src/mcs51/gen.c, src/z80/gen.c, src/hc08/gen.c, src/ds390/gen.c,
140           support/regression/tests/bug1875933.c:
141           fixed bug #1875933: Evelyn jumps into the void
142           thanks to Robert Larice
143
144 2009-03-10 Raphael Neider <rneider AT web.de>
145
146         * src/pic16/pcode.c (LinkFlow): fix invalid cast from pCodeLabel
147           to pCodeInstruction to avoid a segmentation fault
148
149 2009-03-03 Borut Razem <borut.razem AT siol.net>
150
151         * device/lib/printf_large.c: fixed bug #2656821: bug in printf
152
153 2009-03-03 Raphael Neider <rneider AT web.de>
154
155         * device/lib/pic/libdev/Makefile.in: build device-specific
156           libraries for the correct processor, fixes #2654585
157
158 2009-03-01 Raphael Neider <rneider AT web.de>
159
160         * device/lib/Makefile.in: fixed parallel builds (i.e., make -jN, N>1)
161
162 2009-03-01 Borut Razem <borut.razem AT siol.net>
163
164         * src/z80/peep.c: fixed bug #2648964: --i-code-in-asm crashes sdcc
165         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
166           changed sdcc version to 2.9.0
167
168 2009-03-01 Maarten Brock <sourceforge.brock AT dse.nl>
169
170         * src/mcs51/ralloc.c (spillThis, spilSomething): fixed bug 2435941
171           (serialRegAssign): do not spil bit registers
172           throughout cosmetic changes
173         * support/regression/tests/bug2435941.c: new, added
174
175 2009-02-28 Raphael Neider <rneider AT web.de>
176
177         * src/regression/compare10.c,
178           src/regression/compare7.c,
179           src/regression/compare8.c,
180           src/regression/compare9.c: reset watchdog timer in time
181         * src/regression/configword.c: apply patch from #2488150
182         * src/pic/glue.c (pic14createInterruptVect): pin RESET vector
183           handler to 0x0000 as the linker no longer knows STARTUP sections
184         * src/pic/pcode.c (register_reassign, ReuseReg): applied modified
185           patch #2512926 to (mostly) fix #1762626, cosmetic changes
186         * src/pic/pcodepeep.c: remove reference to nonexisting function
187
188 2009-02-28 Raphael Neider <rneider AT web.de>
189
190         * device/include/pic16/signal.h: avoid multiline inline
191           assembler statements in macros, addresses #2644965
192
193 2009-02-27 Raphael Neider <rneider AT web.de>
194
195         * device/include/pic16/pic18f[24][3456]k20.h,
196           device/include/pic16/pic18f[68][567]j50.h,
197           device/include/pic16/pic18f[68]6j55.h,
198           device/lib/pic16/libdev/pic18f[24][3456]k20.c,
199           device/lib/pic16/libdev/pic18f[68][567]j50.c,
200           device/lib/pic16/libdev/pic18f[68]6j55.c,
201           device/include/pic16/pic18fregs.h,
202           device/include/pic16/pic16devices.txt,
203           device/lib/pic16/pics.all,
204           device/lib/pic16/libdev/Makefile.am,
205           device/lib/pic16/libio/Makefile.am: added/re-enabled many device
206           families (87j50 family contributed by Robert Wuest)
207
208         * device/include/pic16/adc.h,
209           device/lib/pic16/libio/adc/adcbusy.c,
210           device/lib/pic16/libio/adc/adcclose.c,
211           device/lib/pic16/libio/adc/adcconv.c,
212           device/lib/pic16/libio/adc/adcopen.c,
213           device/lib/pic16/libio/adc/adcsetch.c: added 65j50-style ADC
214
215         * doc/sdccman.lyx: updated list of supported devices, fixed typo
216         * device/lib/pic16/Makefile.common: do not suppress assembler warnings
217
218         * device/lib/pic16/Makefile.in,
219           device/lib/pic16/libm/Makefile.in,
220           device/lib/pic16/debug/Makefile.in,
221           device/lib/pic16/libio/Makefile.in,
222           device/lib/pic16/startup/Makefile.in,
223           device/lib/pic16/libsdcc/Makefile.in,
224           device/lib/pic16/libdev/Makefile.in,
225           device/lib/pic16/libc/Makefile.in: regenerated
226
227 2009-02-27 Borut Razem <borut.razem AT siol.net>
228
229         * as/z80/asexpr.c, as/z80/z80mch.c: re-fixed bugs
230           #1829678 and #1704376 in the way proposed by Alan Baldwin
231
232 2009-02-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
233
234         * device/include/mcs51/at89c51ed2.h: Fixed address of SFR P5. Thanks
235           to Steve Qu for the fix.
236
237 2009-02-23 Borut Razem <borut.razem AT siol.net>
238
239         * as/z80/asexpr.c: fixed bug #1829678: Z-80 CP A,<xxx> assembly
240           it is already fixed for mcs51 and hc08 targets
241         * as/z80/z80mch.c: fixed bug #1704376: missing as-z80 errors
242
243 2009-02-22 Borut Razem <borut.razem AT siol.net>
244
245         * device/lib/Makefile.in: fixed parenthesis error
246         * doc/sdccman.lyx: fixed webdocs bug #2071421: error in the manual,
247           fixed webdocs bug #1967920: --version
248
249 2009-02-18 Maarten Brock <sourceforge.brock AT dse.nl>
250
251         * device/include/mcs51/at89c51ed2.h: fixed bug #2071949 bitmask RBCK wrong
252
253 2009-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
254
255         * as/link/mcs51/lkihx.c (hexRecord): bugfix do not insert extended address
256           when addresses are unsorted
257
258 2009-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
259
260         * device/include/mcs51/p89v66x.h: added ENBOOT thanks
261           Gudjon Gudjonsson <gudjon AT gudjon.org>
262         * device/include/mcs51/p89c66x.h: fixed some defines
263         * device/include/mcs51/p89v66x.h: fixed some sbit addresses
264         * doc/sdccman.lyx: added <NO FLOAT> to index, try to reanimate
265           svn keywords
266
267 2009-02-14 Borut Razem <borut.razem AT siol.net>
268
269         * doc/sdccman.lyx: corrected cpp info
270
271 2009-02-13 Borut Razem <borut.razem AT siol.net>
272
273         * as/Makefile.in: *.doc renamed to *.txt
274
275 2009-02-11 Borut Razem <borut.razem AT siol.net>
276
277         * as/doc/aslnk.doc, as/doc/abstra.doc: renamed to *.txt
278         * as/doc/aslnk.txt, as/doc/asxhtml.html: changed licens to GPLv3
279
280 2009-02-11 Borut Razem <borut.razem AT siol.net>
281
282         * doc/sdccman.lyx: documented ar format libraries
283
284 2009-02-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
285
286         * support/regression/tests/float_single.c: added regression
287           test. Some testpoints for probably rarely used functions
288           (acosf, sinhf, tanf, expf) disabled for some targets
289
290 2009-02-10 Raphael Neider <rneider AT web.de>
291
292         * src/pic16/gen.c (pic16_freeAsmop): avoid NULL pointer dereference,
293           (genAssign): fixed for operands on the stack
294
295         * device/lib/pic16/libc/stdio/vfprintf.c,
296           device/lib/pic16/configure.ac,
297           device/lib/pic16/Makefile.common: add configurable support for
298           printing floats via ./configure --enable-floats
299         * device/lib/pic16/configure,
300           device/lib/pic16/Makefile.in,
301           device/lib/pic16/libm/Makefile.in,
302           device/lib/pic16/debug/Makefile.in,
303           device/lib/pic16/libio/Makefile.in,
304           device/lib/pic16/startup/Makefile.in,
305           device/lib/pic16/libsdcc/Makefile.in,
306           device/lib/pic16/libdev/Makefile.in,
307           device/lib/pic16/libc/Makefile.in: regenerated
308         * doc/sdccman.lyx: documented float support and how to get it
309         * doc/Makefile.in: fixed race condition on parallel builds
310
311         * device/lib/pic16/libc/stdio/sprintf.c,
312           device/lib/pic16/libc/stdio/vsprintf.c: do not mess up the user's
313           pointer to the string buffer, enlarge buffer for x_ftoa()
314
315 2009-02-10 Borut Razem <borut.razem AT siol.net>
316
317         * device/lib/printf_tiny.c: replaced non-C89 comments '//' with '/* */'
318
319 2009-02-10 Raphael Neider <rneider AT web.de>
320
321         * device/include/pic16/pic18f*.h: add bit aliases in INTCONbits_t
322
323 2009-02-09 Raphael Neider <rneider AT web.de>
324
325         * src/pic16/pcode.c (assignToSameBank): add force argument to ignore
326           artificial bank size limits for compound data (structs, arrays),
327           avoids assert if --obanksel=N, N > 1, is given
328
329 2009-02-09 Borut Razem <borut.razem AT siol.net>
330
331         * as/asranlib/asranlib.c, link/lkar.c: don't check the padding bytes since
332           the openSUSE GNU ar (GNU Binutils; openSUSE 11.0) 2.18.50.20080409-11.1
333           uses '`' character instead '\n' for padding
334         * as/asranlib/asranlib.c: made it more robust
335
336 2009-02-08 Borut Razem <borut.razem AT siol.net>
337
338         * as/COPYING3: added
339         * support/scripts/sdcc.nsi: added COPYING3.txt to the package
340         * device/lib/Makefile.in: reenable floating point in model-xstack-auto
341           libraries
342
343 2009-02-07 Borut Razem <borut.razem AT siol.net>
344
345         * as/asranlib/asranlib.c: fixed BSD header length calculation
346         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.9
347           due sdcc asxxxx license change to GPLv3
348
349 2009-02-05 Borut Razem <borut.razem AT siol.net>
350
351         * as/asranlib/asranlib.c, link/lkar.h, link/lkar.c:
352           added support for BSD (Mac OS X) ar format
353         * as/asxxsrc/aslex.c, as/as/asxxsrc/asnoice.c, as/as/asxxsrc/assym.c,
354           as/as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/aslist.c,
355           as/hc08/asm.h, as/hc08/asmain.c, as/hc08/asout.c, as/hc08/assubr.c,
356           as/hc08/m08adr.c, as/hc08/m08ext.c, as/hc08/m08mch.c,
357           as/hc08/m08pst.c, as/hc08/m6808.h, as/link/aslink.h,
358           as/link/hc08/lkarea.c, as/link/hc08/lkelf.c, as/link/hc08/lkihx.c,
359           as/link/hc08/lkmain.c, as/link/hc08/lkmem.c, as/link/hc08/lkrloc.c,
360           as/link/hc08/lks19.c, as/link/lkaomf51.c, as/link/lkdata.c,
361           as/link/lkeval.c, as/link/lkhead.c, as/link/lklex.c, as/link/lklib.c,
362           as/link/lklibr.c, as/link/lklibr.h, as/link/lklist.c,
363           as/link/lknoice.c, as/link/lkrel.c, as/link/lkrel.h,
364           as/link/lksdcclib.c, as/link/lkstore.c, as/link/lksym.c,
365           as/link/mcs51/lkarea.c, as/link/mcs51/lkihx.c,
366           as/link/mcs51/lkmain.c, as/link/mcs51/lkmem.c,
367           as/link/mcs51/lkrloc.c, as/link/mcs51/lks19.c, as/link/z80/lkarea.c,
368           as/link/z80/lkgb.c, as/link/z80/lkgg.c, as/link/z80/lkihx.c,
369           as/link/z80/lkmain.c, as/link/z80/lkrloc.c, as/link/z80/lks19.c,
370           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/aslist.c,
371           as/mcs51/asm.h, as/mcs51/asmain.c, as/mcs51/asout.c,
372           as/mcs51/assubr.c, as/mcs51/i51adr.c, as/mcs51/i51ext.c,
373           as/mcs51/i51mch.c, as/mcs51/i51pst.c, as/mcs51/i8051.h,
374           as/xa51/xa_link.c, as/xa51/xa_main.c, as/xa51/xa_main.h,
375           as/xa51/xa_rasm.l, as/xa51/xa_rasm.y, as/xa51/xa_version.h,
376           as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c, as/z80/asm.h,
377           as/z80/asmain.c, as/z80/asout.c, as/z80/assubr.c, as/z80/z80.h,
378           as/z80/z80adr.c, as/z80/z80ext.c, as/z80/z80mch.c, as/z80/z80pst.c:
379           changed license to GPL either version 3, or (at your option) any
380           later version
381
382 2009-02-05 Borut Razem <borut.razem AT siol.net>
383
384         * as/asranlib/asranlib.c, link/lkar.h, link/lkar.c:
385           added support for BSD (Mac OS X) ar format
386
387 2009-02-02 Borut Razem <borut.razem AT siol.net>
388
389         * device/lib/gbz80/Makefile.in, device/lib/hc08/Makefile.in,
390           device/lib/z80/Makefile.in:
391           chose source files in the PORT directory if they are available
392
393 2009-02-01 Raphael Neider <rneider AT web.de>
394
395         * device/lib/pic16/libdev/pic18f1220.c,
396         * device/lib/pic16/libdev/pic18f4450.c:
397           define SSPBUF to allow use of printf
398
399 2009-02-01 Borut Razem <borut.razem AT siol.net>
400
401         * device/lib/Makefile.in, device/lib/gbz80/Makefile.in,
402           device/lib/hc08/Makefile.in, device/lib/incl.mk,
403           device/lib/z80/Makefile.in:
404           don't remake libraries
405         * support/regression/tests/snprintf.c:
406           reenable floating point in small-xstack-auto library
407
408 2009-01-26 Raphael Neider <rneider AT web.de>
409
410         * src/pic16/ralloc.c (packForPush): disabled to fix #2496919
411
412 2009-01-25 Raphael Neider <rneider AT web.de>
413
414         * src/pic16/main.c (_pic16_linkEdit): prepend -L paths to linker
415           search path instead of appending them
416
417 2009-01-24 Borut Razem <borut.razem AT siol.net>
418
419         * as/asranlib/asranlib.h: changed type of offset to unsigned int to
420           make it work on ppc Mac OS X (off_t is 64 bit and is not converted
421           to 32 bit unsigned int when calling sputl() since it is a macro
422         * as/link/lkar.c: changed the initialization of This->loaded
423
424 2009-01-23 Borut Razem <borut.razem AT siol.net>
425
426         * as/link/lkar.h: changed type of ar_size to size_t to make it work on
427           ppc Mac OS X (off_t is 64 bit and is not converted to 32 bit
428           unsigned int when calling new(), since asxxxx doesn't use function
429           prototypes)
430
431 2009-01-21 Borut Razem <borut.razem AT siol.net>
432
433         * as/link/lkar.h: sgetl and sputl are independent of endianness
434         * as/link/sdxxxx_config.h.in: removed endianness detection
435
436 2009-01-20 Borut Razem <borut.razem AT siol.net>
437
438         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.8
439           due creation of ar format libraries
440         * support/scripts/sdcc.nsi:
441           don't add nonexistent object files to the package
442
443 2009-01-19 Borut Razem <borut.razem AT siol.net>
444
445         * Makefile.in, configure.in, configure,
446           device/lib/Makefile.in, device/lib/ds390/Makefile.in,
447           device/lib/ds400/Makefile.in, device/lib/gbz80/Makefile.in,
448           device/lib/hc08/Makefile.in, device/lib/large/Makefile.in,
449           device/lib/mcs51/Makefile.in, device/lib/medium/Makefile.in,
450           device/lib/small/Makefile.in,
451           device/lib/z80/Makefile.in: create ar format libraries
452         * support/regression/ports/mcs51-xstack-auto/spec.mk:
453           use device/lib/Makefile to create library
454         * support/regression/tests/snprintf.c:
455           floating point is not enabled in small-xstack-auto library
456         * device/lib/libfloat.lib, device/lib/libint.lib,
457           device/lib/liblong.lib, device/lib/libsdcc.lib: removed
458
459 2009-01-18 Borut Razem <borut.razem AT siol.net>
460
461         * support/cpp/auto-host.h: fixed warning: "__STDC__" redefined,
462           warning: extra tokens at end of #endif directive
463
464 2009-01-11 Borut Razem <borut.razem AT siol.net>
465
466         * Makefile.in: added SDCC_ASRANLIB to PKGS
467
468 2009-01-10 Borut Razem <borut.razem AT siol.net>
469
470         * support/scripts/sdcc.nsi: added asranlib.exe to the install package
471         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.7
472           due added support for ar format libraries
473
474 2009-01-09 Borut Razem <borut.razem AT siol.net>
475
476         * as/asranlib/Makefile.in, as/asranlib/asranlib.dsp,
477           as/asranlib/asranlib.c: added asranlib
478         * as/link/lkar.c, as/link/lkar.h: added support for ar format libraries
479         * Makefile.in, as/link/hc08/Makefile.in,
480           as/link/hc08/link_hc08.dsp, as/link/lklib.c, as/link/lklibr.c,
481           as/link/lklibr.h, as/link/lkrel.c, as/link/lkrel.h,
482           as/link/lksdcclib.c, as/link/mcs51/Makefile.in,
483           as/link/mcs51/aslink.dsp, as/link/z80/Makefile.in,
484           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp, configure,
485           configure.in, sdcc.dsw: modified to support ar format libraries
486
487 2009-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
488
489         * src/SDCCast.c (decorateType RETURN): use RESULT_TYPE_GPTR for generic
490           pointer return
491
492 2009-01-05 Philipp Klaus Krause <pkk AT spth.de>
493
494         * sim/ucsim/z80.src/inst_ed.cc:
495           Fixed bug #2488074, which made regression tests fail.
496
497 2009-01-05 Philipp Klaus Krause <pkk AT spth.de>
498
499         * device/lib/z80/mod.s,
500           device/lib/z80/div.s,
501           device/lib/z80/mulchar.s,
502           device/lib/z80/mul.s,
503           device/lib/z80/divsigned.s,
504           device/lib/z80/Makefile.in:
505           Implemented RFE #1702376.
506
507 2009-01-05 Borut Razem <borut.razem AT siol.net>
508
509         * as/link/lksdcclib.c:
510           fixed linker hanging in INDEXLIB is not defined (hc08)
511
512 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
513
514         * src/z80/gen.c:
515           Implemented RFE #2485684, and some further improvements of HL caching
516           including a bugfix.
517         * src/z80/peeph-z80.def:
518           Fixed a bug exposed by implementing RFE #2485684.
519
520 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
521
522         * src/z80/peeph-z80.def:
523           Peephole improvements.
524         * src/z80/gen.c,
525           src/z80/main.c,
526           device/include/string.h,
527           device/lib/z80/memmove.s:
528           Minor code cleanup.
529         * device/lib/z80/Makefile.in,
530           device/lib/Makefile.in,
531           support/regression/tests/memory.c,
532           device/lib/z80/strlen.s:
533           Partially implemented RFE #2471534.
534
535 2009-01-04 Borut Razem <borut.razem AT siol.net>
536
537         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.6
538           due changes in sdcc asxxxx linkers - it sholud be done 2 days ago :(
539         * doc/README.txt: updated John Hartman's e-mail address
540         * as/link/lkrel.c, as/link/lksdcclib.c:
541           fixed bug #2484677: Linker hangs
542         * src/z80/peep.c: fixed msvc warning C4047:
543           'return' : 'int ' differs in levels of indirection from 'char *'
544         * config.dsp: as/lib corrected to as/link
545
546 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
547
548         * src/z80/peep.c:
549           Implemented RFE #2484693.
550         * src/z80/peeph-z80.def:
551           Some peephole improvements.
552
553 2009-01-03 Borut Razem <borut.razem AT siol.net>
554
555         * as/link/lklibr.c:
556           fixed warning: 'ret' may be used uninitialized in this function
557
558 2009-01-02 Borut Razem <borut.razem AT siol.net>
559
560         * as/link/lklib.c, as/link/lksdcclib.c, as/link/lklibr.h,
561           as/link/getline.[ch], as/link/lkrel.[ch]: added,
562           made support for differnet library formats more flexible,
563           preparation for support of ar format
564         * as/link/lklibr.c, as/link/z80/Makefile.in,
565           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
566           as/link/hc08/link_hc08.dsp, as/link/hc08/Makefile.in,
567           as/link/mcs51/aslink.dsp, as/link/mcs51/Makefile.in,
568           as/link/hc08/lkelf.c, as/link/aslink.h:
569           made support for differnet library formats more flexible,
570           preparation for support of ar format
571
572 2009-01-01 Borut Razem <borut.razem AT siol.net>
573
574         * as/link/asxxxx_config.h.in:
575           fixed warning: extra tokens at end of #endif directive
576         * src/z80/peep.c:
577           fixed warning: suggest parentheses around && within ||
578         * device/lib/Makefile.in: allow whitespaces at the end of lines in
579           ports.build, in order to make it work on cygwin - it seems to be a
580           bug in cygwin grep: CR is not treated as part of end-of-line
581
582 2008-12-31 Borut Razem <borut.razem AT siol.net>
583
584         * configure, configure.in, config.dsp, config_vc.awk,
585           as/link/asxxxx_config.h.in, as/link/hc08/lkelf.c, as/link/aslink.h,
586           as/link/hc08/Makefile.in, as/link/mcs51/Makefile.in:
587           introduced asxxxx_config.h.in
588
589 2008-12-30 Philipp Klaus Krause <pkk AT spth.de>
590
591         * src/z80/gen.c,
592           src/z80/peeph-z80.def:
593           Minor addition improvement.
594
595 2008-12-30 Raphael Neider <rneider AT web.de>
596
597         * as/link/hc08/lkelf.c, as/link/lkaomf51.c, as/link/lklibr.c,
598           as/link/z80/lkgb.c, debugger/mcs51/cmd.c, sim/ucsim/utils.cc,
599           src/SDCCasm.c, support/Util/dbuf_string.c, support/cpp/c-ppoutput.c,
600           support/cpp/libcpp/lex.c, support/cpp/libcpp/macro.c,
601           support/librarian/sdcclib.c, support/makebin/makebin.c:
602           partially revert changes from r5293..r5295
603
604 2008-12-29 Philipp Klaus Krause <pkk AT spth.de>
605
606         * src/z80/peeph-z80.def:
607           Minor peephole improvement.
608
609 2008-12-29 Raphael Neider <rneider AT web.de>
610
611         * src/pic/pcode.c (insertBankSel, FixRegisterBanking): emit
612           incorrectly discarded BANKSELs
613
614 2008-12-29 Philipp Klaus Krause <pkk AT spth.de>
615
616         * support/regression/tests/memory.c:
617           Added simple test for memset(), memcpy() and memmove()
618
619 2008-12-29 Borut Razem <borut.razem AT siol.net>
620
621         * sdcc/support/scripts/sdcc.nsi: removed $INSTDIR\lib\src\z80\*.c
622
623 2008-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
624
625         * src/mcs51/peeph.def (177.e): replaced notVolatile(%3) with
626           operandsNotRelated(%1 %3), had to change (a)r%1 to (a)%1 for this to work
627           (177.j): added new rule
628         * src/SDCCsymt.h: added RESULT_TYPE_GPTR
629         * src/SDCCast.c (processParms): use RESULT_TYPE_GPTR for generic ptr parms,
630           (decorateType CAST): propagate storage class to generic pointer results
631
632 2008-12-27 Philipp Klaus Krause <pkk AT spth.de>
633
634         * device/lib/z80/string.c,
635           device/lib/z80/printf.c,
636           device/lib/z80/mul.s:
637           z80 library cleanup
638         * src/z80/gen.c:
639           Fixed code generation bug exposed by builtin memcpy().
640
641 2008-12-27 Philipp Klaus Krause <pkk AT spth.de>
642
643         * device/lib/_memcpy.c:
644           fixed conflict with builtin memcpy()
645
646 2008-12-26 Borut Razem <borut.razem AT siol.net>
647
648         * support/librarian/sdcclib.c:
649           fixed bug 2466950: "sdcclib broken"
650           by removing fgets return value check
651
652 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
653         * src/z80/main.c,
654           src/z80/gen.c,
655           device/include/string.h: Implemented RFE #1914254
656
657 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
658         * device/lib/z80/Makefile.in,
659           device/lib/Makefile.in,
660           device/lib/z80/memmove.s: Implemented RFE #1914256
661
662 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
663
664         * src/z80/peeph-z80.def: fixed a bug in peephole 0zf
665         * src/z80/peep.c: improved checks for unused data
666         * src/z80/gen.c,
667           src/z80/main.c: Implemented RFE #1899189
668
669 2008-12-25 Borut Razem <borut.razem AT siol.net>
670
671         * support/regression/Makefile.in:
672           add -I$(INC_DIR) to SDCCFLAGS only if INC_DIR is defined
673
674 2008-12-25 Philipp Klaus Krause <pkk AT spth.de>
675
676         * src/z80/peeph-z80.def: minor peephole improvements
677
678 2008-12-21 Borut Razem <borut.razem AT siol.net>
679
680         * support/librarian/sdcclib.c: fixed build failure on Mac OS X
681           due to redefinition of symbol __assert
682           sdcclib.c:53:1:warning: "__assert" redefined
683           /Xcode2.5/SDKs/MacOSX10.4u.sdk/usr/include/assert.h:80:1:
684           warning: this is the location of the previous definition
685
686 2008-12-20 Raphael Neider <rneider AT web.de>
687
688         * debugger/mcs51/break.c, debugger/mcs51/cmd.c,
689           debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
690           support/cpp/libcpp/macro.c: fix format string errors
691
692         * sim/ucsim/s51.src/timer2.cc: add clarifying parens
693
694         * src/pic/device.c: partial rewrite using strtok,
695           quieten compiler warnings, adopt SDCC coding style
696
697         * as/link/hc08/lkelf.c, as/link/lkaomf51.c, as/link/lklibr.c,
698           as/link/z80/lkgb.c, as/z80/asout.c, debugger/mcs51/cmd.c,
699           sim/ucsim/utils.cc, src/SDCCasm.c, support/Util/dbuf_string.c,
700           support/cpp/c-ppoutput.c, support/cpp/libcpp/lex.c,
701           support/librarian/sdcclib.c, support/makebin/makebin.c:
702           quieten most compiler warnings
703
704         * sim/ucsim/avr.src/arith_inst.cc: quieten compiler warnings,
705           probably fix operator precedence bug
706
707         * doc/clean.mk: quieten rm if no .lyx is present
708
709 2008-12-19 Borut Razem <borut.razem AT siol.net>
710
711         * doc/sdccman.lyx, doc/random-notes.txt, doc/avr/avr_design.txt,
712           doc/TININative.txt, doc/macro-sys-design.txt, doc/libdoc.txt,
713           doc/README.txt, doc/test_suite_spec.lyx:
714           applied patch 2446381: Dcoumentation spelling correcitons
715           thanks to Steven Borley
716
717 2008-12-16 Raphael Neider <rneider AT web.de>
718
719         * device/include/pic/pic12f629.h,
720           device/include/pic/pic12f675.h,
721           device/lib/pic/libdev/pic12f629.c,
722           device/lib/pic/libdev/pic12f675.c: consolidated, added TRISIO bits
723
724 2008-12-14 Borut Razem <borut.razem AT siol.net>
725
726         * doc/sdccman.lyx, cdbfileformat.lyx, test_suite_spec.lyx:
727           converted to LyX 1.5.7 (\lyxformat 276) format
728
729 2008-12-07 Borut Razem <borut.razem AT siol.net>
730
731         * support/regression/tests/bitfields.c:
732           added test case for bug #2366757
733
734 2008-12-07 Raphael Neider <rneider AT web.de>
735
736         * src/pic16/glue.c (pic16_printIvalBitFields): prevent
737           NULL pointer dereference, closes #2366757
738
739 2008-11-25 Raphael Neider <rneider AT web.de>
740
741         * device/include/pic16/pic16devices.txt,
742           sdcc/src/pic16/device.c,
743           sdcc/src/pic16/device.h: implicitly disable XINST
744           whenever CONFIG4L is set via an additional optional
745           argument to the configword directive in pic16devices.txt
746
747 2008-11-24 Raphael Neider <rneider AT web.de>
748
749         * device/lib/pic16/configure.ac,
750           device/lib/pic16/Makefile.common: fixed quoting issues
751
752         * device/lib/pic16/configure,
753           device/lib/pic16/debug/Makefile.in,
754           device/lib/pic16/libc/Makefile.in,
755           device/lib/pic16/libdev/Makefile.in,
756           device/lib/pic16/libio/Makefile.in,
757           device/lib/pic16/libm/Makefile.in,
758           device/lib/pic16/libsdcc/Makefile.in,
759           device/lib/pic16/Makefile.in,
760           device/lib/pic16/startup/Makefile.in: regenerated
761
762         * src/pic16/main.c (_pic16_finaliseOptions): revert to
763           variant of r5216
764
765 2008-11-24 Raphael Neider <rneider AT web.de>
766
767         * src/pic16/main.c (_pic16_finaliseOptions): do not quote the
768           argument of --asm= or --link= to allow for
769           --asm="sh script --options", the user can double quote the
770           argument if needed: --asm="'c:/program files/gpasm' -q",
771           also fix some potential buffer overflows
772
773 2008-11-19 Borut Razem <borut.razem AT siol.net>
774
775         * doc/sdccman.lyx:
776           fixed 2314467: sdccman.lyx: fix "--" in command line parameters
777           thanks Mauro Giachero
778
779 2008-11-16 Borut Razem <borut.razem AT siol.net>
780
781         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.5
782         * doc/sdccman.lyx: documented fixed unnamed bit-field initialization
783
784 2008-11-15 Borut Razem <borut.razem AT siol.net>
785
786         * src/pic16/glue.c, src/SDCC.y, src/SDCCast.c, src/SDCCglue.c,
787           src/SDCCsymt.c, src/SDCCsymt.h:
788           fixed RFE #2291335 : Unnamed bit-field initialization
789         * support/regression/tests/bitfields.c:
790           added test case for RFE #2291335
791         * support/regression/tests/bug-1981238.c:
792           don't initialize unnamed bit-fields
793
794 2008-11-11 Raphael Neider <rneider AT web.de>
795
796         * device/include/pic16/pic18f25j10.h,
797           device/include/pic16/pic18f45j10.h: remove useless boilerplate
798
799         * device/include/pic16/adc.h,
800           device/lib/pic16/libio/adc/adcbusy.c,
801           device/lib/pic16/libio/adc/adcclose.c,
802           device/lib/pic16/libio/adc/adcconv.c,
803           device/lib/pic16/libio/adc/adcopen.c,
804           device/lib/pic16/libio/adc/adcread.c,
805           device/lib/pic16/libio/adc/adcsetch.c: generalized, documented,
806           and fixed ADC routines to work for more target devices,
807           incorporates patch #2036130 by Nick Materer
808
809 2008-11-10 Steven Borley <steven.borley AT partnerelectronics.com>
810
811         * device/include/ctype.h,
812         * device/include/ds400rom.h,
813         * device/include/ds80c390.h,
814         * device/include/float.h,
815         * device/include/math.h,
816         * device/include/serial.h,
817         * device/include/stdbool.h,
818         * device/include/tinibios.h: replaced non-C89 '//' with '/* */',
819           patch 2195343
820         * device/include/mcs51/C8051F336.h,
821         * device/include/mcs51/C8051T600.h,
822         * device/include/mcs51/C8051T610.h,
823         * device/include/mcs51/C8051T630.h: new, added, patch 2183334
824           (svn commit by Maarten Brock <sourceforge.brock AT dse.nl>)
825
826 2008-11-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
827
828         * device/include/mcs51/P89LPC922.h: fixed #2255989, thanks kubi57
829
830 2008-11-10 Raphael Neider <rneider AT web.de>
831
832         * device/lib/pic16/libdev/mkmk.sh: obey pics.all
833         * device/lib/pic16/libio/mkmk.sh: properly match whole lines in
834           .ignore files, fixes IO libs for 18f242, 18f252, 18f442, and 18f452
835           (patch by Nick Materer, #2253980)
836
837         * device/lib/pic16/libio/adc.ignore,
838           device/lib/pic16/libio/i2c.ignore,
839           device/lib/pic16/libio/usart.ignore,
840           device/lib/pic16/pics.all: updated to build more device libs
841
842         * device/lib/pic16/libdev/Makefile.am,
843           device/lib/pic16/libdev/Makefile.in,
844           device/lib/pic16/libio/Makefile.am,
845           device/lib/pic16/libio/Makefile.in: regenerated
846
847         * src/pic16/device.c (pic16_dump_usection): fixed output of multiple
848           names per memory location, applied SDCC style to more functions
849
850 2008-11-09 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
851
852         * device/include/mcs51/p89lpc933_4.h: new NXP header file
853         * device/include/mcs51/p89lpc935_6.h: new NXP header file
854         * device/include/mcs51/p89v66x.h: minor changes
855           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
856
857 2008-11-09 Raphael Neider <rneider AT web.de>
858
859         * device/include/pic/pic14devices.txt: fixed memory description for
860           12f629 and 12f675, closes #2236240
861
862 2008-11-06 Borut Razem <borut.razem AT siol.net>
863
864         * src/SDCCmain.c: fixed bug #2224960: sdcc -MM no working correctly
865           pass system include paths with -isystem to sdcpp
866         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c: removed unneeded
867           functions (closePipes), (closeTmpFiles) and (rmTmpFiles)
868
869 2008-11-02 Raphael Neider <rneider AT web.de>
870
871         * doc/sdccman.lyx: updated the sections on the library build process
872           and on how to add support for new devices, and documented known
873           problems with the extended instruction set including a workaround
874
875 2008-11-01 Raphael Neider <rneider AT web.de>
876
877         * device/include/pic16/adc.h,
878           device/include/pic16/pic16devices.txt,
879           device/include/pic16/pic18f2410.h,
880           device/include/pic16/pic18f2510.h,
881           device/include/pic16/pic18f2515.h,
882           device/include/pic16/pic18f2610.h,
883           device/include/pic16/pic18f4410.h,
884           device/include/pic16/pic18f4510.h,
885           device/include/pic16/pic18f4515.h,
886           device/include/pic16/pic18f4610.h,
887           device/include/pic16/pic18fregs.h,
888           device/lib/pic16/libdev/Makefile.am,
889           device/lib/pic16/libdev/Makefile.in,
890           device/lib/pic16/libdev/pic18f2410.c,
891           device/lib/pic16/libdev/pic18f2510.c,
892           device/lib/pic16/libdev/pic18f2515.c,
893           device/lib/pic16/libdev/pic18f2610.c,
894           device/lib/pic16/libdev/pic18f4410.c,
895           device/lib/pic16/libdev/pic18f4510.c,
896           device/lib/pic16/libdev/pic18f4515.c,
897           device/lib/pic16/libdev/pic18f4610.c,
898           device/lib/pic16/libio/Makefile.am,
899           device/lib/pic16/libio/Makefile.in,
900           device/lib/pic16/pics.all: added support for 18f[24][456]10
901           and 18f[24]515 devices
902         * doc/sdccman.lyx: updated list of supported PIC16 devices
903
904         * src/pic/glue.c, src/pic/pcode.c, src/pic/pcodeflow.c,
905           src/pic16/glue.c, src/pic16/pcode.c, src/pic16/pcodeflow.c,
906           src/xa51/gen.c: avoid compiler warnings
907         * support/scripts/inc2h-pic16.pl: removed trailing whitespace
908
909 2008-10-22 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
910
911         * device/include/mcs51/p89v66x.h: NXP header file
912         * device/include/mcs51/p89c66x.h: fixed an SBIT definition
913           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
914
915 2008-10-14 Raphael Neider <rneider AT web.de>
916
917         * device/lib/pic16/libdev/Makefile.am,
918           device/lib/pic16/libio/Makefile.am: enable building libraries for
919           18f2321, 18f4321, 18f2523, 18f4620, 18f66j60, 18f66j65, 18f67j60,
920           18f86j60, 18f86j65, 18f87j60, 18f96j60, 18f96j65, and 18f97j60
921         * device/lib/pic16/libdev/Makefile.in,
922           device/lib/pic16/libio/Makefile.in: regenerated
923
924 2008-10-14 Raphael Neider <rneider AT web.de>
925
926         * device/include/pic16/pic18f2450.h,
927           device/include/pic16/pic18f4450.h,
928           device/lib/pic16/libdev/pic18f2450.c,
929           device/lib/pic16/libdev/pic18f4450.c,
930           device/include/pic16/adc.h,
931           device/include/pic16/pic16devices.txt,
932           device/include/pic16/pic18fregs.h,
933           device/lib/pic16/libdev/Makefile.am,
934           device/lib/pic16/libdev/Makefile.in,
935           device/lib/pic16/libio/Makefile.am,
936           device/lib/pic16/libio/Makefile.in,
937           device/lib/pic16/pics.all: added 18f2450 and 18f4450, closes #1844525
938
939         * device/lib/pic16/libsdcc/stack/stack.S: there is no need to pin the
940           stack to a fixed location, relax it to automatically work with all
941           but the smallest devices (256 byte RAM devices need #pragma stack)
942
943 2008-10-09 Maarten Brock <sourceforge.brock AT dse.nl>
944
945         * debugger/mcs51/break.c: bugfix from patch 1989966, thanks Risto Huotari
946         * debugger/mcs51/simi.c: bugfix from patch 1989972, thanks Risto Huotari
947         * device/lib/_strcspn.c: fixed bug 2140931
948
949 2008-10-06 Raphael Neider <rneider AT web.de>
950
951         * device/include/pic16/stdio.h,
952           device/lib/pic16/libc/stdio/putchar.c: putchar should not be
953           declared __naked for convenience, named all arguments
954         * device/lib/pic16/libc/stdio/strmgpsim.c,
955           device/lib/pic16/libc/stdio/strmmssp.c,
956           device/lib/pic16/libc/stdio/strmusart.c: cosmetic changes
957
958         * src/pic16/pcode.c (createReachingDefinitions): avoid segfault on
959           empty __naked functions,
960         * (pCodeLabelDestruct, pic16_unlinkpCode, pic16_pCodeUnlink): fix
961           corner cases (unlink first/last pCode in list), reuse more code
962
963 2008-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
964
965         * src/ds390/main.c (_ds390_genInitStartup): added
966         * src/SDCCpeeph.c (getPatternVar): new, added,
967           (labelInRange): fixed bug 2115959
968         * src/mcs51/peeph.def (rules 193.x to 198.x): check for labelInRange
969         * src/SDCCicode.h: added newiTempOperand
970         * src/SDCCcse.c (algebraicOpts): fixed bug for x*-1,
971           added optimizations for 0/x and x/-1, see also patch 2142900
972         * support/regression/tests/onebyte.c (testMul): added test cases
973
974 2008-09-20 Borut Razem <borut.razem AT siol.net>
975
976         * src/pic16/glue.c:
977           definition of absolute address symbols without initial value,
978           fixed SDCC crash "do not know how to intialize symbol"
979
980 2008-09-16 Maarten Brock <sourceforge.brock AT dse.nl>
981
982         * device/lib/z80/mul.s (__mulsuchar_rrx_s, __muluschar_rrx_s),
983         * device/lib/z80/div.s (__divsuchar_rrx_s, __modsuchar_rrx_s,
984           __divuschar_rrx_s, __moduschar_rrx_s): added mixed signedness versions
985         * device/lib/z80/stubs.s: added stubs for above functions
986         * src/SDCCopt.c (convilong),
987         * src/SDCCsymt.c (initCSupport): fixed bug 1900961
988         * src/SDCCsymt.h (__muldiv): enlarged for mixed signedness
989         * src/z80/main.c (_hasNativeMulFor): fixed bug, I think
990         * support/regression/tests/onebyte.c: enabled all tests for z80
991
992 2008-09-15 Borut Razem <borut.razem AT siol.net>
993
994         * device/include/pic16/stdio.h, device/lib/pic16/libc/stdio/streams.c,
995           device/lib/pic16/libc/stdio/printf.c,
996           device/lib/pic16/libc/stdio/strmusart.c,
997           device/lib/pic16/libc/stdio/printf_tiny.c,
998           device/lib/pic16/libc/stdio/sprintf.c,
999           device/lib/pic16/libc/stdio/strmgpsim.c,
1000           device/lib/pic16/libc/stdio/putchar.c,
1001           device/lib/pic16/libc/stdio/fprintf.c,
1002           device/lib/pic16/libc/stdio/strmmssp.c,
1003           device/device/lib/pic16/libc/stdio/vprintf.c,
1004           device/lib/pic16/libc/stdio/printf_small.c,
1005           device/lib/pic16/libc/stdio/vsprintf.c,
1006           device/lib/pic16/libc/stdio/strmputchar.c,
1007           device/lib/pic16/libc/Makefile.am,
1008           device/lib/pic16/libc/Makefile.in:
1009           *printf now returns int, puchar.c moved from stdlib to stdio,
1010           *printf format parameter type changed from char * to const char *,
1011           added GNU link excetion text to library source files,
1012           applyed GNU coding style, removed useless svn ids,
1013           added BINARY_SPECIFIER macro re-enables the use of the removed 'b'
1014           binary specifier: "%b", "%hb" and "%lb"
1015         * device/lib/pic16/libc/stdio/vfprintf.c:
1016           applied patch #2044424: PIC16: vfprintf
1017           thanks Mauro Giachero
1018         * support/regression/tests/bug1057979.c:
1019           removed old pic16 sprintf specifics
1020         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.4
1021         * doc/sdccman.lyx: documented 'b' binary format specifier removal
1022
1023 2008-09-15 Raphael Neider <rneider AT web.de>
1024
1025         * src/pic16/device.c (pic16_dump_usection): force udata sections
1026           into the addressable range (0..0xFFF), workaround for a gpsim
1027           bug preventing simulation of regtest bug1750318
1028         * src/pic16/ralloc.c (deassignLRs): cosmetic changes,
1029           (serialRegAssign): fixed regtest bug-971834,
1030           (pic16_packRegisters): avoid null-pointer dereference
1031
1032 2008-09-14 Raphael Neider <rneider AT web.de>
1033
1034         * src/pic16/gen.c, src/pic16/ralloc.c: use
1035           SYM_SPIL_LOC/SPIL_LOC macros, no functional changes
1036         * src/pic16/ralloc.c (rematStr): reimplemented, fixes #1818857
1037
1038 2008-09-12 Borut Razem <borut.razem AT siol.net>
1039
1040         * support/regression/fwk/testfwk.h:
1041           define pdata as data for pic16 target
1042           thanks Mauro Giachero
1043
1044 2008-09-11 Borut Razem <borut.razem AT siol.net>
1045
1046         * support/regression/tests/bug-221100.c, support/regression/shifts.c,
1047           support/regression/absolute.c:
1048           applied patch #2105615: Some PIC16 testcase fixlets
1049           thanks Mauro Giachero
1050
1051 2008-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
1052
1053         * src/z80/gen.c (genCmpGt, genCmpLt): fixed bug 2094505
1054         * support/regression/tests/bug2094505.c: new, added
1055
1056 2008-09-07 Borut Razem <borut.razem AT siol.net>
1057
1058         * src/SDCCglue.c, src/SDCCast.c:
1059           fixed throw of "excess elements" warning for char arrays
1060         * support/regression/tests/nullstring.c:
1061           disable warning about excess elements in array of chars initializer
1062
1063 2008-09-07 Maarten Brock <sourceforge.brock AT dse.nl>
1064
1065         * as/z80/aslist.c (lstsym): changed old K&R to ANSI
1066         * src/SDCCicode.c (geniCodeCritical): fixed bug for hc08
1067         * src/z80/gen.c (genCritical, genEndCritical): fixed bug 2077267
1068         * support/regression/tests/bug2077267.c: new, added
1069
1070 2008-09-05 Raphael Neider <rneider AT web.de>
1071
1072         * configure.in, Makefile.common.in: add support for ccache,
1073           remove spurious $VERSION output, detect doc-tools even without
1074           --enable-doc to facilitate later manual doc-builds, minor cleanup
1075         * configure: regenerated
1076
1077         * doc/Makefile.in: quieten pdflatex, makeindex, and latex2html,
1078           avoid races in parallel VPATH builds
1079         * doc/clean.mk: remove .lyx files in the builddir for VPATH builds
1080         * doc/sdccman.lyx: mention --without-ccache configure option
1081
1082 2008-09-01 Raphael Neider <rneider AT web.de>
1083
1084         * src/pic16/gen.c (pic16_derefPtr): handle CPOINTERs as well
1085         * (genConstPointerGet): fix reading bitfields from __code space
1086         * src/pic16/glue.c (pic16_printIvalBitFields): correctly mask
1087           bitfield initializers (fix regression test bug1856409.c)
1088         * (pic16_printIvalCharPtr,pic16_printIvalPtr): generalized to support
1089           arbitrary sizes
1090
1091 2008-08-31 Raphael Neider <rneider AT web.de>
1092
1093         * src/pic16/gen.c (genAssign): removed useless compiler output
1094         * (genPointerGet,genPointerSet,genCast),
1095           src/pic16/glue.c (pic16_printGPointerType):
1096           also handle PPOINTERs just to avoid spurious asserts
1097         * (pic16_printIvalType,pic16_printIvalBitFields):
1098           generalized to arbitrary type/bitfield sizes, allows compilation of
1099           regression test bug-1981238.c
1100         * (pic16_printIvalChar): fix regression test structflexarray.c
1101         * (pic16_printIvalArray): avoid SIGSEGV on uninitialized strings
1102           in initialized structs and fix #1843745
1103         * (pic16_printIvalStruct): always output initializers for all fields,
1104           even those not explicitly given, fixes zeropad.c regression test
1105         * (pic16_printIvalUnion): fix union initializers (bug1426356.c,
1106           #2073635, #1567098, and #1485812)
1107         * src/pic16/main.c (_pic16_keywords): remove unsupported 'pdata'
1108
1109 2008-08-31 Borut Razem <borut.razem AT siol.net>
1110
1111         * support/regression/tests/bug-895992.c,
1112           support/regression/tests/onebyte.c:
1113           enabled pic16 regression testing since the bugs
1114           1511794: pic16: regression test bug-895992.c fails
1115           1444425: onebyte.c regression tes fails on pic16
1116           are fixed, probably by fixing
1117           2048464: PIC16: fix genUminus - addresses not.c regression test
1118         * src/SDCCsymt.c, src/SDCCglue.c,
1119           support/regression/tests/bug-1981238.c:
1120           applied patch 2076664: fix #1981238 + SIGSEGV in SDCCGlue.c
1121           thanks to RvS
1122
1123 2008-08-30 Borut Razem <borut.razem AT siol.net>
1124
1125         * support/cpp/libcpp/files.c: SDCPP synchronized with GCC CPP
1126           release version 4.3.2
1127
1128 2008-08-24 Raphael Neider <rneider AT web.de>
1129
1130         * device/lib/pic16/configure, device/lib/pic16/configure.ac:
1131           always use the sdcc from the current build tree (ignore $CC from
1132           the environment, fixes compile farm builds)
1133         * device/lib/Makefile.in: rename .a into .lib for compatibility,
1134           remove more build products from install directory
1135         * sdcc/src/pic16/main.c (_pic16_linkEdit,_pic16_finaliseOptions)
1136         * sdcc/support/scripts/sdcc.nsi: revert to .lib extension for libs
1137
1138 2008-08-24 Borut Razem <borut.razem AT siol.net>
1139
1140         * src/SDCC.y: applied patch
1141           2050245: Fix # 1963382
1142           for bug
1143           1963382: Listing File - C file comment is incorrect
1144           thanks to RvS
1145
1146 2008-08-23 Borut Razem <borut.razem AT siol.net>
1147
1148         * src/pic16/gen.c: applied patch
1149           2048464: PIC16: fix genUminus - addresses not.c regression test
1150           thanks Mauro Giachero
1151
1152 2008-08-22 Borut Razem <borut.razem AT siol.net>
1153
1154         * device/lib/pic16/configure, device/lib/pic16/configure.ac,
1155           src/pic16/main.c: allow spaces in gpasm and gplink paths
1156
1157 2008-08-15 Philipp Klaus Krause <pkk AT spth.de>
1158
1159         * src/z80/peep.c,
1160         * src/z80/peeph-z80.def: minor peephole improvement
1161
1162 2008-08-15 Raphael Neider <rneider AT web.de>
1163
1164         * src/z80/gen.c (_vemit2): suppress compiler warning
1165
1166         * src/pic/*.[ch]: make proper use of header files and avoid
1167           ad-hoc extern declarations, mark module-local helpers 'static',
1168           removed dead/replaced code, no functional changes
1169         * src/pic16/pcode.c: disentangled from pic14 backend
1170
1171 2008-08-14 Philipp Klaus Krause <pkk AT spth.de>
1172
1173         * src/z80/gen.c: fixed #2051348
1174         * support/regression/tests/bug-2051348.c: regression test for #2051348
1175
1176 2008-08-10 Raphael Neider <rneider AT web.de>
1177
1178         * configure.in,
1179         * Makefile.common.in: export PACKAGE for $docdir,
1180           fixes #1957036, avoid some "underquoted definition" warnings
1181         * configure: regenerated
1182
1183 2008-08-10 Raphael Neider <rneider AT web.de>
1184
1185         * device/lib/pic16/**: build pic16 library using autotools for
1186           improved dependency tracking
1187
1188         * device/lib/Makefile.in,
1189         * src/pic16/main.c,
1190         * support/scripts/sdcc.nsi: adapt to changes in filenames (s/.lib/.a/)
1191
1192 2008-08-10 Raphael Neider <rneider AT web.de>
1193
1194         * src/pic/pcode.c (ReuseReg): do not overlay the registers used for
1195           local variables if --nooverlay is given, workaround for #2023121
1196
1197 2008-08-08 Raphael Neider <rneider AT web.de>
1198
1199         * src/pic16/genarith.c (genAddLit): fix structure access (#1888004)
1200
1201 2008-08-08 Raphael Neider <rneider AT web.de>
1202
1203         * src/pic/pcoderegs.c,
1204         * src/pic/pcode.c,
1205         * src/pic16/pcode.c: replace own SAFE_snprintf with common SNPRINTF
1206
1207 2008-08-07 Borut Razem <borut.razem AT siol.net>
1208
1209         * src/SDCCval.c, src/SDCCmain.c, src/SDCC.lex,
1210           device/lib/pic/Makefile.rules, device/lib/ds390/Makefile.in,
1211           device/lib/ds400/Makefile.in, device/lib/hc08/Makefile.in,
1212           support/cpp/libcpp/lex.c,  doc/sdccman.lyx:
1213           applied modified patch 2038174: Add support for binary constants v2
1214           thanks Mauro Giachero
1215         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.3
1216
1217 2008-08-04 Raphael Neider <rneider AT web.de>
1218
1219         * doc/sdccman.lyx,
1220         * src/pic16/device.h,
1221         * src/pic16/glue.c,
1222         * src/pic16/main.c: enable --optimize-goto by default
1223
1224         * device/lib/pic16/Makefile.common.in: suppress removed option
1225
1226         * src/pic16/gen.c,
1227         * src/pic16/genutils.c: avoid too long relative branches (#2031890)
1228
1229 2008-07-30 Borut Razem <borut.razem AT siol.net>
1230
1231         * src/pic16/device.c, src/pic16/glue.c, src/pic16/pcode.c:
1232           applied patch 22032433: PIC16: fix constant strings,
1233           thanks Mauro Giachero
1234
1235 2008-07-29 Borut Razem <borut.razem AT siol.net>
1236
1237         * src/pic16/gen.c: applied patches:
1238           2030306: [1/3] PIC16: fix failing rotate.c tests on 16-bit variables,
1239           2030307: [2/3] PIC16: fix failing rotate.c tests for 32-bit var (1),
1240           2030310: [3/3] PIC16: fix failing rotate.c tests for 32-bit var (2),
1241           thanks Mauro Giachero
1242
1243 2008-07-13 Philipp Klaus Krause <pkk AT spth.de>
1244
1245         * src/port.h: Fixed typo in comment
1246
1247 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
1248
1249         * src/z80/mappings.i: Implemented RFE #1919415
1250         * src/z80/peeph-z80.def: Implemented RFE #1919415, #1861376,
1251           #1880202, #1914434, prepared for RFE #1703943
1252
1253 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
1254
1255         * src/z80/peeph.def,
1256         * src/z80/peeph-z80.def,
1257         * src/z80/peeph-gbz80.def: separate Z80 from GBZ80 peepholes in
1258           preparation for Z80 peephole improvements
1259
1260 2008-06-21 Raphael Neider <rneider AT web.de>
1261
1262         * device/include/pic16/pic18f66j60.h,
1263         * device/include/pic16/pic18f66j65.h,
1264         * device/include/pic16/pic18f67j60.h,
1265         * device/include/pic16/pic18f86j60.h,
1266         * device/include/pic16/pic18f86j65.h,
1267         * device/include/pic16/pic18f87j60.h,
1268         * device/include/pic16/pic18f96j60.h,
1269         * device/include/pic16/pic18f96j65.h,
1270         * device/include/pic16/pic18f97j60.h,
1271         * device/lib/pic16/libdev/pic18f66j60.c,
1272         * device/lib/pic16/libdev/pic18f66j65.c,
1273         * device/lib/pic16/libdev/pic18f67j60.c,
1274         * device/lib/pic16/libdev/pic18f86j60.c,
1275         * device/lib/pic16/libdev/pic18f86j65.c,
1276         * device/lib/pic16/libdev/pic18f87j60.c,
1277         * device/lib/pic16/libdev/pic18f96j60.c,
1278         * device/lib/pic16/libdev/pic18f96j65.c,
1279         * device/lib/pic16/libdev/pic18f97j60.c,
1280         * device/include/pic16/pic16devices.txt,
1281         * device/include/pic16/pic18fregs.h,
1282         * device/lib/pic16/pics.all: added new devices
1283
1284         * device/include/pic16/adc.h,
1285         * device/lib/pic16/libio/adc/adcbusy.c,
1286         * device/lib/pic16/libio/adc/adcopen.c,
1287         * device/lib/pic16/libio/adc/adcsetch.c,
1288         * device/lib/pic16/libio/i2c/i2copen.c,
1289         * device/lib/pic16/libio/usart/uopen.c: adapted to new devices,
1290           all changes from a patch by Anton Strobl
1291
1292 2008-06-12 Borut Razem <borut.razem AT siol.net>
1293
1294         * sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/bp.cc,
1295           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
1296           sim/ucsim/z80.src/z80cl.h, sim/ucsim/z80.src/z80.cc,
1297           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
1298           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
1299           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/uc390.cc,
1300           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/uc390cl.h,
1301           sim/ucsim/avr.src/avrcl.h, sim/ucsim/avr.src/avr.cc:
1302           fixed bug 1990586: s51 simulator, uc::disass() unimplemented
1303           by applying the modified patch from Risto Huotari
1304
1305 2008-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
1306
1307         * .version,
1308         * doc/sdccman.lyx: bumped sdcc version to 2.8.2
1309         * src/ds390/gen.c (aopPutUsesAcc, genAddrOf): fixed bug 1015185
1310         * src/mcs51/gen.c (genNearPointerGet, genNearPointerSet): fixed bug 1938300
1311         * support/regression/tests/bug1938300.c: new, added
1312
1313 2008-06-03 Maarten Brock <sourceforge.brock AT dse.nl>
1314
1315         * device/include/asm/ds390/features.h,
1316         * device/include/asm/mcs51/features.h,
1317         * device/include/mcs51/regc515c.h: inserted LGPL notice
1318
1319 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1320
1321         * device/lib/gbz80/div.s,
1322         * device/lib/z80/div.s: fixed bug 1904314 by applying a modified part of
1323           patch 1597883, Thanks Robert Ramey
1324
1325 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1326
1327         * src/SDCCast.c (createIvalType, createIvalStruct, createIvalArray,
1328           createIvalCharPtr, createIvalPtr, createIval),
1329         * src/SDCCval.h
1330         * src/SDCCval.c (convertIListToConstList, list2expr): handle incomplete
1331           initializers for local auto variables
1332         * support/regression/tests/zeropad.c: added testcase for auto initializers
1333
1334 2008-05-26 Raphael Neider <rneider AT web.de>
1335
1336         * device/lib/pic16/startup/crt0.c,
1337         * device/lib/pic16/startup/crt0i.c,
1338         * device/lib/pic16/startup/crt0iz.c: clean up, make use of access bank
1339           explicit, fixed curr_entry loop for >= 256 initializer records,
1340           removed debug code (write to 0xf7e)
1341
1342 2008-05-25 Raphael Neider <rneider AT web.de>
1343
1344         * device/include/pic/pic16f627a.h,
1345         * device/include/pic/pic16f628a.h,
1346         * device/include/pic/pic16f648a.h: added missing ports
1347
1348 2008-05-20 Maarten Brock <sourceforge.brock AT dse.nl>
1349
1350         * device/include/float.h: added __INFINITY
1351         * device/lib/_fsadd.c: handle overflows
1352         * device/lib/_fsmul.c,
1353         * device/lib/_fsdiv.c: use __INFINITY
1354         * device/lib/_fseq.c,
1355         * device/lib/_fsneq.c: handle -0.0
1356         * sim/ucsim/s51.src/uc89c51r.cc,
1357         * sim/ucsim/s51.src/uc89c51rcl.h: fixed bug 1385430
1358         * sim/ucsim/sim.src/hwcl.h: */* confuses VC
1359         * src/mcs51/gen.c (genSend): fixed bug with --xstack
1360         * support/regression/ports/mcs51-xstack-auto/spec.mk: print floats
1361         * support/regression/tests/snprintf.c: test bug with --xstack
1362
1363 2008-05-19  Philipp Klaus Krause <pkk AT spth.de>
1364
1365         * src/SDCCpeeph.c (callFuncByName):
1366           Support nested parenthesis in peephole function arguments (#1967300)
1367
1368 2008-05-19 Raphael Neider <rneider AT web.de>
1369
1370         * src/pic16/gen.c (pic16_emitpLabel,pic16_emitpLabelFORCE):
1371           fixed duplicate labels (#1911325)
1372
1373 2008-05-19 Raphael Neider <rneider AT web.de>
1374
1375         * src/regression/empty.c: suppress warning
1376         * src/regression/pointer1.c: enabled index_by_pointer()
1377         * src/regression/inline.c: now works for pic16 as well
1378
1379         * src/pic16/device.c: include dbuf declarations
1380         * src/pic16/device.h: removed obsolete prototypes
1381
1382         * src/pic16/gen.c, src/pic16/gen.h: moved generic pointer tags
1383         * src/pic16/glue.c: made purely local functions static,
1384           (pic16_printGPointerType, pic16_printIvalCharPtr,
1385           pic16_printIvalFuncPtr, pic16_printIvalPtr): fixed initialized
1386           generic pointers' tags (#1961866)
1387
1388         * src/pic16/pcode.c (assignValnums): optimize literal assignments
1389
1390 2008-05-19 Borut Razem <borut.razem AT siol.net>
1391
1392         * support/scripts/sdcc.nsi: remove uninstall.exe after uninstallation,
1393           fixed typo, uninstall include/pic16/pic16devices.txt
1394
1395 2008-05-18 Borut Razem <borut.razem AT siol.net>
1396
1397         * support/Utils/dbuf_string.[ch]: added dbuf_chomp(),
1398           the buffer is null terminated
1399         * src/device/pic16.c:
1400           applied modified patch 1965676: Patch for Win32 16 bit PIC
1401         * sdcc_vc_in.h: defined YY_NO_UNISTD_H
1402
1403 2008-05-16 Maarten Brock <sourceforge.brock AT dse.nl>
1404
1405         * src/SDCC.lex (check_type),
1406         * src/SDCC.y (type_specifier2 TYPE_NAME): fixed bug 1925942
1407         * as/hc08/clean.mk,
1408         * as/mcs51/clean.mk,
1409         * as/z80/clean.mk: also clean *.dep
1410         * device/lib/pic16/libsdcc/stack/Makefile,
1411         * sim/ucsim/libtool: removed as they are rebuild by configure
1412         * src/clean.mk: removed izt, so Makefile is not deleted for distclean
1413
1414 2008-05-13 Maarten Brock <sourceforge.brock AT dse.nl>
1415
1416         * src/SDCCast.c (fixupInline, createFunction): save currBlockno in
1417           fixupInline instead of createFunction to fix bug 1864577
1418           (inlineFindMaxBlockno): removed, use global blockNo
1419         * src/SDCCglobl.h: added blockNo
1420         * src/z80/peep.c,
1421         * src/z80/peep.h: modified properties
1422         * support/regression/tests/bug1864577.c: new, added
1423
1424 2008-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
1425
1426         * as/mcs51/asdata.c,
1427         * as/mcs51/asm.h: added org_cnt
1428         * as/mcs51/asmain.c (main, asmbl): fixed bug 1957716, changed old K&R to ANSI
1429         * as/mcs51/asout.c: changed old K&R to ANSI
1430         * as/mcs51/Makefile.in: use common identifiers
1431         * as/hc08/asdata.c,
1432         * as/hc08/asexpr.c,
1433         * as/hc08/asm.h,
1434         * as/hc08/asmain.c,
1435         * as/hc08/asout.c,
1436         * as/hc08/Makefile.bcc,
1437         * as/hc08/Makefile.in: synchronized with as/mcs51/*
1438         * sdcc_vc_in.h: added define __func__
1439         * src/SDCCast.c (expandInlineFuncs): applied patch 1957148 to fix bug 1717305,
1440           Thanks Ruud van Silfhout
1441         * support/regression/tests/bug1717305.c: new, added
1442
1443 2008-05-05 Borut Razem <borut.razem AT siol.net>
1444
1445         * support/regression/Makefile.in,
1446           support/regression/ports/ds390/spec.mk,
1447           support/regression/ports/hc08/spec.mk,
1448           support/regression/ports/mcs51-common/spec.mk,
1449           support/regression/ports/pic14/spec.mk,
1450           support/regression/ports/pic16/spec.mk,
1451           support/regression/ports/ucz80/spec.mk,
1452           support/regression/ports/z80/spec.mk:
1453           added INC_DIR and LIBDIR paths
1454         * src/ds390/gen.c: removed duplicated selicolon
1455
1456 2008-05-04 Borut Razem <borut.razem AT siol.net>
1457
1458         * support/regression/Makefile.in,
1459           support/regression/fwk/lib/testfwk.c,
1460           support/regression/ports/ds390/spec.mk,
1461           support/regression/ports/hc08/spec.mk,
1462           support/regression/ports/mcs51-common/spec.mk,
1463           support/regression/ports/mcs51-large/spec.mk,
1464           support/regression/ports/mcs51-medium/spec.mk,
1465           support/regression/ports/mcs51-small/spec.mk,
1466           support/regression/ports/mcs51-stack-auto/spec.mk,
1467           support/regression/ports/mcs51-xstack-auto/spec.mk,
1468           support/regression/ports/pic14/spec.mk,
1469           support/regression/ports/pic16/spec.mk,
1470           support/regression/ports/ucz80/spec.mk:
1471           added possibility to define the sdcc binary directory SDCC_BIN_PATH
1472           used to run regeression tests
1473
1474 2008-05-01 Raphael Neider <rneider AT web.de>
1475
1476         * doc/sdccman.lyx, support/scripts/inc2h-pic16.pl: updated list of
1477           supported devices and instructions to add new ones
1478
1479 2008-05-01 Raphael Neider <rneider AT web.de>
1480
1481         * device/include/pic16/adc.h,
1482           device/lib/pic16/libio/adc/adcbusy.c,
1483           device/lib/pic16/libio/adc/adcopen.c,
1484           device/lib/pic16/libio/adc/adcsetch.c: support old 18f242 and new
1485           18f2455 style ADC devices, based on patch #1776197
1486         * device/lib/pic16/libio/adc/adcclose.c,
1487           device/lib/pic16/libio/adc/adcconv.c,
1488           device/lib/pic16/libio/adc/adcread.c: cosmetic changes
1489         * device/include/pic16/{pic18f2331.h,pic18f2431.h},
1490           device/lib/pic16/libdev/{pic18f2331.c,pic18f2431.c}: reuse 18f4331
1491         * device/include/pic16/pic18f4431.h,
1492           device/lib/pic16/libdev/pic18f4431.c: remove outdated comments
1493         * device/lib/pic16/libio/adc.ignore: forbid unhandled devices
1494
1495 2008-05-01 Raphael Neider <rneider AT web.de>
1496
1497         * src/pic16/device.h: removed unused field PIC16_device.sfrRange,
1498           moved xinst flag into pic16_options_t
1499         * src/pic16/device.c (default_device, pic16_list_devices,
1500           pic16_find_device): removed references to sfrrange
1501         * src/pic16/gen.c (genFunction),
1502           src/pic16/glue.c (pic16initialComments),
1503           src/pic16/main.c (pic16_optionsTable),
1504           src/pic16/ralloc.c (newReg, pic16_writeUsedRegs): updated references
1505           to xinst
1506         * device/include/pic16/pic16devices.txt: removed sfrrange lines
1507
1508 2008-04-29 Raphael Neider <rneider AT web.de>
1509
1510         * src/pic16/devices.inc,
1511           device/include/pic16/pic16devices.txt: replaced compiled-in list
1512           of devices with a variant parsed at runtime
1513         * src/pic16/device.c: added support for parsing pic16devices.txt,
1514           clean up
1515         * src/pic16/device.h: removed (now) unused fields from PIC_device
1516         * src/pic16/main.c: removed #pragma maxram,
1517           (_pic16_initPaths): removed bogus generation of search paths,
1518           setup the port proper only after the search paths (for
1519           pic16devices.txt) are set up,
1520           (_pic16_finaliseOptions): moved processor dependant code here
1521           from _pic16_initPaths(), clean up
1522         * src/pic16/ralloc.c (pic16_init_stack),
1523         * src/pic16/ralloc.h,
1524         * src/pic16/pcode.c: clean up
1525         * device/include/Makefile.in,
1526           support/scripts/sdcc.nsi: also install/package pic16devices.txt
1527         * support/scripts/inc2h-pic16.pl: updated instructions
1528
1529 2008-04-29 Raphael Neider <rneider AT web.de>
1530
1531         * device/include/pic16/{pic18f2480.h, pic18f2580.h, pic18f4423.h,
1532           pic18f4480.h, pic18f4523.h, pic18f4580.h, pic18f6585.h, pic18f8585.h},
1533           device/lib/pic16/libdev/{pic18f2480.c, pic18f2580.c, pic18f4423.c,
1534           pic18f4480.c, pic18f4523.c, pic18f4580.c, pic18f6585.c, pic18f8585.c}:
1535           added missing family members and 18f2480/2580/4480/4580 family
1536         * device/include/pic16/{pic18f2423.h, pic18f2523.h}: use 18f4523.h
1537         * device/include/pic16/pic18f2525.h: use 18f4620.h
1538         * device/include/pic16/pic18f6680.h: use 18f8680.h
1539         * device/include/pic16/pic18fregs.h,
1540           device/lib/pic16/pics.all,
1541           src/pic16/devices.inc: add new devices
1542         * device/lib/pic16/libdev/{pic18f2423.c, pic18f2523.c}: use 18f4523.c
1543         * device/lib/pic16/libdev/pic18f2525.c: use 18f4620.c
1544         * device/lib/pic16/libdev/pic18f6680.c: uso 18f8680.c
1545         * device/lib/pic16/libio/{adc.ignore, i2c.ignore, usart.ignore}:
1546           prevent attempting to build the libio for some new devices
1547
1548 2008-04-29 Raphael Neider <rneider AT web.de>
1549
1550         * debugger/mcs51/Makefile.in: fixed paths to sources
1551
1552 2008-04-25 Borut Razem <borut.razem AT siol.net>
1553
1554         * as/link/lklibr.c: moved from as/link/z80/lklibr.c
1555         * as/link/hc08/lklibr.c, as/link/mcs51/lklibr.c: deleted
1556         * as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
1557         * as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
1558           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
1559           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
1560           as/link/z80/linkz80.dsp: lklibr.c moved
1561         * doc/INSTALL.txt: binary archives in bz2 format
1562         * support/cpp/auto-host_vc_in.h: CPP2 replaced with CPP
1563
1564 2008-04-23 Maarten Brock <sourceforge.brock AT dse.nl>
1565
1566         * src/SDCCglue.c (printIvalType, printIvalBitFields): fixed bug 1856409
1567         * support/regression/tests/bug1856409.c: new, added
1568
1569 2008-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
1570
1571         * src/z80/peep.c,
1572         * src/mcs51/peep.c: Use werror for error messages.
1573         * src/SDCCicode.c (geniCodeConditional),
1574         * src/SDCCsymt.c (structElemType): fixed bug 1839321
1575         * src/z80/Makefile.bcc,
1576         * src/z80/z80.dsp: added src/z80/peep.c/h
1577         * support/regression/tests/bug1839321.c: new, added
1578
1579 2008-04-20 Raphael Neider <rneider AT web.de>
1580
1581         * device/include/pic16/pic18f2455.h: added bitfields for port C
1582
1583 2008-04-20 Philipp Klaus Krause <pkk AT spth.de>
1584
1585         * src/z80/peep.c: Use werror for error messages.
1586
1587 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
1588
1589         * src/z80/peep.h (declaration of notUsed()),
1590         * src/z80/main.c (enabled notUsed() for z80 port, documented z80_port
1591           struct),
1592         * src/z80/z80.h (added dependency on peep.h),
1593         * src/z80/peep.c (definition of notUsed()): Implemented RFE #1880202
1594           for Z80.
1595
1596 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
1597
1598         * src/SDCCpeeph.c (added support for notUsed()),
1599         * src/mcs51/main.c (added dependency on peep.h, documented mcs51_port
1600           struct),
1601         * src/port.h (removed dependency on mcs51/peep.h, added declaration
1602           for notUsed()): Implemented generic (that is not port-specific) part
1603           of RFE #1880202.
1604
1605 2008-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
1606
1607         * as/link/mcs51/lkmem.c (summary2): fixed bug 1796077
1608         * device/lib/libsdcc.lib,
1609         * device/lib/Makefile.in,
1610         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1611         * device/lib/calloc.c: renamed to _calloc.c
1612         * device/lib/free.c: renamed to _free.c
1613         * device/lib/malloc.c: renamed to _malloc.c
1614         * device/lib/realloc.c: renamed to _realloc.c
1615         * src/ds390/gen.c (aopGet, aopPut, genPlusBits, genDataPointerSet,
1616           genNearPointerSet, genPagedPointerSet): synchronized with mcs51/gen.c
1617         * src/ds390/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq, ifxForOp,
1618           genAnd, genOr, genXor, genIfx, gen390Code): fixed bug 1509084
1619         * src/mcs51/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq,
1620           ifxForOp, genAnd, genOr, genXor, genNearPointerGet,
1621           genPagedPointerGet, genFarPointerGet, genCodePointerGet,
1622           genGenPointerGet, genIfx, gen51Code): fixed bug 1509084
1623         * src/ds390/gen.c,
1624         * src/mcs51/gen.c: throughout cosmetic changes for syncing both
1625         * src/SDCCsymt.h: updated IS_OP_RUONLY, IS_OP_ACCUSE
1626         * support/regression/tests/bug1509084.c: new, added
1627
1628 2008-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
1629
1630         * device/include/mcs51/cc2510fx.h: added _XPAGE
1631         * device/include/mcs51/compiler.h: cosmetic changes
1632
1633 2008-03-31 Maarten Brock <sourceforge.brock AT dse.nl>
1634
1635         * sdcc.dsw: adapted for moved cpp2, added dependency for as_z80 on
1636           config
1637
1638 2008-03-31 Borut Razem <borut.razem AT siol.net>
1639
1640         * support/cpp2 renamed to support/cpp
1641         * support/cpp2/libiberty/filenames.h, support/cpp2/libiberty/hex.c,
1642           support/cpp2/libiberty/splay-tree.c,
1643           support/cpp2/libiberty/splay-tree.h, support/cpp2/libcpp/macro.c,
1644           support/cpp2/libcpp/directives.c,
1645           support/cpp2/libcpp/include/cpplib.h,
1646           support/cpp2/libcpp/include/symtab.h,
1647           support/cpp2/libcpp/include/line-map.h,
1648           support/cpp2/libcpp/line-map.c, support/cpp2/libcpp/files.c,
1649           support/cpp2/libcpp/init.c, support/cpp2/libcpp/traditional.c,
1650           support/cpp2/libcpp/expr.c, support/cpp2/libcpp/internal.h,
1651           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/system.h,
1652           support/cpp2/libcpp/charset.c: SDCPP synchronized with GCC CPP
1653           release version 4.3.0
1654         * configure.in, configure, Makefile.in, Makefile.bcc:
1655           adapted for moved cpp2
1656
1657 2008-03-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1658
1659         * device/include/hc08/mc68hc908jkjl.h: committed fix for bug #1929739,
1660           thanks Alejandro Pustowka <alejo_pustowka AT yahoo.com.mx>
1661
1662 2008-03-30 Maarten Brock <sourceforge.brock AT dse.nl>
1663
1664         * src/SDCCloop.c (loopInvariants): applied fix for bug 1717943, thanks
1665           Robert Larice
1666         * support/regression/tests/bug1717943.c: new, added
1667
1668 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1669
1670         * src/z80/gen.c (assignResultValue): Reverted reversal of order of
1671           bytewise return value assignments introduced in last commit.
1672
1673 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1674
1675         * src/z80/gen.c (emitDebug, assignResultValue, genPlus, genMinus,
1676           genMult, genJumpTab):
1677           Use 16-bit instructions for addition in some additional cases,
1678           implemented RFEs #1914251, #1914245, #1922090, #1921382, #1918323.
1679
1680 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1681
1682         * src/z80/ralloc.c (serialRegAssign, allocReg, tryAllocatingRegPair):
1683           Implemented RFE #1921450, changed some debug messages.
1684
1685 2008-03-30 Borut Razem <borut.razem AT siol.net>
1686
1687         * Small Device C Compiler 2.8.0 released
1688         * .version, doc/sdccman.lyx: changed sdcc version to 2.8.1
1689         * support/scripts/sdcc.nsi: added finish page; this version
1690           was used for 2.8.0 release
1691         * doc/knownbugs.html: removed; magically generated by the build
1692           process using gen_known_bugs.pl from now on
1693
1694 2008-03-23 Borut Razem <borut.razem AT siol.net>
1695
1696         * src/pic/gen.h: Q&D solution for the bug, found by Jim Paris
1697           and reverted it, since it was already fixed by Raphael ;-)
1698         * doc/knownbugs.html: updated for RC2
1699
1700 2008-03-22 Raphael Neider <rneider AT web.de>
1701
1702         * src/SDCCicode.c (getPtrType): avoid unnecessary extra assignments
1703           for PIC16 targets
1704
1705 2008-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
1706
1707         * src/mcs51/gen.c (adjustArithmeticResult): fixed bug 1839299
1708         * support/regression/tests/bug1839277.c: added related testBug1839299
1709
1710 2008-03-21 Maarten Brock <sourceforge.brock AT dse.nl>
1711
1712         * src/ds390/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign),
1713         * src/mcs51/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign):
1714           fixed bug 1839277
1715         * src/mcs51/gen.c: throughout only output hex constants
1716         * src/SDCCicode.c (getPtrType, geniCodeCast): fixed code size regression
1717         * support/regression/tests/bug1839277.c: new, added
1718
1719 2008-03-21 Philipp Klaus Krause <pkk AT spth.de>
1720
1721         * src/z80/ralloc.c (callFuncByName): Used // instead of /**/ to fix
1722           compilation warning about nested comments.
1723
1724 2008-03-20 Maarten Brock <sourceforge.brock AT dse.nl>
1725
1726         * src/SDCCsymt.c (comparePtrType): fixed bug 1921073
1727         * support/regression/tests/bug1921073.c: new, added
1728
1729 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
1730
1731         * src/z80/SDCCpeeph.c.c (callFuncByName):
1732           Commented function parameters.
1733
1734 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
1735
1736         * src/z80/ralloc.c (packRegsForAccUse2):
1737           disabled a broken accumulator packing optimization (fixed #1292721).
1738         * support/regression/tests/bug-1292721: Regression test for #1292721.
1739
1740 2008-03-16 Raphael Neider <rneider AT web.de>
1741
1742         * src/pic/gen.c (SetIrp,genNearPointerGet,genNearPointerSet):
1743           fixed code bloat regression using a variant of patch #1915618
1744
1745 2008-03-16 Borut Razem <borut.razem AT siol.net>
1746
1747         * support/scripts/sdcc.nsi: added section debugging macros, added SDCC
1748           icon, changed startup menu for release distribution, code cleaning,
1749           create url files instead links in startup menu
1750
1751 2008-03-16 Maarten Brock <sourceforge.brock AT dse.nl>
1752
1753         * src/SDCCcse.c (algebraicOpts): fixed bug 1579949
1754         * support/regression/tests/bug1579949.c: new, added
1755
1756 2008-03-14 Paul Stoffregen <paul AT pjrc.com>
1757
1758         * device/lib/printf_fast.c: fixed bug 1255403
1759
1760 2008-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
1761
1762         * doc/sdccman.lyx: enhanced paragraph about bankswitching for mcs51
1763         * src/cdbFile.c (cdbWriteBasicSymbol): fixed bug 1909409 for locals
1764
1765 2008-03-14 Borut Razem <borut.razem AT siol.net>
1766
1767         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated link-xx and aslink
1768           command line options
1769         * as/link/hc08/lkmain.c: converted tabs to spaces so that the usage
1770           is correctly displayed
1771         * as/link/z80/lkmain.c: usage line commented out
1772
1773 2008-03-13 Borut Razem <borut.razem AT siol.net>
1774
1775         * doc/sdccman.lyx: corrected to be able to convert to PDF,
1776           updated the list pf supported pic14 devices
1777
1778 2008-03-12 Maarten Brock <sourceforge.brock AT dse.nl>
1779
1780         * doc/sdccman.lyx: added paragraph about bankswitching for mcs51
1781
1782 2008-03-12 Borut Razem <borut.razem AT siol.net>
1783
1784         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated command line options,
1785           fixed documentation request #1718191
1786         * as/hc80/asmain.c, as/mcs51/asmain.c: added option -c to usage
1787         * doc/sdccman.lyx: added description of --no-std-crt0 gbz80
1788           command line option
1789
1790 2008-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
1791
1792         * src/SDCCast.c (isConformingBody): fixed bug 1505811, thanks Robert Larice
1793         * support/regression/tests/bug1505811.c: new, added
1794
1795 2008-03-09 Raphael Neider <rneider AT web.de>
1796
1797         * device/include/pic16/pic18f2620.h,
1798         * device/include/pic16/pic18f4620.h,
1799         * device/lib/pic16/libdev/pic18f2620.c,
1800         * device/lib/pic16/libdev/pic18f4525.c,
1801         * device/lib/pic16/libdev/pic18f4620.c: merged 18f2525/2620/4525/4620
1802           family to consistently use pic18f4620.[ch], fixes #1832562
1803
1804 2008-03-09 Borut Razem <borut.razem AT siol.net>
1805
1806         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
1807           changed sdcc version to 2.8.0
1808         * knownbugs.html: regenerated
1809         * support/scripts/gen_known_bugs.pl: added number of open bugs
1810
1811 2008-03-09 Raphael Neider <rneider AT web.de>
1812
1813         * src/pic16/gen.c (pic16_mov2w_volatile): NEW, read volatile operands,
1814           (genOr): read volatile operand even if the result is known,
1815           closes #1511838
1816           (genOr,genXor): removed unused legacy code,
1817           (genDummyRead): use pic16_mov2w_volatile()
1818
1819 2008-03-08 Borut Razem <borut.razem AT siol.net>
1820
1821         * src/SDCCglue.c: fixed bug #1864582: multiple definition of char
1822           cons w. --model-large
1823         * support/regression/staticinit.c: added regression test for bug
1824           #1864582
1825
1826 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1827
1828         * src/ds390/gen.c (pushSide, genPcall),
1829         * src/hc08/gen.c (pushSide, genPcall): synchronized with mcs51
1830         * src/mcs51/gen.c: cosmetic changes
1831         * support/regression/fwk/include/testfwk.h: added macro reentrant
1832         * support/regression/tests/bug1908493.c: new, added
1833
1834 2008-03-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1835
1836         * src/SDCCdebug.c:, as/link/lkaomf51.c: Fixed bug 1909409: Pdata in OMF file
1837
1838 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1839
1840         * src/mcs51/gen.c (pushSide, genPcall): fixed bug 1908493
1841         * src/SDCCmain.c (preProcess): removed -DSDCC_PARMS_IN_BANK1 because it is
1842           already set in ds390/main.c and mcs51/main.c
1843
1844 2008-03-07 Raphael Neider <rneider AT web.de>
1845
1846         * src/regression/init0.c: new test for initialized arrays of function
1847           pointers
1848         * src/regression/Makefile: made a bit more flexible, added init0.c
1849         * src/pic/glue.c (emitIvals): hacky fix for initializing from function
1850           pointers, closes #1427663
1851
1852 2008-03-05 Borut Razem <borut.razem AT siol.net>
1853
1854         * dos/sdccman.lyx: docummented predefined macros SDCC_REVISION,
1855           SDCC_PARMS_IN_BANK1, SDCC_FLOAT_REENT and SDCC_INT_LONG_REENT
1856
1857 2008-03-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1858
1859         * support/librarian/sdcclib.c:Added feature request 1908061:
1860           Synchronise sdcclib commands with ar.
1861
1862 2008-03-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1863
1864         * src/SDCCmain.c: added predefined macros SDCC_REVISION (RFE #1907229),
1865           and (depending on corresponding compiler option) SDCC_PARMS_IN_BANK1,
1866           SDCC_FLOAT_REENT, SDCC_INT_LONG_REENT
1867         * device/include/mcs51/compiler.h: removed umlauts, added double
1868           underscore
1869
1870 2008-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
1871
1872         * src/SDCCptropt.c (ptrPseudoSymConvert): fixed bug 1536762
1873         * support/regression/tests/bug1536762.c: new, added
1874         * src/SDCCutil.c,
1875         * src/SDCCutil.h: added getBuildDate()
1876         * src/SDCCmain.c (printVersionInfo),
1877         * src/SDCCglue.c (initialComments): use getBuildDate() instead of
1878           __DATE__
1879         * src/*/ralloc.c: removed IS_OP_RUONLY macro
1880         * src/ds390/ralloc.c (packRegisters),
1881         * src/mcs51/ralloc.c (packRegisters),
1882         * src/z80/ralloc.c (packRegisters): applied fix for bug 1618050, thanks
1883           Robert Larice
1884         * support/regression/tests/bug1618050.c: new, added
1885         * src/SDCCsymt.h: fixed typo in DECLSPEC2TXT
1886         * support/regression/fwk/include/testfwk.h,
1887         * support/regression/tests/bug1838000.c: moved _AUTOMEM and _STATMEM to
1888           testfwk.h
1889
1890 2008-03-04 Raphael Neider <rneider AT web.de>
1891
1892         * src/pic/gen.c: removed unused prototypes, prevent internal errors
1893           on accessing OP_SYM_TYPE(op)
1894         * src/pic/gen.h: removed unused prototype of genMinusDec()
1895         * src/pic/genarith.c (genMinus): cosmetic changes, rewritten to
1896           fix #1876953 (invalid subtraction code), removed unused code
1897
1898 2008-03-03 Raphael Neider <rneider AT web.de>
1899
1900         * src/pic/gen.c,
1901         * src/pic/gen.h,
1902         * src/pic/genarith.c,
1903         * src/pic/ralloc.c,
1904         * src/pic/ralloc.h: removed AOP_R0, AOP_R1, AOP_DPTR, AOP_DPTR2,
1905           AOP_ACC, and *_IDX and adjusted code, removed unused legacy code
1906
1907 2008-03-03 Raphael Neider <rneider AT web.de>
1908
1909         * src/pic/device.c (find_device): search user-specified paths first
1910           for pic14devices.txt, fixes #1900827
1911
1912 2008-03-02 Borut Razem <borut.razem AT siol.net>
1913
1914         * support/scripts/sdcc.nsi: fixed bug in IsNT, LogicLib-isation of
1915           AddToPath and RemoveFromPath
1916
1917 2008-03-01 Borut Razem <borut.razem AT siol.net>
1918
1919         * support/scripts/sdcc.nsi: reverted MULTIUSER page since it didn't
1920           work correctly, added debugging support if -DSDCC.DEBUG command line
1921           option is defined
1922
1923 2008-02-28 Borut Razem <borut.razem AT siol.net>
1924
1925         * doc/sdccman.lyx: cosmetic changes
1926
1927 2008-02-28 Maarten Brock <sourceforge.brock AT dse.nl>
1928
1929         * src/mcs51/ralloc.c (fillGaps): fixed bug 1839671
1930         * doc/sdccman.lyx: fixed unmeant removal of spaces
1931
1932 2008-02-27 Borut Razem <borut.razem AT siol.net>
1933
1934         * support/scripts/sdcc.nsi: corrected installation directory for
1935           current user installation mode
1936         * doc/README.txt: added Philipp Klaus Krause to the developers list
1937
1938 2008-02-27 Maarten Brock <sourceforge.brock AT dse.nl>
1939
1940         * src/mcs51/gen.c (genUnpackBits): don't generate ifxJump, instead
1941           return ifx condition
1942           (genNearPointerGet, genPagedPointerGet, genFarPointerGet,
1943           genCodePointerGet, genGenPointerGet): cleanup aop before generating
1944             ifxJump to fix bug 1838000
1945         * src/SDCCsymt.c (aggregateToPointer): fix problem for xstack
1946         * support/regression/tests/bug1838000.c: new, added
1947         * device/include/mcs51/cc1110.h: new, added, thanks to Pravin Angolkar
1948
1949 2008-02-26 Borut Razem <borut.razem AT siol.net>
1950
1951         * src/SDCCast.c, doc/sdccman.lyx: fixed RFE #1901171: inerger promotion
1952           of casted varargs
1953         * support/scripts/sdcc.nsi: added MULTIUSER page,
1954           NSIS upgraded to version 2.35
1955
1956 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1957
1958         * src/mcs51/ralloc.c (isSpiltOnStack): fixed bug 1565152
1959         * support/regression/tests/bug1565152.c: new, added
1960
1961 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1962
1963         * src/mcs51/gen.c (genPagedPointerSet): fixed bug 1670148
1964         * support/regression/ports/mcs51-xstack-auto/spec.mk: added expf.c
1965         * support/regression/tests/bug1670148.c: new, added
1966
1967 2008-02-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1968
1969         * device/include/mcs51/at89c51ed2.h: fixed bug 1901469.
1970
1971 2008-02-24 Borut Razem <borut.razem AT siol.net>
1972
1973         * src/SDCCast.c, src/SDCCast.h: fixed bug #1874922: explicit typecast
1974           is ineffective for unsigned char parameter
1975
1976 2008-02-24 Maarten Brock <sourceforge.brock AT dse.nl>
1977
1978         * src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
1979         * src/SDCCglue.c (printIvalBitFields): fixed bug 1806631
1980         * support/regression/tests/bitopcse.c: removed hc08 exception, see testfwk.h
1981         * support/Util/MySystem.c (my_system): output errorcode when verbose
1982
1983 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
1984
1985         * src/z80/gen.c (genMult): Rewrote 8-bit multiplication by constant,
1986           implements #1898231
1987
1988 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
1989
1990         * device/lib/z80/mul.s: Rewrote __muluchar_rrx_s, to improve 8-bit mult.,
1991           implements #1896290
1992
1993 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
1994
1995         * src/SDCCast.c (createIvalStruct): fixed bug 1466761
1996
1997 2008-02-21 Borut Razem <borut.razem AT siol.net>
1998
1999         * support/regression/Makefile.in,
2000           support/regression/ports/ds390/spec.mk,
2001           support/regression/ports/hc08/spec.mk,
2002           support/regression/ports/mcs51-common/spec.mk,
2003           support/regression/ports/pic14/spec.mk,
2004           support/regression/ports/pic16/spec.mk,
2005           support/regression/ports/ucz80/spec.mk,
2006           support/regression/ports/xa51/spec.mk:
2007           added CFLAGS when compiling timeout
2008
2009 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
2010
2011         * support/regression/tests/bugs-1596270-1736867.c: Regression test for
2012           #1596270, #1736867
2013
2014 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
2015
2016         * src/SDCClrange.c (findPrevUse): fixed bug 1888147
2017         * support/regression/tests/bug1888147.c: new, added
2018
2019 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
2020
2021         * src/z80/gen.c: fixed bugs #1596270, #1736867
2022
2023 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
2024
2025         * src/z80/gen.c: fixed bug in register pair loading when swapping register
2026           contents, mostly fixes #1596270
2027
2028 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
2029
2030         * src/z80/peeph.def,
2031         * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific
2032           peepholes, fixes #1806565
2033
2034 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
2035
2036         * src/SDCCpeeph.c (operandBaseName): added check for @Ri
2037         * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
2038           fixes bug 1739475, thanks Robert Larice
2039           (rule 271): new, added
2040
2041 2008-02-18 Borut Razem <borut.razem AT siol.net>
2042
2043         * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
2044
2045 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
2046
2047         * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
2048
2049 2008-02-17 Raphael Neider <rneider AT web.de>
2050
2051         * src/pic16/genarith.c,
2052         * src/pic16/gen.c,
2053         * src/pic16/gen.h,
2054         * src/pic16/genutils.c: removed unused legacy code,
2055           removed unused fields from struct asmop and struct _G
2056
2057 2008-02-17 Raphael Neider <rneider AT web.de>
2058
2059         * src/pic16/gen.c (AccRsh): cosmetic changes,
2060           (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
2061           genRightShiftLiteral): fixed to work with SFRs as result by
2062           assigning only once to result,
2063           removed a lot of unused/excluded code fragments
2064
2065 2008-02-17 Raphael Neider <rneider AT web.de>
2066
2067         * device/include/pic/pic16f88.h,
2068         * device/include/pic/pic16f886.h,
2069         * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
2070
2071 2008-02-17 Borut Razem <borut.razem AT siol.net>
2072
2073         * src/z80/peeph.def: applied patch
2074           #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
2075         * src/z80/gen.c, src/z80/peeph.def: applied patch
2076           #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
2077         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
2078           sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
2079           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
2080           sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
2081           enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
2082
2083 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
2084
2085         * as/link/mcs51/aslink.dsp: removed SDK define
2086         * as/link/z80/clean.mk: brought in sync with other ports
2087         * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
2088         * as/hc08/Makefile.bcc,
2089         * as/mcs51/Makefile.bcc,
2090         * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
2091         * src/z80/main.c (_setValues): use the now capitalized -Z,
2092           (z80_port, gbz80_port): generate debug information when asked
2093
2094 2008-02-16 Borut Razem <borut.razem AT siol.net>
2095
2096         * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
2097           as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
2098           as/z80/Makefile.in. as/z80/Makefile.bcc:
2099           applied patch #1893393: patch for as-z80 and link-z80 to generate
2100           cdb, thanks to Armin Diehl
2101         * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
2102           as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
2103           asnoice.c moved to as/asxxsrc/asnoice.c
2104         * src/z80/peeph-gbz80.def: applied patch
2105           #1880235: Z80 return peephole, thanks to Philipp Krause
2106
2107 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
2108
2109         * .version,
2110         * doc/sdccman.lyx: bumped version to 2.7.5
2111         * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
2112
2113 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
2114
2115         * device/include/pic16/stdlib.h,
2116         * device/lib/pic16/libc/stdlib/ltoa.c,
2117         * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
2118
2119 2008-02-13 Borut Razem <borut.razem AT siol.net>
2120
2121         * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
2122         * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
2123           src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
2124           src/SDCCopt.c,  src/SDCCval.c:
2125           fixed bug #1890273: SDCC Warning 154 shows wrong filename
2126
2127 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
2128
2129         * src/SDCCsymt.c (compareType): fixed bug 1309013
2130
2131 2008-02-09 Borut Razem <borut.razem AT siol.net>
2132
2133         * src/SDCCval.c, src/SDCCval.h:
2134           code cleaning, added function constChrVal()
2135         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
2136           call constChrVal() instead constVal()
2137
2138 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
2139
2140         * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
2141           of function pointer
2142         * src/SDCCerr.h,
2143         * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
2144         * support/regression/tests/absolute.c: added TestStruct TestVar (see also
2145           bug 1859853)
2146
2147 2008-02-01 Raphael Neider <rneider AT web.de>
2148
2149         * device/include/pic/pic16f886.h,
2150         * device/include/pic/pic16f887.h: added RA6 and RA7
2151
2152 2008-01-24 Raphael Neider <rneider AT web.de>
2153
2154         * device/include/pic/pic16f88.h: added RA6 and RA7
2155         * device/lib/pic/libdev/disabled_pic16f886.c,
2156         * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
2157
2158         * src/pic16/devices.inc,
2159         * device/include/pic16/pic18f2423.h,
2160         * device/include/pic16/pic18f2523.h,
2161         * device/include/pic16/pic18fregs.h,
2162         * device/lib/pic16/pics.all
2163         * device/lib/pic16/libdev/pic18f2423.c,
2164         * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
2165         * device/lib/pic16/libio/i2c.ignore,
2166         * device/lib/pic16/libio/usart.ignore,
2167         * device/lib/pic16/libio/adc.ignore: ignore new devices
2168
2169 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
2170
2171         * src/SDCCast.c (createRMW): fixed bug 1582651
2172
2173 2008-01-20 Borut Razem <borut.razem AT siol.net>
2174
2175         * src/SDCCcse.c: partially fixed enhancement request
2176           #1793872 - multiply by -1 not collapsed
2177         * support/regression/tests/arithcsi.c: added regression test
2178
2179 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
2180
2181         * as/mcs51/asx8051.dsp: removed define SDK
2182         * as/mcs51/i51mch.c (machine): fixed bug 1865114
2183         * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
2184         * as/link/lklex.c,
2185         * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
2186           cosmetic changes, brought more in sync, changed old K&R to ANSI
2187
2188 2008-01-13 Borut Razem <borut.razem AT siol.net>
2189
2190         * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
2191         * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
2192
2193 2007-12-30 Borut Razem <borut.razem AT siol.net>
2194
2195         * src/pic16/gen.c: fixed implementation of bitwise operations for
2196           pic16 target
2197         * support/regression/tests/bitwise.c: added test cases
2198
2199 2007-12-29 Borut Razem <borut.razem AT siol.net>
2200
2201         * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
2202         * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
2203           src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
2204         * support/Util/dbuf_string.[ch]: added function dbuf_getline()
2205         * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
2206           src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
2207           src/pic16/pcode.[ch]: added const qualifier
2208         * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
2209           as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
2210           as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
2211           as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
2212         * as/asxxsrc/aslex.c: use dbuf_getline()
2213         * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
2214           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
2215           as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
2216           as/z80/asm.h, as/z80/z80adr.c:
2217           changed type of ib and ip to const char *
2218
2219 2007-12-28 Borut Razem <borut.razem AT siol.net>
2220
2221         * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
2222           introduced (readlin) - long lines are turuncated
2223         * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
2224           as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
2225           as/z80/Makefile.in: moved aslex.c to asxxsrc
2226         * as/hc08/aslex.c, as/z80/aslex.c: deleted
2227         * as/hc08/asmain.c, as/mcs51/asmain.c:
2228           added missing initialization of a_addr field
2229         * support/regression/tests/long_asm_line.c: added regtest for long
2230           assembler line
2231
2232 2007-12-22 Borut Razem <borut.razem AT siol.net>
2233
2234         * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
2235
2236 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
2237
2238         * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
2239
2240 2007-12-16 Borut Razem <borut.razem AT siol.net>
2241
2242         * device/include/pic16/stdbool.h: removed, since already exists in
2243          device/include/; this also fixes bitopcse.c regression test for pic16
2244          target
2245         * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
2246         * src/pic16/glue.c: fixed bug #1851855: generic static pointer
2247           dereference doesn't work; covered by regression test bug1399290
2248
2249 2007-12-05 Borut Razem <borut.razem AT siol.net>
2250
2251         * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
2252           Adding new PIC16
2253
2254 2007-12-01 Borut Razem <borut.razem AT siol.net>
2255
2256         * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
2257           corrected handling of the highest_valid_address
2258
2259 2007-11-17 Raphael Neider <rneider AT web.de>
2260
2261         * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
2262         * src/pic/glue.c (picglue): emit .file if --debug is given
2263
2264 2007-11-17 Raphael Neider <rneider AT web.de>
2265
2266         * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
2267         care when left or right operand resides in result, fixes #1830220
2268
2269 2007-11-17 Borut Razem <borut.razem AT siol.net>
2270
2271         * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
2272           #983491 - "Merge duplicate strings function is ineffective"
2273         * support/regression/tests/bug-983491.c: regtest disabled
2274         * as/asxxsrc: created
2275           as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
2276           as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
2277           as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
2278           as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
2279           as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
2280           as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
2281           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
2282           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
2283           as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
2284           as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
2285           as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
2286           as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
2287           created as/asxxsrc directory, assym.c and strcpi.c moved into it
2288
2289 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
2290
2291         * device/include/stdarg.h: added and removed some casts
2292         * src/SDCCsymt.c (compareType): Fully check types between generic and
2293           non-generic pointers, also accept ptr-ptr to void-ptr assignments
2294
2295 2007-11-13 Borut Razem <borut.razem AT siol.net>
2296
2297         * support/regression/tests/bug-1817005.c:
2298           added regtest for bug #1817005 - as-z80 chokes on long labels
2299
2300 2007-11-12 Borut Razem <borut.razem AT siol.net>
2301
2302         * as/z80/asmain.c, as/z80/asm.h, as/z80/assym.c, as/z80/asdata.c,
2303           as/z80/asout.c, as/z80/aslist.c:
2304           fixed bug #1817005 - as-z80 chokes on long labels
2305
2306 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
2307
2308         * as/hc08/asmain.c,
2309         * as/z80/asmain.c: cosmetic changes
2310         * as/hc08/alloc.h,
2311         * as/mcs51/alloc.h,
2312         * as/z80/alloc.h: removed
2313         * as/hc08/assym.c,
2314         * as/mcs51/assym.c: replaced alloc.h with stdlib.h
2315         * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
2316         * as/link/hc08/Makefile.in,
2317         * as/link/mcs51/Makefile.in,
2318         * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
2319         * as/link/lklex.c,
2320         * as/link/mcs51/lkarea.c,
2321         * as/link/mcs51/lkmain.c: cosmetic changes
2322         * as/link/hc08/lklibr.c,
2323         * as/link/z80/lklibr.c,
2324         * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
2325           used cygwin_conv_to_full_posix_path,
2326           added warnings, cosmetic changes, brought more in sync
2327           changed old K&R into ANSI function declarations
2328         * as/link/z80/lklibr.c (loadAdb): added
2329         * as/link/z80/lkmain.c: removed -- option from usage text
2330
2331 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
2332
2333         * src/mcs51/gen.c (outBitC): optimized for no result
2334
2335 2007-10-31 Borut Razem <borut.razem AT siol.net>
2336
2337         * src/SDCCsymt.c: fixed (hopeful properly) bug
2338           #1805702 - order of extern matters
2339         * support/regression/tests/bug-1805702.c: enabled regtest for bug
2340           #1805702
2341
2342 2007-10-29 Borut Razem <borut.razem AT siol.net>
2343
2344         * src/SDCCsymt.c: reverted bad fixed of bug #1805702
2345           - order of extern matters
2346         * support/regression/tests/bug-1805702.c: disabled regtest for bug
2347           #1805702
2348
2349 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
2350
2351         * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
2352           24bitMode, portIsDS390
2353         * src/mcs51/gen.c (genOr): optimized for RFE 1750727
2354         * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
2355           (notVolatileVariable): also check sloc names,
2356           (callFuncByName): moved ftab[] out of function and sorted it by use
2357
2358 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
2359
2360         * device/include/stdarg.h: fixed bug in va_start macro for --xstack
2361         * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
2362           aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
2363         * src/SDCCicode.c (geniCodeCast): fixed bug 880197
2364         * support/regression/tests/bug-880197.c: new, added
2365
2366 2007-10-28 Borut Razem <borut.razem AT siol.net>
2367
2368         * support/regression/Makefile.in,
2369           support/regression/ports/mcs51-large/spec.mk,
2370           support/regression/ports/mcs51-xstack-auto/spec.mk,
2371           support/regression/ports/mcs51-stack-auto/spec.mk,
2372           support/regression/ports/mcs51-medium/spec.mk,
2373           support/regression/ports/mcs51-common/spec.mk,
2374           support/regression/ports/mcs51-common/*,
2375           support/regression/ports/mcs51-small/*:
2376           mcs51 renamed to mcs51-common, created mcs51-small
2377         * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
2378         * support/regression/tests/bug-1805702.c: added regtest for bug
2379           #1805702
2380
2381 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
2382
2383         * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
2384           added new rules 265 - 270
2385         * support/regression/tests/bug1721024.c:new, added
2386         * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
2387           introduced new test-mcs51 to run all mcs51 tests
2388
2389 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
2390
2391         * support/regression/tests/bug1816470.c: new, added
2392
2393 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
2394
2395         * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
2396           propagate for *,+,- with float, fixed bug 1816470
2397           (decorateType): cast to resultTypeProp instead of resultType
2398
2399 2007-10-19 Borut Razem <borut.razem AT siol.net>
2400
2401         * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
2402           function is ineffective" for pic16 tareget
2403         * support/scripts/listerr.c: corrected include path
2404         * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
2405           adjacent memory
2406
2407 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
2408
2409         * support/regression/tests/using.c: new, added
2410         * support/regression/tests/vaargs.c: fixed and enabled test
2411
2412 2007-10-18 Borut Razem <borut.razem AT siol.net>
2413
2414         * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
2415           is ineffective
2416         * support/regression/tests/bug-983491.c: added regtest for bug #983491
2417
2418 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
2419
2420         * doc/sdccman.lyx: documented option --Werror
2421         * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
2422           RegBankUsed[] earlier
2423
2424 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
2425
2426         * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
2427         * src/pic/glue.c,
2428         * src/SDCCval.c,
2429         * src/SDCCast.c,
2430         * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
2431           AST_ULONG_VALUE
2432         * src/SDCCast.c (decorateType): improved optimization of tri-op
2433         * src/SDCCerr.c (vwerror, setWError),
2434         * src/SDCCerr.h,
2435         * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
2436           warnings as errors, thanks Stas Sergeev for PATCH 1813211
2437
2438 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
2439
2440         * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
2441         * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
2442         * support/regression/tests/bug-223113.c,
2443         * support/regression/tests/bug-426632.c,
2444         * support/regression/tests/bug-468811.c,
2445         * support/regression/tests/bug-477835.c,
2446         * support/regression/tests/bug-478094.c,
2447         * support/regression/tests/bug-499644.c,
2448         * support/regression/tests/bug-524209.c,
2449         * support/regression/tests/bug-524211.c,
2450         * support/regression/tests/packcast.c,
2451         * support/regression/tests/structidx.c: added empty tests
2452         * support/regression/tests/bug-607243.c: enabled test
2453
2454 2007-10-06 Borut Razem <borut.razem AT siol.net>
2455
2456         * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
2457            support of universal binaries on Mac OS X
2458
2459 2007-10-02 Borut Razem <borut.razem AT siol.net>
2460
2461         * src/SDCCval.h: unified double2ul macro for all platforms
2462         * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
2463         * support/regression/tests/bitwise.c: added regtest for bug #1777758
2464
2465 2007-09-30 Borut Razem <borut.razem AT siol.net>
2466
2467         * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
2468           platforms
2469         * sdcc_vc_in.h: enabled warnings
2470         * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
2471           unsigned type, result still unsigned
2472         * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
2473
2474 2007-09-28 Raphael Neider <rneider AT web.de>
2475
2476         * src/pic/device.c (find_device): prevent buffer underflow error
2477         * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
2478           the just destroyed list entry
2479
2480 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2481
2482         * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
2483           Alexander Neundorf
2484
2485 2007-09-18 Borut Razem <borut.razem AT siol.net>
2486
2487         * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
2488          applied to unsigned type, result still unsigned
2489
2490 2007-09-17 Borut Razem <borut.razem AT siol.net>
2491
2492         * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
2493           src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
2494           src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
2495           src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
2496           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
2497           src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
2498           src/z80/gen.c, src/z80/ralloc.c:
2499           fixed bug #1739860 - sdcc does not work correctly on some platforms
2500           (not finished)
2501           introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
2502
2503 2007-09-17 Raphael Neider <rneider AT web.de>
2504
2505         * src/pic16/device.c: reverted to previous version
2506         * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
2507
2508 2007-09-16 Raphael Neider <rneider AT web.de>
2509
2510         * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
2511           as this raises a ton of gpasm warnings, just emit a second label
2512         * src/pic16/devices.inc,
2513         * device/lib/pic16/pics.all,
2514         * device/lib/pic16/libdev/pic18f2585.c,
2515         * device/lib/pic16/libdev/pic18f2680.c,
2516         * device/lib/pic16/libdev/pic18f2682.c,
2517         * device/lib/pic16/libdev/pic18f2685.c,
2518         * device/lib/pic16/libdev/pic18f4585.c,
2519         * device/lib/pic16/libdev/pic18f4680.c,
2520         * device/lib/pic16/libdev/pic18f4682.c,
2521         * device/lib/pic16/libdev/pic18f4685.c,
2522         * device/include/pic16/pic18f2585.h,
2523         * device/include/pic16/pic18f2680.h,
2524         * device/include/pic16/pic18f2682.h,
2525         * device/include/pic16/pic18f2685.h,
2526         * device/include/pic16/pic18f4585.h,
2527         * device/include/pic16/pic18f4680.h,
2528         * device/include/pic16/pic18f4682.h,
2529         * device/include/pic16/pic18f4685.h,
2530         * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
2531           18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
2532           patch contributed by Anton Strobl, applied with changes
2533
2534 2007-09-16 Raphael Neider <rneider AT web.de>
2535
2536         * device/include/pic16/pic18f2431.h,
2537         * device/include/pic16/pic18f25j10.h,
2538         * device/include/pic16/pic18f4431.h,
2539         * device/include/pic16/pic18f45j10.h: adopted common include style
2540         * device/include/pic16/pic18f1320.h,
2541         * device/include/pic16/pic18f2320.h,
2542         * device/include/pic16/pic18f2525.h,
2543         * device/include/pic16/pic18f4320.h,
2544         * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
2545         * device/include/pic16/pic18fregs.h: prepared for automatic include
2546           file selection by having DEVICE.h for every DEVICE
2547         * device/lib/pic16/libdev/pic18f2320.c,
2548         * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
2549
2550         * device/lib/pic16/configure.in,
2551         * device/lib/pic16/configure: use rm -rf instead of rmdir
2552         * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
2553         * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
2554
2555 2007-09-09 Borut Razem <borut.razem AT siol.net>
2556
2557         * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
2558           distingush between i386 and ppc Mac OS X versions
2559
2560 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
2561
2562         * src/mcs51/gen.c (genReceive): fixed bug 1788177
2563         * support/regression/tests/bug1788177.c: new, added
2564
2565 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2566
2567         * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
2568         * device/include/mcs51/lint.h added keyword __naked
2569
2570 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
2571
2572         * src/pic16/glue.c,
2573         * src/pic/glue.c,
2574         * src/SDCCmem.h: removed maxRegBank
2575         * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
2576           RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
2577         * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
2578         * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
2579           name and behaviour to handle banked functions
2580           (scan4op): and use it to fix bug 1786213
2581
2582 2007-09-03 Raphael Neider <rneider AT web.de>
2583
2584         * device/include/pic16/pic18f248.h,
2585         * device/include/pic16/pic18f258.h,
2586         * device/include/pic16/pic18f448.h,
2587         * device/lib/pic16/libdev/pic18f248.c,
2588         * device/lib/pic16/libdev/pic18f258.c,
2589         * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
2590           added T0CONbits, fixes #1786891
2591
2592 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
2593
2594         * src/ds390/gen.c (genFarPointerSet),
2595         * src/hc08/ralloc.c (packRegisters),
2596         * src/mcs51/ralloc.c (packRegisters),
2597         * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
2598           bug 1750318
2599         * src/SDCCicode.h: POINTER_SET can be true for literals too
2600         * support/regression/tests/bug1750318.c: new, added
2601
2602 2007-08-23 Borut Razem <borut.razem AT siol.net>
2603
2604         * debugger/mcs51/sdcdb.c: fixed compilation with older readline
2605           library versions without the completition functionality
2606
2607 2007-08-22 Raphael Neider <rneider AT web.de>
2608
2609         * device/include/pic16/pic18f1220.h,
2610         * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
2611
2612 2007-08-12 Borut Razem <borut.razem AT siol.net>
2613
2614         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
2615
2616 2007-08-11 Borut Razem <borut.razem AT siol.net>
2617
2618         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
2619           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
2620           support/Util/SDCCerr.[ch] moved to src
2621         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
2622           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
2623           device/examples/ds390/tinitalk/tinitalk.dsp,
2624           device/examples/serialcomm/windows/serialcomm.dsp,
2625           support/librarian/librarian.dsp:
2626           removed linking of unused odbc32.lib and odbccp32.lib
2627         * support/scripts/winres.h:
2628           added for compilation with Visual C++ 2005 Express Edition
2629
2630 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2631
2632         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
2633           and CKCON1.
2634
2635 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2636
2637         * sdccconf_in.h: update the endian test so that SPARC Solaris
2638           does not throw syntax errors
2639
2640 2007-08-06 Borut Razem <borut.razem AT siol.net>
2641
2642         * doc/sdccman.lyx: removed two index entries which prevented the
2643           generation of sdcc doc archive
2644
2645 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2646
2647         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
2648           instead of lyx 1.5.0.
2649
2650 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2651
2652         * device/include/hc08/mc68hc908apxx.h: new header contributed by
2653           Lucas Loizaga, with minor modifications. Thanks!
2654
2655 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2656
2657         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
2658           in sdcclib.
2659
2660 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2661
2662         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
2663           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
2664           with acall/ajmp.
2665
2666 2007-07-22 Borut Razem <borut.razem AT siol.net>
2667
2668         * configure.in, configure: re-introduced .version
2669         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
2670           the version reverted to 2.7.0
2671
2672 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
2673
2674         * configure.in,
2675         * doc/sdccman.lyx: bumped version to 2.7.3
2676         * device/include/mcs51/compiler.h: fixed elif->else
2677         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
2678         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
2679           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
2680            enable accuse for bit operands
2681         * src/SDCCmain.c (printVersionInfo),
2682         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
2683           environment descriptor
2684         * src/SDCCutil.h: added getBuildEnvironment
2685         * src/SDCCglue.c (initialComments): use getBuildEnvironment
2686         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
2687         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
2688         * support/regression/tests/bug1348008.c,
2689         * support/regression/tests/bug1496419.c,
2690         * support/regression/tests/bug1503067.c,
2691         * support/regression/tests/preproc.c: added empty tests
2692
2693 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
2694
2695         * support/regression/tests/bug1678803.c: new, added
2696
2697 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
2698
2699         * as/link/aslink.h,
2700         * as/link/hc08/lkihx.c,
2701         * as/link/hc08/lkrloc.c,
2702         * as/link/mcs51/lkihx.c,
2703         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
2704           ihxExtendedLinearAddress
2705         * as/link/mcs51/lkrloc.c (relr),
2706         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
2707           acall/ajmp, see bug 830513
2708
2709 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
2710
2711         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
2712           (cseBBlock): remember aggr2ptr has been used
2713         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
2714           (geniCodeAssign): fixed bug 868103
2715         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
2716           added operandSize prototype
2717         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
2718           (genDataPointerSet): use max of size of right and result,
2719           (gencjne): added parameter useCarry for optimization,
2720           (genCmpEq): use carry if appropriate,
2721           (genXor): check if operand already in carry
2722         * support/regression/tests/bug-868103.c: enabled test
2723
2724 2007-07-12 Raphael Neider <rneider AT web.de>
2725
2726         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
2727
2728 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
2729
2730         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
2731           from Robert Larice, thanks
2732         * support/regression/tests/bitopcse.c,
2733         * support/regression/tests/bitvars.c,
2734         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
2735         * support/regression/tests/bug-927659.c: enabled test for z80
2736         * support/regression/tests/bug1738367.c: added extra tests by Frieder
2737         * support/regression/tests/bug1745717.c: new, added
2738         * support/regression/tests/literalop.c,
2739         * support/regression/tests/nullstring.c: removed storage definitions that
2740           are now in testfwk.h
2741
2742 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
2743
2744         * device/include/stdbool.h: do not define __bool_true_false_are_defined
2745           and bool for targets that do not fully support it.
2746         * support/regression/tests/bug1546986.c,
2747         * support/regression/tests/bug1723128.c,
2748         * support/regression/tests/bug1734654.c,
2749         * support/regression/tests/bug1738367.c,
2750         * support/regression/tests/constantRange.c: only use bool if allowed
2751
2752 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
2753
2754         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
2755           Larice, also handle function pointers
2756         * support/regression/tests/bug1749275.c: new, added
2757
2758 2007-07-03 Borut Razem <borut.razem AT siol.net>
2759
2760         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
2761           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
2762           #1746528: SDCC should ignore ':' in inline assembler comments
2763         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
2764
2765 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
2766
2767         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
2768         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
2769
2770 2007-06-29 Borut Razem <borut.razem AT siol.net>
2771
2772         * src/SDCCmain.c: fixed bug
2773           #1744746: SDCC #4867: broken option --xram-size
2774
2775 2007-06-28 Borut Razem <borut.razem AT siol.net>
2776
2777         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
2778           find out the endianess of host machine for ucsim
2779
2780 2007-06-27 Borut Razem <borut.razem AT siol.net>
2781
2782         * support/regression/generate-cases.py: corrected the file name
2783           in warning
2784         * configure.in, configure, sdccconf_in.h: find out the endianess of
2785           host machine
2786         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
2787           negative size
2788
2789 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
2790
2791         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
2792
2793 2007-06-26 Borut Razem <borut.razem AT siol.net>
2794
2795         * support/regression/generate-cases.py: display warning if function
2796           list is empty; implemented more flexible rule for detection of
2797           testing functions, allowing return type 'void' in the same line as
2798           the function name in the function definition
2799         * support/regression/tests/bug-1654060.c: corrected test
2800         * support/librarian/sdcclib.c: fixed warning:
2801           format '%s' expects type 'char *', but argument 2 has type 'int'
2802
2803 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2804
2805         * support/librarian/sdcclib.c: Added feature Requests [1510635]
2806           Multiple infiles for sdcclib.
2807
2808 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2809
2810         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
2811           bug 1731741
2812
2813 2007-06-18 Borut Razem <borut.razem AT siol.net>
2814
2815         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
2816           how to handle comments, so they have to be removed by the
2817           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
2818         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
2819           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
2820           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
2821           table driven option hadling
2822
2823 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
2824
2825         * src/SDCCast.c (decorateType),
2826         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
2827           iCode to ast level to fix bug 1738367
2828         * support/regression/tests/bug1738367.c: new, added
2829
2830 2007-06-15 Raphael Neider <rneider AT web.de>
2831
2832         * src/pic16/devices.inc,
2833         * device/lib/pic16/pics.all,
2834         * device/include/pic16/pic18fregs.h,
2835         * device/include/pic16/pic18f[24][45]20.h,
2836         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
2837           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
2838         * device/lib/pic16/Makefile.in: faster cleanup
2839
2840 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2841
2842         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
2843
2844 2007-06-13 Raphael Neider <rneider AT web.de>
2845
2846         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
2847
2848 2007-06-12 Raphael Neider <rneider AT web.de>
2849
2850         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
2851           suppress bit defines if NO_BIT_DEFINES is #define'd
2852         * device/include/pic/pic*.h: recreated all headers to include
2853           conditional bit defines
2854         * device/include/pic/pic16f886.h,
2855         * device/include/pic/pic16f887.h: fixed based on newer .inc file
2856         * device/include/pic/recreate.sh: script to recreate the complete
2857           device library files based on the currently supported devices
2858
2859 2007-06-12 Borut Razem <borut.razem AT siol.net>
2860
2861         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
2862           support/regression/Makefile.in, support/scripts/build.mak,
2863           support/scripts/Makefile.snapshot:
2864           use new svn URL scheme
2865         * doc/sdccman.lyx: SDCC Wiki moved to
2866           http://sdcc.wiki.sourceforge.net/
2867
2868 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2869
2870         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
2871         * support/regression/tests/bug1734654.c: added
2872
2873 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
2874
2875         * src/SDCCast.c (decorateType): optimized '?' for equal operands
2876         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
2877           with literal operands
2878
2879 2007-06-10 Borut Razem <borut.razem AT siol.net>
2880
2881         * as/link/z80/lklibr.c: fixed mingw build warning
2882           lklibr.c:575: warning: implicit declaration of function 'tolower'
2883         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
2884           src/z80/main.c: move target specific options from src/SDCCmain.c
2885           to src/<target>/main.c
2886
2887 2007-06-09 Borut Razem <borut.razem AT siol.net>
2888
2889         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
2890           removed unused swap_sense; removed outBitCLong, replaced with outBitC
2891         * support/regression/tests/bug-1294691.c: added
2892
2893 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
2894
2895         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
2896           can also be static, fixes bug 1733438
2897         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
2898           have absolute address too
2899           (computeType): added optimization for 'cond ? true : false'
2900         * support/regression/tests/absolute.c: added test for static absolute var
2901
2902 2007-06-08 Raphael Neider <rneider AT web.de>
2903
2904         * src/regression/Makefile: suppress parallel builds, allow easy
2905           switching between pic14/pic16 ports
2906         * src/regression/picregs.h: added pic14/16 header file switch
2907         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
2908           inline.c,nestfor.c,string1.c}: include "picregs.h"
2909
2910 2007-06-07 Borut Razem <borut.razem AT siol.net>
2911
2912         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
2913           permanent solution to suppress GCC 4.2.0 c++ warning:
2914           deprecated conversion from string constant to `char *'
2915           use 'const char *' where ever required
2916         * support/regression/generate-cases.py: implemented more flexible rule
2917           for detection of testing functions, allowing white-spaces surrounding
2918           the function name and the 'void' parameter.
2919         * support/regression/tests/constantRange.c,
2920           support/regression/tests/scott-compare3.c: fixed failing regression
2921           tests, uncovered by implementation of more flexible rule for detection
2922           of testing functions
2923
2924 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
2925
2926         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
2927
2928 2007-06-04 Borut Razem <borut.razem AT siol.net>
2929
2930         * configure.in, configure, config_vc.awk: sdcc version number is now
2931           stored in configure.in; removed .version
2932         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
2933           doc/INSTALL.txt: version bumped to 2.7.2
2934         * sim/ucsim/configure.in, sim/ucsim/configure:
2935           use "read" to read from .version
2936
2937 2007-06-03 Borut Razem <borut.razem AT siol.net>
2938
2939         * */Makefile.in: removed annoying warning:
2940           Makefile:xx: Makefile.dep: No such file or directory
2941
2942 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
2943
2944         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
2945           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
2946         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
2947         * src/SDCCast.c (resultTypePropagate): propagate for '!',
2948           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
2949           bugfix: only use newBoolLink for bit result type
2950         * src/SDCCicode.c (geniCodeLogic): added param tree,
2951           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
2952           (geniCodeLogicAndOr): use IS_BIT,
2953           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
2954           (ast2iCode): added tree param to geniCodeLogic for comparisons
2955         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
2956         * support/regression/tests/bug1723128.c: added test NotZero
2957
2958 2007-06-01 Borut Razem <borut.razem AT siol.net>
2959
2960         * SDCPP synchronized with GCC CPP release version 4.2.0,
2961           currently the latest release:
2962         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2963           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
2964           support/cpp2/cppdefault.h, support/cpp2/except.h,
2965           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
2966           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
2967           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
2968           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
2969           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
2970           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
2971           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
2972           support/cpp2/opts.h, support/cpp2/output.h,
2973           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
2974           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
2975           support/cpp2/system.h, support/cpp2/version.c,
2976           support/cpp2/Makefile.in: modified
2977         * support/cpp2/opts-common.c: added
2978         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
2979         * device/lib/pic16/libdev/pic18f[24]5j10.c:
2980           search for included source file in local directory
2981         * sim/ucsim/configure, sim/ucsim/configure.in:
2982           temporary solution to suppress GCC 4.2.0 c++ warning:
2983           deprecated conversion from string constant to `char *'
2984
2985 2007-06-01 Raphael Neider <rneider AT web.de>
2986
2987         * device/lib/pic/libdev/pic12f683.c,
2988         * device/include/pic/pic12f683.h: added GPIO bits
2989
2990 2007-06-01 Raphael Neider <rneider AT web.de>
2991
2992         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
2993           quotation marks, clarified role of PIC14 vs. PIC16 ports
2994         * src/pic16/devices.inc,
2995         * device/include/pic16/pic18fregs.h,
2996         * device/include/pic16/pic18f[24][45]j10.h,
2997         * device/lib/pic16/pics.all,
2998         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
2999           18f24j10, 18f25j10, 18f44j10, and 18f45j10
3000         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
3001           for new devices as they are not yet supported by gputils
3002
3003 2007-05-31 Borut Razem <borut.razem AT siol.net>
3004
3005         * Small Device C Compiler 2.7.0 released
3006         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
3007           changed sdcc version to 2.7.1
3008         * support/scripts/sdcc.nsi: added How to create WIN32 release
3009           setup.exe package
3010
3011 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
3012
3013         * doc/sdccman.lyx: documented initialization and allocation of absolute
3014           variables, bit parameter passing, the need for function pointers to be
3015           reentrant and alpha quality support of inline and retrict
3016
3017 2007-05-26 Borut Razem <borut.razem AT siol.net>
3018
3019         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
3020           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
3021         * docs/knownbugs.html: updated
3022
3023 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
3024
3025         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
3026           thanks Jan Waclawek
3027         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
3028           AOP_CRY and ruonly
3029           (gencjneshort): optimized when left is AOP_DIR
3030         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
3031           initializing unions in a struct/array
3032         * support/regression/fwk/include/testfwk.h: added defines for data, near
3033           and far for host and z80
3034         * support/regression/tests/bug1723128.c: new, added
3035
3036 2007-05-22 Borut Razem <borut.razem AT siol.net>
3037
3038         * doc/knownbugs.html: updated
3039
3040 2007-05-21 Raphael Neider <rneider AT web.de>
3041
3042         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
3043           error message instead
3044         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
3045
3046 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
3047
3048         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
3049
3050 2007-05-21 Raphael Neider <rneider AT web.de>
3051
3052         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
3053           closes #1722392
3054         * src/regression/gpsim_assert.h,
3055         * src/regression/Makefile,
3056         * src/regression/pcodeopt.c: regression test for the above fix
3057
3058 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
3059
3060         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
3061           jumps to self, fixed bug 1717281
3062
3063 2007-05-10 Borut Razem <borut.razem AT siol.net>
3064
3065         * support/scripts/gen_known_bugs.pl: cosmetic fix
3066         * doc/knownbugs.html: generated by gen_known_bugs.pl
3067
3068 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3069
3070         * src/SDCCast.c (createFunction): also generate non-inlined version of
3071           function for functions declared as "static inline"
3072         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
3073           function can be inlined after non-inlined version generated.
3074
3075 2007-05-10 Borut Razem <borut.razem AT siol.net>
3076
3077         * support/scripts/gen_known_bugs.pl: added script
3078           which generates knownbugs.html
3079
3080 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
3081
3082         * doc/knownbugs.html: updated for release 2.7.0
3083
3084 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3085
3086         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
3087
3088 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
3089
3090         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
3091           (throughout): updated generating comments
3092         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
3093           (throughout): updated generating comments
3094         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
3095           rule instead of at the second, or it might skip lines when removing the
3096           complete match
3097         * support/regression/tests/bug1714204.c: changed test to foo
3098
3099 2007-05-08 Borut Razem <borut.razem AT siol.net>
3100
3101         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
3102           thanks to SDCC Distributed Compile Farm members,
3103           added Z80 and GBZ80 command line options
3104         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
3105
3106 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
3107
3108         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
3109         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
3110         * support/regression/tests/longlit.c: modified to be tested at all and
3111           to pass the actual test
3112
3113 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3114
3115         * device/include/mcs51/uPSD33xx.h: Added.
3116
3117 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
3118
3119         * device/lib/_gptrput.c,
3120         * device/lib/_gptrget.c: removed old code,
3121          (_gptrgetWord),
3122         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
3123         * support/regression/tests/bug1714204.c: new, added
3124
3125 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3126
3127         * support/regression/tests/regtrack.c: test was never executed
3128           because of the regression test being picky about white spaces.
3129         * device/lib/mcs51/crtclear.asm: added comment
3130
3131 2007-05-06 Raphael Neider <rneider AT web.de>
3132
3133         * device/lib/pic/Makefile.rules,
3134         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
3135           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
3136
3137 2007-05-06 Raphael Neider <rneider AT web.de>
3138
3139         * src/pic16/device.h,
3140         * src/pic16/main.h,
3141         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
3142           _pic16_setDefaultOptions): removed/reordered command-line args
3143         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
3144           devices, regrouped command line args, environment variables),
3145           clarified sone points, added sections on how to add devices to the
3146           PIC14/PIC16 ports
3147
3148 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
3149
3150         * src/z80/peeph.def: fixed bug in rule 2
3151
3152 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
3153
3154         * src/port.h: added TARGET_MCS51_LIKE
3155         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
3156           take advantage of it too
3157         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
3158           (shiftR2Left2Result): Optimized: don't check shifting by 0
3159         * src/z80/peeph-z80.def,
3160         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
3161           modifications, see patch 1700823
3162         * src/mcs51/peep.c (): fixed bug 1712928
3163         * support/regression/tests/bug1712928.c: new, added
3164
3165 2007-05-05 Borut Razem <borut.razem AT siol.net>
3166
3167         * device/lib/pic16/Makefile.common.in,
3168           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
3169           removed bash dependencies
3170
3171 2007-05-01 Borut Razem <borut.razem AT siol.net>
3172
3173         * src/SDCCicode.c:
3174           fixed bug #1710507: --i-code-in-asm makes compile fail
3175           all iCode comments are now one liners
3176         * src/mcs51/gen.c: fixed memory leak
3177
3178 2007-05-01 Raphael Neider <rneider AT web.de>
3179
3180         * device/lib/pic/libdev/*.c
3181         * device/include/pic/*.h: regenerated all device libs from updated
3182           .inc files
3183         * support/scripts/inc2h.pl: documented usage, now uses strict to
3184           catch more bugs
3185
3186 2007-04-30 Borut Razem <borut.razem AT siol.net>
3187
3188         * doc/sdccman.lyx:
3189           fixed bug #1669175: Problem with space in output paths
3190           documented how to use paths with spaces for Windows users
3191
3192 2007-04-29 Borut Razem <borut.razem AT siol.net>
3193
3194         * Fixed svn:eol-style and svn:keywords properties
3195         * src/SDCCval.c: fixed bug
3196           #1592871: Segfault with "large" const arrays of characters
3197           replaced recursion with iteration
3198         * Removed svn:executable property from non-executable files
3199
3200 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
3201
3202         * src/mcs51/gen.c (genRet): fixed bug 1707003
3203
3204 2007-04-27 Raphael Neider <rneider AT web.de>
3205
3206         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
3207           createReachingDefinitions,assignValnums,pic16_destructDF,
3208           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
3209           prevent NULL pointer dereferences
3210         * device/lib/pic/libdev/pic16f886.c,
3211         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
3212           prevent building them, gputils do not really support them yet
3213
3214 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3215
3216         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
3217           helps printf_small. 32 bytes more __idata mem.
3218
3219 2007-04-27 Raphael Neider <rneider AT web.de>
3220
3221         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
3222           return early when pb or pb->pcHead is NULL (patch #1708427)
3223         * src/regression/empty.c,
3224         * src/regression/Makefile: added test with empty functions
3225         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
3226
3227 2007-04-27 Borut Razem <borut.razem AT siol.net>
3228
3229         * src/SDCCast.c: fixed feature request
3230           #1547512: Redundant strings linked when using sizeof("abc")
3231
3232 2007-04-23 Borut Razem <borut.razem AT siol.net>
3233
3234         * doc/sdccman.lyx, src/SDCCmain.c:
3235           peep-hole comments are generated only if --fverbose-asm option is
3236           specified and --no-peep-comments is not, as proposed by Frieder.
3237         * support/regression/Makefile.in: compile regression tests with
3238           --fverbose-asm option so one can "grep" whether a new (or an old)
3239           peephole is (still) applied; requested by Frieder.
3240
3241 2007-04-23 Kevin Buettner <kevin AT buettner.to>
3242
3243         * device/include/pic/pic16f886.h,
3244         * device/include/pic/pic16f887.h,
3245         * device/lib/pic/libdev/pic16f886.c,
3246         * device/lib/pic/libdev/pic16f887.c,
3247         * device/include/pic/pic14devices.txt,
3248         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
3249
3250 2007-04-23 Kevin Buettner <kevin AT buettner.to>
3251
3252         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
3253           fixes #1704666
3254
3255 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3256
3257         * device/lib/_memset.c: assembler version for mcs51
3258
3259 2007-04-22 Borut Razem <borut.razem AT siol.net>
3260
3261         * support/scripts/listerr.c: program to create the list of errors and
3262           warnings list from - added
3263         * doc/sdccman.lyx: removed the note
3264           "For list of warnings and corresponding codes, see err_warn.txt"
3265         * src/SDCCsymt.c: fixed bug #1699804:
3266           Bug with some uses of sizeof(static local array) (MCS51)
3267         * support/regression/tests/bug-1699804.c: added
3268
3269 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
3270
3271         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
3272           (main): added option -i,
3273           (asmbl, case S_INCL): use search_path_fopen,
3274           mostly from patch 1579668 by Peter Miller, thanks
3275         * src/z80/main.c: fixed typo --callee-saves-bc
3276         * device/include/mcs51/compiler.h: added sfrword for Tasking
3277
3278 2007-04-20 Borut Razem <borut.razem AT siol.net>
3279
3280         * src/z80/main.c: replaced reserved keyword asm with asmblr
3281
3282 2007-04-19 Borut Razem <borut.razem AT siol.net>
3283
3284         * src/port.h: use const pointers to strings
3285         * src/SDCCargs.h: declared getStringArg() and getIntArg()
3286         * src/pic16/main.c: include SDCCargs.h
3287         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
3288           const char, since the strings are dynamically allocated
3289         * src/SDCCmain.c: options.code_seg and options.const_seg are
3290           dynamically allocated; check port specific command line options
3291           before the general ones
3292         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
3293
3294 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
3295
3296         * device/include/ds400rom.h,
3297         * device/lib/ds390/lcd390.c,
3298         * device/lib/ds390/memcpyx.c,
3299         * device/lib/ds390/rtc390.c,
3300         * device/lib/ds400/ds400rom.c,
3301         * device/lib/ds400/memcpyx.c,
3302         * device/lib/hc08/_ret.c: more replacements of keywords with their
3303           double underscore equivalents
3304         * device/lib/ds390/Makefile.in,
3305         * device/lib/ds400/Makefile.in,
3306         * device/lib/gbz80/Makefile.in,
3307         * device/lib/hc08/Makefile.in,
3308         * device/lib/mcs51/Makefile.in,
3309         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
3310
3311 2007-04-17 Borut Razem <borut.razem AT siol.net>
3312
3313         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
3314           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
3315           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
3316           to --fverbose-asm, to be gcc'ish
3317
3318 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
3319
3320         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
3321
3322 2007-04-17 Borut Razem <borut.razem AT siol.net>
3323
3324         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
3325         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
3326           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
3327           with their double underscore equivalent
3328
3329 2007-04-14 Borut Razem <borut.razem AT siol.net>
3330
3331         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
3332           source"
3333
3334 2007-04-13 Borut Razem <borut.razem AT siol.net>
3335
3336         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
3337           C99 standard
3338         * device/examples/serialcomm/windows/serial.[ch],
3339           device/examples/serialcomm/windows/test_serialcomm.cpp:
3340           updated by Bela Torok
3341         * device/examples/serialcomm/windows/serialcomm.dsw,
3342           device/examples/serialcomm/windows/serialcomm.dsp: added
3343
3344 2007-04-13 Jan Waclawek <wek AT efton.sk>
3345
3346         * doc/sdccman.lyx: additions and changes at various places
3347           (submitted as #1697136).
3348           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
3349
3350 2007-04-10 Borut Razem <borut.razem AT siol.net>
3351
3352         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
3353           LyX file format changed to 245
3354         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
3355           "FreeWare" replaced with "free open source"
3356
3357 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
3358
3359         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
3360
3361 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
3362
3363         * device/include/pic16/pic18fregs.h,
3364         * device/lib/_bp.c,
3365         * device/lib/_decdptr.c,
3366         * device/lib/_divsint.c,
3367         * device/lib/_divslong.c,
3368         * device/lib/_divuint.c,
3369         * device/lib/_divulong.c,
3370         * device/lib/_fs2schar.c,
3371         * device/lib/_fs2sint.c,
3372         * device/lib/_fs2slong.c,
3373         * device/lib/_fs2uchar.c,
3374         * device/lib/_fs2uint.c,
3375         * device/lib/_fs2ulong.c,
3376         * device/lib/_fsadd.c,
3377         * device/lib/_fscmp.c,
3378         * device/lib/_fsdiv.c,
3379         * device/lib/_fseq.c,
3380         * device/lib/_fsget1arg.c,
3381         * device/lib/_fsget2args.c,
3382         * device/lib/_fsgt.c,
3383         * device/lib/_fslt.c,
3384         * device/lib/_fsmul.c,
3385         * device/lib/_fsneq.c,
3386         * device/lib/_fsnormalize.c,
3387         * device/lib/_fsreturnval.c,
3388         * device/lib/_fsrshift.c,
3389         * device/lib/_fssub.c,
3390         * device/lib/_fsswapargs.c,
3391         * device/lib/_gptrget.c,
3392         * device/lib/_gptrgetc.c,
3393         * device/lib/_gptrput.c,
3394         * device/lib/_logexpf.c,
3395         * device/lib/_modsint.c,
3396         * device/lib/_modslong.c,
3397         * device/lib/_moduint.c,
3398         * device/lib/_modulong.c,
3399         * device/lib/_mulint.c,
3400         * device/lib/_mullong.c,
3401         * device/lib/_schar2fs.c,
3402         * device/lib/_ser.c,
3403         * device/lib/_setjmp.c,
3404         * device/lib/_sint2fs.c,
3405         * device/lib/_slong2fs.c,
3406         * device/lib/_spx.c,
3407         * device/lib/_uchar2fs.c,
3408         * device/lib/_uint2fs.c,
3409         * device/lib/_ulong2fs.c,
3410         * device/lib/asincosf.c,
3411         * device/lib/atanf.c,
3412         * device/lib/calloc.c,
3413         * device/lib/ds390/tinibios.c,
3414         * device/lib/ds400/tinibios.c,
3415         * device/lib/expf.c,
3416         * device/lib/free.c,
3417         * device/lib/hc08/_mulint.c,
3418         * device/lib/logf.c,
3419         * device/lib/malloc.c,
3420         * device/lib/printf_fast.c,
3421         * device/lib/printf_tiny.c,
3422         * device/lib/printfl.c,
3423         * device/lib/realloc.c,
3424         * device/lib/ser_ir.c,
3425         * device/lib/serial.c,
3426         * support/regression/tests/libmullong.c: replaced all special keywords
3427           with their double underscore equivalent
3428         * support/regression/ports/mcs51-xstack-auto/spec.mk,
3429         * device/lib/Makefile.in: compile libs with --std-c99 instead of
3430           --std-sdcc99
3431         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
3432           (genRet): if the bit-symbol is ruonly it already is in the carry
3433         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
3434         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
3435         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
3436           type UCHAR if dest is not bit
3437
3438 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
3439
3440         * device/include/math.h,
3441         * device/lib/cotf.c,
3442         * device/lib/expf.c,
3443         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
3444
3445 2007-04-01 Borut Razem <borut.razem AT siol.net>
3446
3447         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
3448           fixed bug #1692042: input buffer overflow...scanner uses REJECT
3449         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
3450           gcc_unreachable() called internal_error()...
3451
3452 2007-03-30 Raphael Neider <rneider AT web.de>
3453
3454         * src/pic/ralloc.c (isData): suppress garbage debug output
3455
3456 2007-03-28 Borut Razem <borut.razem AT siol.net>
3457
3458         * doc/sdccman.lyx:
3459           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
3460           is developed, built and used worldwide, and the word "night" doesn't
3461           make any sense.
3462
3463 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
3464
3465         * device/include/mcs51/C8051F360.h: new, added
3466         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
3467
3468 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3469
3470         * src/SDCC.y (declaration_specifiers, function_specifier),
3471         * support/Util/SDCCerr.c,
3472         * support/Util/SDCCerr.h,
3473         * src/SDCCsymt.h,
3474         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
3475           inline keyword
3476         * src/SDCCmem.c (deallocParms),
3477         * src/SDCCast.c: support for function inlining, not quite complete
3478         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
3479           'restrict' qualifier
3480
3481 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
3482
3483         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
3484           (saveRBank, unsaveRBank): don't save bits,
3485           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
3486         * support/regression/tests/bug1535242.c: new, added
3487         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
3488           thanks Alexey Shamrin <shamrin AT gmail.com>,
3489           made assert.h header ANSI compliant (added a check for NDEBUG macro,
3490           removed header guard)
3491         * .version,
3492         * sdcc.spec: bumped version to 2.6.5
3493         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
3494
3495 2007-03-22 Borut Razem <borut.razem AT siol.net>
3496
3497         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
3498           fixed bug #1653671: sdcdb integration into ddd is broken
3499
3500 2007-03-22 Raphael Neider <rneider AT web.de>
3501
3502         * src/pic/gen.c (popGetExternal): augmented to also create references
3503           to external variables (not only labels),
3504           (genCall): comment on plan to reduce PAGESEL overhead,
3505           (genFunction, genEndFunction): also save/restore FSR around interrupt
3506           handling code, removed lots of unused code
3507           (genDivOneByte): release acquired temp register
3508         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
3509           of popGetExternal
3510         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
3511           for registers that need to be saved during interrupts (FSR, STATUS,
3512           PCLATH; W needs special handling), currently only FSR is used
3513
3514 2007-03-22 Raphael Neider <rneider AT web.de>
3515
3516         * device/include/pic/pic14devices.txt: 16f688 has only one config word
3517
3518 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3519
3520         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
3521
3522 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
3523
3524         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
3525
3526 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
3527
3528         * as/link/aslink.h: added LKOBJEXT
3529         * as/link/hc08/link_hc08.dsp,
3530         * as/link/hc08/Makefile.bcc,
3531         * as/link/hc08/Makefile.in,
3532         * as/link/mcs51/aslink.dsp,
3533         * as/link/mcs51/Makefile.bcc,
3534         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
3535         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
3536         * as/link/lkaomf51.c: merged and moved
3537         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
3538         * as/link/z80/lkdata.c,
3539         * as/link/lkdata.c: merged and moved
3540         * as/link/hc08/lkmain.c,
3541         * as/link/mcs51/lkmain.c: cosmetic changes
3542         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
3543         * as/link/lklex.c: use LKOBJEXT
3544         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
3545           ANSI-fied functions, removed bubble-sorts
3546         * as/link/z80/lksym.c           as/link/lksym.c: merged,
3547           ANSI-fied functions
3548         * as/link/z80/linkgbz80.dsp,
3549         * as/link/z80/linkz80.dsp,
3550         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
3551           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
3552         * as/link/z80/lkhead.c,
3553         * as/link/z80/lklex.c: deleted
3554         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
3555         * as/link/z80/lkmain.c: added copyfile()
3556
3557 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3558
3559         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
3560
3561 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3562
3563         * device/lib/_strlen.c: assembler version for mcs51
3564
3565 2007-03-13 Raphael Neider <rneider AT web.de>
3566
3567         * device/include/pic16/pic18f2221.h,
3568         * device/include/pic16/pic18f2321.h,
3569         * device/include/pic16/pic18f2331.h,
3570         * device/include/pic16/pic18f4221.h,
3571         * device/include/pic16/pic18f4321.h,
3572         * device/include/pic16/pic18f4331.h: fixed config byte location names
3573         * support/scripts/inc2h-pic16.pl: removed debug output, emit
3574           consistently named config byte locations
3575
3576 2007-03-13 Borut Razem <borut.razem AT siol.net>
3577
3578         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
3579           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
3580           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
3581           as/link/z80/Makefile.in, as/z80/Makefile.in:
3582           introduced LDFLAGS
3583
3584 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3585
3586         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
3587         * device/lib/printf_large.c: pointer was converted to generic
3588         pointer for mcs51 models other than model-small (Maarten noticed)
3589
3590 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3591
3592         * device/include/mcs51/ADuC84x.h: Added.
3593
3594 2007-03-10 Borut Razem <borut.razem AT siol.net>
3595
3596         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
3597           fixed RFE #1624219: double backslashes in filenames;
3598           functions hexEscape(), octalEscape() and copyStr() moved from
3599           SDCCval.c to SDCCutil.c and made them glovbally available
3600
3601 2007-03-09 Borut Razem <borut.razem AT siol.net>
3602
3603         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
3604           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
3605           1673361: Missaligned comments in output files
3606
3607 2007-03-09 Raphael Neider <rneider AT web.de>
3608
3609         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
3610
3611 2007-03-09 Raphael Neider <rneider AT web.de>
3612
3613         * src/pic/gen.c,
3614         * src/pic/glue.c,
3615         * src/pic/ralloc.c: suppress undesired debug output
3616         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
3617
3618 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3619
3620         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
3621
3622 2007-03-07 Borut Razem <borut.razem AT siol.net>
3623
3624         * device/lib/pic16/libdev/pic18f[24][34]31.c:
3625           search include files in the current directory
3626
3627 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
3628
3629         * src/SDCCglue.c (emitMaps, glue),
3630         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
3631           absolute xdata
3632         * support/regression/tests/absolute.c: added xdata test
3633
3634 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
3635
3636         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
3637           added condition to macro, fixes bug 1666080
3638
3639 2007-03-02 Raphael Neider <rneider AT web.de>
3640
3641         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
3642
3643 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3644
3645         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
3646         be cleared. Unconditionally set __XPAGE
3647         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
3648
3649 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3650
3651         * src/SDCCglobl.h,
3652         * src/SDCCmain.c,
3653         * src/mcs51/gen.c,
3654         * src/mcs51/rtrack.c,
3655         * src/ds390/gen.c,
3656         * doc/sdccman.lyx: added --no-gen-comments
3657         * src/mcs51/peeph.def: added 192.b, disabled 185
3658
3659 2007-02-25 Raphael Neider <rneider AT web.de>
3660
3661         * src/pic16/gen.c (genCast): fixed typo
3662         * device/lib/pic16/Makefile.subdir: only install existing files
3663         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
3664
3665 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
3666
3667         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
3668         * device/lib/mcs51/crtclear.asm,
3669         * device/lib/mcs51/crtxclear.asm: renumbered labels
3670         * device/lib/mcs51/Makefile.in: added crtcall.asm
3671         * doc/sdccman.lyx: documented mcs51 crt* library startup code
3672         * src/mcs51/gen.c (movc): removed,
3673           (aopGet, genPlusBits): clear a after loading the carry (possibly from
3674             acc.x or psw.x),
3675           (toCarry, genSend, genRet): added function toCarry,
3676           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
3677           (assignBit, genAssign, genCast): added function assignBit
3678         * src/mcs51/Makefile.bcc: added rtrack.c
3679         * src/mcs51/ralloc.h: made valueKnown a bitfield
3680         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
3681           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
3682           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
3683         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
3684         * src/z80/gen.c: added AOP_IS_PAIRPTR,
3685           (_pop): only pop valid pairs, see gencjneshort,
3686           (gencjneshort): return pair that still needs to be popped, restructured,
3687           (gencjne, genCmpEq): call _pop
3688
3689 2007-02-23 Raphael Neider <rneider AT web.de>
3690
3691         * device/include/pic/pic14devices.txt: 16f684 has only one config word
3692
3693 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3694
3695         * device/include/mcs51/P89LPC925.h: Added.
3696
3697 2007-02-18 Raphael Neider <rneider AT web.de>
3698
3699         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
3700
3701 2007-02-17 Borut Razem <borut.razem AT siol.net>
3702
3703         * support/cpp2/directives.c, support/cpp2/version.c:
3704           synchronized with GCC CPP 4.1.2
3705
3706 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3707
3708         * src/mcs51/rtrack.h,
3709         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
3710           by checking the strings passed by emitcode() to the assembler.
3711           Feel free to change. This in part addresses RFE #482179.
3712           Set environment variable SDCC_RTRACK to enable.
3713         * src/mcs51/gen.c: inserted hooks
3714         * src/mcs51/ralloc.h: added two members to struct regs
3715         * support/regression/tests/regtrack.c: added
3716
3717 2007-02-14 Borut Razem <borut.razem AT siol.net>
3718
3719         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
3720         * Makefile.in: applied patch from Makefile related part of
3721           #1469393: Compiler does not initialize static data
3722
3723 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
3724
3725         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
3726           for better fix of bug 1273984, compiles pic16 rand.c
3727
3728 2007-02-12 Borut Razem <borut.razem AT siol.net>
3729
3730         * src/pic16/main.c: fixed pic16 standard library directory bug
3731
3732 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
3733
3734         * src/hc08/gen.c (genSwap): fix swap regression test
3735
3736 2007-02-10 Borut Razem <borut.razem AT siol.net>
3737
3738         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
3739           with same scope
3740         * support/regression/tests/bug-1654060.c: added regression test for
3741           #1654060
3742
3743 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
3744
3745         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
3746         bit moves in return statement
3747
3748 2007-02-09 Borut Razem <borut.razem AT siol.net>
3749
3750         * src/SDCC.y: fixed bug #1654060 typedef within function causes
3751           syntax error
3752
3753 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3754
3755         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
3756         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
3757
3758 2007-02-07 Raphael Neider <rneider AT web.de>
3759
3760         * src/pic16/devices.inc,
3761         * device/include/pic16/pic18fregs.h,
3762         * device/include/pic16/pic18f[24][34]31.h,
3763         * device/lib/pic16/libdev/pic18f[24][34]31.c,
3764         * device/lib/pic16/pics.all: added 18f[24][34]31 family
3765         * device/lib/pic16/libio/i2c.ignore: do not build i2c
3766
3767 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3768
3769         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
3770           can this have lived here for so many years?
3771         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
3772           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
3773         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
3774
3775 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
3776
3777         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
3778         appended by loop induction must be at the very end of the eBBlock
3779
3780 2007-02-05 Kevin Vigor
3781
3782         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
3783
3784 2007-02-05 Borut Razem <borut.razem AT siol.net>
3785
3786         * support/regression/fwk/lib/timeout.c: native WIN32 port,
3787           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
3788
3789 2007-02-03 Borut Razem <borut.razem AT siol.net>
3790
3791         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
3792           applied patch #1646602 option to set default signedness of char to
3793           unsigned, added -funsigned-char command line option,
3794           thanks to Gunther Jehle
3795         * device/lib/Makefile.in: added the -f option to rm so it doesn't
3796           prompt for file deletion a few hundred times (especially the
3797           subversion files, which have ro permissions so it asks for
3798           confirmation), thanks to Simon McAuliffe;
3799           added {} + option to find in order to remove multiple files from a
3800           single rm commad
3801
3802 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3803
3804         * device/include/mcs51/SST89x5xRDx.h: Added.
3805
3806 2007-02-02 Raphael Neider <rneider AT web.de>
3807
3808         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
3809         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
3810
3811 2007-02-01 Raphael Neider <rneider AT web.de>
3812
3813         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
3814           config words again
3815
3816 2007-01-31 Borut Razem <borut.razem AT siol.net>
3817
3818         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
3819           if compiled with GCC. Thanks to Raphael Neider
3820
3821 2007-01-31 Raphael Neider <rneider AT web.de>
3822
3823         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
3824             operand names, handles name and (name + n) for all n,
3825           (sameBank): restructured, also check bank allocation policy,
3826         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
3827           (pic14_operandsAllocatedInSameBank): check whether to operands
3828             will be allocated into the same bank (i.e., section) to reduce
3829             BANKSEL overhead, queried from pcode.c:sameBank,
3830           (pic14printLocals): reintroduced clustering registers into a single
3831             section: all compiler generated symbols will now reside in one
3832             bank (per file), reducing BANKSEL overhead and code size,
3833           (showAllMemmaps): use local dbuf where possible
3834
3835 2007-01-29 Raphael Neider <rneider AT web.de>
3836
3837         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
3838           (call_libraryfunc): retrieve/create symbol and mark as used,
3839           (genFunction): mark defined functions as non-extern and add again
3840            to code memmap for later output
3841         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
3842           (pic14printLocals): reworked for new symbol emission,
3843           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
3844           showAllMemmaps): reworked symbol output using dbufs, added handling
3845             of string literals (still incomplete),
3846           (picglue): removed symbol emission, moved into showAllMemmaps,
3847           (emitSymbolSet): new workhorse for symbol output,
3848           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
3849
3850 2007-01-29 Borut Razem <borut.razem AT siol.net>
3851
3852         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
3853           component contains the extension separator.
3854
3855 2007-01-28 Borut Razem <borut.razem AT siol.net>
3856
3857         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
3858           on WIN32
3859         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
3860           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
3861           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
3862           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
3863           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
3864           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
3865           src/z80/gen.c, support/Util/MySystem.c:
3866           accept slash and backslash as directory separator on WIN32 and
3867           Cygwin ports
3868
3869 2007-01-28 Raphael Neider <rneider AT web.de>
3870
3871         * src/pic16/devices.inc,
3872         * device/include/pic16/pic18f[24][23]21.h,
3873         * device/include/pic16/pic18fregs.h,
3874         * device/lib/pic16/libdev/pic18f[24][23]21.c,
3875         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
3876         * device/lib/pic16/libio/adc.ignore,
3877         * device/lib/pic16/libio/i2c.ignore,
3878         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
3879           family, as gputils do not yet support the devices
3880         * device/lib/pic16/Makefile.subdir: ignore errors on install
3881         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
3882           headers and libraries from gputils .inc files
3883
3884 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3885
3886         * doc/sdccman.lyx: add printf_fast_f precision limitation note
3887
3888 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3889
3890         * doc/sdccman.lyx: add printf benchmarks
3891
3892 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3893
3894         * device/lib/printf_fast.c: fix %c, char promoted to int
3895         * device/lib/printf_tiny.c: fix %c, char promoted to int
3896
3897 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3898
3899         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
3900
3901 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3902
3903         * support/regression/tests/swap.c: 64 bit hosts failed
3904         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
3905
3906 2007-01-25 Raphael Neider <rneider AT web.de>
3907
3908         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
3909           based on absolute register address, patch by Alex Blond
3910
3911 2007-01-22 Raphael Neider <rneider AT web.de>
3912
3913         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
3914           emitted, do not emit them again...
3915
3916 2007-01-22 Raphael Neider <rneider AT web.de>
3917
3918         * src/regression/bank1.c, src/regression/compare6.c,
3919           src/regression/add.c: cosmetic changes
3920         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
3921         * src/pic/gen.c: fixed global zero and one,
3922           (aopForSym): removed unued code,
3923           (aopGet): assert aop is defined, check and use `index' of
3924             pCodeImmd operands (fixes #1630908),
3925         * src/pic/pcode.c (get_op): added output of generic pointer tag,
3926           (register_reassign): prevent accidental register unification,
3927           (ReuseReg): cosmetic changes (also above)
3928         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
3929           pic14emitStaticSeg): do not emit initialized data,
3930           (printIval*): replaced with working versions,
3931           (pic14createInterruptVect,picglue): use idata for initialized data,
3932             now init data should work in all modules (not only main()),
3933         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
3934
3935 2007-01-21 Borut Razem <borut.razem AT siol.net>
3936
3937         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
3938           use -fPIC or -fpic if they are supported and not ignored
3939         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
3940         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
3941
3942 2007-01-20 Borut Razem <borut.razem AT siol.net>
3943
3944         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
3945           implemented RFE #1470316: allow "$" in variable names
3946
3947 2007-01-20 Raphael Neider <rneider AT web.de>
3948
3949         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
3950
3951 2007-01-20 Raphael Neider <rneider AT web.de>
3952
3953         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
3954         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
3955         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
3956         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
3957           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
3958         * device/lib/pic/libdev/pic*.c,
3959         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
3960         * device/lib/pic/libdev/Makefile.in: show progress
3961
3962 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
3963
3964         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
3965         * support/scripts/sdcc_cygwin_mingw32,
3966         * support/scripts/sdcc_mingw32,
3967         * support/scripts/build.mak: replaced --datadir by --datarootdir for
3968         conformance with autoconf 2.6
3969
3970 2007-01-19 Raphael Neider <rneider AT web.de>
3971
3972         * src/pic/device.c (register_map): fixed list construction
3973         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
3974           (genMod): removed case for genModbits,
3975           (genModbits): removed as now unused/unimplemented
3976         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
3977
3978 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3979
3980         * support/regression/tests/swap.c: added in response to #1638622
3981         * doc/sdccman.lyx: synced version, minor changes
3982
3983 2007-01-18 Borut Razem <borut.razem AT siol.net>
3984
3985         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
3986           thanks to Gunther Jehle
3987         * src/asm.c: don't die if the file drfined in #line couldn't be opened
3988         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
3989           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
3990           use filename in lineno instead.
3991         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
3992           print the file name in ast_print()
3993
3994 2007-01-18 Borut Razem <borut.razem AT siol.net>
3995
3996         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
3997           defined in MSVC
3998         * src/SDCC.lex: stringLiteral() returns const char pointer,
3999           EOF detection in stringLiteral(), fixed asmbuf memory leak,
4000           fixed column counting
4001         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
4002           accept const char pointer as parameter
4003         * src/SDCCdwarf2.c: corrected buffer size
4004
4005 2007-01-17 Borut Razem <borut.razem AT siol.net>
4006
4007         * support/Util/dbuf_string.c: fixed for amd64
4008
4009 2007-01-15 Borut Razem <borut.razem AT siol.net>
4010
4011         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
4012           removed terminal symbol ELIPSIS, since it was never generated by the
4013           lexer and it was wrongly used in parameter_identifier_list rule
4014
4015 2007-01-15 Raphael Neider <rneider AT web.de>
4016
4017         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
4018             code page and data banking description
4019         * src/pic/genarith.c,
4020         * src/pic/gen.h: removed bit arithmetic functions,
4021             updated exit(1) to exit(EXIT_FAILURE)
4022         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
4023         * device/include/pic16/pic18f2455.h,
4024         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
4025             TRISD and TRISE, fixed/added some bit names
4026         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
4027         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
4028             updated pic18f2455.{c,h} instead of duplicating them
4029
4030 2007-01-14 Borut Razem <borut.razem AT siol.net>
4031
4032         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
4033           Cannot debug files that contain spaces in the path name
4034           by converting spaces in asm file name to underscores
4035
4036 2007-01-13 Borut Razem <borut.razem AT siol.net>
4037
4038         * doc/sdccman.lyx: fixed format errors
4039
4040 2007-01-10 Borut Razem <borut.razem AT siol.net>
4041
4042         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
4043           codeseg/constseg #pragma fail
4044         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
4045         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
4046           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
4047           suppoprt/cpp2/sdcpp.[ch]: house cleaning
4048
4049 2007-01-09 Borut Razem <borut.razem AT siol.net>
4050
4051         * get rid of diagnistic.[ch], pretty-print.[ch],
4052           c-pretty-print.[ch], ... used just for error, warning, ...
4053           message formatting
4054         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
4055           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
4056           suppoprt/cpp2/pretty-print.[ch]:
4057           removed
4058         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
4059           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
4060           suppoprt/cpp2/sdcpp.dsp:
4061           changed
4062
4063 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
4064
4065         * device/lib/printf_large.c (output_float): removed recursion,
4066           use smaller buffer on stack for mcs51,
4067           fixed bug printing 1.96
4068         * support/regression/tests/snprintf.c: added test
4069
4070 2007-01-07 Borut Razem <borut.razem AT siol.net>
4071
4072         * use dynamic memory buffers instead temporary files
4073         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
4074           added
4075         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
4076           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
4077           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
4078           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
4079           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
4080           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
4081           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
4082           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
4083           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
4084           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
4085           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
4086           support/Util/dbuf.c, support/Util/dbuf.h:
4087           modified
4088         * .version, sdcc.spec: bumped version to 2.6.4
4089
4090 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
4091
4092         * src/port.h: added TARGET_Z80_LIKE macro
4093         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
4094           output PSEG location if --xram-loc or --xstack-loc was used
4095         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
4096
4097 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
4098
4099         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
4100         * as/as_z80.dsp,   as/z80/as_z80.dsp,
4101         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
4102         * sdcc.dsw: moved project files into subdir
4103         * as/hc08/as_hc08.dsp,
4104         * as/hc08/Makefile.bcc,
4105         * as/hc08/Makefile.in,
4106         * as/mcs51/Makefile.bcc,
4107         * as/mcs51/Makefile.in,
4108         * as/z80/Makefile.bcc,
4109         * as/z80/Makefile.in,
4110         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
4111         * as/hc08/asm.h,
4112         * as/mcs51/asm.h,
4113         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
4114         * as/hc08/asmain.c,
4115         * as/hc08/assym.c,
4116         * as/mcs51/asmain.c,
4117         * as/mcs51/assym.c,
4118         * as/z80/assym.c: removed include "strcmpi.h"
4119         * as/hc08/strcmpi.c,
4120         * as/hc08/strcmpi.h,
4121         * as/mcs51/strcmpi.c,
4122         * as/mcs51/strcmpi.h,
4123         * support/Util/strcmpi.c,
4124         * support/Util/strcmpi.h: removed files
4125         * as/strcmpi.c: added as_strncmpi()
4126
4127 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4128
4129         * sdcc.dsw: Added some dependencies on project config.dsp
4130
4131 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
4132
4133         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
4134           with [di]ram_start to fix a regresion
4135
4136 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
4137
4138         * configure.in: added missing mcs51 in status output
4139         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
4140         directory
4141         * debugger/mcs51/clean.mk (distclean): remove config.h
4142         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
4143         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
4144         options.h, s-options-h and options.c
4145         * support/cpp2/clean.mk: unused, removed
4146         * Makefile.common.in,
4147         * main_in.mk,
4148         * as/Makefile.in,
4149         * as/hc08/Makefile.in,
4150         * as/hc08/clean.mk,
4151         * as/mcs51/Makefile.in,
4152         * as/mcs51/clean.mk,
4153         * as/z80/clean.mk,
4154         * as/z80/conf.mk,
4155         * as/z80/Makefile.in,
4156         * as/z80/clean.mk,
4157         * as/link/Makefile.in,
4158         * as/link/hc08/Makefile.in,
4159         * as/link/hc08/clean.mk,
4160         * as/link/mcs51/Makefile.in,
4161         * as/link/mcs51/clean.mk,
4162         * as/link/z80/Makefile.in,
4163         * as/link/z80/clean.mk,
4164         * as/link/z80/conf.mk,
4165         * debugger/mcs51/Makefile.in,
4166         * debugger/mcs51/clean.mk,
4167         * device/include/Makefile.in,
4168         * device/lib/Makefile.in,
4169         * device/lib/mcs51/Makefile.in,
4170         * device/lib/pic/Makefile.in,
4171         * device/lib/pic/Makefile.common.in,
4172         * device/lib/pic/Makefile.subdir,
4173         * device/lib/pic/Makefile.rules,
4174         * device/lib/pic16/libio/Makefile.in,
4175         * device/lib/pic16/Makefile.subdir,
4176         * device/lib/pic16/libdev/Makefile.in,
4177         * device/lib/pic16/Makefile.rules,
4178         * device/lib/pic16/Makefile.common.in,
4179         * sim/ucsim/avr.src/Makefile.in,
4180         * sim/ucsim/main_in.mk,
4181         * sim/ucsim/cmd.src/Makefile.in,
4182         * sim/ucsim/doc/Makefile.in,
4183         * sim/ucsim/gui.src/Makefile.in,
4184         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
4185         * sim/ucsim/gui.src/serio.src/Makefile.in,
4186         * sim/ucsim/hc08.src/Makefile.in,
4187         * sim/ucsim/libltdl/Makefile.in,
4188         * sim/ucsim/s51.src/Makefile.in,
4189         * sim/ucsim/sim.src/Makefile.in,
4190         * sim/ucsim/sim.src/conf.mk,
4191         * sim/ucsim/xa.src/Makefile.in,
4192         * sim/ucsim/z80.src/Makefile.in,
4193         * src/Makefile.in,
4194         * src/clean.mk,
4195         * src/port.mk,
4196         * support/cpp2/Makefile.in,
4197         * support/librarian/Makefile.in,
4198         * support/librarian/clean.mk,
4199         * support/makebin/Makefile.in,
4200         * support/makebin/clean.mk,
4201         * support/packihx/Makefile.in,
4202         * support/regression/Makefile.in,
4203         * support/regression/ports/ds390/spec.mk,
4204         * support/regression/ports/gbz80/spec.mk,
4205         * support/regression/ports/hc08/spec.mk,
4206         * support/regression/ports/mcs51/spec.mk,
4207         * support/regression/ports/mcs51-large/spec.mk,
4208         * support/regression/ports/mcs51-medium/spec.mk,
4209         * support/regression/ports/mcs51-xstack-auto/spec.mk,
4210         * support/regression/ports/pic14/spec.mk,
4211         * support/regression/ports/pic16/spec.mk,
4212         * support/regression/ports/mcs51-stack-auto/spec.mk,
4213         * support/regression/ports/ucz80/spec.mk,
4214         * support/regression/ports/xa51/spec.mk,
4215         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
4216         adding a slash after $(top_builddir) and/or adding @datarootdir@
4217         * configure.in,
4218         * debugger/mcs51/configure.in,
4219         * device/lib/pic/configure.in,
4220         * device/lib/pic16/configure.in,
4221         * sim/ucsim/configure.in,
4222         * support/cpp2/configure.in,
4223         * support/packihx/configure.in: changed AC_PREREQ to 2.60
4224         * configure,
4225         * debugger/mcs51/configure,
4226         * device/lib/pic/configure,
4227         * device/lib/pic16/configure,
4228         * sim/ucsim/configure,
4229         * support/cpp2/configure,
4230         * support/packihx/configure: generated with autoconf 2.60
4231
4232 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
4233
4234         * as/link/hc08/lkihx.c (newArea),
4235         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
4236
4237 2007-01-02 Borut Razem <borut.razem AT siol.net>
4238
4239         * doc/sdccman.lyx: documented #pragma sdcc_hash
4240         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
4241           initialized to 0
4242         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
4243
4244 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
4245
4246         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
4247         empty 'while'-loop to work correctly, see regression test 'while.c'
4248         * support/regression/tests/while.c: added
4249
4250 2007-01-01 Borut Razem <borut.razem AT siol.net>
4251
4252         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
4253           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
4254           support/cpp2/libcpp/sdcpp.c:
4255           sdcpp specific pragma/directive/option handling moved to sdcpp.c
4256         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
4257         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
4258
4259 2006-12-31 Borut Razem <borut.razem AT siol.net>
4260
4261         * SDCPP synchronized with GCC CPP release version 4.1.1,
4262           currently the latest release:
4263         * support/cpp2/libcpp, support/cpp2/libcpp/include,
4264           support/cpp2/libcpp/include/cpp-id-data.h
4265           support/cpp2/libiberty/fopen_unlocked.c
4266           support/cpp2/libiberty/md5.c
4267           support/cpp2/md5.h
4268           support/cpp2/opt-functions.awk
4269           support/cpp2/opt-gather.awk
4270           support/cpp2/optc-gen.awk
4271           support/cpp2/opth-gen.awk:
4272           added
4273         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
4274           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
4275           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
4276           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
4277           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
4278           support/cpp2/diagnostic.h, support/cpp2/except.h,
4279           support/cpp2/hwint.h, support/cpp2/input.h,
4280           support/cpp2/intl.h, support/cpp2/move-if-change,
4281           support/cpp2/opts.c, support/cpp2/opts.h,
4282           support/cpp2/output.h, support/cpp2/prefix.c,
4283           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
4284           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
4285           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
4286           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
4287           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
4288           support/cpp2/version.c:
4289           modified
4290         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
4291           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
4292           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
4293           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
4294           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
4295           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
4296           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
4297           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
4298           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
4299           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
4300           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
4301           moved
4302         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
4303           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
4304           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
4305           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
4306           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
4307           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
4308           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
4309           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
4310           support/cpp2/hashtable.h, support/cpp2/line-map.c,
4311           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
4312           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
4313           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
4314           support/cpp2/system.h:
4315           deleted / moved
4316
4317 2006-12-31 Borut Razem <borut.razem AT siol.net>
4318
4319         * configure.in, configure: fixed bug #1538756: configure dies if bison
4320           and flex are not installed, 2nd try
4321
4322 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
4323
4324         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
4325         400.x for better code in RFE 899102
4326
4327 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
4328
4329         * src/SDCCpeeph.c (deadMove),
4330         * src/port.h,
4331         * src/mcs51/peep.h: renamed 'op' by 'reg'
4332         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
4333         (scan4op): small change for removeDeadMove(), added support for
4334         'callee saves' and/or PACLL function calls,
4335         (removeDeadMove): added, removes superflous 'mov r%1,%2',
4336         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
4337         left in new dispatcher mcs51DeadMove()
4338         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
4339         removeDeadMove()
4340         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
4341
4342 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4343
4344         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
4345           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
4346
4347 2006-12-30 Borut Razem <borut.razem AT siol.net>
4348
4349         * support/cpp2/spacs.h: deleted from svn
4350         * configure.in, configure: fixed bug #1538756: configure dies if bison
4351           and flex are not installed
4352
4353 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
4354
4355         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
4356           with this z80 passes printf float test when enabled
4357         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
4358
4359 2006-12-28 Borut Razem <borut.razem AT siol.net>
4360
4361         * support/cpp2/config.in, support/cpp2/configure.in,
4362           support/cpp2/configure, support/cpp2/Makefile.in:
4363           fix for the solaris build
4364
4365 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4366
4367         * src/SDCC.y (type_specifier2, pointer),
4368         * src/SDCCsymt.h,
4369         * src/SDCCsymt.c (mergeSpec, checkSClass),
4370         * support/Util/SDCCerr.c,
4371         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
4372         * support/valdiag/valdiag.py: Allow test cases to specify
4373           required language standard
4374         * support/valdiag/tests/restrict.c: New file to test restrict keyword
4375         * support/valdiag/tests/tentdecl.c: Supress empty source file error
4376
4377 2006-12-27 Borut Razem <borut.razem AT siol.net>
4378
4379         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
4380         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
4381           mbchar removed
4382         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
4383           fixed for borland C
4384         * support/cpp2/libiberty/Makefile.bcc: updated
4385         * src/pic16/main.c: fixed #pragma udata handling
4386         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
4387
4388 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
4389
4390         * src/SDCCpeeph.c: made labelHashEntry global,
4391         made pcDistance, FBYNAME static,
4392         (pcDistance): made static, use isComment and isLabel,
4393         (deadMove): added,
4394         (getLabelRef): added, extracted from labelRefCount(),
4395         (labelRefCount): use new getLabelRef(),
4396         (callFuncByName): made static, added deadMove,
4397         use isComment and isLabel,
4398         (newPeepRule): made static, set isLabel,
4399         (isLabelDefinition): added parameter isPeepRule to allow '%' in
4400         labels from peephole rules,
4401         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
4402         when isComment or isLabel is set
4403         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
4404         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
4405         to make them global
4406         * src/mcs51/peep.h: added
4407         * src/mcs51/peep.c: added, implements mcs51DeadMove()
4408         * src/port.h: added peep->deadMove to port structure
4409         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
4410         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
4411         deadMove, finally removed no. 1 and 2
4412         * src/mcs51/gen.c,
4413         * src/pic/gen.c,
4414         * src/z80/gen.c,
4415         * src/z80/ralloc.c,
4416         * src/pic16/gen.c,
4417         * src/ds390/gen.c,
4418         * src/hc08/gen.c: mark lines with isComment or isLabel
4419         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
4420         * .version,
4421         * sdcc.spec: bumped version to 2.6.3
4422
4423 2006-12-26 Borut Razem <borut.razem AT siol.net>
4424
4425         * support/cpp2/Makefile.in: added dependency on options.h
4426         * configure: regenerated
4427         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
4428         * support/cpp2/Makefile.in: added vasprintf.c
4429
4430 2006-12-25 Borut Razem <borut.razem AT siol.net>
4431
4432         * SDCPP synchronized with GCC CPP release version 3.4.6,
4433           the latest release before 4.x:
4434         * support/cpp2/Makefile.in, support/cpp2/config.h,
4435           support/cpp2/configure, support/cpp2/configure.in,
4436           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
4437           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
4438           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
4439           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
4440           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
4441           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
4442           support/cpp2/cpptrad.c, support/cpp2/except.h,
4443           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
4444           support/cpp2/hwint.h, support/cpp2/intl.h,
4445           support/cpp2/line-map.c, support/cpp2/line-map.h,
4446           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
4447           support/cpp2/output.h, support/cpp2/prefix.c,
4448           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
4449           support/cpp2/system.h, support/cpp2/version.c:
4450           modified
4451         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
4452           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
4453           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
4454           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
4455           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
4456           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
4457           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
4458           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
4459           support/cpp2/move-if-change, support/cpp2/opts.c,
4460           support/cpp2/opts.h, support/cpp2/opts.sh,
4461           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
4462           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
4463           support/cpp2/win32, support/cpp2/win32/dirent.c,
4464           support/cpp2/win32/dirent.h:
4465           added
4466         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
4467         * support/cpp2/sdcpp.h: renamed from sdcc.h
4468         * sdcppinit.c: deleted
4469
4470 2006-12-23 Borut Razem <borut.razem AT siol.net>
4471
4472         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
4473           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
4474           preproc.c: an other try to fix bug #982435: introduced
4475           -pedantic-parse-number command line option and pedantic_parse_number
4476           pragma
4477
4478 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
4479
4480         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
4481            BSEG handling,
4482           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
4483            corrected overlayed areax addresses, warn about memory overlaps
4484         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
4485         * src/avr/main.c,
4486         * src/ds390/main.c,
4487         * src/hc08/main.c,
4488         * src/mcs51/main.c,
4489         * src/pic16/main.c,
4490         * src/pic/main.c,
4491         * src/xa51/main.c,
4492         * src/z80/main.c,
4493         * src/port.h: added xabs_name and iabs_name
4494         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
4495           (glue, emitMaps): create and emit maps d_abs and i_abs
4496         * src/SDCCglue.h: cosmetic changes
4497         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
4498         * src/SDCCmem.h,
4499         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
4500           (allocDefault): put absolute, initialized globals in them
4501         * support/regression/tests/absolute.c: added absolute bdata test
4502         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
4503
4504 2006-12-20 Borut Razem <borut.razem AT siol.net>
4505
4506         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
4507         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
4508           added regression test for bug #982435
4509
4510 2006-12-18 Borut Razem <borut.razem AT siol.net>
4511
4512         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
4513         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
4514           small cosmetic changes
4515         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
4516         * support/regression/tests/bug-1351710.c: added regression test
4517
4518 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4519
4520         * doc/sdccman.lyx: added the long missed iCode table
4521           "<where is figure II?>", added links to wiki
4522
4523 2006-12-17 Borut Razem <borut.razem AT siol.net>
4524
4525         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
4526           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
4527           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
4528           unified table driven pragma handling, pragma argument type checking
4529         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
4530           current one - version 1.1.3
4531         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
4532
4533 2006-12-13 Raphael Neider <rneider AT web.de>
4534
4535         * src/pic/device.h: removed AssignedMemory structure and macros
4536         * src/pic/device.c: removed global finalMapping (linker assigns
4537             memory locations),
4538           (register_map): add SFRs to remembered memRanges
4539           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
4540           assignFixedRegisters,assignRelocatableRegisters): removed,
4541           (setMaxRAM,validAddress): adapted accordingly,
4542           (pic14_hasSharebank,pic14_getSharedStack): only report and use
4543             reasonably sized sharebanks,
4544         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
4545           (allDefsOutOfRange): removed unused code,
4546         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
4547             handling
4548         * src/pic/pcode.c (register_reassign): removed recursion warning,
4549             fired far too often,
4550         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
4551             to use existing pic14_stringInSet() to avoid duplicate symbols,
4552             tidied up the code a bit,
4553           (pic14printLocals): added in symmetry to printExterns, replaces
4554             writeUsedRegs more or less,
4555           (picglue): call new pic14_printLocals(),
4556         * device/include/pic/pic*.h: removed #pragma memmap directives,
4557             information gathered from include/pic/pic14devices.txt
4558         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
4559
4560 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
4561
4562         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
4563
4564 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4565
4566         * device/include/mcs51/cc2430.h: fixed missing ';'
4567
4568 2006-12-10 Raphael Neider <rneider AT web.de>
4569
4570         * device/lib/pic16/libc/stdio/vfprintf.c,
4571         * device/lib/pic16/libc/stdio/printf_small.c,
4572         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
4573           char arguments, as char varargs are cast to int by the caller,
4574           hopefully fixes #1604915 (other device libraries are still affected)
4575
4576 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4577
4578         * src/mcs51/ralloc.c (packRegsForAssign),
4579         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
4580
4581 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
4582
4583         * device/include/malloc.h: removed init_dynamic_memory
4584         * device/lib/malloc.c: made init_dynamic_memory static and automatically
4585           call it once from malloc. Also use _sdcc_heap[] from _heap.c
4586         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
4587         * device/lib/libsdcc.lib,
4588         * device/lib/Makefile.in,
4589         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
4590         * doc/sdccman.lyx: documented use of new _heap.c
4591         * support/regression/tests/malloc.c: removed init_dynamic_memory
4592         * src/cdbFile.c(spacesToUnderscores): new function,
4593           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
4594           1068030
4595         * device/include/tinibios.h: removed defines for putchar and getchar
4596         * device/lib/ds390/Makefile.in: added putchar.c
4597         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
4598
4599 2006-12-09 Borut Razem <borut.razem AT siol.net>
4600
4601         * support/cpp2/sdcc.h: prevent multiple inclusion
4602         * support/cpp2/options.h: deleted
4603
4604 2006-12-08 Borut Razem <borut.razem AT siol.net>
4605
4606         * support/cpp2/sdcc.h: removed x*alloc() macros
4607         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
4608         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
4609           support/cpp2/sdcpp.sdc: x*alloc files added to the project
4610         * support/cpp2/system.h: moved #include "sdcc.h"
4611         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
4612           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
4613           added
4614         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
4615           -funsigned-char options
4616         * support/cpp2/sdcppmain.c: fixed bug 1611411
4617
4618 2006-12-07 Borut Razem <borut.razem AT siol.net>
4619
4620         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
4621           directive
4622
4623 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
4624
4625         * src/SDCCsymt.c (addDecl): fixed bug 1609244
4626         * src/SDCCmain.c (linkEdit): fixed bug 1609279
4627         * doc/sdccman.lyx,
4628         * .version: bumped to 2.6.2 because a) it's been a while
4629           b) the linker sources have moved c) the preprocessor is upgraded
4630
4631 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4632
4633         * support/regression/tests/snprintf.c: some checks
4634         * lib/src/printf_large.c: %bc: read char instead of int from stack
4635
4636 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
4637
4638         * device/include/mcs51/cc2430.h: inserted _XPAGE
4639
4640 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4641
4642         * device/include/mcs51/cc2430.h: added
4643
4644 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
4645
4646         * device/include/asm/default/features.h,
4647         * device/include/asm/ds390/features.h,
4648         * device/include/mcs51/at89s53.h,
4649         * device/include/ser.h,
4650         * device/include/ser_ir.h,
4651         * device/include/serial.h: changed keywords to double underscore variants,
4652           fixes bug 1590261 some more, thanks Steven Borley
4653
4654 2006-12-01 Raphael Neider <rneider AT web.de>
4655
4656         * src/pic/pcode.c (register_reassign): do not crash on recursive code
4657           but emit warning (recursion is not supported for pic14)
4658
4659 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4660
4661         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
4662         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
4663
4664 2006-11-30 Raphael Neider <rneider AT web.de>
4665
4666         * src/pic/device.c (dump_sfr): always emit symbols
4667         * src/pic/glue.c (pic14printPublics): fixed typo
4668
4669 2006-11-30 Raphael Neider <rneider AT web.de>
4670
4671         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
4672           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
4673           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
4674            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
4675            a sharebank, use a non-shared bank for the stack if none available
4676         * src/pic/device.h (struct memRange): added linked list next field,
4677           added prototypes for above functions
4678         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
4679           (typeRegWithIdx): accept fixed and unfixed stack registers
4680         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
4681           the stack, handle shared and banked stack (except for WSAVE),
4682           (insertBankSel): removed useless optimization (will never fire),
4683           (FixRegisterBanking): added optimization for devices with only one
4684           possibly aliased bank of memory, like 16f84
4685         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
4686           devices have no SHAREBANK in the linker script
4687         * device/include/pic/pic14devices.txt: documented memmap
4688         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
4689
4690 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4691
4692         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
4693           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
4694           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
4695           genhc08Code): switched most of the D (debug) macros to DD (detailed
4696           debug) macros to better control clutter in the generated .asm file.
4697         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
4698           genRightShift): fixed bug with non-constant bit shift stored to
4699           a volatile result (SF Open Discussion forum thread #1616749).
4700           Single byte case is not yet optimized.
4701
4702 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
4703
4704         * device/include/asm/mcs51/features.h,
4705         * device/include/malloc.h,
4706         * device/include/stdio.h: changed keywords to double underscore variants,
4707           fixes bug 1590261
4708
4709 2006-11-27 Borut Razem <borut.razem AT siol.net>
4710
4711         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4712           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
4713           support/cpp2/output.h, support/cpp2/cppinit.c,
4714           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
4715           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4716           support/cpp2/cppdefault.c, support/cpp2/system.h,
4717           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
4718           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
4719           support/cpp2/prefix.c, support/cpp2/except.h,
4720           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
4721           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
4722           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4723           support/cpp2/version.c, support/cpp2/cppmain.c,
4724           support/cpp2/version.h, support/cpp2/hashtable.c,
4725           support/cpp2/cpperror.c:
4726           synchronized with GCC CPP release version 3.3.6,
4727           the latest where cppmain.c still exists.
4728         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
4729           support/cpp2/sdcppinit.c: added
4730
4731 2006-11-27 Borut Razem <borut.razem AT siol.net>
4732
4733         * support/cpp2/cpplex.c:
4734           fixed _asm ... _endasm handling bug, introduce with GCC CPP
4735           synchronization
4736         * support/cpp2/cpplib.c: removed definitions of unused variables
4737
4738 2006-11-26 Borut Razem <borut.razem AT siol.net>
4739
4740         * support/cpp2/libiberty.h: commented out x*alloc() declarations
4741           since they are redefined by macros in support/cpp2/sdcc.h
4742         * support/cpp2/sdcc.h: x*alloc macro redefinition
4743
4744 2006-11-25 Borut Razem <borut.razem AT siol.net>
4745
4746         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4747           support/cpp2/configure, support/cpp2/Makefile.in,
4748           support/cpp2/cppfiles.c, support/cpp2/output.h,
4749           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
4750           support/cpp2/config.h, support/cpp2/cpplib.h,
4751           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4752           support/cpp2/cppdefault.c, support/cpp2/config.in,
4753           support/cpp2/system.h, support/cpp2/cpplex.c,
4754           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
4755           support/cpp2/cppdefault.h, support/cpp2/prefix.c
4756           support/cpp2/hwint.h, support/cpp2/mbchar.h,
4757           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
4758           support/cpp2/configure.in, support/cpp2/intl.h,
4759           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
4760           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4761           support/cpp2/version.c, support/cpp2/cppmain.c,
4762           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
4763           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
4764           support/cpp2/cpperror.c,
4765           support/cpp2/libiberty/safe-ctype.c,
4766           support/cpp2/libiberty/safe-ctype.h,
4767           support/cpp2/libiberty/splay-tree.c,
4768           support/cpp2/libiberty/obstack.c,
4769           support/cpp2/libiberty/lbasename.c,
4770           support/cpp2/libiberty/splay-tree.h,
4771           support/cpp2/libiberty/obstack.h:
4772           synchronized with GCC CPP release version 3.2.3,
4773           the latest before integration of cpp into gcc
4774         * support/cpp2/except.h, support/cpp2/line-map.c,
4775           support/cpp2/line-map.h,
4776           support/cpp2/libiberty/hex.c,
4777           support/cpp2/libiberty/concat.c,
4778           support/cpp2/libiberty/filenames.h: added
4779         * support/cpp2/intl.c: deleted
4780
4781 2006-11-24 Borut Razem <borut.razem AT siol.net>
4782
4783         * src/SDCC.y: enabled compilation of empty source file
4784         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
4785           "ISO C forbids an empty source file"
4786         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
4787           if all the code is ifdefed out.
4788
4789 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4790
4791         * src/hc08/gen.c (genPcall): fix for bug #1601032
4792
4793 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4794
4795         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
4796         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
4797         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
4798         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
4799         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
4800         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
4801         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
4802         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
4803         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
4804         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
4805         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
4806         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
4807         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
4808         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
4809         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
4810           Renamed to all upper case as per the standard set by SiLabs
4811
4812 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4813
4814         * device/include/mcs51/C8051F520.h: new, added
4815         * device/include/mcs51/compiler.h: added link about predefined macros
4816
4817 2006-11-23 Raphael Neider <rneider AT web.de>
4818
4819         * src/regression/Makefile: add -L path to fresh library
4820         * src/regression/simulate: emphasize FAILED output
4821         * src/regression/create_stc: output _failures from gpsim
4822         * src/regression/compare4.c,
4823         * src/regression/rotate6.c: fixed char literals,
4824           all compile, all run =8-D
4825
4826         * src/pic/pcode.h: added isPCASMDIR macro
4827         * src/pic/gen.c (genAnd): fixed bit offset
4828         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
4829           packBits): unified register numbering schemes,
4830           (newReg): do not insert stack registers into hash table,
4831           (initStack): unpinned pseudo stack, simplified,
4832           (typeRegWithIdx): fixed retrieval of stack registers,
4833         * src/pic/pcode.c (addpCodeComment,sameBank): added,
4834           (pCodeReplace): removed invalid assertion,
4835           (insertPCodeInstruction): fixed newly added labels,
4836           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
4837           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
4838           DumpFlow): removed unsed (broken?) code,
4839           (insertBankSel): prevent STATUS from being BANKSELed,
4840           (FixRegisterBanking): rewritten from scratch, implemented generic
4841             optimizations (suppress BANKSELs to same register and to registers
4842             present in all banks),
4843           (AnalyzeBanking): update flow after BANKSELection
4844
4845         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
4846             sharebank, let linker place it, mark STKxx symbols as emitted
4847
4848 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4849
4850         * src/regression/arrays.c,
4851         * src/regression/bank1.c,
4852         * src/regression/bool2.c,
4853         * src/regression/compare7.c,
4854         * src/regression/compare8.c,
4855         * src/regression/compare9.c,
4856         * src/regression/compare10.c,
4857         * src/regression/configword.c,
4858         * src/regression/for.c,
4859         * src/regression/mult1.c,
4860         * src/regression/pointer1.c,
4861         * src/regression/rotate6.c,
4862         * src/regression/string1.c,
4863         * src/regression/struct1.c,
4864         * src/regression/Makefile: make PIC14 regression tests run again
4865           (3 fail, 6 won't compile)
4866
4867 2006-11-21 Raphael Neider <rneider AT web.de>
4868
4869         * device/include/pic16/pic18f4550.h,
4870         * device/include/pic16/pic18f4455.h,
4871         * device/lib/pic16/libdev/pic18f4550.c,
4872         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
4873         * configure.in: removed superfluous closing bracket
4874
4875 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4876
4877         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
4878           always positive.
4879
4880 2006-11-21 Raphael Neider <rneider AT web.de>
4881
4882         * src/pic/device.{c,h}: added pic14_getPIC()
4883         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
4884           (genAnd): added PIC code for one case, fixes #1597044
4885         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
4886           SFRs that are present in all banks (e.g., STATUS)
4887
4888 2006-11-20 Raphael Neider <rneider AT web.de>
4889
4890         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
4891           INCFSZ/INCFSZW and declared them as changing Z bit,
4892           (insertPCodeInstruction): correctly invert the above instructions,
4893           fixes #1599333,
4894           (DoBankSelect): don't panic on po_immediates
4895
4896 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4897
4898         * as/link/aslink.h,
4899         * as/link/mcs51/lkihx.c (newArea),
4900         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
4901         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
4902
4903 2006-11-11 Raphael Neider <rneider AT web.de>
4904
4905         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
4906           bitfield symbols, fixes #1579535 (once more...).
4907
4908 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4909
4910         * support/regression/generate-cases.py,
4911         * support/regression/fwk/include/testfwk.h,
4912         * support/regression/fwk/lib/testfwk.c: used code pointers,
4913           (about 50kByte less code generated for mcs51)
4914
4915 2006-11-06 Borut Razem <borut.razem AT siol.net>
4916
4917         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4918           debugger/mcs51/configure: fixed failed check because the function
4919           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
4920           who submitted the patch for gpsim.
4921         * debugger/mcs51/configure.in: removed the result message
4922         * debugger/mcs51/Makefile.in: fixed the config.status warning
4923           "... seems to ignore the --datarootdir setting"
4924
4925 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
4926
4927         * device/include/mcs51/c8051f020.h,
4928         * device/include/mcs51/c8051f040.h,
4929         * device/include/mcs51/c8051f060.h,
4930         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
4931         * src/z80/gen.c (gencjneshort),
4932         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
4933
4934 2006-10-31 Borut Razem <borut.razem AT siol.net>
4935
4936         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4937           debugger/mcs51/configure: get readline version
4938
4939 2006-10-30 Borut Razem <borut.razem AT siol.net>
4940
4941         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
4942         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4943           debugger/mcs51/configure: locate readline even when cross compiling
4944         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
4945
4946 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4947
4948         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
4949           serial port.
4950
4951 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4952
4953         * device/include/malloc.h,
4954         * device/lib/calloc.c,
4955         * device/lib/free.c,
4956         * device/lib/malloc.c,
4957         * device/lib/realloc.c: moved definition of struct into sources
4958         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
4959
4960 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4961
4962         * as/asx8051.dsp: corrected output directories
4963         * as/link/hc08: new directory for hc08 linker
4964         * as/hc08/aslink.h,             as/link/aslink.h,
4965         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
4966         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
4967         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
4968         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
4969         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
4970         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
4971         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
4972         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
4973         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
4974         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
4975         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
4976         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
4977         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
4978         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
4979         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
4980         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
4981         * as/link/hc08/conf.mk,
4982         * configure,
4983         * configure.in,
4984         * Makefile.in,
4985         * sdcc.dsw: moved hc08 linker to as/link/hc08
4986         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
4987         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
4988         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
4989         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
4990         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
4991         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
4992         * as/link/mcs51/aslink.dsp,
4993         * as/link/mcs51/Makefile.in: factored out the common files
4994         * as/hc08/lkstore.c: deleted, use the one already in as/link/
4995         * as/clean.mk: extra cleaning common files
4996         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
4997         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
4998         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
4999
5000 2006-10-29 Raphael Neider <rneider AT web.de>
5001
5002         * src/pic/ralloc.c (newReg): create aliases for registers with
5003           multiple names to fix #1579535 and #1584001,
5004           (regWithIdx,dirregWithName): resolve aliases on lookup
5005         * src/pic/pcode.c (DoBankSelect): die with error message on failing
5006           bankselect
5007         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
5008           to prevent build errors on small devices
5009
5010 2006-10-28 Raphael Neider <rneider AT web.de>
5011
5012         * src/pic/gen.c (genFunction,genCall): drop "same code page"
5013           assumption within interrupt handlers, fixes #1584940
5014         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
5015           "emitted" to avoid emitting them again in udata
5016
5017 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5018
5019         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
5020         Removed.
5021
5022 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5023
5024         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
5025         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
5026         on/off CR to CRLF conversion.
5027
5028 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5029
5030         * doc/sdccman.lyx: updated IRQ section
5031
5032 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5033
5034         * device/lib/serial_io.c: removed
5035         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
5036         replacements for serial_io.c
5037
5038 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
5039
5040         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
5041
5042 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5043
5044         * device/lib/serial_io.c: Default putchar() and getchar() for
5045           mcs51 uses serial port.
5046
5047 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
5048
5049         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
5050
5051 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5052
5053         * support/regression/ports/mcs51/support.c: smaller
5054         _sdcc_external_startup()
5055         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
5056
5057 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
5058
5059         * device/lib/gbz80/crt0.s,
5060         * device/lib/gbz80/crt0_rle.s,
5061         * device/lib/gbz80/div.s,
5062         * device/lib/gbz80/fstubs.s,
5063         * device/lib/gbz80/heap.s,
5064         * device/lib/gbz80/mul.s,
5065         * device/lib/gbz80/putchar.s,
5066         * device/lib/gbz80/stubs.s,
5067         * device/lib/z80/crt0.s,
5068         * device/lib/z80/crt0_rle.s,
5069         * device/lib/z80/div.s,
5070         * device/lib/z80/fstubs.s,
5071         * device/lib/z80/heap.s,
5072         * device/lib/z80/mul.s,
5073         * device/lib/z80/putchar.s,
5074         * device/lib/z80/stubs.s: reverted, I was mistaken
5075
5076 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5077
5078         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
5079         * support/regression/ports/mcs51/support.c: removed race
5080         condition on TI in _putchar allowing to use serial port mode 0
5081
5082 2006-10-20 Borut Razem <borut.razem AT siol.net>
5083
5084         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
5085
5086 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
5087
5088         * device/lib/gbz80/crt0.s,
5089         * device/lib/gbz80/crt0_rle.s,
5090         * device/lib/gbz80/div.s,
5091         * device/lib/gbz80/fstubs.s,
5092         * device/lib/gbz80/heap.s,
5093         * device/lib/gbz80/mul.s,
5094         * device/lib/gbz80/putchar.s,
5095         * device/lib/gbz80/stubs.s,
5096         * device/lib/z80/crt0.s,
5097         * device/lib/z80/crt0_rle.s,
5098         * device/lib/z80/div.s,
5099         * device/lib/z80/fstubs.s,
5100         * device/lib/z80/heap.s,
5101         * device/lib/z80/mul.s,
5102         * device/lib/z80/putchar.s,
5103         * device/lib/z80/stubs.s: removed all leading underscores from area names
5104
5105 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
5106
5107         * support/regression/ports/mcs51/support.c: use highest baudrate so the
5108           regression tests are not waiting in the simulator for simulated
5109           transmission of debug output
5110
5111 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5112
5113         * device/lib/printf_large.c: slightly smaller
5114         * doc/sdccman.lyx: do not use spaces within html links
5115
5116 2006-10-16 Borut Razem <borut.razem AT siol.net>
5117
5118         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
5119           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
5120           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
5121           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
5122           debugger/mcs51/configure:
5123           [ 1185668 ] add gnu readline support to sdcdb - enabled
5124
5125 2006-10-16 Raphael Neider <rneider AT web.de>
5126
5127         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
5128           fixes #1577882, removes close to all banking optimizations
5129
5130 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
5131
5132         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
5133           variables in code memory
5134         * support/regression/tests/absolute.c: added test for this
5135
5136 2006-10-15 Raphael Neider <rneider AT web.de>
5137
5138         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
5139           devices,
5140           (BankSelect): emit BANKSEL before touching linker-placed regs,
5141           fixes #1570934
5142
5143 2006-10-10 Raphael Neider <rneider AT web.de>
5144
5145         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
5146         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
5147         * src/pic/main.c (_pic14_parseOptions),
5148         * src/pic/main.h: mostly reverted to previous state, now use results
5149             from SDCCmain.c's argument parsing
5150
5151 2006-10-10 Borut Razem <borut.razem AT siol.net>
5152
5153         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
5154           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
5155           [ 1185668 ] add gnu readline support to sdcdb -
5156           prepared for READLINE, not enabled yet,
5157           thanks to <tal.bav AT gmail.com>
5158
5159 2006-10-10 Raphael Neider <rneider AT web.de>
5160
5161         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
5162         * src/pic16/devices.inc,
5163         * device/include/pic16 (pic18f[24]620.h),
5164         * device/include/pic18fregs.h,
5165         * device/lib/pic16/pics.all,
5166         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
5167             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
5168             Gary Plumbridge and Anton Strobl
5169
5170 2006-10-10 Raphael Neider <rneider AT web.de>
5171
5172         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
5173           --stack-siz=NUM options to configure the argument passing stack
5174         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
5175         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
5176           (pic14_getSharebankSize): obey --stack-siz=NUM,
5177           (pic14_getSharebankAddress): obey --stack-loc=NUM
5178
5179 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5180
5181         * doc/sdccman.lyx: added to the manual
5182         * doc/figures/ddd_example.png: added (neither pdflatex nor
5183         most browsers seem to like the .eps file)
5184
5185 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
5186
5187         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
5188         to /tmp and /var/tmp acc. LSB
5189         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
5190         RESULT_TYPE_IFX
5191         * support/regression/tests/onebyte.c: added test
5192
5193 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5194
5195         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
5196
5197 2006-10-05 Borut Razem <borut.razem AT siol.net>
5198
5199         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
5200           thanks to dfulab:
5201           - sdcc.dsw: changed property eol-style to CRLF
5202           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
5203
5204 2006-10-04 Raphael Neider <rneider AT web.de>
5205
5206         * device/include/pic/{pic16f84.h,pic16f84a.h},
5207         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
5208           from patch #1522504, thanks to Robas Teodor
5209
5210 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
5211
5212         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
5213           fixes bug 1566015
5214
5215 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
5216
5217         * src/pic16/glue.c (pic16emitMaps),
5218         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
5219         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
5220         * device/lib/pic16/libc/string/memcpypgm2ram.c,
5221         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
5222           Philipp Krause
5223         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
5224         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
5225
5226 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5227
5228         * support/librarian/sdcclib.c: Added option -l.
5229         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
5230           usage totals.
5231         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
5232           using Windows command prompt.
5233
5234 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
5235
5236         * device/lib/libsdcc.lib: added module rand
5237         * src/ds390/ralloc.c (rematStr),
5238         * src/hc08/ralloc.c (rematStr),
5239         * src/mcs51/ralloc.c (rematStr),
5240         * src/z80/ralloc.c (rematStr): made output more consistent
5241         * src/mcs51/gen.c: cosmetic changes
5242
5243 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
5244
5245         * src/port.h: added mem.cabs_name to PORT
5246         * src/ds390/main.c,
5247         * src/hc08/main.c,
5248         * src/mcs51/main.c,
5249         * src/pic16/main.c,
5250         * src/pic/main.c,
5251         * src/xa51/main.c,
5252         * src/z80/main.c: added cabs_name initializers
5253         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
5254           constants
5255           (emitMaps): emit absolutes in code memory into cabs_name
5256         * src/SDCCmem.c,
5257         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
5258         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
5259         * support/regression/fwk/include/testfwk.h: added define for at
5260         * support/regression/tests/absolute.c: added, new
5261
5262 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
5263
5264         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
5265           optimizations, see also patch 887161 by Stas Sergeev
5266         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
5267           to be necessary anymore,
5268           (102, 103, 104, 127): renamed all occurances of bp to _bp
5269
5270 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
5271
5272         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
5273           thanks Weston T. Schmidt for patch 1555221
5274         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
5275         * src/SDCCicode.c(geniCodeMultiply): small optimization
5276
5277 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
5278
5279         * device/include/stdlib.h: added rand prototypes
5280         * device/lib/rand.c: new, added
5281         * device/lib/Makefile.in: added rand.c
5282         * src/z80/peeph.def,
5283         * src/z80/peeph-gbz80.def,
5284         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
5285
5286 2006-09-20 Raphael Neider <rneider AT web.de>
5287
5288         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
5289
5290 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
5291
5292         * as/link/aslink.h: cosmetic changes
5293         * as/link/mcs51/Makefile.in,
5294         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
5295
5296 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
5297
5298         * as/link/aslink.h,
5299         * as/link/mcs51/aslink.h,
5300         * as/link/z80/aslink.h: merged and moved to as/link/
5301         * as/link/lkstore.c,
5302         * as/link/mcs51/lkstore.c: moved to as/link/
5303         * as/link/clean.mk: remove *.o
5304         * as/link/mcs51/alloc.h: deleted
5305         * as/link/mcs51/lkarea.c: added lnksect prototype
5306         * as/link/mcs51/lkdata.c,
5307         * as/link/mcs51/lklex.c,
5308         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
5309         * as/link/mcs51/lkmem.c,
5310         * as/link/mcs51/lknoice.c: removed include strcmpi.h
5311         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
5312         * as/link/mcs51/aslink.dsp,
5313         * as/link/mcs51/Makefile.aslink,
5314         * as/link/mcs51/Makefile.bcc,
5315         * as/link/mcs51/Makefile.in: updated for moved files
5316         * as/link/z80/lkarea.c,
5317         * as/link/z80/lkhead.c,
5318         * as/link/z80/lklex.c,
5319         * as/link/z80/lklibr.c,
5320         * as/link/z80/lklist.c,
5321         * as/link/z80/lkmain.c,
5322         * as/link/z80/lkrloc.c,
5323         * as/link/z80/lksym.c: synced with mcs51
5324         * as/link/z80/lkdata.c,
5325         * as/link/z80/lkeval.c,
5326         * as/link/z80/lkihx.c,
5327         * as/link/z80/lks19.c: cosmetic changes
5328         * as/link/z80/Makefile.in,
5329         * as/link/z80/linkgbz80.dsp,
5330         * as/link/z80/linkz80.dsp: updated for moved files
5331
5332 2006-09-16 Borut Razem <borut.razem AT siol.net>
5333
5334         * debugger/mcs51/sdcdb.c: partially fixed
5335           [ 1203664 ] sdcdb fails to open files w. two "." periods
5336         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
5337           debugger/mcs51/symtab.h: fixed indenting
5338         * configure.in, configure: up to date with latest Maarten's changes
5339
5340 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
5341
5342         as/link/mcs51
5343         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
5344         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
5345         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
5346         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
5347         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
5348         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
5349         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
5350         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
5351         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
5352         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
5353         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
5354         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
5355         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
5356         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
5357         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
5358         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
5359         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
5360         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
5361         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
5362         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
5363         as/link/mcs51/alloc.h,
5364         as/link/mcs51/clean.mk,
5365         as/link/mcs51/conf.mk,
5366         as/link/mcs51/Makefile.bcc,
5367         as/link/mcs51/Makefile.in,
5368         as/link/mcs51/readme.390,
5369         as/link/mcs51/strcmpi.c,
5370         as/link/mcs51/strcmpi.h,
5371         as/mcs51/clean.mk,
5372         as/mcs51/Makefile.bcc,
5373         as/mcs51/Makefile.in,
5374         configure,
5375         Makefile.in,
5376         sdcc.dsw: moved mcs51 linker to as/link/mcs51
5377
5378 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
5379
5380         * as/link,
5381         * as/link/Makefile.in,
5382         * as/link/z80/linkgbz80.dsp,
5383         * as/link/z80/linkz80.dsp,
5384         * configure,
5385         * link,
5386         * link/clean.mk,
5387         * link/Makefile.in,
5388         * link/README,
5389         * link/z80,
5390         * link/z80/aslink.h,
5391         * link/z80/clean.mk,
5392         * link/z80/conf.mk,
5393         * link/z80/linkgbz80.dsp,
5394         * link/z80/linkz80.dsp,
5395         * link/z80/lkarea.c,
5396         * link/z80/lkdata.c,
5397         * link/z80/lkeval.c,
5398         * link/z80/lkgb.c,
5399         * link/z80/lkgg.c,
5400         * link/z80/lkhead.c,
5401         * link/z80/lkihx.c,
5402         * link/z80/lklex.c,
5403         * link/z80/lklibr.c,
5404         * link/z80/lklist.c,
5405         * link/z80/lkmain.c,
5406         * link/z80/lkrloc.c,
5407         * link/z80/lks19.c,
5408         * link/z80/lksym.c,
5409         * link/z80/Makefile.in,
5410         * Makefile.in,
5411         * sdcc.dsw: moved link/ to as/link/
5412
5413 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
5414
5415         * as/mcs51/i51mch.c (machine): fixed warning
5416
5417 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
5418
5419         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
5420
5421 2006-09-09 Borut Razem <borut.razem AT siol.net>
5422
5423         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
5424           sdcdb WIN32 native port
5425         * src/clean.mk: fixed
5426
5427 2006-09-08 Borut Razem <borut.razem AT siol.net>
5428
5429         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
5430
5431 2006-09-08 Raphael Neider <rneider AT web.de>
5432
5433         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
5434         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
5435             to gplink to disable processor mismatch warning and to allow
5436             the use of devices with only aliased (shared) memory banks,
5437           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
5438
5439 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5440
5441         * doc/sdccman.lyx: Some re-formating plus example on using
5442           #pragma preproc_asm +/-
5443
5444 2006-09-07 Borut Razem <borut.razem AT siol.net>
5445
5446         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
5447           section
5448
5449 2006-09-06 Borut Razem <borut.razem AT siol.net>
5450
5451         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
5452           line at sdcc.nsi:153
5453         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
5454
5455 2006-09-05 Borut Razem <borut.razem AT siol.net>
5456
5457         * configure.in, configure: support for winsock2
5458         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
5459           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
5460           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
5461           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
5462           debugger/mcs51/symtab.h: sdcdb WIN32 native port
5463
5464 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
5465
5466         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
5467           and OP_DEFS
5468         * support/regression/tests/bug1551947.c: new, added
5469         * src/SDCCsymt.h: strings are char* not byte*
5470
5471 2006-09-05 Raphael Neider <rneider AT web.de>
5472
5473         * device/lib/pic16/libdev/pic18f4550.c,
5474           device/include/pic16/pic18f4550.h: added PORTD/TRISD
5475             declarations/definitions from patch #1520949
5476
5477 2006-09-05 Raphael Neider <rneider AT web.de>
5478
5479         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
5480           byte-aligned bitfields, fixes #1539278
5481
5482 2006-09-05 Raphael Neider <rneider AT web.de>
5483
5484         * src/pic/gen.c (genReceive): skip unreferenced arguments,
5485           fixes #1544120
5486
5487 2006-09-04 Borut Razem <borut.razem AT siol.net>
5488
5489         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
5490         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
5491           -mno-cygwin is a part of the compiler name
5492         * support/scripts/sdcc_mingw32: don't disable ucsim
5493
5494 2006-09-03 Borut Razem <borut.razem AT siol.net>
5495
5496         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
5497         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
5498
5499 2006-09-03 Raphael Neider <rneider AT web.de>
5500
5501         * src/pic/ralloc.c,
5502         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
5503           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
5504           fixes #1550049
5505
5506 2006-09-01 Borut Razem <borut.razem AT siol.net>
5507
5508         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
5509           to make ppc-osx happy
5510
5511 2006-08-31 Borut Razem <borut.razem AT siol.net>
5512
5513         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
5514         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
5515         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
5516         * support/regression/ports/ds390/spec.mk,
5517           support/regression/ports/mcs51/spec.mk,
5518           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
5519           To run regression tests in mingw environment:
5520           make DEV_NULL=NUL CC=gcc
5521
5522 2006-08-30 Borut Razem <borut.razem AT siol.net>
5523
5524         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
5525           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
5526           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
5527           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
5528           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
5529           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
5530           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
5531           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
5532           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
5533           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
5534           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
5535           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
5536           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
5537           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
5538           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
5539           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
5540           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
5541           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
5542           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
5543           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
5544           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
5545           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
5546           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
5547           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
5548           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
5549           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
5550           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
5551           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
5552           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
5553           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
5554           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
5555           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
5556           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
5557           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
5558           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
5559           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
5560           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
5561           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
5562           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
5563           ucsim WIN32 native port
5564
5565 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5566
5567         * doc/sdccman.lyx: added note on dynamic memory heap initialization
5568
5569 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5570
5571         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
5572         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
5573
5574 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
5575
5576         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
5577         * support/regression/tests/bug1546986.c: new, added
5578         * as/mcs51/.cvsignore,
5579         * debugger/mcs51/.cvsignore,
5580         * src/.cvsignore: deleted
5581
5582 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5583
5584         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
5585           definitions)
5586
5587 2006-08-20 Borut Razem <borut.razem AT siol.net>
5588
5589         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
5590           removed cl_listen_console::match(), cl_console::match(),
5591           restructured cl_commander::proc_input()
5592
5593 2006-08-16 Borut Razem <borut.razem AT siol.net>
5594
5595         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
5596           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
5597           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
5598
5599 2006-08-14 Borut Razem <borut.razem AT siol.net>
5600
5601         * support/regression/Makefile.in,
5602           support/regression/ports/pic14/gpsim.cmd,
5603           support/regression/ports/pic14/spec.mk,
5604           support/regression/ports/pic14/support.c:
5605           added pic14 regression test
5606
5607 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
5608
5609         * as/doc/asxhtm.html: documented changed ABS behaviour
5610         * as/doc/README: fixed some typos
5611
5612 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
5613
5614         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
5615           not defined on host
5616
5617 2006-08-12 Borut Razem <borut.razem AT siol.net>
5618
5619         * support/regression/fwk/include/testfwk.h,
5620           support/regression/fwk/lib/testfwk.c,
5621           support/regression/generate-cases.py,
5622           support/regression/Makefile.in:
5623           regression test framework does not depend on function pointers and
5624           variable arguments
5625
5626 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
5627
5628         * device/include/stddef.h: c temporary hack to fix bug 1518273
5629
5630 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5631
5632         * device/include/mcs51/cc2510fx.h: added
5633         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
5634           to projects.
5635
5636 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
5637
5638         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
5639         * as/z80/Makefile.in: added strcmpi.c
5640         * as/z80/z80adr.c: added upper case registers and lower case conditionals
5641         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
5642
5643 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
5644
5645         * device/lib/gbz80/asm_strings.s,
5646         * device/lib/gbz80/crt0_rle.s,
5647         * device/lib/gbz80/div.s,
5648         * device/lib/gbz80/mul.s,
5649         * device/lib/gbz80/shift.s,
5650         * device/lib/z80/asm_strings.s,
5651         * device/lib/z80/crt0_rle.s,
5652         * device/lib/z80/div.s,
5653         * device/lib/z80/mul.s,
5654         * device/lib/z80/shift.s: changed to all lower case menmonics except the
5655           flags which are all upper case
5656
5657 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
5658
5659         * as/z80/asm.h: made CASE_SENSITIVE 1
5660         * link/z80/aslink.h: made CASE_SENSITIVE 1
5661         * src/z80/gen.c (throughout): made all conditionals upper case
5662         * support/regression/tests/bug1503067.c: new
5663
5664 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
5665
5666         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
5667           (shiftIntoPair): added case 2 for PAIR_IY,
5668           (setupToPreserveCarry): replaced parameters with iCode and check if
5669            PAIR_DE is in use to fix bug 1399290,
5670           (genPlus, genMinus): updated call to setupToPreserveCarry
5671         * support/regression/tests/bug1399290.c: new
5672
5673 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
5674
5675         * device/lib/Makefile.in (Z80SOURCES): enabled float support
5676         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
5677         * src/ds390/gen.c (shiftRLong),
5678         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
5679         * src/mcs51/gen.c (sameReg): changed to sameByte,
5680           (xch_a_aopGet): new,
5681           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
5682            shiftRLong): fixed bug 1533966
5683         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
5684           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
5685         * support/regression/Makefile.in: disabled z80, enabled ucz80
5686         * support/regression/tests/float_trans.c: enabled test for z80 and host
5687         * support/regression/tests/shifts2.c: new, for testing bug 1533966
5688
5689 2006-08-01 Borut Razem <borut.razem AT siol.net>
5690
5691         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
5692           comparison is always false due to limited range of data type
5693           on PPC64 machine (openpower-linux1) where "char = unsigned char"
5694
5695 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
5696
5697         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
5698         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
5699         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
5700         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
5701
5702 2006-07-31 Borut Razem <borut.razem AT siol.net>
5703
5704         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
5705           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
5706           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
5707           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
5708           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
5709           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
5710           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
5711           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
5712           enable ucsim mingw compilation. Serial port is disabled,
5713           since it uses termios.h API, which is not available on native
5714           WIN32
5715
5716 2006-07-31 Borut Razem <borut.razem AT siol.net>
5717
5718         * Small Device C Compiler 2.6.0 released
5719         * support/scripts/sdcc.nsi: added FULL_DOC option
5720         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
5721
5722 2006-07-28 Borut Razem <borut.razem AT siol.net>
5723
5724         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
5725         * doc/INSTALL.txt: updated
5726
5727 2006-07-27 Borut Razem <borut.razem AT siol.net>
5728
5729         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
5730           device/lib/pic/libdev/Makefile.in: fixed bug
5731           [ 1438354 ] pic libsdcc: distclean doesn't work
5732         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
5733           device/lib/pic16/libio/Makefile.in: fixed bug
5734           [ 1438344 ] pic16 lib: clean doesn't work properly
5735         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
5736
5737 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
5738
5739         * device/lib/pic/libsdcc/fsdiv.c,
5740         * device/lib/pic/libsdcc/fsmul.c,
5741         * device/lib/pic16/libsdcc/float/fsdiv.c,
5742         * device/lib/pic16/libsdcc/float/fsmul.c,
5743         * device/lib/_fsdiv.c,
5744         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
5745         * support/regression/tests/bug1520966.c: added
5746         * doc/knownbugs.html: removed [ 1520966 ] from the list
5747
5748 2006-07-25 Borut Razem <borut.razem AT siol.net>
5749
5750         * configure.in, configure, sdccconf_in.h: fixed bug
5751           [ 1519095 ] regression test onebyte.c fails on ppc64 host
5752         * doc/knownbugs.html: removed [ 1519095 ] from the list
5753
5754 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
5755
5756         * doc/knownbugs.html: added, contains list of known bugs at release
5757         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
5758
5759 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
5760
5761         * device/include/mcs51/compiler.h: added SFRX for xdata based special
5762           function registers and corrected defaults with additional warning
5763         * device/lib/malloc.c: cosmetic changes
5764         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
5765         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
5766           (fillGaps): and used it
5767
5768 2006-07-20 Raphael Neider <rneider AT web.de>
5769
5770         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
5771           output unless SDCCPICDEBUG is set
5772         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
5773           output if SILENT is set
5774
5775 2006-07-11 Borut Razem <borut.razem AT siol.net>
5776
5777         * doc/README.txt: updated
5778
5779 2006-07-10 Borut Razem <borut.razem AT siol.net>
5780
5781         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
5782           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
5783           in WIN32 installation
5784         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
5785           release candidate 1
5786
5787 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
5788
5789         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
5790         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
5791
5792 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
5793
5794         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
5795
5796 2006-07-06 Borut Razem <borut.razem AT siol.net>
5797
5798         * support/regression/tests/bitfields.c:
5799           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
5800         * support/regression/tests/constantRange.c:
5801           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
5802
5803 2006-07-04 Borut Razem <borut.razem AT siol.net>
5804
5805         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
5806           src/port.mk,
5807           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5808           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5809           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5810           reverted changes from 2006-07-03
5811         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
5812         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
5813           added CPPFLAGS, used by the host port
5814
5815 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
5816
5817         * support/regression/valdiag/tests/switch.c,
5818         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
5819         * support/regression/tests/libmullong.c: fixed for host
5820         * support/regression/ports/host/spec.mk: disable all warnings for host,
5821         SDCC runs with --less-pedantic too
5822
5823 2006-07-03 Borut Razem <borut.razem AT siol.net>
5824
5825         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
5826           defined CPPFLAGS
5827         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
5828         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5829           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5830           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5831           include ../port.mk
5832         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
5833           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5834           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
5835           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
5836
5837 2006-07-02 Raphael Neider <rneider AT web.de>
5838
5839         * src/pic16/devices.inc,
5840         * device/include/pic16/pic18fregs.h,
5841         * device/include/pic16/pic18f4550.h,
5842         * device/lib/pic16/pics.all,
5843         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
5844
5845 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
5846
5847         * as/hc08/lkaomf51.c (OutputName),
5848         * as/mcs51/lkaomf51.c (OutputName),
5849         * as/z80/asmain.c (asmbl),
5850         * src/ds390/main.c (asmLineNodeFromLineNode),
5851         * src/hc08/ralloc.c (hc08_assignRegisters),
5852         * src/mcs51/main.c (asmLineNodeFromLineNode),
5853         * src/xa51/ralloc.c (checkRegMask),
5854         * src/xa51/gen.c (emitcode),
5855         * src/z80/gen.c (_emit2),
5856         * src/SDCCast.c (searchLitOp),
5857         * src/SDCCglobl.h,
5858         * support/packihx/packihx.c,
5859         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
5860         * src/ds390/gen.c (aopPutUsesAcc),
5861         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
5862         * support/regression/tests/libmullong.c (mullong_wrapper),
5863         * src/SDCCsymt.c (powof2),
5864         * src/SDCCast.c,
5865         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
5866         * src/SDCCsymt.h: added TYPE_TARGET_*
5867         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
5868         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
5869         SDCCast because 1) header problems 2) this is the right place
5870         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
5871         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
5872         prototype
5873
5874 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
5875
5876         * src/SDCCicode.h: removed buggy semicolon in unused macro
5877         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
5878         search for previous definiton of auto symbols too,
5879         (findPrevUse): fixed logic of emitWarnings
5880
5881 2006-06-26 Raphael Neider <rneider AT web.de>
5882
5883         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
5884           PCLATH and PCLATU on interrupts, potentially fixes #1505141
5885
5886 2006-06-25 Raphael Neider <rneider AT web.de>
5887
5888         * device/lib/pic/libm: NEW, added math library functions
5889         * device/lib/pic/libsdcc: NEW; added float support functions
5890         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
5891         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
5892           NEW, added math related headers
5893         * device/include/asm/pic/features.h: NEW
5894         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
5895           (popGet): allow larger offsets for AOP_PCODE,
5896           (genDataPointerSet): handle literals explicitly, more debug output,
5897           (genAssign): fixed for float using aopLiteral ;-)
5898         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
5899           GOTO initialisation routine
5900         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
5901           flag on registers, fixes #1469043 (local variables do not work)
5902         * src/pic/main.c (_pic14_do_link),
5903         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
5904           available
5905
5906 2006-06-25 Borut Razem <borut.razem AT siol.net>
5907
5908         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
5909           characters printed (not including the trailing '\0' used to end
5910           output to strings). Problem detected in regression test bug-927659.c.
5911           NOTE: printf() family functions should return int instead
5912           unsigned int!
5913         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
5914           specifier are printed as themselves
5915         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
5916           support flags, width and precision specifiers
5917
5918 2006-06-24 Borut Razem <borut.razem AT siol.net>
5919
5920         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
5921           to the list of sdcc tagrets not supporting bit type
5922         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
5923           testfor pic16 due to bug:
5924           [ 1511794 ] pic16: regression test bug-895992.c fails
5925
5926 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
5927
5928         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
5929         * src/SDCCglue.c (initPointer), fixed bug 1496419
5930         * support/regression/tests/bug1496419.c: new, added
5931
5932 2006-06-22 Borut Razem <borut.razem AT siol.net>
5933
5934         * support/regression/ports/pic16/support.c: use gpsim usart module from
5935           libgpsim_modules library
5936
5937 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5938
5939         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
5940         IP0H to IPH0.
5941
5942 2006-06-19 Raphael Neider <rneider AT web.de>
5943
5944         * src/pic/glue.h,src/pic16/glue.h: added prototypes
5945         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
5946           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
5947           (pic14printExterns,pic14printPublics,pic16printPublics,
5948           pic16_printExterns): use new functions to emit symbols
5949           (picglue,pic16glue): emit publics before emitting externs
5950         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
5951           locally defined functions to avoid bug #1443651
5952         * support/regression/tests/bug-716242.c: removed pic16 workaround
5953         * support/regression/ports/pic16/spec.mk: ignore errors during build
5954
5955 2006-06-19 Raphael Neider <rneider AT web.de>
5956
5957         * src/pic/glue.h: added pic14aopLiteral prototype
5958         * src/pic/glue.c (pic14aopLiteral): return unsigned int
5959         * src/pic/gen.c: removed stdint.h dependency
5960           (aopGet): use Safe_strdup()
5961           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
5962           (genDataPointerSet): use pic14aopLiteral()
5963         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
5964           for pic16; thanks to Bernhard and Maarten
5965
5966 2006-06-18 Borut Razem <borut.razem AT siol.net>
5967
5968         * support/regression/tests/structflexarray.c: flexible array members
5969           not supported by gcc < 3
5970         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
5971           GUI tool by default
5972         * src/pic/gen.c: don't include [p]strdin.h on solaris
5973         * support/Util/pstdint.h: addad svn attributes
5974         * support/regression/tests/constantRange.c,
5975           support/regression/tests/rotate.c: include inttypes.h instead
5976           stdint.h on solaris, addad svn attributes
5977
5978 2006-06-18 Raphael Neider <rneider AT web.de>
5979
5980         * src/SDCCsymt.c (initCSupport): change return type of divschar to
5981           int for PIC16
5982         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
5983           (pic16_genMinusBits): simplified sign-extension
5984           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
5985             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
5986             adjusted to correctly handle mixed-signed operands, disabled
5987             now unused multiplciation routines
5988         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
5989           (assignResultValue): added argument denoting the size of the result
5990             as returned by the function (fixes upcasts in assigning from
5991             function calls: char foo(); int i = foo();)
5992           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
5993             function result to assignResultValue
5994           (genMult): disabled inlined multiplication code
5995           (genDiv): augmented to also handle the modulus operator, fixed to
5996             handle mixed-signed operands correctly
5997           (genMod): simply call genDiv, disabled unused code
5998           (genAssign): fixed missing (sign-)extension on result
5999         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
6000             valid char operands, allow signed operands for native code, added
6001             division and modulo operator handling
6002         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
6003
6004         As a consequence, onebyte.c (if split into two files) and muldiv.c
6005         pass regression tests.
6006
6007 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6008
6009         * doc/Makefile.in: two runs of makeindex seem needed to get
6010         correct page references in the index of sdccman.pdf
6011         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
6012
6013 2006-06-17 Borut Razem <borut.razem AT siol.net>
6014
6015         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
6016
6017 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6018
6019         * doc/sdccman.lyx: updated, added (porting source code, debugging),
6020         mentioned ec2drv and paulmon
6021
6022 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
6023
6024         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
6025           consecutive abs areas
6026           (find_empty_space, allocate_space): added map to handle codemap or
6027            xdatamap,
6028           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
6029            absolute idata and xdata
6030         * as/mcs51/lkmem.c (summary2): updated legend
6031
6032 2006-06-16 Raphael Neider <rneider AT web.de>
6033
6034         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
6035
6036 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
6037
6038         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
6039           1208515
6040         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
6041
6042 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
6043
6044         * src/port.h (struct PORT): added field gp_tags, to hold the tag
6045         value of generic pointers,
6046         * src/avr/main.c,
6047           src/ds390/main.c,
6048           src/hc08/main.c,
6049           src/izt/i186.c,
6050           src/izt/tlcs900h.c,
6051           src/mcs51/main.c,
6052           src/pic/main.c,
6053           src/pic16/main.c,
6054           src/xa51/main.c,
6055           src/z80/main.c: PORT structure, added elements for gp_tags field,
6056         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
6057         fields in the PORT structure of each port,
6058         * src/SDCCast.c (decorateType): allow processing of generic pointers
6059         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
6060         S_FIXED symbols
6061
6062 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
6063
6064         * link/z80/lkgb.c,
6065         * link/z80/lkgg.c,
6066         * src/pic16/gen.c,
6067         * src/pic16/main.c,
6068         * src/pic16/pcode.c,
6069         * src/pic/main.c,
6070         * src/pic/pcoderegs.c,
6071         * src/SDCCicode.c,
6072         * src/SDCCmain.c,
6073         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
6074           bug 1504689 on minGW
6075
6076 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6077
6078         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
6079
6080 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
6081
6082         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
6083
6084 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
6085
6086         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
6087           for optimization
6088
6089 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
6090
6091         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
6092         to a char variable. Fixed bug #1504211
6093         * device/include/pic16/adc.h,
6094         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
6095         and fixed bug #1364390
6096
6097 2006-06-10 Borut Razem <borut.razem AT siol.net>
6098
6099         * CVSROOT: removed the CVS left-over
6100
6101 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
6102
6103         * as/hc08/asmain.c (asexit),
6104         * as/hc08/lkmain.c (lkexit),
6105         * as/mcs51/asmain.c (asexit),
6106         * as/mcs51/lkmain.c (lkexit),
6107         * src/SDCCglue.c (DEFSETFUNC),
6108         * src/SDCCmain.c (linkEdit, assemble),
6109         * support/librarian/sdcclib.c (AddRel),
6110           replaced unlink() by standard C remove()
6111         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
6112         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
6113           gatherImplicitVariables): new, added to fix bug 608752,
6114           (createFunction): added gatherImplicitVariables()
6115         * src/SDCCast.h: added createRMW prototype
6116         * src/SDCCsymt.h (struct symbol): added infertype
6117         * support/regression/tests/bug608752.c: new, added
6118
6119 2006-06-10 Raphael Neider <rneider AT web.de>
6120
6121         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
6122           multibyte dummy reads (fixes #1503234)
6123
6124 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
6125
6126         * device/include/mcs51/compiler.h: new, added header file to enable
6127           creating common sfr definition header files for different compilers
6128
6129 2006-06-05 Raphael Neider <rneider AT web.de>
6130
6131         * src/pic16/{pcode.h,genarith.c}:
6132           introduced pCodeOp combining any two pCodeOps (previously only
6133           two register operands could be combined), removed pcop2 from
6134           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
6135         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
6136         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
6137           rewritten to use new PO_TWO_OPS
6138         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
6139         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
6140           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
6141           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
6142           (pic16_get_op): embraced return arg to allow #define return(x),
6143             added new case for combined opcodes
6144           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
6145           (pic16_pCode2str,pic16_getRegFrompCodeOp,
6146            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
6147
6148 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
6149
6150         * src/SDCCval.c (checkConstantRange): added
6151         * src/SDCCval.h: added checkConstantRange
6152         * support/Util/SDCCerr.c,
6153         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
6154         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
6155         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
6156         * src/SDCCast.c (decorateType): added checkConstantRange,
6157         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
6158         can be emitted with the correct always true/false warning,
6159         added optimization for double '!';
6160         result of decorateType() must be assigned back to the tree, because
6161         decorateType() can change the tree
6162         * src/SDCCicode.c (geniCodeLogic),
6163         (geniCodeAssign): replaced new checkConstantRange, added warnings,
6164         (checkConstantRange): removed, it was only a fragment which never
6165         emitted a warning
6166         * src/SDCCsymt.c (computeType): fixed promotion for
6167         "-1 < (unsigned bit) b"
6168         * src/pic/ralloc.c (packRegsForAssign),
6169         * src/pic16/ralloc.c (packRegsForAssign),
6170         * src/hc08/ralloc.c (packRegsForAssign),
6171         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
6172         from mcs51
6173         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
6174         * support/regression/tests/constantRange.c: added
6175         * support/valdiag/tests/constantRange.c: added
6176         * support/valdiag/valdiag.py: added -DPORT_HOST=1
6177
6178 2006-06-02 Borut Razem <borut.razem AT siol.net>
6179
6180         * support/regression/ports/pic16/support.c: increase stack size
6181           to 255 bytes
6182         * support/regression/Makefile.in: sort tests by name so that the
6183           resutlts can be compared on different machines / platforms
6184
6185 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
6186
6187         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
6188         * src/ds390/gen.c (emitLabel): new, added,
6189           (genDjnz): fixed stack overflow bug,
6190           (throughout): cosmetic changes to sync with mcs51/gen.c,
6191           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
6192         * src/mcs51/gen.c (genEndFunction): small optimization,
6193           (throughout): cosmetic changes to sync with ds390/gen.c
6194
6195 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
6196
6197         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
6198           (_print_format): fixed printing pointers
6199         * src/mcs51/gen.c (emitLabel, movb): new, added,
6200           (genAssign): small optimization,
6201           (genDjnz): fixed stack overflow bug,
6202           (throughout): replaced sprintf with SNPRINTF,
6203           replaced mcs51_regWithIdx with REG_WITH_INDEX,
6204           replaced emitcode("mov", "b,...") with MOVB(...),
6205           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
6206           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
6207         * src/mcs51/peeph.def: added rules 140 and 264
6208         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
6209           so they may get optimized into registers
6210
6211 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
6212
6213         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
6214           immediately when encountered,
6215           (printUsage): always use stderr even on windows
6216
6217 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
6218
6219         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
6220         (processParms): fixed bug #1247551
6221         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
6222         parseCmdLine, main): print '--version' to stdout,
6223         print 'help' to stdout if --help is given,
6224         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
6225         arguments are given; fixed --help
6226
6227 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
6228
6229         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
6230         * support/regression/tests/bug-1493710.c: added
6231
6232 2006-05-27 Borut Razem <borut.razem AT siol.net>
6233
6234         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
6235           static instead auto
6236         * support/regression/ports/pic16/support.c: increase stack size
6237           from default 64 bytes to 128 bytes
6238         * support/regression/tests/staticinit.c,
6239           support/regression/tests/float.c: regression tests fully enabled
6240           for pic16 port by putting the initialized data arrays into the code
6241           section
6242         * support/regression/ports/pic16/spec.mk: don't link default libraries.
6243           This was changed by mistake in the previous version.
6244
6245 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
6246
6247         * src/pic16/gen.c (genFunction, genEndFunction): some
6248         beautifications, fixed bug with falsely restoring FSR2 in large
6249         stack model, thanks to Beau E. Cox for reporting the bug
6250
6251 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
6252
6253         * debugger/mcs51/break.c,
6254         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
6255           use %p to print pointers, made address variables unsigned
6256         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
6257         * debugger/mcs51/symtab.c (parseSymbol): must return something
6258         * src/mcs51/gen.c (aopForSym): small optimization,
6259            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
6260           (freeAsmop): added missing break,
6261           (aopPut): removed parameter bvolatile, determine it inside the function,
6262           (saveRegisters, unsaveRegisters): small optimization,
6263           (genIpush): removed pointless check,
6264           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
6265           replaced sprintf with SNPRINTF,
6266           replaced strcpy with strncpyz,
6267           updated aopPut calls,
6268           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
6269         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
6270
6271 2006-05-24 Borut Razem <borut.razem AT siol.net>
6272
6273         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
6274           modification of test for the pic16 port, put the array to the code
6275           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
6276
6277 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
6278
6279         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
6280         * support/Util/pstdint.h: added
6281
6282 2006-05-22 Borut Razem <borut.razem AT siol.net>
6283
6284         * src/regression/Makefile: removed bool2.c test, added -q linker option
6285         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
6286           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
6287           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
6288           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
6289           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
6290           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
6291           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
6292           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
6293           define SUPPORT_BIT_TYPES 0, removed unused bit variables
6294
6295 2006-05-22 Raphael Neider <rneider AT web.de>
6296
6297         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
6298           bug #1492360 (problematic due to generic pointers, see code)
6299
6300 2006-05-22 Borut Razem <borut.razem AT siol.net>
6301
6302         * support/regression/ports/pic16/specs.mk: removed stack size linker
6303           directive
6304         * support/regression/tests/array.c,
6305           support/regression/tests/bitopcse.c,
6306           support/regression/tests/bug-908454.c,
6307           support/regression/tests/malloc.c: modified for pic16 regression test
6308         * support/regression/tests/bitfields.c:
6309           pic16 - excluded bitfileds of size > 8
6310         * support/regression/tests/bp.c: pic16 - reduced data size
6311         * support/regression/tests/bug-221100.c: pic16 - reduced data size
6312         * support/regression/tests/bug-460010.c:
6313           pic16 - used the absolute address the fits in memory
6314         * support/regression/tests/bug-716242.c:
6315           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
6316         * support/regression/tests/float.c:
6317           pic16 - excluded - data size too big
6318         * support/regression/tests/onebyte.c:
6319           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
6320         * support/regression/tests/shifts.c:
6321           pic16 - function names probably have to differ in first X characters
6322           (gpasm limitation?)
6323         * support/regression/tests/staticinit.c:
6324           pic16 - excluded some tests due error: no target memory available for
6325           section ".idata"
6326
6327 2006-05-22 Borut Razem <borut.razem AT siol.net>
6328
6329         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
6330           second try. Thanks Stas Sergeev once more.
6331
6332 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
6333
6334         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
6335           (genLeftShift, genRightShift): fixed bug 1491627
6336         * src/hc08/peeph.def (rules 7, 8.x): added
6337         * support/regression/tests/shifts.c (ShiftLeftByParam,
6338           ShiftRightByParam, testShiftByParam): added to test variable shifting
6339
6340 2006-05-20 Raphael Neider <rneider AT web.de>
6341
6342         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
6343         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
6344           (allocReg): add only new registers to dynAllocRegs,
6345           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
6346             #1489055, #1445850, and probably #1483693
6347
6348 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
6349
6350         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
6351         bug in for-loop that didn't emit the last of CONFIG and ID registers
6352
6353 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
6354
6355         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
6356           with offset
6357         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
6358           1489016, 1434401 and 1490124
6359         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
6360           1489016, 1434401 and 1490124
6361
6362 2006-05-17 Borut Razem <borut.razem AT siol.net>
6363
6364         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
6365           thanks Stas Sergeev
6366
6367 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
6368
6369         * device/include/mcs51/P89c51RD2.h,
6370         * device/include/mcs51/P89LPC901.h,
6371         * device/include/mcs51/P89LPC922.h,
6372         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
6373
6374 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6375
6376         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
6377         to fix missing stack pragma in compiled binary object file,
6378
6379 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
6380
6381         * support/packihx/configure.in,
6382         * support/packihx/configure: removed warning, autoconf >= 2.5x can
6383         determine sizeof basic types even while cross compiling
6384
6385 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
6386
6387         * src/avr/gen.c (aopop),
6388         * src/ds390/gen.c (aopOp),
6389         * src/hc08/gen.c (aopOp),
6390         * src/mcs51/gen.c (aopop),
6391         * src/pic16/gen.c (pic16_aopOp),
6392         * src/pic/gen.c (aopOp),
6393         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
6394         if size of operand is smaller than spill location
6395
6396 2006-05-12 Borut Razem <borut.razem AT siol.net>
6397
6398         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
6399           have to have CR/LF line endings even if they are checked out on *nix
6400           or on WIN32 in cygwin binmode
6401
6402 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
6403
6404         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
6405         * device/include/ds80c390.h: added sfr16 definitions
6406         * src/ds390/gen.c,
6407         * src/ds390/gen.h,
6408         * src/ds390/main.c,
6409         * src/ds390/ralloc.c,
6410         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
6411           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
6412           bit returning functions
6413         * support/regression/tests/sfr16.c: enabled test on ds390
6414
6415 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6416
6417         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
6418         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
6419
6420 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
6421
6422         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
6423         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
6424           (cl_address_space constructor): removed expensive initialization,
6425           (cl_address_space::get_cell): extended for late initialization,
6426           (cl_address_space::*): use late initialization,
6427           (cl_address_decoder::activate): removed expensive initialization,
6428           This reduced regression test running time by 25%
6429
6430 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
6431
6432         * packihx/,
6433         * configure.in,
6434         * configure,
6435         * sdcc.dsw,
6436         * Makefile.bcc,
6437         * Makefile.in,
6438         * support/packihx/Makefile.in,
6439         * support/packihx/clean.mk,
6440         * support/packihx/Makefile.bcc,
6441         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
6442
6443 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6444
6445         * src/SDCCval.c (valNot): fix for regression test failure
6446           of not.c on big endian hosts
6447
6448 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
6449
6450         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
6451
6452 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6453
6454         * device/lib/mcs51/Makefile.in: changed string comparison operator
6455           to = for POSIX compliance; == is bash extension
6456
6457 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
6458
6459         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
6460           kosmonaut_pirx
6461
6462 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
6463
6464         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
6465         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
6466         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
6467         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
6468         bug report #1478657,
6469
6470 2006-05-05 Borut Razem <borut.razem AT siol.net>
6471
6472         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
6473           making the html
6474
6475 2006-05-02 Borut Razem <borut.razem AT siol.net>
6476
6477         * doc/Makefile.in: removed *.ind dependency since there is no rule to
6478           create *.ind, which made make to fail if invoked with -j 2
6479
6480 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
6481
6482         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
6483           Hubert Sack for patch 1479782
6484
6485 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
6486
6487         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
6488
6489 2006-05-01 Raphael Neider <rneider AT web.de>
6490
6491         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
6492           (create_pic): store only prefix-free device name,
6493           (init_pic): check for device names with "16" prefix,
6494           (list_valid_pics),
6495         * src/pic/device.h (struct PIC_device),
6496         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
6497             stored device name,
6498         * device/include/pic/pic12f{635,675,629,683}.h,
6499         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
6500         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
6501         * device/include/pic/pic16f505.h,
6502         * device/lib/pic/libdev/pic16f505.c: removed
6503         * device/include/pic/pic14devices.txt: added support for pic12f
6504             devices, removed unsupported non 16-bit devices
6505             [above changes provided by patch from Zik Saleeba]
6506         * src/pic/*, src/pic16/*, device/include/pic16/*,
6507           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
6508
6509 2006-05-01 Borut Razem <borut.razem AT siol.net>
6510
6511         * configure.in, configure, doc/Makefile.in:
6512           sync with nightly build makefile - latex, dvipdf and dvips
6513           not needed any more
6514
6515 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
6516
6517         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
6518         in the library source
6519
6520 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
6521
6522         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
6523
6524 2006-04-28 Raphael Neider <rneider AT web.de>
6525
6526         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
6527         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
6528           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
6529         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
6530
6531 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
6532
6533         * device/lib/pic/libdev/Makefile.in,
6534         * device/lib/hc08/Makefile.in,
6535         * device/lib/gbz80/Makefile.in,
6536         * device/lib/z80/Makefile.in,
6537         * device/lib/ds390/Makefile.in,
6538         * device/lib/ds400/Makefile.in: added srcdir to include search path,
6539         thanks to Borut for the bug report
6540         * configure.in,
6541         * configure: always create doc/Makefile independent from --enable-doc
6542         * Makefile.in: always install from directory doc independent from
6543         --enable-doc
6544         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
6545         removed
6546         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
6547         * doc/Makefile.in: install *.txt if present
6548         * device/include/Makefile.in (install): added installation of pic/*.inc
6549         and pic/*.txt files again, they were erroneously removed
6550
6551 2006-04-28 Raphael Neider <rneider AT web.de>
6552
6553         * src/pic/{gen.c,main.h,pcode.c},
6554         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
6555             concerning signedness with casts
6556
6557 2006-04-28 Raphael Neider <rneider AT web.de>
6558
6559         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
6560             definition of an interrupt handler,
6561         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
6562             interrupt handler stuff from picglue() to separate routine,
6563           (picglue): enabled definition of intr handlers in files w/o main()
6564
6565 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6566
6567         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
6568           compilation with MSVC 2005 Express Edition (VC8)
6569
6570 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
6571
6572         * device/lib/Makefile: fixed build of gbz80 lib
6573
6574 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6575
6576         * support/regression/tests/bug-460010.c,
6577         * support/regression/tests/bug-524691.c,
6578         * support/regression/tests/bug-716242.c: removed conditional defines
6579           that are already in testfwk.h
6580
6581 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
6582
6583         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
6584           (AccAXRsh1): added, shift right by 1,
6585           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
6586            AccAXLrl1
6587         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
6588
6589 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
6590
6591         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
6592         remove cast to same type
6593         * src/SDCCast.c (decorateType): fix for RFE 1475742,
6594         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
6595         * as/z80/Makefile,
6596         * link/z80/Makefile: removed, they have moved to
6597         Makefile.in files
6598         * configure,
6599         * configure.in: replaced duplicate message about ucsim by missing sdcpp
6600         * install-sh: fix bug #1204398 by setting umask 0022
6601         * device/lib/Makefile: separate build of z80 and gbz80 lib
6602
6603 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
6604
6605         Enabled VPATH feature: changed nearly all Makefiles (149 files).
6606         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
6607
6608         One basic decision: e.g. src/clean.mk includes further files. In order
6609         to make this work there are two solutions:
6610         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
6611           run configure on them. This way they can use
6612           'include $(srcdir)/port-clean.mk'
6613         - always include clean.mk by the Makefile at the same level. To avoid
6614           that `make clean` tries to include and build Makefile.dep the
6615           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
6616           implemented, because now even `make uninstall` doesn't create
6617           Makefile.in. clean.mk could be eliminated by pasting it in
6618           Makefile.in.
6619
6620         * debugger/mcs51/Makefile.in: build own objects from library sources
6621         (SLIB, SDCC) in current directory
6622
6623         * configure, configure.in: renamed --disable-device-lib-build in
6624         --disable-device-lib; added --enable-doc, the required tools are
6625         searched by configure; added result message; the toolchain for the
6626         belonging ports are now only built, if the port is enabled.
6627
6628         * support/regression/*: all output is written in directory gen, because
6629         the fwk and ports directories don't livet in the build tree using vpath
6630
6631         * doc/sdccman.lyx: renamed --disable-device-lib-build to
6632         --disable-device-lib, added --enable-doc, added section VPATH
6633
6634         * sim/ucsim/configure.in,
6635         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
6636         z80 are enabled by default
6637
6638 2006-04-24 Raphael Neider <rneider AT web.de>
6639
6640         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
6641             to config word, "pic14_"-prefixed some extern functions
6642           (pic14_emitConfigWord): emit __config directive(s) if assignment to
6643             config word has been found
6644         * src/pic/device.h: added prototypes
6645         * src/pic/pcode.c: added "pic14_"-prefix where needed
6646         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
6647             fixup
6648         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
6649             words,
6650           (pic14emitRegularMap): ignore config words,
6651           (pic14createInterruptVect): moved generating __config directives away
6652           (picglue): have __config directives emitted
6653
6654 2006-04-24 Borut Razem <borut.razem AT siol.net>
6655
6656         * doc/Makefile: sync with nightly build makefile
6657
6658 2006-04-24 Raphael Neider <rneider AT web.de>
6659
6660         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
6661             registers that have not been assigned proper liveranges,
6662             fixes #1469504 and #1474602,
6663           (pCodeRegOptimizeRegUsage): fixed typo in comment
6664
6665 2006-04-24 Borut Razem <borut.razem AT siol.net>
6666
6667         * device/examples/main8051.c: deleted - it was removed from CVS
6668           24.mar.2000 and after that modified 18.feb.2001, so it reappered
6669           after the transition to Subversion
6670         * src/SDCCalloc.h: deleted - it was removed  from CVS
6671           3.feb.2001 and after that modified 18.feb.2001, so it reappered
6672           after the transition to Subversion
6673         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
6674           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
6675           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
6676           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
6677
6678 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
6679
6680         * as/asx8051.dsp: added mcs51/strcmpi.h
6681         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
6682         * as/hc08/aslink.h: updated lnksect prototype
6683         * as/hc08/asm.h,
6684         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
6685         * as/hc08/asmain.c,
6686         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
6687           (newdot): handle A_ABS
6688         * as/hc08/asout.c,
6689         * as/mcs51/asout.c (outarea): output address
6690         * as/hc08/lkaomf51.c,
6691         * as/mcs51/lkaomf51.c: disabled unused array UsageType
6692         * as/hc08/m08pst.c,
6693         * as/mcs51/i51pst.c,
6694         * as/z80/z80pst.c: "ABS" is not A_OVR
6695         * as/hc08/lkarea.c (newarea): read a_addr,
6696           (lnkarea): added codemap array, sort absolute areas to the front,
6697            combine all GSINITx/GSFINAL,
6698           (find_empty_space, allocate_space): new functions,
6699           (lnksect): return next address, handle absolute sections
6700         * as/mcs51/lkarea.c (newarea): read a_addr,
6701           lnksect2 prototype changed,
6702           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
6703           (find_empty_space, allocate_space): new, factored out of lnksect2,
6704           (lnksect2): return next address, handle absolute sections
6705         * as/hc08/lkhead.c,
6706         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
6707         * as/hc08/lklibr.c (addfile, fndsym),
6708         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
6709           index out of range and detect both '\' and '/'
6710         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
6711         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
6712           regression tests (ds390 cannot return bool yet)
6713         * doc/sdccman.lyx: changed version number, document changed --no-peep,
6714           document critical interrupts on z80, document changed SDCC define
6715         * src/asm.c (_asxxxx_mapping): fixed .org directive,
6716           (_a390_mapping): added .org directive
6717         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
6718           (genMultOneByte): fixed warnings
6719         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
6720           ones
6721         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
6722         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
6723           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
6724         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
6725         * src/pic16/main.c: removed newReg prototype
6726         * src/pic16/pcode.c,
6727         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
6728           warnings
6729         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
6730           ones
6731         * src/pic16/ralloc.c
6732         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
6733           to fix warnings
6734         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
6735           from short to PIC_OPTYPE
6736         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
6737         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
6738           optype from short to PIC_OPTYPE
6739         * src/port.h: made int_size unsigned to fix warnings
6740         * src/SDCC.y: fixed warning on MSVC
6741         * src/SDCCicode.c (getArraySizePtr): return unsigned int
6742         * src/SDCCopt.c (convertToFcall): fixed warnings
6743         * src/SDCCsymt.h: removed double prototype for genSymName
6744         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
6745           offset int to fix warnings
6746
6747 2006-04-22 Borut Razem <borut.razem AT siol.net>
6748
6749         * doc/sdccman.lyx, */Makefile, */Makefile.in:
6750           references to CVS replaced with Subversion
6751
6752 2006-04-21 Borut Razem <borut.razem AT siol.net>
6753
6754         * doc/sdccman.lyx, */Makefile, */Makefile.in:
6755           references to CVS replaced with Subversion
6756
6757 2006-04-19 Borut Razem <borut.razem AT siol.net>
6758
6759         * src/version.awk: adapted for svn
6760         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
6761           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
6762           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
6763           /binutils-avr/etc/*.vi, *.jin: removed all properties
6764           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
6765
6766 2006-04-19 Borut Razem <borut.razem AT siol.net>
6767
6768         * CVS to Subversion migration completed
6769
6770 2006-04-18 Borut Razem <borut.razem AT siol.net>
6771
6772         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}/lib/pic/*.o,
6773           ${DEV_ROOT}/lib/src/pic/libdev/*.S, ${DEV_ROOT}/lib/src/pic/libdev/*.inc
6774
6775 2006-04-17 Borut Razem <borut.razem AT siol.net>
6776
6777         * device/include/Makefile.in: added pic/*.inc to the installation
6778
6779 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
6780
6781         * support/regression/collate-results.py: fixed output in case of
6782         a valdiag error
6783         * support/regression/generate-cases.py: fixed splitting of pathnames
6784         with dots
6785         * as/hc08/lklibr.c (addfile),
6786         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
6787
6788 2006-04-11 Raphael Neider <rneider AT web.de>
6789
6790         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
6791         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
6792         * src/pic16/pcode.c (assignValnums): fixed #1460578
6793
6794 2006-04-11 Raphael Neider <rneider AT web.de>
6795
6796         * device/lib/pic/libdev/*.c,
6797         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
6798           fixes #1468739, enables compilation in --std-c99 mode
6799         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
6800
6801 2006-04-11 Raphael Neider <rneider AT web.de>
6802
6803         * src/pic/device.c (find_device): removed debug output
6804           (list_valid_pics): enabled verbose listing of supported devices
6805         * device/include/stdbool.h: define bool as char for pic14/16 as well
6806
6807 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6808
6809         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
6810
6811 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6812
6813         * .version: bumped version to 2.5.6
6814         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
6815
6816 2006-04-06 Raphael Neider <rneider AT web.de>
6817
6818         * .version: bumped version to 2.5.6 (pic14 ABI changed)
6819         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
6820         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
6821           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
6822             pic14_constructAbsMap
6823           (pic14printPublics): declare absolute global symbols as global
6824           (pic14createInterruptVect),
6825         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
6826           (newReg): assume new registers unused, use correct name in
6827             hashtable (reg->name instead of name), more debugLog output
6828         * src/pic/device.h (PIC_device): added fields for verbose output
6829         * src/pic/device.c: moved device definition to pic14devices.txt,
6830             added routines for runtime parsing of pic14devices.txt,
6831             added support for second config word
6832         * src/pic/main.c (_process_pragma): removed #pragma maxram,
6833           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
6834           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
6835           (_pic14_parseOptions): moved pCodeInitRegisters here
6836           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
6837         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
6838           (pCodeInitRegisters): rewrapped comments, perpared new approach to
6839             handling the pseudo stack
6840         * device/lib/Makefile.in: ignore failures in objects-pic16,
6841         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
6842         * device/lib/pic/NEWS: document new dependency on picXXX.lib
6843         * device/lib/pic/Makefile.subdir,
6844         * device/lib/pic16/Makefile.subdir: improved clean rules
6845         * device/lib/pic/libdev/: NEW, pic14 device libraries
6846         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
6847         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
6848         * device/include/Makefile.in: create subdir and install pic14 headers
6849         * device/include/pic/p16f_common.inc: removed unused declarations
6850         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
6851             PICs from inc2h.pl v1.6,
6852             replaced BIT_AT macros with struct declarations
6853         * device/include/pic/pic14devices.txt: definition of supported devices,
6854             all above improvements contributed by Zik Saleeba, thanks
6855         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
6856         * support/scripts/sdcc.nsi: also install pic14 device libraries and
6857             headers
6858
6859 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6860
6861         * device/include/mcs51/c8051f410.h: added interrupt numbers,
6862         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
6863           thanks to Charles Olds
6864
6865 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6866
6867         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
6868
6869 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6870
6871         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
6872         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
6873         * support/regression/bug1464657.c: added, new test
6874
6875 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6876
6877         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
6878           version number
6879
6880 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6881
6882         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
6883           --no-peep and --peep-file <file> are used don't use default rules but
6884           do use the <file>
6885
6886 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6887
6888         * src/mcs51/gen.c (genCall): fixed bug 1457608
6889
6890 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6891
6892         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
6893         changes seem to cause (trigger?) problems with the build system.
6894
6895 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
6896
6897         * src/SDCCpeeph.c (operandsLiteral): new, added,
6898           (callFuncByName): inserted operandsLiteral
6899         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
6900
6901 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6902
6903         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
6904         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
6905
6906 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
6907
6908         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
6909           implemented patch 1120823 Thanks to Willy De la Court (normal
6910           interrupts need an interrupt number now if they are made critical),
6911           and enabled nesting of critical functions though not for gbz80
6912           (genCritical, genEndCritical): added functions
6913           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
6914         * src/z80/mappings.i: added "ei" to all mappings
6915
6916 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6917
6918         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
6919         submitted by the Debian SDCC maintainer Aurelien Jarno:
6920         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
6921         archive with gcc 4.1 on mips and wrote the patch"
6922
6923 2006-03-16 Raphael Neider <rneider AT web.de>
6924
6925         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
6926           the left operand is shorter than the result (c* = lit-c* + int),
6927           fixes bug #1450796
6928         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
6929           OP_SYMBOL
6930
6931 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6932
6933         * src/.version: increased version number to 2.5.5
6934         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
6935         linking is done manually in pic16 port's _linkEdit,
6936         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
6937         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
6938         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
6939         allocate asmop as AOP_ACC,
6940         (aopForRemat): added parameter 'bool result' in function declaration,
6941         (pic16_aopGet): return AOP_ACC when accessing WREG,
6942         (pic16_popGetTempReg): minor modification,
6943         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
6944         'pic16_allocWithIdx',
6945         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
6946         calling function in absolute addresses,
6947         (genAssign): take into account AOP_ACC asmop,
6948         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
6949         * src/pic16/pcoderegs.c: some debug functions and lines added,
6950         * src/pic16/ralloc.c (decodeRegType): added but commented out,
6951         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
6952         register too,
6953         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
6954         call to allocReg, not by manually allocating a new one,
6955         (pic16_assignRegisters): now before going through the register
6956         allocating functions mark all registers as free. This eliminates some
6957         side effects resulting from peephole parser done earlier in the backbone
6958
6959 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
6960
6961         * src/SDCCicode.c (geniCodeLogic),
6962         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
6963
6964 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
6965
6966         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
6967           (genSend): bugfix, do not allocate and free twice,
6968           (shiftRLong): handle partially overlapping aops
6969         * support/regression/tests/bitopcse.c: fixed warning redefined idata
6970
6971 2006-03-08 Borut Razem <borut.razem AT siol.net>
6972
6973         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
6974           for pic16
6975
6976 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
6977
6978         * support/regression/tests/bug1409955.c: new, added
6979         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
6980         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
6981           (aopForSym, aopOp): increment asmop.allocated if reused,
6982           (freeAsmop): decrement asmop.allocated and check for zero instead of
6983           using asmop.freed,
6984           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
6985           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
6986            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
6987            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
6988            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
6989            genSignedRightShift, genRightShift, genDataPointerGet,
6990            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
6991            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
6992             in reverse order from allocation,
6993           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
6994             added swappedLR to keep track
6995         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
6996           pdata & code for GCC, z80, gbz80 & hc08
6997         * support/regression/tests/zeropad.c: moved defines to testfwk.h
6998
6999 2006-03-08 Raphael Neider <rneider AT web.de>
7000
7001         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
7002
7003 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
7004
7005         * device/include/mcs51/c8051f410.h: new SiLabs mcu
7006         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
7007         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
7008
7009 2006-03-06 Borut Razem <borut.razem AT siol.net>
7010
7011         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
7012           made the linker quiet
7013
7014 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
7015
7016         * src/pic16/gen.c (genPcall): fixed bug #1443644
7017         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
7018         which dumps before the function entry point a data byte which represents
7019         the number of the local variables used by the specified function, added
7020         'xinst' for initial support for Extended Instruction Support,
7021         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
7022         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
7023         port->fun_prefix anymore (may change later),
7024         (genFunction, genEndFunction): do not store/restore local registers for
7025         _main (this should take care the --main-return command line option in
7026         the future),
7027         (genOr): removed some legacy pic-port instructions,
7028         * src/pic16/genarith.c (genAddLit): re-enabled old code because
7029         performing operations with SFR's causes data to be written more than
7030         once to each SFR. Perhaps SFRs should be handled in special cases...
7031         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
7032         pcode.h
7033         * src/pic16/main.c (_process_pragma): stack bound checking did not take
7034         into account for stack starting position,
7035         (struct OPTIONS pic16_optionsTable): added command line argument
7036         --extended or -y for Extended Instruction Support,
7037         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
7038         (deassignLRs): *** perhaps the most important change, old 'for' code
7039         (commented out for reference), didn't account for some registers which
7040         were left marked 'not free' after a pointer operation. The change
7041         reduces register usage a lot in some cases
7042
7043 2006-03-04 Borut Razem <borut.razem AT siol.net>
7044
7045         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
7046           _clean
7047         * support/regression/tests/bug-524697.c: decreased array size for
7048           mcs51 to fit into the internal RAM
7049         * support/regression/Makefile.in: a little bit more verbose
7050
7051 2006-03-03 Borut Razem <borut.razem AT siol.net>
7052
7053         * support/regression/fwk/lib/testfwk.c,
7054           support/regression/fwk/include/testfwk.h: introduced function
7055           _prints(), nonrecursive _printn(), call _initEmu() from main()
7056         * support/regression/ports/gbz80/support.asm,
7057           support/regression/ports/ucz80/support.asm,
7058           support/regression/ports/z80/support.asm,
7059           support/regression/ports/ds390/support.c,
7060           support/regression/ports/hc08/support.c,
7061           support/regression/ports/host/support.c,
7062           support/regression/ports/mcs51/support.c,
7063           support/regression/ports/xa51/support.c: added empty _initEmu()
7064           function
7065         * support/regression/ports/pic16/gpsim.cmd,
7066           support/regression/ports/pic16/spec.mk,
7067           support/regression/ports/pic16/support.c,
7068           support/regression/Makefile.in: added pic16 regression test
7069
7070 2006-03-01 Raphael Neider <rneider AT web.de>
7071
7072         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
7073           genConstPointerGet): use safe way of generating MOVFF to cover
7074             literals as well as registers, fixes bug #1440527
7075         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
7076             dereference
7077           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
7078             more correctly, fixes bug #1232186
7079           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
7080         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
7081             gplink guess the correct processor in more cases, applied patch
7082             from Till Riedel attached to and fixing bug #1436552
7083
7084 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7085
7086         * support/regression/tests/array.c: added, contains check for #1434401
7087         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
7088
7089 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
7090
7091         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
7092         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
7093         * device/include/mcs51/c8051f326.h,
7094         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
7095         * device/include/mcs51/c8051f000.h,
7096         * device/include/mcs51/c8051f018.h,
7097         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
7098           PCON_IDLE,PCON_STOP and added sfr16 definitions
7099
7100 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
7101
7102         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
7103           genGetWord): fixed bug 1409955
7104
7105 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
7106
7107         * device/include/hc08/mc68hc908gp32.h,
7108         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
7109
7110 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
7111
7112         * src/SDCCast.c (constExprValue): return NULL if not a value
7113         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
7114         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
7115         * support/regression/tests/bitfields.c: enabled signed bitfield for all
7116
7117 2006-02-13 Borut Razem <borut.razem AT siol.net>
7118
7119         * src/regression/ptrarg.c: added, fails due to bug #1430967
7120         * src/regression/Makefile: ptrarg.c added, ...
7121
7122 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
7123
7124         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
7125         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
7126
7127 2006-02-11 Borut Razem <borut.razem AT siol.net>
7128
7129         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
7130           print "Processor: xxx" message to stdout only if --verbose
7131
7132 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
7133
7134         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
7135         * support/regression/tests/bug1426356.c: added
7136         * support/regression/tests/bitfields.c: removed 2 tests
7137
7138 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
7139
7140         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
7141         * device/include/mcs51/c8051f330.h,
7142         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
7143           PCON_IDLE,PCON_STOP and added sfr16 definitions
7144         * device/lib/_divsint.c,
7145         * device/lib/_divuint.c,
7146         * device/lib/_divulong.c,
7147         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
7148           register bank bug for small stackauto
7149
7150 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
7151
7152         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
7153
7154 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
7155
7156         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
7157         * all.dsp: corrected several bin paths
7158         * device/include/mcs51/c8051f120.h,
7159         * device/include/mcs51/c8051f300.h,
7160         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
7161           to PCON_IDLE,PCON_STOP
7162         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
7163         * device/lib/printf_large.c (output_float): fixed bug 1388703
7164         * support/regression/tests/bug1057979.c: added test for bug 1388703
7165
7166 2006-02-08 Raphael Neider <rneider AT web.de>
7167
7168         * src/pic/pcode.c (pciTRIS): fixed typo,
7169           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
7170           (LinkFlow): fixed handling of flows that end in a call,
7171           (ReuseReg): perform safety check earlier
7172         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
7173             to work with flows at the beginning of a pBlock,
7174             fixes #1426557 (Symbol not previously defined),
7175           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
7176             usage information
7177           (RemoveUnusedRegisters): update register usage info
7178         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
7179             created, reuse existing ones instead
7180         * src/pic/gen.c (genPcall): fixed #1424719
7181
7182 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
7183
7184         * link/z80/lkmain.c,
7185         * link/z80/lklex.c,
7186         * link/z80/lkdata.c,
7187         * link/z80/aslink.h: fixed build on current cygwin:
7188         replaced getline() by lk_getline()
7189
7190 2006-02-01 Borut Razem <borut.razem AT siol.net>
7191
7192         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
7193           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
7194           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
7195           src/regression/bool1.c, src/regression/bool2.c,
7196           src/regression/bool3.c, src/regression/call1.c,
7197           src/regression/compare.c, src/regression/compare10.c,
7198           src/regression/compare2.c, src/regression/compare3.c,
7199           src/regression/compare4.c, src/regression/compare5.c,
7200           src/regression/compare6.c, src/regression/compare7.c,
7201           src/regression/compare8.c, src/regression/compare9.c,
7202           src/regression/configword.c, src/regression/for.c,
7203           src/regression/inline.c, src/regression/mult1.c,
7204           src/regression/nestfor.c, src/regression/or1.c,
7205           src/regression/pointer1.c, src/regression/ptrfunc.c,
7206           src/regression/rotate1.c, src/regression/rotate2.c,
7207           src/regression/rotate3.c, src/regression/rotate4.c,
7208           src/regression/rotate5.c, src/regression/rotate6.c,
7209           src/regression/rotate7.c, src/regression/string1.c,
7210           src/regression/struct1.c, src/regression/sub.c,
7211           src/regression/sub2.c, src/regression/switch1.c,
7212           src/regression/while.c, src/regression/xor.c,
7213           src/regression/create_stc, src/regression/simulate,
7214           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
7215           regression tests
7216         * src/regression/gpsim_assert.h: added
7217
7218 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
7219
7220         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
7221         ((void (code *) (void)) 0) ();
7222         * as/hc08/aslex.c,
7223         * as/hc08/aslink.h,
7224         * as/hc08/asm.h,
7225         * as/hc08/asmain.c,
7226         * as/hc08/lkdata.c,
7227         * as/hc08/lklex.c,
7228         * as/hc08/lkmain.c,
7229         * as/mcs51/aslex.c,
7230         * as/mcs51/aslink.h,
7231         * as/mcs51/asm.h,
7232         * as/mcs51/asmain.c,
7233         * as/mcs51/lkdata.c,
7234         * as/mcs51/lklex.c,
7235         * as/mcs51/lkmain.c,
7236         * as/z80/aslex.c,
7237         * as/z80/asm.h,
7238         * as/z80/asmain.c: fixed build on current cygwin:
7239         replaced getline() by as_getline()
7240
7241 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
7242
7243         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
7244         declarator in the symbol chain
7245         * src/SDCCsymt.h,
7246         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
7247         parameter list for function pointers
7248         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
7249         * support/regression/tests/bug-716242.c: added
7250
7251 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
7252
7253         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
7254         offset if possible
7255         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
7256
7257 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
7258
7259         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
7260         inifinitely recurseable, added static
7261         * support/regression/tests/bug-1408066.c: added
7262
7263 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
7264
7265         * src/SDCCicode.h,
7266         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
7267         renamed, added possibility to create "postLoopLbl"-labels
7268         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
7269         newiTempLoopHeaderLabel
7270         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
7271         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
7272         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
7273         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
7274         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
7275         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
7276         (basicInduction): fixed bug #136564, made static,
7277         (loopInduction): changed parameter of basicInduction, made static,
7278         (addPostLoopBlock): added
7279         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
7280         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
7281         findLoopEndSeq
7282         * support/regression/tests/bug-136564.c: added
7283         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
7284         --std-sdcc99 to LIBSDCCFLAGS
7285
7286 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
7287
7288         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
7289         while loop
7290         * support/regression/tests/bug-1406131.c: added
7291
7292 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
7293
7294         * src/SDCCast.c (decorateType): fix promotion of unary minus
7295         * src/SDCCsymt.c (computeType): beautified
7296         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
7297         (valUnaryPM, valComplement): fix sign and promotion,
7298         (valNot): ANSI: result type is int (SDCC: unsigned char)
7299         * support/regression/tests/uminus.c: speedup by removing superflous
7300         test case 'int'
7301         * support/regression/tests/onebyte.c: added promotion and signedness
7302         tests for unary minus
7303         * support/regressions/tests/bug-477927.c: disable warning about
7304         uninitialized variables
7305         * support/regression/tests/not.c: added
7306
7307 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
7308
7309         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
7310         * src/mcs51/gen.c (gen51Code): show final register usage after
7311         fillGaps in asm with --i-code-in-asm
7312         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
7313         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
7314         incUsed, rliveClear, adjustIChain): made static,
7315         (setFromRange): excluded because it's unused,
7316         (findPrevUseSym, markWholeLoop): added,
7317         (findPrevUse): rewritten; fixes bug 895992; now a complete search
7318         through all branches of predecessors enables sdcc to emit the warning
7319         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
7320         (rlivePoint): made static, added parameter emitWarnings which is only
7321         true during the first run out of two,
7322         (findRecursiveSucc, findRecursivePred): removed,
7323         (computeLiveRanges): made static, added parameter emitWarnings,
7324         (dumpIcRlive): added for debugging only
7325         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
7326         removed prototype of setFromRange()
7327         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
7328         in call of computeLiveRanges()
7329         * support/regression/tests/bug-895992.c: added
7330         * support/regression/tests/bug-971834.c: added
7331         * support/valdiag/tests/bug-895992.c: added
7332         * support/valdiag/tests/bug-971834.c: added
7333
7334 2005-12-18 Raphael Neider <rneider AT web.de>
7335
7336         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
7337           (genUnpackBits): improved code for direct operands,
7338           (genPackBits): improved code for literal assignment to bitfields
7339             and for direct destination operands (no FSR indirection),
7340             prevented redundant AND, fixes #1362800,
7341           (AccLsh): added parameter to disable masking of the result
7342         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
7343           skip instructions with side-effects (like incfsz),
7344           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
7345         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
7346         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
7347           fixes #1375263
7348
7349 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
7350
7351         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
7352         volatile variables as spill location
7353
7354 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
7355
7356         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
7357         replacing literals
7358         * support/regression/tests/bug-1376320.c: added
7359
7360 2005-12-08 Raphael Neider <rneider AT web.de>
7361
7362         * src/pic/device.c: renamed is_shared to pic14_is_shared
7363         * src/pic/gen.c (genIfx): re-enabled handling of sbits
7364         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
7365           (is_valid_identifier): added for above workaround
7366
7367 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
7368
7369         * device/lib/Makefile.in: fixed to enable port-specific-objects
7370         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
7371           char, thanks Hubert Sack
7372         * doc/sdccman.lyx: documented --xstack-loc,
7373           elaborated a bit more on interrupts and pitfalls,
7374           removed "setjmp/longjmp unsupported",
7375           documented some unsupported C99 features
7376         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
7377         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
7378           if, thanks Hubert Sack
7379         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
7380         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
7381           make make_library
7382         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
7383           regression tests can report resource usage (rfe 700441)
7384         * support/regression/collate-results.py: report resource usage
7385         * support/regression/ports/ds390/spec.mk,
7386         * support/regression/ports/hc08/spec.mk,
7387         * support/regression/ports/mcs51/spec.mk,
7388         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
7389         * support/regression/ports/ds390/uCsim.cmd,
7390         * support/regression/ports/hc08/uCsim.cmd,
7391         * support/regression/ports/mcs51/uCsim.cmd,
7392         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
7393         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
7394           library, use the default one
7395         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
7396           building the library
7397
7398 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
7399
7400         * config.dsp: added dependency on .version and configure_vc.awk
7401         * device/include/setjmp.h: updated for --stack-auto and --xstack
7402         * device/include/mcs51/at89c51snd1c.h: corrected line endings
7403         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
7404         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
7405         * device/lib/libsdcc.lib: added _setjmp
7406         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
7407           (decorateType): fixed bug 1372851,
7408           (optimizeGetHbit): fixed warning
7409         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
7410           array initialisation
7411         * support/regression/tests/bug1057979.c: added test for bug 1358192
7412         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
7413
7414 2005-12-03 Borut Razem <borut.razem AT siol.net>
7415
7416         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
7417           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
7418
7419 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
7420
7421         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
7422         createIval): implement symbol independant "flexible array member",
7423         (createIvalCharPtr): implemented flexible array initialisation with a
7424         string
7425         * src/SDCCsymt.c (copyStruct): removed,
7426         (getSize): fixed misleading comment,
7427         (getAllocSize): removed, the additional allocation size is now in
7428         sym->flexArrayLength,
7429         (checkStructFlexArray): new, syntax checks for flexible array members,
7430         (compStructSize): added syntax checks for "flexible array members"
7431         (copyStruct): removed,
7432         (copyLinkChain): removed inefficient fix for bug 770487
7433         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
7434         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
7435         symbol->flexArrayLength
7436         * src/SDCCerr.c,
7437         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
7438         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
7439         * support/regression/tests/structflexarray.c: added
7440         * support/valdiag/tests/structflexiblearray.c: added
7441
7442 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
7443
7444         * src/SDCCast.c (decorateType): fixed bug 1368489
7445         * support/Util/SDCCerr.c,
7446         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
7447
7448 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7449
7450         * device/include/mcs51/at89c51snd1c.h: added file submitted by
7451           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
7452
7453 2005-11-27 Borut Razem <borut.razem AT siol.net>
7454
7455         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
7456           support/cpp2/mkdeps.h: added command line option
7457           -obj-ext=<extension> to SDCPP to define object file externion, used
7458           for generation of make dependencies (-M)
7459         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
7460
7461 2005-11-26 Borut Razem <borut.razem AT siol.net>
7462
7463         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
7464           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
7465           added pic and pic16 libraries
7466
7467 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7468
7469         * device/include/float.h: Corrected typo in prototype of __fsgt
7470
7471 2005-11-25 Borut Razem <borut.razem AT siol.net>
7472
7473         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
7474           added creation of model-mcs51-stack-auto libraries
7475
7476 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
7477
7478         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
7479         and fields-list too
7480         * src/SDCCast.c (createIvalArray): removed obsolete comment
7481
7482 2005-11-24 Borut Razem <borut.razem AT siol.net>
7483
7484         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
7485           added missing device/lib/mcs51/crt*.asm sources
7486
7487 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
7488
7489         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
7490
7491 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
7492
7493         * device/lib/_fs2schar.c,
7494         * device/lib/_fs2sint.c,
7495         * device/lib/_fs2slong.c: optimized inline asm
7496
7497 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7498
7499         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
7500           Better handling of floats between -1.0 and 0.0.
7501
7502 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7503
7504         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
7505           (the missing "if"s prohibited removal of redundant labels)
7506
7507 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7508
7509         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
7510           Properly convert floats between -1.0 and 0.0 to long, int, and char
7511           types (max integer value of negative floats tends to zero).
7512         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
7513           Removed changes made so to work properly with floats between
7514           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
7515           and _fs2char.c
7516
7517 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
7518
7519         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
7520         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
7521         (genCast) cosmetic change
7522         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
7523         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
7524         from mcs51
7525         * support/regression/tests/bitfields (testSignedBitfields): added
7526
7527 2005-11-18 Borut Razem <borut.razem AT siol.net>
7528
7529         * sdcc/device/lib/Makefile.in: remove all unnecessary files
7530         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
7531           introduced SILENT option to make building of pic16 libraries less
7532
7533 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7534
7535         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
7536           Now they work properly with floats between -1.0 and 0.0
7537         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
7538
7539 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
7540
7541         * src/SDCCicode.c (printOperand): added missing else
7542
7543 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
7544
7545         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
7546         reformatted for better readability
7547         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
7548         signed bitfields
7549
7550 2005-11-17 Borut Razem <borut.razem AT siol.net>
7551
7552         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
7553           introduced SILENT option to make building of pic16 libraries less
7554           verbose - used for nightly snapshot build
7555         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
7556           available on Win32 platforms.
7557         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
7558           medium, large, pic and pic16
7559
7560 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7561
7562         * device/lib/printf_large.c: Temporary patch for bug 1358192:
7563           printf("%f"...) sets fraction to zero.
7564
7565 2005-11-16 Raphael Neider <rneider AT web.de>
7566
7567         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
7568           fixes #1357221
7569         * src/pic/gen.c (genIfx): implemented for CARRY bit
7570         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
7571           to generic pointers, fixes #1357332,
7572           (pic16_movLit2f): NEW,
7573           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
7574
7575 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
7576
7577         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
7578
7579 2005-11-11 Raphael Neider <rneider AT web.de>
7580
7581         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
7582         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
7583           compute pointer's type from operand,
7584           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
7585           improved single bit reads, fixes bug #1353379
7586
7587 2005-11-09 Borut Razem <borut.razem AT siol.net>
7588
7589         * support/scripts/sdcc.nsi: added lib/pic to the package
7590
7591 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
7592
7593         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
7594
7595 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
7596
7597         * support/regression/tests/bug1348008.c: added
7598         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
7599         * support/regression/tests/bug1337835.c: updated comment
7600
7601 2005-11-06 Borut Razem <borut.razem AT siol.net>
7602
7603         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
7604           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
7605           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
7606           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
7607           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
7608           dynamic construction of cl_error_class and derivates - 2.nd try
7609
7610 2005-11-05 Borut Razem <borut.razem AT siol.net>
7611
7612         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
7613           bug, which caused Bus Errors on sparc solaris
7614
7615 2005-11-04 Borut Razem <borut.razem AT siol.net>
7616
7617         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
7618           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
7619           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
7620           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
7621           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
7622           and derivates to resolve the initialization problem on OSX
7623
7624 2005-11-02 Borut Razem <borut.razem AT siol.net>
7625
7626         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
7627           corrected typo - #include <winsock2.h>
7628
7629 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
7630
7631         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
7632           (_asxxxx_mapping): added org directive for future enhancements
7633
7634 2005-11-01 Borut Razem <borut.razem AT siol.net>
7635
7636         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
7637           enabled sockets on WIN32
7638         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
7639
7640 2005-10-31 Borut Razem <borut.razem AT siol.net>
7641
7642         * support/regression/generate-cases.py: escape backslashes in {testcase}:
7643           WIN32 backslash path delimiters should be escaped when used in C strings
7644         * support/regression/tests/bitfields.c: exclude failing assertions for
7645           __CYGWIN32__ and __MINGW32__ hosts
7646
7647 2005-10-30 Borut Razem <borut.razem AT siol.net>
7648
7649         * src/SDCCutil.c: corrected double comparison typo
7650
7651 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
7652
7653         * device/lib/medium/Makefile: added for new memory model medium
7654         * device/include/asm/mcs51/features.h: updated for medium/pdata
7655         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
7656           added Multiply & Accumulate sbit's and MAC0_PAGE define
7657         * device/include/mcs51/c8051f300.h: added sfr16 definitions
7658         * device/include/mcs51/c8051f310.h: added sfr16 definitions
7659         * device/lib/_mullong.c: update for medium model
7660         * device/lib/incl.mk: added medium model
7661         * doc/sdccman.lyx: documented medium model
7662         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
7663         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
7664         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
7665         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
7666           (allocParms): set SCLS and OCLS to pdata for medium model
7667         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
7668           for pdata,
7669           (powof2): return <0 if not power of 2
7670         * src/avr/gen.c (genBitWise): use updated powof2
7671         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
7672           (shiftR2Left2Result): small optimization in setup, save acc when storing,
7673           (shiftLLeftOrResult): use B if necessary
7674         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
7675         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
7676         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
7677         * support/regression/Makefile.in: added test-mcs51-medium
7678         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
7679
7680 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
7681
7682         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
7683         specifier unsigned
7684         * device/lib/time.c (mktime): fixed bug 1334315
7685
7686 2005-10-28 Raphael Neider <rneider AT web.de>
7687
7688         * device/include/pic/p16f_common.inc: added common declarations
7689         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
7690
7691 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
7692
7693         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
7694           (aopPutUsesAcc): added to predict accumulator use,
7695           (assignResultValue): save acc if necessary,
7696           (genMinusDec): store result if indirectly addressed,
7697           (genDivOneByte):  save acc if necessary,
7698           (movLeft2Result): bugfix if left already in acc,
7699           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
7700             attention to accumulator use (esp. pdata),
7701           (genReceive): receive pdata correctly
7702         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
7703         * src/SDCCicode.h: added isOperandInPagedSpace prototype
7704
7705 2005-10-27 Raphael Neider <rneider AT web.de>
7706
7707         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
7708
7709 2005-10-27 Raphael Neider <rneider AT web.de>
7710
7711         * .version: changed version to 2.5.4
7712         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
7713         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
7714           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
7715             arithmetics support routines
7716         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
7717         * device/lib/Makefile.in: also create installdir for pic
7718
7719         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
7720           pic14 port as well
7721         * src/pic/device.c (dump_sfr): rewritten to delegate register
7722           placement to the linker (use `extern sym' rather than sym EQU addr),
7723           (validAddress): fixed to check last specified address
7724         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
7725           (popGetLit): truncate literal value to 8 bit,
7726           (popGet): moved assert to more appropriate place
7727           (popGetExternal): create pCode operand from and mark the according
7728             symbol as being `extern'
7729           (popGetAddr): added sanity check on immediate's offset, provide
7730             GPOINTER tag on demand
7731           (aopPut): fixed for immediates,
7732           (mov2w_op): move operand's address or contents to WREG (depending on
7733             operand type), safer variant of mov2w,
7734           (movwf,call_libraryfunc): NEW, handy abbreviations,
7735           (get_argument_pcop,get_return_val_pcop,pass_argument,
7736           get_returnvalue): interface for accessing function parameters and
7737             return values,
7738           (assignResultValuei,genRet): use new parameter/return value interface
7739           (pic14_getDataSize): back to old version handling generic pointers,
7740           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
7741             provided implementation and/or fixed old one,
7742           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
7743             calls, removed legacy 8051 reference code
7744           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
7745           (loadSignToC): NEW, move the operands sign bit to CARRY,
7746           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
7747             genRightShiftSigned, accepts negative shift counts,
7748           (setup_fsr): load FSR and adjust IRP (indirect memory access),
7749           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
7750             generic pointers, __data pointers and __code pointers,
7751           (genUnpackBits,genPackBits): rewritten to work with generic pointers
7752             and signed bitfields, limit bitfields to 8 bit,
7753           (genDataPointerGet): fixed number of bytes read,
7754           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
7755           (genPointerGet,genPointerSet): fixed handling of __code pointers,
7756             pointers to constant data are no longer assumed to point to __code
7757             space, removed invalid pointer types,
7758           (bitpatternFromVal): retrieve the PICs representation of an integer
7759             or float literal,
7760           (genDataPointerSet): fixed assigning to po_immediate operands,
7761           (genGenPointerSet): implemented as library call,
7762           (genIfx): fixed incorrect condition,
7763           (genAddrOf): limit generic pointers' addresses to 2 bytes,
7764             provide GPOINTER tag according to destination's storage class,
7765           (genCast): added code to handle casting to generic pointers, added
7766             sign-/zero extension of the result
7767           (aop_isLitLike,op_isLitLike): fixed handling of immediates
7768         * src/pic/gen.h: added macros to access IRP bit in STATUS register
7769         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
7770           extend the result
7771         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
7772           address/register resides in the shared banks
7773           (emitSymbolToFile): improved to handle global and `pinned' symbols,
7774             put all variables into separate sections (have the linker arrange
7775             them)
7776           (picglue): put init code and interrupt handlers in separate sections
7777         * src/pic/main.c: added port specific options table, modified to PORT
7778           structure to make GPOINTERs 3 byte, added pic14_options
7779           (_pic14_do_link): private linking routine (update paths to libraries,
7780             add libsdcc.lib by default)
7781         * src/pic/main.h: declare pic14_options
7782         * src/pic/pcode.c: fixed instructions i/o relations,
7783           (RegCond): reverted to correct version,
7784           (newpCodeOpLit): truncate literals to 8 bit,
7785           (genericPrint): added debug output,
7786           (getRegFromInstruction): fixed for various operand types, simplified
7787           (BuildFlow): fixed broken handling of isntructions with labels
7788           (LinkFlow): start at last instruction in flow (skip trailing comments),
7789             pass the flow on to the next instruction after CALL
7790           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
7791           (insertPCodeInstruction): fixed inserting after a skip instruction,
7792           (DoBankSelect): fixed for labeled instructions
7793           (OptimizepBlock): honor --nopeep switch
7794           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
7795         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
7796         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
7797           (pCodeOptime2pCodes): allow disabling this optimization via
7798             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
7799             but is still buggy), started implementation of a dataflow based
7800             pCode optimization (CSE + dead code elimination)
7801           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
7802         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
7803           names are independant of the stack location and therefore portable across
7804           devices
7805
7806 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
7807
7808         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
7809           (selectSpil): fixed bug 1337835 by not spilling bit variables
7810         * support/regression/tests/bug1337835.c: added test for this bug
7811         * src/mcs51/peeph.def: restart after rule 3.c,
7812           addded rules 263.x to optimize loading constants
7813
7814 2005-10-26 Raphael Neider <rneider AT web.de>
7815
7816         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
7817         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
7818           (genAssign): emit warning when casting literals to generic pointer
7819             type, also applies when taking the address of a fixed variable,
7820           (genCast): improved casting to generic pointers
7821         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
7822           extern variables, added verbose error message
7823         * device/include/pic16/{string.h,errno.h}: added #pragma library c
7824
7825 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
7826
7827         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
7828         carry must be complemented too
7829         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
7830         could be emitted by genMinus
7831         * src/SDCCval.c (constVal): fixed bug 1305065
7832
7833 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
7834
7835         * src/SDCCast.c (addCast): added promotion for bit variables
7836         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
7837         promotion casts + optimisation
7838         (optimizeGetWord): fix warning 'i' might be used uninitialized
7839         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
7840         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
7841
7842 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
7843
7844         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
7845         all chars are promoted to int; promotion should be handled in SDCCast.c
7846
7847 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7848
7849         * device/lib/_strcmp.c: Fixed bug 1326457
7850
7851 2005-10-11 Raphael Neider <rneider AT web.de>
7852
7853         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
7854         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
7855
7856 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
7857
7858         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
7859         * support/regression/tests/sfr16.c: added test for the sfr32 bug
7860
7861 2005-10-04 Raphael Neider <rneider AT web.de>
7862
7863         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
7864           device/lib/pic16/pics.all: added pic18f1320
7865         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
7866
7867 2005-09-30 Raphael Neider <rneider AT web.de>
7868
7869         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
7870         * src/pic16/devices.inc: NEW, provides device descriptions
7871         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
7872
7873 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
7874
7875         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
7876           GETHBIT
7877
7878 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
7879
7880         * doc/sdccman.lyx: updated Highest Order Bit documentation,
7881           documented Any Order Bit, Higher Order Byte and Higher Order Word
7882         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
7883         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
7884           (optimizeGetAbit): new, to get any bit, not only the high bit,
7885           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
7886           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
7887           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
7888           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
7889             RIGHT_OP: also try GETBYTE, GETWORD optimization,
7890             GETABIT, GETBYTE, GETWORD: decorate them,
7891           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
7892           (ast_print): added GETABIT, GETBYTE, GETWORD
7893         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
7894         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
7895           (geniCodeBinary): new generic binary icode,
7896           (ast2iCode): added GETABIT, GETBYTE, GETWORD
7897         * src/port.h: updated comment for PORT.hasExtBitOp
7898         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
7899           (genGetByte): new, to get a single byte,
7900           (genGetWord): new, to get a word from a long,
7901           (gen51Code): added GETABIT, GETBYTE, GETWORD
7902         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
7903
7904 2005-09-23 Raphael Neider <rneider AT web.de>
7905
7906         * configure.in, configure: have device/lib/pic configured
7907         * device/lib/Makefile.in: added model-pic14
7908         * device/lib/clean.mk: added pic/ to clean rule
7909         * device/lib/pic: added rudimentary pic14 library providing support
7910           functions for multiplication/division/generic pointer access
7911         * src/SDCCopt.c (convilong): mark support functions as extern
7912           for pic14 port as well
7913         * src/pic/gen.c (genMult): added assertions,
7914           (genpic14Code): emit warning on unhandled iCodes
7915         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
7916         * src/pic/pcode.c (pCodeOpCopy),
7917         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
7918           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
7919           SFR_REGISTER}), made safe for future extensions
7920         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
7921           instructions even if preceeded by SKIP instructions (also remove
7922           them); removed unused code
7923         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
7924           prevents leaving parts of the structure uninitialized after copying
7925
7926 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
7927
7928         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
7929           ago by me
7930         * support/regression/tests/addsub.c: added test for the bug
7931
7932 2005-09-21 Raphael Neider <rneider AT web.de>
7933
7934         * device/include/pic16/pic18f1220.h,
7935           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
7936         * device/lib/pic16/Makefile.rules: added missing opening paren
7937         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
7938           are provided in genutils.c,
7939           (genUminusFloat,genUminus,genCmpEq): added asserts on different
7940           operand/result sizes,
7941           (genCmp): assert on NULL pointers first, then check deref'ed values
7942         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
7943           result size
7944
7945 2005-09-18 Raphael Neider <rneider AT web.de>
7946
7947         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
7948           as these are now unused,
7949           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
7950         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
7951           local, avoids uninitialized pointer dereference on r->name
7952         * src/pic16/ralloc.c (newReg): fixed indentation
7953
7954 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
7955
7956         * src/SDCCval.c (constVal): fixed bug 730366
7957         * support/Util/SDCCerr.c,
7958         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
7959
7960 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
7961
7962         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
7963
7964 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
7965
7966         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
7967
7968 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7969
7970         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
7971           (hex2dec): made hex_digit unsigned char, removed ascii dependance
7972         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
7973           (hex2dec): made hex_digit unsigned char, removed ascii dependance
7974         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
7975         * packihx/packihx.c (hexDigit): made c unsigned char
7976         * as/mcs51/lklibr.c (fndsym),
7977         * link/z80/lkgb.c (gb),
7978         * link/z80/lklibr.c (fndsym),
7979         * link/z80/lkrloc.c (relr),
7980         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
7981         * src/SDCC.lex (checkCurrFile, process_pragma),
7982         * src/SDCCglue.c (spacesToUnderscores),
7983         * src/SDCCmain.c (setParseWithComma, processFile),
7984         * src/asm.c (tvsprintf, printCLine),
7985         * src/avr/gen.c (emitcode, aopPut),
7986         * src/ds390/gen.c (emitcode),
7987         * src/hc08/gen.c (emitcode, emitinline),
7988         * src/mcs51/gen.c (emitcode, genInline),
7989         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
7990           tokenizeLineNode),
7991         * src/pic/ralloc.c (debugLog),
7992         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
7993           tokenizeLineNode),
7994         * src/pic16/ralloc.c (debugLog),
7995         * src/z80/main.c (_process_pragma):
7996            made all ctype.h function calls safe
7997         * src/SDCCopt.c: include math.h for fabs
7998         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
7999           and used them throughout the code to make ctype.h function calls safe
8000         * src/ds390/main.c (asmLineNodeFromLineNode),
8001         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
8002         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
8003            unsigned char*
8004         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
8005           (newpCodeAsmDir): made ctype.h function calls safe
8006         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
8007           pic16_emitcode):  made lbp unsigned char*
8008         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
8009           (pic16_newpCodeAsmDir): made ctype.h function calls safe
8010         * src/xa51/gen.c (emitcode),
8011         * src/z80/gen.c (_emit2): made lbp unsigned char*
8012         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
8013            char*
8014
8015 2005-09-05 Raphael Neider <rneider AT web.de>
8016
8017         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
8018           access bank splitpoint
8019
8020 2005-09-05 Raphael Neider <rneider AT web.de>
8021
8022         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
8023
8024 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
8025
8026         * .version: changed to version 2.5.3
8027         * doc/sdccman.lyx: changed version to 2.5.3,
8028           documented --codeseg and --constseg and pragma codeseg and constseg,
8029           documented bit parameters (reentrant) and bit returning
8030         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
8031            currFunc->recvSize, but is this ok for all ports?
8032           (ast2iCode): result of ~ on unsigned char must be cast to int for
8033            bool to work
8034         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
8035           function pointers in bit space
8036         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
8037           (processFuncArgs): call port.reg_parm() with reentrancy info
8038         * src/port.h,
8039         * src/avr/main.c,
8040         * src/ds390/main.c,
8041         * src/hc08/main.c,
8042         * src/pic/main.c,
8043         * src/pic16/main.c,
8044         * src/xa51/main.c,
8045         * src/z80/main.c: port.reg_parm prototype extended with
8046           "bool reentrant" parameter
8047         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
8048           options.stackAuto for allocating bit register parameters
8049         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
8050           (genSend): set BitBankUsed if it is,
8051           (selectRegBank): factored out of genCall for use in genPcall,
8052           (genCall): removed redundant dtype assignmen, use selectRegBank,
8053           (genPcall): handle returning in Carry properly, save in F0 if needed,
8054           (genReceive): handle bit register parameters
8055         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
8056           (mcs51_assignRegisters): enable bit registers for all reentrant
8057            functions and don't set BitBankUsed unconditionally
8058         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
8059         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
8060         * support/regression/tests/funptrs.c: added tests for BOOL and for return
8061
8062 2005-08-27 Borut Razem <borut.razem AT siol.net>
8063
8064         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
8065         ppc-osx (Darwin) does not support -u option. It seems that it is
8066         supported only on Linux - GNU cp
8067
8068 2005-08-25 Borut Razem <borut.razem AT siol.net>
8069
8070         * sim/ucsim/gui.src/serio.src/Makefile.in,
8071           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
8072           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
8073           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
8074           install and strip, since the strip at /usr/ccs/bin should be used
8075           on solaris
8076
8077 2005-08-24 Borut Razem <borut.razem AT siol.net>
8078
8079         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
8080
8081 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
8082
8083         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
8084         ffffffffu
8085
8086 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
8087
8088         * as/mcs51/aslink.h: completed lkrloc.c prototypes
8089         * as/mcs51/lkmain.c (link_main): fixed warning
8090         * device/include/stdbool.h: ds390 has no advanced bit support yet
8091         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
8092         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
8093         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
8094           and updated their macros
8095         * src/SDCCval.c (constVal): updated comment for renamed b_long
8096
8097 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
8098
8099         * as/mcs51/asdata.c: changed ctype['['] to BINOP
8100         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
8101           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
8102           (oprio): set priority for '['
8103         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
8104            and adb_24_bit
8105         * as/mcs51/asm.h: added defines R_BIT and S_BIT
8106         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
8107         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
8108         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
8109           added overlayable BIT_BANK area
8110         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
8111           (summary2): explain 'T' in legenda
8112         * as/mcs51/lkrloc.c: replaced old K&R style,
8113           (relr): added R_BIT processing,
8114           (errmsg): added "Bit-addressable relocation error",
8115           (adb_bit): added for converting from byte- to bit-addressable space,
8116           (adb_24_bit): added for converting from byte- to bit-addressable space
8117         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
8118            used in reentrant functions now even as return value
8119         * device/lib/_gptrput.c (_gptrput): removed obsolete code
8120         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
8121           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
8122         * src/SDCCglobl.h: added indicator BitBankUsed
8123         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
8124            the bit registers b0-b7
8125         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
8126           (geniCodeCast): fixed bug 1263853,
8127           (geniCodeLogicAndOr): put result in bool or char,
8128           (geniCodeReceive): added parameter func for accessing the return type,
8129           (geniCodeFunctionBody): pass func to geniCodeReceive
8130         * src/SDCCmain.c: added indicator BitBankUsed
8131         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
8132         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
8133           (checkSClass): don't put automatic bool/bit on stack,
8134           (checkFunction): removed check on function cannot return bit
8135         * src/SDCCsymt.h: added newBoolLink prototype
8136         * src/mcs51/gen.c (rb1regs): added bit registers,
8137           (movc): created for assigning to carry,
8138           (pushReg, popReg): created for pushing registers,
8139           (sameRegs): check both AOP_REG and AOP_CRY types,
8140           (aopOp): handle bit registers,
8141           (aopPut): optimization no self-assign,
8142           (saveRegisters): push reg->base (bits) only once for bit registers,
8143            and use pushReg,
8144           (unsaveRegisters): pop reg->base only once and use popReg,
8145           (assignResultValue): added parameter func and return in carry for bits,
8146           (genIpush): optimization no reload in A if not changed,
8147           (genSend): bit parameters in reentrant functions are passed in bit
8148            registers by first assigning to bits in B, then save registers and
8149            copy B to bits,
8150           (genCall): handle returning in Carry properly, save it in F0 if needed,
8151           (genPcall): updated assignResultValue call, this is not safe yet for bit
8152            returning function !!!
8153           (genFunction): don't generate equ's for bit registers and use pushReg,
8154           (genEndFunction): take care of bit returning functions and use popReg,
8155           (genRet): return bit in Carry,
8156           (genIfx): optimize bit registers and other directly addressable bits,
8157           (genReceive): updated assignResultValue call
8158         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
8159           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
8160            registers when using stack-auto
8161         * src/mcs51/ralloc.c (_G): added allBitregs,
8162           (regs8051): added the bit registers,
8163           (createStackSpil): use macro IS_BIT,
8164           (getRegBit): added to allocate a bit register, else spill,
8165           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
8166           (updateRegUsage): factored out to ease stepping while debugging,
8167           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
8168            also allocate bit registers,
8169           (fillGaps): handle bit registers,
8170           (findAllBitregs): added to create bit vector with all bit registers,
8171           (mcs51_allBitregs): returns this bit vector,
8172           (mcs51_assignRegisters): when using stack-auto use bit registers for
8173            passing parameters and creating local variables
8174         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
8175
8176 2005-08-22 Borut Razem <borut.razem AT siol.net>
8177
8178         * device/lib/Makefile.in: replaced find option -or with -o
8179           to make it run on solaris
8180
8181 2005-08-22 Raphael Neider <rneider AT web.de>
8182
8183         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
8184           fixes #1265442 (crash on Solaris)
8185
8186 2005-08-20 Borut Razem <borut.razem AT siol.net>
8187
8188         * configure, configure.in: added tests for libsocket and libnsl libraries,
8189           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
8190           from support/regression/Makefile.in
8191         * support/regression/Makefile.in: added
8192         * device/lib/pic16/Makefile.common.in: force make to use bash shell
8193         * sim/ucsim/libtool: regenerated on sparc-solaris
8194         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
8195           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
8196           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
8197           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
8198           sparc-solaris, which doesn't use GNU ld linker
8199         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
8200         * as/Makefile: find on sparc-solaris does not support -maxdepth option
8201
8202 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
8203
8204         * src/mcs51/peeph.def: updated comments
8205
8206 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8207
8208         * device/lib/_gptrget.c,
8209         * device/lib/_gptrput.c: slightly shorter
8210         * doc/sdccman.lyx: incremented version
8211         * src/mcs51/peeph.def: moved peephole comments to the line of first
8212           change to better keep line correlation, reanimated 186.e
8213         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
8214
8215 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
8216
8217         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
8218           David Saxton with quotes around file name.
8219
8220 2005-08-15 Borut Razem <borut.razem AT siol.net>
8221
8222         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
8223           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
8224           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
8225           make tests run on x86_64 platform
8226
8227 2005-08-13 Raphael Neider <rneider AT web.de>
8228
8229         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
8230           as it might be executed DURING a build (parallel make is wonderful)
8231
8232 2005-08-13 Raphael Neider <rneider AT web.de>
8233
8234         * device/lib/Makefile.in (port-specific-objects-pic16):
8235           revert to cp $(PORT)/bin/*.* $(PORTDIR)
8236         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
8237           dependency
8238         * device/lib/pic16/Makefile.rules: build subdirs before creating
8239           the library, removed builddir rule, create $(builddir) early in
8240           recurse rule, use empty recurse rule for leaf directories
8241         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
8242           mkdir errors (race condition), removed duplicate suffix "hex"
8243           from clean rules
8244         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
8245         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
8246           prevents mkdir -p from aborting on Alpha
8247
8248 2005-08-12 Raphael Neider <rneider AT web.de>
8249
8250         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
8251           db-statements in order to allow for arrays of pointers in code
8252           sections to be placed without interspersed 0-padding, fixes
8253           bug #1256215
8254         * (emitStatistics): fixed division by zero for pic18f1220
8255         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
8256           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
8257         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
8258         * (pic16_pCodeConstString): keep track of already emitted string
8259           literals to prevent "duplicate definitions of symbol _str_NR"
8260         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
8261           debug message
8262         * device/lib/Makefile.in: ignore failing PIC16 library builds
8263         * device/lib/pic16/Makefile: do not build if gputils are missing
8264         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
8265
8266 2005-08-10 Raphael Neider <rneider AT web.de>
8267
8268         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
8269           my last commit)
8270
8271 2005-08-10 Raphael Neider <rneider AT web.de>
8272
8273         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
8274           Rokas' patch to add the new fixed point type "__fixed16x16"
8275         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
8276           functions for __fixed16x16 arithmetics
8277         * device/lib/pic16: reimplemented the build system to support
8278           a separate build directory, better handling of libio (create
8279           the library in a separate subdir for each architecture) and
8280           easier configuration (centralized in Makefile.common)
8281
8282 2005-08-07 Raphael Neider <rneider AT web.de>
8283
8284         * src/pic16/gen.c (genrshTwo): fixed sign extension
8285         * src/pic16/device.c: added pic18f2320, 4220 and 4320
8286         * device/include/pic16/pic18f2220.h: changed some bit definitions,
8287           added T0CONbits
8288         * device/include/pic16/pic18f4220.h: NEW, header for
8289           pic18f4220 and pic18f4320
8290         * device/include/pic16/pic18fregs.h: added new devices,
8291           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
8292         * device/include/pic16/signal.h: resolved name clashes
8293           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
8294           to also allow testing for interrupt enable bits, added
8295           comments on how to use the macros
8296         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
8297         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
8298           register definitions for the devices
8299         * device/lib/pic16/pics.all: added new devices
8300         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
8301           allocated memory
8302         * device/lib/pic16/libc/stdlib/memfree: do not count
8303           the block header as free memory
8304         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
8305           simplified and added missing end-of-blocklist-marker
8306           (reported by Peter Onion, fixes #1252814)
8307         * (_mergeHeapBlock): fixed loop condition
8308         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
8309           len==0, restructured code
8310         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
8311           up a bit, reduced bitfield accesses, prevent endless loops
8312           in case of heap corruption
8313         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
8314           "unreferenced arguments/must return a value" warnings
8315         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
8316           replaced BAUDREG with SPBRG
8317         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
8318           device/lib/pic16/debug/gstack/gstack.c: replaced
8319           _naked, _asm, _endasm with __naked, __asm, __endasm
8320
8321 2005-08-05 Raphael Neider <rneider AT web.de>
8322
8323         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
8324           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
8325
8326 2005-08-05 Borut Razem <borut.razem AT siol.net>
8327
8328         * device/lib/Makefile.in: added missing ';'
8329         * configure: removed ^M characters
8330
8331 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8332
8333         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
8334           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
8335           License
8336
8337 2005-08-04 Borut Razem <borut.razem AT siol.net>
8338
8339         * configure.in: pic16 libraries build 2nd try - enable running
8340           configure in device/lib/pic16
8341         * configure: regenerated from configure.in
8342         * device/lib/Makefile.in: create $(PORT)/bin directory
8343
8344 2005-08-03 Raphael Neider <rneider AT web.de>
8345
8346         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
8347           to get/set values via pointers
8348         * (genUnpackBits,genPackBits): changed detection of
8349           ptr->bitfield vs. sym.bitfield, fixed access via generic
8350           pointers, removed dead (wrong) code for multibyte bitfields
8351         * (genNearPointerGet, genGenPointerGet): removed useless code,
8352           fixed bitfield detection, fixes #1250594
8353         * (genNearPointerSet): removed useless code
8354         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
8355           and introduced macro pic16_emitpcode that conditionally emits
8356           the origin of the following pCode (useful for debugging SDCC)
8357         * src/pic16/pcode.c: changed (and disabled) some debug outputs
8358         * (createDefmap): fixed handling of LFSR for --optimize-df
8359
8360 2005-08-02 Borut Razem <borut.razem AT siol.net>
8361
8362         * device/lib/Makefile.in: pic16 libraries build enabled since
8363           gputils-0.13.2 are now localy installed at sourceforge's compile farm
8364
8365 2005-08-02 Raphael Neider <rneider AT web.de>
8366
8367         * src/pic16/gen.c (genPackBits): removed deprecated warning
8368         * (genGenPointerSet): fixed bitfield detection
8369
8370 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8371
8372         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
8373
8374 2005-07-31 Raphael Neider <rneider AT web.de>
8375
8376         * device/lib/pic16/libdev/pic18f458.c,
8377           device/include/pic16/pic18f458.h: added missing T0CONbits
8378
8379 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
8380
8381         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
8382
8383 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
8384
8385         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
8386
8387 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8388
8389         * device/include/mcs51/at89c51ed2.h: added.
8390
8391 2005-07-23 Raphael Neider <rneider AT web.de>
8392
8393         * src/pic/gen.h: added emitpcode macro for debugging
8394         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
8395           and replace by macro adding debug information on demand
8396         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
8397         * (gencjne): tried to fix; replaced with correct (slower) code
8398         * (gen{Unp,P}ackBits): fixed single bit access
8399         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
8400         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
8401           previous instruction
8402         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
8403           register has to be handled with care (forbidding movement
8404           of assignments/uses, removing assignments completely, ...)
8405         * (pCodeOptime2pCodes): make use of regIsSpecial
8406         * added lots of debugging output (commented out)
8407         * src/pic/rallloc.c (deassignLRs): prevent operand registers
8408           from being reused as result UNLESS it is known to work
8409
8410 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
8411
8412         * support/Util/dbuf.h: include <stddef.h> for size_t
8413         * .version: changed to version 2.5.2
8414
8415 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8416
8417         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
8418
8419 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8420
8421         * src/hc08/gen.c (genMinus): fixed bug #1241835,
8422           (genModOneByte): removed needless psha/pula
8423
8424 2005-07-22 Raphael Neider <rneider AT web.de>
8425
8426         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
8427           have PIC14 handled like PIC16, fixes broken pic14 linker calls
8428         * src/pic/gen.c (resolveIfx): do not "invent" labels
8429         * (genSkipc): changed to positive logic
8430         * (genSkipCond): removed as no longer needed
8431         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
8432           backport from PIC16
8433         * (genLeftShift): check operands are in different registers
8434         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
8435           INCF does not update CARRY...
8436         * src/pic/main.c: fixed _linkCmd
8437         * src/pic/pcode.c (unlinkpCode): added inactive code
8438         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
8439           alive (do not assign result and operand overlapping registers)
8440
8441 2005-07-22 Raphael Neider <rneider AT web.de>
8442
8443         * src/pic/device.c (dump_sfr): replaced register declaration with
8444           call to emitSymbolToFile() to avoid duplicate symbols
8445         * (assignRelocatableRegisters): do not declare external symbols
8446         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
8447           right (take size of type, not etype)
8448         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
8449         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
8450         * (packRegsForAccUse): disabled assignment of WREG as
8451           the result reg to prevent occurence of just fixed #1235003,
8452           fixes #1242954
8453         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
8454           symbols (avoids duplicate symbols in .asm file)
8455         * (pic14emitRegularMap): use emitSymbolToFile()
8456         * src/pic/gen.c (aopOp): fixed spillLocation handling
8457         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
8458         * (genDataPointerSet): removed unneccessary variables/output
8459
8460 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
8461
8462         * as/mcs51/lkarea.c: enlarged codemap for banked memory
8463         * device/lib/mcs51/crtbank.asm: added # to 0x0F
8464
8465 2005-07-21 Raphael Neider <rneider AT web.de>
8466
8467         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
8468           architecture cannot handle them efficiently, fixes bug #1235003
8469         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
8470           check for empty sets before using them (fixes bug #1232190)
8471
8472 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
8473
8474         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
8475           (lnksect2): generate warnings for memory overlap
8476         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
8477           constseg to set the name of these segments so you can instruct the linker
8478           to place them in banks
8479         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
8480         * src/SDCCglobl.h: added MODEL_HUGE to enum,
8481           added code_seg and const_seg to options
8482         * src/SDCCglue.c (emitMaps): use options.const_seg,
8483           (createInterruptVect): put interrupt vectors in segment HOME,
8484           (glue): put HOME before static segment and put the main glue in HOME,
8485           (glue): use options.code_seg
8486         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
8487         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
8488           these segments so you can instruct the linker to place them in banks
8489           (linkEdit): use code_loc for HOME segment which should be the first
8490           segment in code memory now
8491         * src/SDCCmem.c: fixed more stuff like bug 1238386
8492         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
8493           (changePointer): don't change function pointers to code pointers for
8494           banked functions,
8495           (compareType): added exceptional check for banked function pointers
8496         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
8497         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
8498           after static in code memory
8499         * src/mcs51/gen.c: added aopLiteralLong prototype,
8500           (aopForSym): use getSize for functions,
8501           (genCall): generate banked calls over one trampoline __sdcc_banked_call
8502           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
8503           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
8504           the segment,
8505           (genPcall): use call for literal function pointers and generate banked
8506           calls over the one trampoline so there's only one place for the user to
8507           modify according to his/hers hardware,
8508           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
8509           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
8510         * src/mcs51/main.c: added keyword banked,
8511           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
8512         * support/Util/SDCCerr.c,
8513         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
8514           needed for passing the bank and address to the trampoline
8515         * device/lib/mcs51/crtbank.asm: added for bankswitching
8516         * device/lib/mcs51/Makefile: added crtbank
8517
8518 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8519
8520         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
8521           for fields at offset 0 of a struct or union as reported
8522           on 2005-07-07 in the developer mailing list.
8523
8524 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
8525
8526         * src/SDCCmem.c: fixed bug 1238386
8527
8528 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8529
8530         * src/mcs51/peeph.def: added labelrefcounting for peepholes
8531           (patch #1144962), added peephole 300, enabled 259.x
8532         * doc/sdccman.lyx: removed screenshot and provided link instead
8533
8534 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8535
8536         * doc/sdccman.lyx: added section about debugging with ddd
8537         * doc/figures/ddd_example.eps: screenshot of debugging session
8538
8539 2005-07-04 Raphael Neider <rneider AT web.de>
8540
8541         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
8542           like CODE pointers, fixes #1115683
8543         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
8544           call, fixes bugs #1232211, #1228110,
8545           fixed wrong casts to pCodeFlow from pCodeInstructions
8546
8547 2005-07-04 Raphael Neider <rneider AT web.de>
8548
8549         * src/pic/gen.c (popGet): changed assert to allow for
8550           bit operands
8551         * (popGetAddr): changed signature to provide
8552           an additional index, patched all call sites
8553         * (genCmpEq): handle literal-like operands correctly
8554         * (genAddrOf): added sanity checks on __code/__data pointers
8555         * (genAssign): added handling of symbols from __code section
8556         * (gencjne): do not generate code for comparisons whose result
8557           is neither stored nor used, fixes bug #1171114
8558         * (AccLsh, AccRsh): operate on operand instead of WREG
8559         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
8560           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
8561           by known count
8562         * rewrote complete shift-by-literal logic, commented unused
8563           functions out
8564         * (genConstPointerGet): get multiple bytes (if result size > 1),
8565           fixed handling of non-immediate addresses
8566         * (genPointerGet): handle CODE pointers like CONST pointers
8567         * (genpic14Code): insert C-SRC lines as Cource-pCodes
8568         * ({aop,op}_isLitLike): NEW, single place to decide whether an
8569           operand is to be treated as a literal or not
8570         * (mov2w,genPcall,genCmpEq),
8571           src/pic/genarith.c: use aop_isLitLike() to decide between
8572           literal/register contents
8573         * (addSign): added missing offset
8574         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
8575           only emit comment in debug-mode,
8576           use {aop,op}_isLitLike throughout the file
8577         * src/pic/glue.c: fix initializers for pointers (work in progress)
8578         * src/pic/pcode.c (get_op): honor index on _const symbols
8579         * ({reset,dump}pCodeStatistics): NEW, estimate code size
8580         * (dumppBlock): added pCode size estimation
8581         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
8582           check for IS_SYMOP before OP_SYMBOL'ing
8583         * fixed indentation, compacted switch-statements
8584         * (allocReg): find free register and allocate it instead of
8585           allocating new registers all the time
8586         * (deassignLRs): prevent POINTER_GET's from being assigned the same
8587           registers as its operands (necessary only for multibyte GETs)
8588
8589 2005-07-01 Raphael Neider <rneider AT web.de>
8590
8591         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
8592           debugging .asm-output macros FENTRY + FEXIT
8593         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
8594           way... I wonder...
8595         * (emitpComment): NEW, printf to pCode
8596         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
8597           offset handling
8598         * (popGetAddr): NEW, variant of popGet to access an immediates
8599           high(er) bytes instead of the n'th byte of memory they reference,
8600           replaced popGet with popGetAddr where neccessary
8601         * (genDataPointerGet): reactivated and fixed implementation
8602         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
8603           accesses
8604         * (genDataPointerSet): fixed multibyte assignments
8605         * (genpic14Code): fixed --i-code-in-asm handling
8606         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
8607         * (genPlus): fixed index-out-of-bounds error
8608         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
8609         * src/pic/ralloc.c: added debugging output macro FENTRY2
8610         * (spillThis): fixed indentation, enbraced for-body for clarity
8611         * (rematStr): commented out as now unused
8612         * (regTypeNum): commented out special spill case (overwrites
8613           arbitrary values)
8614         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
8615
8616 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
8617
8618         * doc/sdccman.lyx: documented sfr16/sfr32,
8619           added example for using storage class with function pointers
8620         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
8621
8622 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
8623
8624         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
8625         * device/lib/_itoa.c,
8626         * device/lib/_ltoa.c: optimized codesize
8627         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
8628           but don't know how to suppress the double warning.
8629         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
8630         * support/Util/SDCCerr.c,
8631         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
8632
8633 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
8634
8635         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
8636           fixed old K&R prototypes
8637         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
8638         * device/lib/_gptrget.c,
8639         * device/lib/_gptrgetc.c,
8640         * device/lib/_gptrput.c: changed versions for new memory indicator values,
8641           also new versions for small generic pointers and banked generic pointers
8642         * src/port.h: added const_name
8643         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
8644         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
8645         * src/SDCCcse.c (findPrevIc): check all associative operators
8646         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
8647         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
8648         * src/SDCCmem.c: updated comments,
8649           set far-space to 0 for pdata, results in optimized code
8650         * src/SDCCmem.h: added macro CONST_NAME
8651         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
8652           moving the info into the highest bits, see also gptrget/gptrput
8653         * src/src.dsp: added sdcc.ico to project files
8654         * src/avr/gen.c (genCast): fixed bug 0x%d
8655         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
8656         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
8657           relation between ptr_type and DCL_TYPE,
8658           (genCast): fixed bug 0x%d
8659         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
8660           (CODE)" for const_name
8661         * src/hc08/gen.c (genCast): fixed bug 0x%d
8662         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
8663           (hc08_port): added "CONST (CODE)" for const_name
8664         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
8665           (aopForRemat, adjustArithmeticResult): disconnected direct relation
8666           between ptr_type and DCL_TYPE,
8667           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
8668           operand* and took AOP() inside function so sfr-ness can be checked,
8669           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
8670           new prototype,
8671           (genFunction, genEndFunction): optimized stack setup,
8672           (genMinus): optimized for literals with ending zeroes (in bytes),
8673           (genCast): fixed bug 0x%d
8674         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
8675           (mcs51_port): added "CONST (CODE)" for const_name
8676         * src/mcs51/peeph.def: made rule 226 more generic
8677         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
8678         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
8679         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
8680         * src/z80/main.c (z80_port): added NULL for const_name,
8681           (gbz80_port): added NULL for const_name
8682         * support/regression/tests/bug663539.c,
8683         * support/regression/tests/sfr16.c: new tests
8684
8685 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8686
8687         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
8688
8689 2005-06-24 Raphael Neider <rneider AT web.de>
8690
8691         * device/lib/pic16/libdev/pic18f[68][567]20.c:
8692           corrected typos...
8693         * device/include/pic16/signal.h: added USBIF
8694           and SIG_USB
8695
8696 2005-06-24 Raphael Neider <rneider AT web.de>
8697
8698         * device/lib/pic16/libdev/pic18f2455.c,
8699           device/include/pic16/pic18f2455.h: NEW
8700         * device/include/pic16/pic18fregs.h,
8701           device/lib/pic16/pics.all,
8702           src/pic16/device.c: added 18f2455
8703         * device/lib/pic16/libdev/pic18f[68][567]20.c,
8704           device/include/pic16/{pic18f[68][567].h,usart.h}:
8705           replaced MULTIPLE_USARTS define with more relaible
8706           compatibility sfrs (for USART access)
8707
8708 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
8709
8710         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
8711           and the output asm file line is printed on two lines.
8712
8713 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8714
8715         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
8716           BGT, BLE, BHI, and BLS instructions
8717         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
8718           genCmpEq): removed
8719         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
8720           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
8721           fixes bug #1216342
8722         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
8723
8724 2005-06-15 Raphael Neider <rneider AT web.de>
8725
8726         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
8727         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
8728         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
8729           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
8730           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
8731
8732 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8733
8734         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
8735           Marcel Telka in bug #1215704
8736
8737 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
8738
8739         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
8740           located in shared memory bank.
8741
8742 2005-05-31 Raphael Neider <rneider AT web.de>
8743
8744         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
8745           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
8746           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
8747
8748 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
8749
8750         * device/lib/_strncpy.c: fixed the fix
8751
8752 2005-05-26 Raphael Neider <rneider AT web.de>
8753
8754         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
8755           initializers with \0, bug #1208187
8756         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
8757           intializers with \0, bug #1208187
8758
8759 2005-05-26 Raphael Neider <rneider AT web.de>
8760
8761         * src/pic16/glue.c (pic16_printIvalChar): fixed string
8762           initializers with \0, bug #1208187
8763         * src/pic16/main.c (_process_pragma): added sanity checks
8764           for stack position and size, emit warnings when appropriate
8765
8766 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
8767
8768         * device/lib/_strncpy.c: fixed not filling with \0
8769
8770 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8771
8772         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
8773           createFunction),
8774         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
8775           compound_statement),
8776         * src/SDCCsymt.h,
8777         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
8778
8779 2005-05-24 Raphael Neider <rneider AT web.de>
8780
8781         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
8782
8783 2005-05-24 Raphael Neider <rneider AT web.de>
8784
8785         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
8786           TRISE definitions, closes bug #1162453
8787
8788 2005-05-22 Raphael Neider <rneider AT web.de>
8789
8790         * src/pic16/main.c (_process_pragma): check for missing
8791           arguments to pragmas code and udata
8792         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
8793           consistency fixes to match other headers (thanks to Jim Paris)
8794         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
8795
8796 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
8797
8798         * src/SDCCicode.c (isOperandEqual): fixed missing ;
8799
8800 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
8801
8802         * support/regression/tests/bug1198642.c: new test
8803         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
8804         * src/SDCCcse.c (findPrevIc): added comment, please have a look
8805         * support/scripts/resource.h,
8806         * support/scripts/resource.rc,
8807         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
8808         * support/scripts/sdcc.ico: added 32x32 icon
8809
8810 2005-05-18 Raphael Neider <rneider AT web.de>
8811
8812         * device/lib/pic16/libdev/pic18f*.c,
8813         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
8814           keywords to "__sfr" and "__at (X)"
8815         * device/include/pic16/pic18fregs.h: added pic18f4520
8816         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
8817           #1203088 (MPLAB compatibility)
8818
8819 2005-05-17 Raphael Neider <rneider AT web.de>
8820
8821         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
8822         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
8823         * device/lib/pic16/pics.all: added new devices
8824         * src/pic16/device.c: added support for pic18f4520
8825
8826 2005-05-16 Raphael Neider <rneider AT web.de>
8827         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
8828         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
8829         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
8830           convenience function for bit access
8831
8832 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
8833
8834         * device/lib/printf_large.c: fixed bug 1193299
8835         * support/regression/tests/bug1057979.c: added test %3.3s
8836
8837 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8838
8839         * device/include/mcs51/8051.h,
8840         * device/include/mcs51/8052.h: made parseable with lint
8841         * device/include/mcs51/lint.h: added include file for (sp)lint
8842         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
8843         * doc/cdbfileformat.lyx,
8844         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
8845
8846 2005-05-14 Raphael Neider <rneider AT web.de>
8847
8848         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
8849         * device/lib/pic16/libc/stdlib/itoa.c (new)
8850         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
8851         * device/lib/pic16/libio/Makefile: exclude subdir according to
8852           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
8853         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
8854         * src/pic16/gen.c (genFunction): prevent annoying warning
8855         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
8856           nameclashes on BeOS
8857         * support/cpp2/cppmain.c (cpp_output_string): new
8858         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
8859           fixes bug 1116802
8860
8861 2005-05-13 Borut Razem <borut.razem AT siol.net>
8862
8863         * src/SDCCmain.c (linkEdit): fixed bug 1195202
8864
8865 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8866
8867         * .version: changed to version 2.5.1; back to bleeding edge development
8868
8869 2005-05-11 Borut Razem <borut.razem AT siol.net>
8870
8871         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
8872           generate PDF version 1.3 documents
8873
8874 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8875
8876         * .version: changed to version 2.5.0
8877
8878 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8879
8880         * doc/sdccman.lyx: updated weblinks, index and smaller updates
8881
8882 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8883
8884         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
8885         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
8886         well as many smaller updates.
8887         * .version: changed to version 2.5.0-pre1
8888
8889 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8890
8891         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
8892
8893 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
8894
8895         * support/regression/tests/bug1185672.c: added
8896         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
8897           bug 1185672
8898         * src/mcs51/gen.c (genCall): added comments, made it look safer
8899         * src/mcs51/gen.c (genEndFunction): simplified
8900
8901 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
8902
8903         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
8904
8905 2005-04-14 Borut Razem <borut.razem AT siol.net>
8906
8907         * fixed bug 1045046 - SIGSEGV with really simple code?:
8908           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
8909           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
8910
8911 2005-04-14 Borut Razem <borut.razem AT siol.net>
8912
8913         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
8914           src/pic16/device.h: temporarily disabled experimental #inline pragma
8915           for 2.5.0 release
8916
8917 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
8918
8919         * device/include/z80/stdio.h,
8920         * device/include/z80/string.h: removed these highly incomplete files so
8921           SDCC can use the default ones in device/include/
8922
8923 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8924
8925         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
8926         gcc warning.
8927         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
8928         fix sdcpp warnings.
8929
8930 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8931
8932         * device/include/malloc.h: removed redundant __reentrant prototypes
8933         * device/lib/_mullong.c: added working xstack variant in asm (C version
8934           doesn't pass regression tests)
8935         * device/lib/bpx.c: used __data and made bpx char for mcs51
8936         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
8937           (createFunction): fixed bug with xstackPtr
8938         * src/SDCCcse.c: corrected comments
8939         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
8940           (killDeadCode, eBBlockFromiCode): removed unused code
8941         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
8942           corrected comments
8943         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
8944           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
8945           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
8946           (genModOneByte): fixed warning in MSVC
8947         * src/mcs51/main.c (): added comments
8948         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
8949
8950 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8951
8952         * src/SDCCmain.c (linkEdit): oops, changed one line too many
8953
8954 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
8955
8956         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
8957
8958 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
8959
8960         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
8961         characters arrays of larger size than the declared one.
8962
8963 2005-04-10 Borut Razem <borut.razem AT siol.net>
8964
8965         * src/pic/gen.c (genInline),
8966           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
8967           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
8968           (findNextInstruction), (findPrevInstruction),
8969           (findInstructionUsingLabel),
8970           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
8971         * src/pic/pcode.c (findLabel): added missing '\n'
8972         * src/src.dsp: added SDCCdwarf2.c to the project
8973
8974 2005-04-09 Borut Razem <borut.razem AT siol.net>
8975
8976         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
8977
8978 2005-04-08 Raphael Neider <rneider AT web.de>
8979
8980         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
8981           into the chain after a given one) and mergeDefmapSymbols (combine
8982           defmap entries for each symbol per pcode)
8983         * (createDefmap): have defmap entries merged in the end
8984         * (defmapReplaceSymRef): split defmap entries covering two accesses to
8985           a symbol before replacing one access type's symbol, merge symbols in
8986           the end (replacement symbol might already have an entry)
8987         * (assignValnums): keep reference to written WREG intact
8988
8989 2005-04-08 Raphael Neider <rneider AT web.de>
8990
8991         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
8992           Alpha)
8993
8994 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
8995
8996         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
8997         bytes
8998
8999 2005-04-07 Raphael Neider <rneider AT web.de>
9000
9001         * device/include/pic16/usart.h: added compatibility defines for
9002           devices with more than one USART
9003         * device/include/pic16/pic18f[68][567]20.h: activated above defines
9004
9005 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
9006
9007         * device/lib/Makefile.in: updated for port specific include
9008
9009 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
9010
9011         * support/regression/ports/mcs51/spec.mk: added mcs51 include
9012
9013 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
9014
9015         * device/include/8051.h,
9016         * device/include/8052.h,
9017         * device/include/at89S8252.h,
9018         * device/include/at89c55.h,
9019         * device/include/at89x051.h,
9020         * device/include/at89x51.h,
9021         * device/include/at89x52.h,
9022         * device/include/mcs51reg.h,
9023         * device/include/reg51.h,
9024         * device/include/reg764.h,
9025         * device/include/regc515c.h,
9026         * device/include/sab80515.h: (re)moved these 12 files
9027         * device/include/mcs51/8051.h,
9028         * device/include/mcs51/8052.h,
9029         * device/include/mcs51/at89S8252.h,
9030         * device/include/mcs51/at89c55.h,
9031         * device/include/mcs51/at89x051.h,
9032         * device/include/mcs51/at89x51.h,
9033         * device/include/mcs51/at89x52.h,
9034         * device/include/mcs51/mcs51reg.h,
9035         * device/include/mcs51/reg51.h,
9036         * device/include/mcs51/reg764.h,
9037         * device/include/mcs51/regc515c.h,
9038         * device/include/mcs51/sab80515.h: and added them here
9039
9040 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
9041
9042         * device/include/stdarg.h: changed SDCC specific keywords to double
9043           underlined form.
9044         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
9045           mcs51 and ds390.
9046         * device/include/hc08/mc68hc908gp32.h,
9047         * device/include/hc08/mc68hc908jb8.h,
9048         * device/include/hc08/mc68hc908jkjl.h,
9049         * device/include/hc08/mc68hc908qy.h: fixed comments
9050         * device/include/mcs51/README: updated
9051         * device/include/mcs51/c8051f120.h: added PINRSF
9052         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
9053         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
9054           amidst code. Also inline is not supported.
9055
9056 2005-04-06 Raphael Neider <rneider AT web.de>
9057
9058         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
9059         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
9060           callers stack/frame pointers
9061
9062 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
9063
9064         * device/include/pic16/usart.h: added, missing in previous commit,
9065         * device/include/pic16/adc.h: fixed typo,
9066         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
9067         commit,
9068         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
9069         <p18fxxx.inc>
9070         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
9071         uninitialized because a bug appears with gplink
9072         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
9073         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
9074         complains for unrecognised option
9075
9076 2005-04-05 Raphael Neider <rneider AT web.de>
9077
9078         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
9079           structs as well (using memcpy)
9080         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
9081           on ISRs (GOTO has no label)
9082         * src/pic16/device.h: added OF_OPTIMIZE_DF
9083         * src/pic16/main.c: added compiler switch --optimize-df to enable the
9084           new data flow analysis/optimization
9085         * src/pic16/pcode.c: added (prototypes for and implementation of)
9086           dataflow analysis functions, fixed pCodeInstructions' inCond and
9087           outCond values, made RCALL a branch instruction
9088         * (pic16_unlinkpCode): keep C line if possible
9089         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
9090           C line moved if possible
9091         * (pic16_getRegFrompCodeOp): NEW, improved version of...
9092         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
9093           to use new pic16_getRegFrompCodeOp (works for more SFRs)
9094         * (pic16_BuildFlow): fixed skip instructions with label (did not start
9095           new flow)
9096         * (pic16_getJumptabpCode): NEW, needed in...
9097         * (LinkFlow): fixed handling of jumptables, calls and conditional
9098           branches
9099         * (pic16_InsertCommentAfter): NEW
9100         * (pic16_pCodeReplace): made verbose and flow preserving
9101         * (AnalyzeFlow): added call to data flow analysis
9102         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
9103         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
9104         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
9105
9106 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9107
9108         * src/SDCCast.c (decorateType): fixed bug #1105626
9109
9110 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
9111
9112         * device/include/asm/pic16/features.h,
9113         * pic18f*.h headers,
9114         * device/include/pic16/adc.h,
9115         * device/include/pic16/delay.h,
9116         * device/include/pic16/i2c.h,
9117         * device/include/pic16/malloc.h,
9118         * device/include/pic16/stdio.h,
9119         * device/include/pic16/stdlib.h,
9120         * device/include/pic16/string.h,
9121         * device/lib/pic16/libc/stdio/printf_tiny.c,
9122         * device/lib/pic16/libc/stdio/printf_small.c,
9123         * device/lib/pic16/libc/stdio/strmgpsim.c,
9124         * device/lib/pic16/libc/stdio/strmmssp.c,
9125         * device/lib/pic16/libc/stdio/strmusart.c,
9126         * device/lib/pic16/libc/stdio/vfprintf.c,
9127         * device/lib/pic16/libc/stdlib/ltoa.c,
9128         * device/lib/pic16/libc/stdlib/putchar.c,
9129         * device/lib/pic16/libc/stdlib/x_ftoa.c,
9130         * device/lib/pic16/libc/stdlib/memchrpgm.c,
9131         * device/lib/pic16/libc/stdlib/memchrram.c,
9132         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
9133         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
9134         * device/lib/pic16/libio/adc/adcbusy.c,
9135         * device/lib/pic16/libio/adc/adcread.c,
9136         * device/lib/pic16/libio/adc/adcsetch.c,
9137         * device/lib/pic16/libio/usart/ubaud.c,
9138         * device/lib/pic16/libio/usart/ubusy.c,
9139         * device/lib/pic16/libio/usart/udrdy.c,
9140         * device/lib/pic16/libio/usart/uopen.c,
9141         * device/lib/pic16/libio/usart/uputc.c,
9142         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
9143         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
9144         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
9145         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
9146         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
9147         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
9148         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
9149         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
9150         specific keywords to double underlined form,
9151         * device/lib/pic16/libc/Makefile.rules,
9152         * device/lib/pic16/libsdcc/Makefile.rules,
9153         * device/lib/pic16/libm/Makefile,
9154         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
9155         to compile with C standard set in Makefile.common
9156         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
9157         rand.c and crc.c in compilation process,
9158         * device/lib/pic16/libsdcc/int/divuint.c,
9159         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
9160         `c' from signed to unsigned,
9161         * device/lib/pic16/startup/crt0.c,
9162         * device/lib/pic16/startup/crt0i.c,
9163         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
9164         keywords to double underlined form, bug fixes in _do_cinit function
9165         which prevented the correct initialization of the .idata segment,
9166         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
9167         core to enter a infinite loop
9168         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
9169
9170 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9171
9172         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
9173
9174 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9175
9176         * device/include/Makefile.in: add support for hc08 subdirectory
9177         * device/include/hc08/: new subdirectory
9178         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
9179         Lucas Loizaga, thanks!
9180         * device/include/hc08/mc68hc908qy.h,
9181         * device/include/hc08/mc68hc908gp32.h,
9182         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
9183         their own directory. Changed internal macro names to use the compiler
9184         reserved namespace. Changed SDCC specific keywords to double
9185         underlined form.
9186         * device/include/math.h,
9187         * device/include/malloc.h,
9188         * device/include/stdarg.h,
9189         * device/include/stdbool.h
9190         * device/include/string.h,
9191         * device/include/tinibios.h,
9192         * device/include/ds400rom.h,
9193         * device/include/8051.h,
9194         * device/include/8052.h,
9195         * device/include/80c51xa.h,
9196         * device/include/at89c55.h,
9197         * device/include/at89S8252.h,
9198         * device/include/at89x51.h,
9199         * device/include/at89x52.h,
9200         * device/include/ds80c390.h,
9201         * device/include/reg764.h,
9202         * device/include/regc515c.h,
9203         * device/include/sab80515.h,
9204         * device/include/mcs51/c8051f000.h,
9205         * device/include/mcs51/c8051f018.h,
9206         * device/include/mcs51/c8051f020.h,
9207         * device/include/mcs51/c8051f040.h,
9208         * device/include/mcs51/c8051f060.h,
9209         * device/include/mcs51/c8051f120.h,
9210         * device/include/mcs51/c8051f300.h,
9211         * device/include/mcs51/c8051f310.h,
9212         * device/include/mcs51/c8051f320.h,
9213         * device/include/mcs51/c8051f330.h,
9214         * device/include/mcs51/c8051f350.h,
9215         * device/include/z180.h: Changed SDCC specific keywords to double
9216         underlined form.
9217
9218 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
9219
9220         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
9221         18F4455,
9222         * (pic16_assignConfigWordValue): disable testing of configuration
9223         register value with config mask,
9224         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
9225         function with port->fun_prefix,
9226         * (genFunction): when generating a naked interrupt function never
9227         create an absolute segment placed in interrupt vector address, place
9228         the actual interrupt function at IVA instead, when an interrupt
9229         function is generated with unspecified interrupt then do not create
9230         the absolute section,
9231         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
9232         code for generating a call to generic pointer get/put function with
9233         a call to function pic16_callGenericPointer(),
9234         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
9235         the call to the generic pointer get/put functions with prefixing the
9236         function name with port->fun_prefix,
9237         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
9238         * src/pic16/main.c (_process_pragma): prefix function with
9239         port->fun_prefix,
9240         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
9241         calling assembler, old 18Fxxxx macro is deprecated,
9242         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
9243         PC_ASMDIR in while condition,
9244         * (findInstruction): add PC_ASMDIR in while condition,
9245         * (buildCallTree): prefix main with port->fun_prefix,
9246         * (pic16_pCode2str): fixed bug that didn't emit the memory access
9247         identifier for variable with banked access in instructions BTFSS,
9248         BTFSC, BCF, BSF, BTG
9249         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
9250         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
9251         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
9252         perform optimization when enviroment variable NO_REG_OPT is set,
9253         * (insideLRBlock): NEW, return 1 if register is inside an
9254         INF_LOCALREGS block,
9255         * (RemoveRegFromLRBlock): remove a register that is completely
9256         eliminated by register optimization, but it is still left in local
9257         register store/restore in/from stack block,
9258         * (Remove2pcodes): after removing register, check to see if it
9259         should be removed from local register store/restore in/from stack
9260         block,
9261         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
9262         DUMMY_READ_VOLATILE,
9263
9264         * device/include/pic16/adc.h: minor prototype modifications and
9265         update,
9266         * device/include/pic16/malloc.h: added GPL notice various
9267         modifications,
9268         * device/include/pic16/stdint.h: NEW, standard header for ints
9269         * device/include/pic16/delay.h: NEW, header for delay functions,
9270         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
9271         delay1mtcy,
9272         * device/include/pic16/signal.h: NEW, header providing helper macros
9273         for implementing signal handlers,
9274         * device/include/pic16/stdio.h: added prototypes for functions,
9275         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
9276         prototypes for stdin and stdout, added macro PUTCHAR to
9277         automatically implement putchar function prototype,
9278         * device/include/pic16/usart.h: modified and updated USART library,
9279         * device/lib/pic16/libio/adc/,
9280         * device/lib/pic16/libio/i2c: some modifications to improve library
9281         performance,
9282         * device/lib/pic16/libc/stdio/: modifications for the new printf*
9283         family of functions,
9284         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
9285         family of functions and other sources,
9286         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
9287         of the PIC18Fxx[28] devices,
9288         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
9289         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
9290         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
9291         _do_cinit function, because the previous failed when local variables
9292         where not placed in the same memory bank,
9293         * device/lib/pic16/libsdcc/char/: various modifications to improve
9294         library performance,
9295         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
9296         information on the new functions of the c library and more...
9297
9298 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9299
9300         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
9301
9302 2005-03-26 Raphael Neider <rneider AT web.de>
9303
9304         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
9305           if condition == CARRY)
9306         * (genCmp): adapted to new genSkipc semantics
9307         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
9308           on rIfx (genCmp was broken)
9309
9310 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9311
9312         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
9313         * src/z80/main.c (_keywords[]),
9314         * src/SDCCglobal.h (struct options),
9315         * src/SDCC.y,
9316         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
9317         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
9318         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
9319         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
9320         always available in leading double underscore form. The C99 support is
9321         mostly missing, but it's a start.
9322         * support/regression/tests/bug-227710.c: fixed nonconforming use of
9323         reserved identifier "__data".
9324
9325 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
9326
9327         * src/mcs51/peeph.def: fixed bug 1170013
9328
9329 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
9330
9331         * device/include/mcs51reg.h: fixed bug 842007
9332
9333 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9334
9335         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
9336         last time.
9337
9338 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9339
9340         * src/port.h (struct PORT),
9341         * src/avr/ralloc.c (avr_assignRegisters),
9342         * src/avr/main.c,
9343         * src/ds390/ralloc.c (ds390_assignRegisters),
9344         * src/ds390/main.c,
9345         * src/hc08/ralloc.c (hc08_assignRegisters),
9346         * src/hc08/main.c,
9347         * src/mcs51/ralloc.c (mcs51_assignRegisters),
9348         * src/mcs51/main.c,
9349         * src/pic/ralloc.c (pic14_assignRegisters),
9350         * src/pic/main.c,
9351         * src/pic16/ralloc.c (pic16_assignRegisters),
9352         * src/pic16/main.c,
9353         * src/xa51/ralloc.c (xa51_assignRegisters),
9354         * src/xa51/main.c,
9355         * src/z80/ralloc.c (z80_assignRegisters),
9356         * src/z80/ralloc.h,
9357         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
9358         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
9359         * src/SDCCcse.h,
9360         * src/SDCCdflow.c (computeDataFlow),
9361         * src/SDCCdflow.h,
9362         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
9363         * src/SDCCloop.h,
9364         * src/SDCCcflow.c (*),
9365         * src/SDCCcflow.h,
9366         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
9367         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
9368         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
9369         immedDom() returning wrong block; probably fixes bug #1160833)
9370
9371 2005-03-20 Borut Razem <borut.razem AT siol.net>
9372
9373         * support/scripts/inc2h.pl: WIN32 port
9374
9375 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
9376
9377         * device/lib/makefile.in: added abs.c and labs.c
9378
9379 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
9380
9381         * device/include/stdint.h: added
9382         * device/lib/abs.c: added
9383         * device/lib/labs.c: added
9384         * device/include/stdlib.h: added abs() and labs() prototypes
9385         * device/lib/libsdcc.lib: added abs and labs
9386         * device/include/float.h,
9387         * device/lib/_fsmul.c,
9388         * device/lib/printf_fast.c,
9389         * device/lib/printf_tiny.c: updated comments
9390
9391 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9392
9393         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
9394         bug #1164313
9395
9396 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9397
9398         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
9399         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
9400
9401 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
9402
9403         * device/lib/printf_large.c: removed inline assembly for portability and
9404           readability. Use printf_fast if speed or size are more important.
9405         * src/pic16/gen.c: removed conditions around use of DEBUGpc
9406         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
9407
9408 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
9409
9410         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
9411         prevent compiler warning
9412
9413 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
9414
9415         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
9416         moved to level 0 and declared as static. Also they are explicit
9417         placed in access bank. This was necessery because some times they
9418         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
9419         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
9420         optimizations. Currently only compare to unsigned char is implemented,
9421         * src/pic16/gen.c: added fReturnIdx array,
9422         * (struct resolvedIfx) is moved to gen.h and made public,
9423         * (struct _G): added sregsAlloc and sregsAllocSet fields,
9424         * (aopForSym): added an optimization to directly store in stack of
9425         the operand of a SEND iCode,
9426         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
9427         but as registers instead (AOP_REG) using the fReturnIdx array,
9428         * (pic16_freeAsmop): remove the freed register from the
9429         _G.sregsAlloc field,
9430         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
9431         a compare of 'WREG',
9432         * (pic16_popGetTempRegCond): changed function prototype, now
9433         function takes also a bitVector argument v which holds the current
9434         set of registers that are allocated for stack access by aopForSym,
9435         registers allocated in aopForSym for accessing stack symbols are not
9436         any more part of the functions usedRegs field,
9437         * (genCall): some times aopOp is called for a stack variable to be
9438         send, aopForSym might perform the push, if this is true make sure
9439         that genCall doesn't push the variable twice by testing _G.resDirect,
9440         * (genFunction): changed testing for unspecified interrupt number
9441         from 256 to INTNO_UNSPEC,
9442         * modified selection scheme of frame pointer generation. Previously
9443         if function did use local registers a frame pointer was generated,
9444         now a frame pointer is generated only if function has arguments
9445         (that need PLUSW2 register access), or has stack arguments, or the
9446         compiler is not instructed to omit the frame pointer,
9447         * (genEndFunction): before restoring local registers that were saved
9448         in the function preamble, also restore the registers that *might*
9449         have been allocated for stack access,
9450         * (genRet): removed some old comments,
9451         * (genCmp, the active (RN's) version): added a call to the
9452         pic16_genCmp_special function to perform the compare with a more
9453         robust and optimized way,
9454         * (genInline): a feature has been added in inline code generation,
9455         which allows a wildcard variable substitution when writing inline
9456         assembly. Code is incomplete and experimental therefore undocumented,
9457         * (genCast): changed order of aopOp for result and right to allow
9458         aopForSym to directly load the result if possible,
9459         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
9460         perform an optimized compare on some selected special occasions,
9461         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
9462         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
9463         generate an IVT any more,
9464         * src/pic16/main.c (pic16_optionsTable): added command line option
9465         --optimize-cmp,
9466         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
9467         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
9468         macros,
9469         * src/pic16/NOTES: Raphael Neider added in list of active developers
9470         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
9471         jumptable_end to prevent bug #,
9472         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
9473         inCond and outCond fields,
9474         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
9475         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
9476         turn off register spilling,
9477         * (packRegsForOneUse): synced with other ports' versions although it
9478         is not used currently,
9479         * (pic16_packRegisters): added an optimization while reading
9480         structure bitfields, some registers may be saved (malloc code is
9481         decreased by 80 bytes)
9482
9483 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
9484
9485         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
9486         left is a bitfield, if yes, then don't optimize assignment. Perhaps
9487         this can be optimized more?
9488
9489 2005-03-10 Raphael Neider <rneider AT web.de>
9490
9491         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
9492           genNearPointerGet): (hopefully) fixed access to bitfields via
9493           pointers (p->bitN = x; and x = p->bitN; failed)
9494
9495 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
9496
9497         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
9498
9499 2005-03-09 Raphael Neider <rneider AT web.de>
9500
9501         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
9502
9503 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
9504
9505         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
9506         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
9507           (regTypeNum): set REG_BIT type if necessary
9508         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
9509         * support/regression/tests/critical.c: check bug 1144613
9510
9511 2005-03-02 Raphael Neider <rneider AT web.de>
9512
9513         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
9514
9515 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9516
9517         * src/avr/ralloc.c (serialRegAssign),
9518         * src/ds390/ralloc.c (serialRegAssign),
9519         * src/hc08/ralloc.c (serialRegAssign),
9520         * src/mcs51/ralloc.c (serialRegAssign),
9521         * src/pic/ralloc.c (serialRegAssign),
9522         * src/pic16/ralloc.c (serialRegAssign),
9523         * src/xa51/ralloc.c (serialRegAssign),
9524         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
9525
9526 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
9527
9528         * src/SDCCast.c (decorateType): fixed bug 1124787
9529
9530 2005-02-20 Hubert Sack <sack AT digiplan.de>
9531         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9532
9533         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
9534         patch #1121755
9535
9536 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9537
9538         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
9539         to keep the correct label reference count when adding/removing references
9540         to labels. A peephole file using this is appended to patch #1144962.
9541
9542 2005-02-14 Raphael Neider <rneider AT web.de>
9543
9544         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
9545         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
9546         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
9547           retrievals of result operand's value on assignment
9548
9549 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
9550
9551         * device/include/pic16/string.h: modified prototype for memccpy()
9552         to memccpy(void *, void *, char, size_t)
9553         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
9554         check whether to omit frame pointer or not,
9555         * (genInline): convert all occurences of "\n" to LF in inline
9556         assembler blocks, this helps formatting the inline text,
9557         * (pic16_loadFSR0): modified prototype,
9558         * (genNearPointerGet, genNearPointerSet): reorganization of code,
9559         removed some 8051 legacy code,
9560         * (genPackBits): enabled handling bitfields exceeding one byte in size,
9561         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
9562         before allocating temporary registers in functions,
9563
9564 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
9565
9566         * support/regression/tests/bitvars.c: corrected the "fix"
9567
9568 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
9569
9570         * support/regression/tests/bitvars.c,
9571         * support/regression/tests/bitwise.c,
9572         * support/regression/tests/rotate.c: "fixed" problems on Alpha
9573
9574 2005-02-10 Raphael Neider <rneider AT web.de>
9575
9576         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
9577           different size for Alpha
9578         * src/pic16/gen.c (genCmpEq) : improved compare with 0
9579
9580 2005-02-09 Raphael Neider <rneider AT web.de>
9581
9582         * src/SDCC.lex(doPragma) : save and restore warning options as well
9583           (also added new stack plus clone- and copyAndFreeSDCCERRG())
9584         * have #pragma less_pedantic set the errorlevel to WARNING
9585           (fixes #1117001)
9586         * (cloneOptimize) : fixed wrong malloc's size
9587         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
9588           facilitate correct handling of #pragma (save|restore)
9589
9590 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
9591
9592         * src/mcs51/gen.c: removed non-standard C nameless struct/union
9593
9594 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
9595
9596         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
9597
9598 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
9599
9600         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
9601
9602 2005-02-02 Raphael Neider <rneider AT web.de>
9603
9604         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
9605         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
9606         * (pic16_storeForReturn): fixed to allow returning function pointers
9607         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
9608         * device/include/pic16/{stddef.h,stdbool.h}: added
9609
9610 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
9611
9612         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
9613
9614 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
9615
9616         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
9617         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
9618          appeared to be required
9619
9620 2005-01-31 Borut Razem <borut.razem AT siol.net>
9621
9622         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
9623           include/mcs51 and include/z80 directories to the package
9624
9625 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9626
9627         * src/hc08/gen.c (genFunction): fixed bug #1112752
9628
9629 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9630
9631         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
9632
9633 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9634
9635         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
9636
9637 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
9638
9639         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
9640
9641 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
9642
9643         * device/include/c8051fxxx.h: removed these 6 files
9644         * device/include/mcs51/c8051fxxx.h: added these 11 new files
9645
9646 2005-01-26 Raphael Neider <rneider AT web.de>
9647
9648         * src/pic16/gen.c (genAssign): fixed assignment from longs
9649           in codespace (were cut to three bytes)
9650         * (genDummyRead): implemented (except for CODESPACE...),
9651           fixed bug #1108575
9652         * src/pic16/glue.c (emitStatistics): beautified
9653         * device/lib/pic16/libm/Makefile: added include path
9654
9655 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9656
9657         * src/z80/gen.c (aopPut): fixed bug #1103902
9658
9659 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9660
9661         * device/lib/expf.c: fixed bug #1095792
9662
9663 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
9664
9665         * device/lib/pic16/libm: added Math library sources
9666
9667 2005-01-24 Raphael Neider <rneider AT web.de>
9668
9669         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
9670           to enable upcast to pCodeOpReg2 (there is no type tag to
9671           differenciate the two and pic16_popGet2p cast into PCOR2)
9672         * src/pic16/main.c (_process_pragma): fixed another malloc bug
9673           (sizeof(sectNames) changed to sizeof(sectName))
9674           Both patches fix segfaults under MinGW.
9675
9676 2005-01-23 Raphael Neider <rneider AT web.de>
9677
9678         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
9679           Safe_[mc]?alloc()'ed variables
9680         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
9681           of (byte sized) temporaries (assign them to WREG for now)
9682         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
9683           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
9684           this might fix SIGSEGVs on MinGW...
9685         * src/SDCCopt.c (killDeadCode): restored original behaviour
9686           (volatile operands might get thrown away though)
9687
9688 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
9689
9690         * src/pic16/gen.c: fixed bug #1106975,
9691         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
9692         pointer update, INTCON is saved, global interrupts are disabled and
9693         restored after updateing TOS.
9694         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
9695         * added function attribute 'shadowregs' to take advantage of shadow
9696         registers,
9697         * added function attribute 'wparam' as an alternative to the wparam
9698         pragma,
9699         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
9700         user declares a non-ISR function as 'shadowregs',
9701         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
9702
9703 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
9704
9705         * .version: bumped version number to 2.4.8
9706         * device/lib/pic16/pics.all: list of PIC18F devices supported by
9707         pic16 port,
9708         * device/lib/pic16/libio/i2c/: I2C module support library,
9709         * device/include/pic16/i2c.h: I2C support library header,
9710         * device/lib/pic16/libc/stdio/: standard IO support sources,
9711         * (printf_small.c): printf_small() source, supports float print,
9712         * (printf_tiny.c): printf_tiny() source, does not support floats,
9713         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
9714         enable global optimizations for entire library source, other
9715         Makefiles in the source tree are also modified to reflect this,
9716         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
9717         function,
9718         * doc/sdccman.lyx: updated to reflect new changes,
9719         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
9720         sym->onStack if-case,
9721         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
9722         sbit, idata, _idata, xdata, _xdata,
9723         * added pragma library, to link an external library, (see doc),
9724         * removed command line options, --pomit-config-words, --pomit-ivt,
9725         --pleave-reset-vector,
9726         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
9727         when calling assembler to reflect memory model used, also define
9728         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
9729         reflect stack model used,
9730         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
9731         on stack return NULL,
9732
9733 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
9734
9735         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
9736           of the operands is volatile. Fixes #1020220
9737
9738 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
9739
9740         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
9741         * (OptimizeRegUsage): make sure that there is really no other flow where
9742           the first pCode is used
9743
9744 2005-01-22 Raphael Neider <rneider AT web.de>
9745
9746         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
9747           to fix #1106967 (pCode->seq are not set up correctly)
9748
9749 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9750
9751         * src/SDCCglue.c (glue): make sure code area is declared before the
9752         static initialization area.
9753
9754 2005-01-21 Raphael Neider <rneider AT web.de>
9755
9756         * device/lib/Makefile.in: fixed test for pic16 install dir
9757         * device/lib/pic16/*/Makefile*: modified compile flags to enable
9758           optimizations
9759         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
9760           added --optimize-goto compiler switch and pragma wparam documentation
9761         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
9762         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
9763           and PRODH closing bug #1071770 (peephole optimizer)
9764
9765 2005-01-19 Raphael Neider <rneider AT web.de>
9766
9767         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
9768           cmdLine buffers (used when calling sdcpp...) are large enough
9769           (MAX_PATH=256 truncates arguments leading to system halts when
9770           used in MinGW...)
9771         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
9772         * (genUminus): rewritten to for efficiency
9773         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
9774           used uninitialized in some cases)
9775         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
9776           copy the third byte from the int -- now assumes 0x80 (data memory)
9777         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
9778           operands (genAddLit expects the iCode's operands to swapped as
9779           well), fixed leftover bytes (crashed for short left operands)
9780         * (pic16_genMinusDec): performance improvements, removed false
9781           PIC14 emitSKPNCs
9782         * (pic16_genMinus): fixed to cope with differently sized operands
9783         * src/pic16/glue.c (pic16_glue): added new banksel optimization
9784           for --obanksel > 1
9785         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
9786         * src/pic16/graph.[ch]: implementation of directed graphs, used by
9787           new banksel optimization
9788         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
9789           analysis for temporary registers (segfaults...)
9790         * src/pic16/peeph.def: added rule
9791
9792 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
9793
9794         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
9795         which converts a float number to its ASCII representation
9796         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
9797         functions to convert the fractional and integer part of a float to ASCII,
9798         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
9799         realloc.c): added _MALLOC_SPEC to explicit place variables in data
9800         ram
9801         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
9802         _STATMEM macros,
9803         * device/include/pic16/adc.h: added GPL info,
9804         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
9805         a pCodeOp as tested operand,
9806         * (genNearPointerGet): optimized bit testing, does not use
9807         intermediate register for bit value, test directly instead with
9808         BTFSS, BTFSC, works only for single bits,
9809         * (genpic16Code): dump the name of the iCode in the asm,
9810         * src/pic16/ralloc.c (decodeOp): removed static declaration and
9811         renamed to pic16_decodeOp,
9812         * (serialRegAssign): do not allocate a temporary register for iCode
9813         sequences that test a single bit for 1/0
9814
9815 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
9816
9817         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
9818         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
9819         access stack and frame pointers. They are initially assigned to
9820         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
9821         accessing SFRs. Updated all occurences of modification of stack or
9822         frame pointer in gen.c and pcode.c,
9823         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
9824         assigning of a literal value to pointers,
9825         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
9826         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
9827         selected
9828
9829 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
9830
9831         * doc/sdccman.lyx: update documentation about stack pragma, added
9832         some info for stack memory models
9833
9834 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9835
9836         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
9837
9838 2005-01-08 Raphael Neider <rneider AT web.de>
9839
9840         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
9841           udata sections to fix bug #1097823
9842
9843 2005-01-05 Raphael Neider <rneider AT web.de>
9844
9845         * src/pic16/gen.c (genGenericShift): added handling of differently
9846           sized left operand and result
9847
9848 2005-01-04 Raphael Neider <rneider AT web.de>
9849
9850         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
9851         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
9852           to hold the condition bit)
9853         * added new version of genCmp (old code available via #define)
9854         * added new version of genShiftLeft/genShiftRight in a generic
9855           way, now supports shifting by negative values
9856         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
9857           shiftCount (expected by genGenericShift)
9858         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
9859         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
9860           dump
9861         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
9862           is an invalid literal too...)
9863
9864 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
9865
9866         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
9867         from Raphael Neider,
9868         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
9869         for 8-bit literals. This fixes some literal operands which are sign
9870         extended to 16-bits ints when instruction needs only 8-bits.
9871
9872 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
9873
9874         * device/lib/logf.c: added mcs51 assembly version
9875         * device/lib/expf.c: added mcs51 assembly version
9876         * device/lib/_logexpf.c: new shared asm code for expf and logf
9877         * device/include/math.h: add defines for assembly math library
9878         * device/lib/Makefile.in: build new _logexpf.c
9879         * device/lib/libfloat.lib: use new _logexpf.c
9880
9881 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9882
9883         * src/pic/device.c
9884         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
9885           device types which have less than 0x7f registers.
9886
9887 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9888
9889         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
9890
9891 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9892
9893         * device/lib/printf_fast.c: only build on supported arch.
9894         * device/lib/printf_tiny.c: only build on supported arch.
9895         * device/lib/printf_fast_f.c: only build if asm float lib
9896         * device/lib/_fsget1arg.c: only build if asm float lib
9897         * device/lib/_fsget2args.c: only build if asm float lib
9898         * device/lib/_fsnormalize.c: only build if asm float lib
9899         * device/lib/_fsreturnval.c: only build if asm float lib
9900         * device/lib/_fsrshift.c: only build if asm float lib
9901         * device/lib/_fsswapargs.c: only build if asm float lib
9902         * device/include/stdio.h: don't provide print_fast,
9903           print_fast_f, print_tiny prototypes if --xstack used
9904
9905 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
9906
9907         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
9908         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
9909           to the SOURCES
9910
9911 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9912
9913         * device/lib/printf_fast_f.c: same as printf_fast, but
9914           with floating point enabled
9915         * device/lib/printf_fast.c: minor tweaks
9916         * device/include/stdio.h: add printf_fast_f
9917
9918 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9919
9920         * src/SDCCmain.c: make --float-reent default for mcs51
9921         * device/lib/_fsadd.c: added mcs51 assembly version
9922         * device/lib/_fssub.c: added mcs51 assembly version
9923         * device/lib/_fsmul.c: added mcs51 assembly version
9924         * device/lib/_fsdiv.c: added mcs51 assembly version
9925         * device/lib/_fseq.c: added mcs51 assembly version
9926         * device/lib/_fsneq.c: added mcs51 assembly version
9927         * device/lib/_fsgt.c: added mcs51 assembly version
9928         * device/lib/_fslt.c: added mcs51 assembly version
9929         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
9930         * device/lib/Makefile.in: add _fscmp to build
9931         * device/lib/libfloat.lib: add _fscmp to build
9932
9933 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9934
9935         * device/lib/_fs2slong.c: added mcs51 assembly version
9936         * device/lib/_fs2sint.c: added mcs51 assembly version
9937         * device/lib/_fs2schar.c: added mcs51 assembly version
9938         * device/lib/_fs2ulong.c: added mcs51 assembly version
9939         * device/lib/_fs2uint.c: added mcs51 assembly version
9940         * device/lib/_fs2uchar.c: added mcs51 assembly version
9941         * device/lib/_slong2fs.c: added mcs51 assembly version
9942         * device/lib/_sint2fs.c: added mcs51 assembly version
9943         * device/lib/_schar2fs.c: added mcs51 assembly version
9944         * device/lib/_ulong2fs.c: added mcs51 assembly version
9945         * device/lib/_uint2fs.c: added mcs51 assembly version
9946         * device/lib/_uchar2fs.c: added mcs51 assembly version
9947         * device/include/float.h: added #define to select asm vs c
9948
9949 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
9950
9951         * device/lib/printf_fast.c: improvements to float output
9952         * device/include/float.h: add defines for assembly float library
9953         * device/lib/_fsget1arg.c: receive 1 float arg
9954         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
9955         * device/lib/_fsnormalize.c: normalize a float
9956         * device/lib/_fsreturnval.c: return float, various helper routines
9957         * device/lib/_fsrshift.c: right shift a float's mantissa
9958         * device/lib/_fsswapargs.c: swap 2 floats
9959         * device/lib/Makefile.in: build these 6 new files for mcs51
9960         * device/lib/libfloat.lib: add these 6 files to the library
9961
9962 2004-12-26 Borut Razem <borut.razem AT siol.net>
9963
9964         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
9965           built by gcc 3.4.2
9966
9967 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
9968
9969         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
9970           and fully reentrant and register bank neutral.
9971         * device/lib/printf_fast.c: added float (not enabled by default),
9972           added compact/slower integer (also not enabled by default),
9973           improved size/speed of fast integer code, other minor changes
9974         * device/include/stdio.h, device/lib/Makefile.in,
9975           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
9976
9977 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
9978
9979         * src/pic16/pcode.c: declaring variables other than at the start of a
9980           block is not supported in C by VC6.
9981
9982 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
9983
9984         * applied a previous patch from Raphael Neider that wasn't included
9985         in the previous commits, which fixes infinite loops within jumptable
9986         improvements,
9987         * made some fixes that previous patches introduced
9988
9989 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
9990
9991         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
9992         that fixes an issue with AOP_PCODE asmop's offset,
9993         * (pic16_popCopyReg): update instance field too,
9994         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
9995         function of pic port,
9996         * (genCmp, genAnd, genAssign),
9997         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
9998
9999 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
10000
10001         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
10002         variables initial values to idata section,
10003         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
10004         variables in some functions. This utilizes parmBytes field of iCode
10005         structure to hold the offset of the variable in stack. (might be
10006         able to use the stack field too?)
10007         * applied patch from Raphael Neider # ### , # ###
10008         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
10009         variable initial values in idata section,
10010         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
10011         for static variables with initial value
10012         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
10013         applied fix in while loop from Raphael Neider.
10014
10015 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
10016
10017         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
10018         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
10019         * src/ds390/ralloc.c (serialRegAssign): spill bits
10020         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
10021         * support/Util/SDCCerr.c,
10022         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
10023         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
10024         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
10025
10026 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
10027
10028         * device/include/sdcc-lib.h: inserted LGPL, added includes
10029           asm/ds390/features.h and asm/mcs51/features.h
10030         * device/include/asm/default/features.h,
10031         * device/include/asm/gbz80/features.h,
10032         * device/include/asm/z80/features.h: added empty _AUTOMEM
10033           and _STATMEM
10034         * device/include/asm/ds390/features.h,
10035         * device/include/asm/mcs51/features.h: added files with defines for
10036           _AUTOMEM and _STATMEM indicating automatic and static storage class
10037         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
10038         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
10039         * src/SDCCicode.c (geniCodeCast),
10040         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
10041         * src/SDCCloop.c (loopInduction): removed unused variable lr
10042         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
10043           to convertToFcall to include char modulo (RFE 1065037), added check
10044           if left operand is unsigned and use abs of literal value
10045         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
10046           as it doesn't work after conversion from peephole.def to peephole.rul
10047         * src/mcs51/gen.c (toBoolean): added check for size,
10048           (genModOneByte): optimized code for signed char modulo a literal
10049           power of 2 (thanks to Hubert Sack),
10050           (genRRC): removed unnecessary "clr c",
10051           (genRLC): replaced "add a,acc" with cheaper "rlc a"
10052         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
10053           jump optimization,
10054           swapped rules 256.c and 256.d,
10055           extended 256.d by using new multiple checks (thanks Erik),
10056           added rules 256.e and 256.f,
10057           updated rule 261.a and 261.b to new generated code
10058         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
10059
10060 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10061
10062         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
10063           induction related bugs, including first part of bug #1074377
10064
10065 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
10066
10067         * applied patch from bug-report #1076292,
10068         * applied patches for genAnd and Goto-optimizations for Raphael
10069         Neider,
10070         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
10071         dump a less iCode information,
10072         * src/pic16/device.h (pic16_options_t): added field debgen,
10073         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
10074         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
10075         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
10076         puclic,
10077         * (various functions): added macros FENTRY and FENTRY2 to functions,
10078         to emit function prologue,
10079         * (various functions): fixed indentation,
10080         * (genNearPointerGet): fixed loading of FSR0,
10081         * (genPackBits): applied patch from Raphael Neider to fix updating
10082         of FSR0 and touching only the modified bits,
10083         * src/pic16/genarith.c (various functions): added macros FENTRY to
10084         emit function prologue in comments,
10085         * src/pic16/pcode.h: added functions debugf2, debugf3,
10086         * src/pic16/ralloc.c: partial fix for packForPush caused
10087         segmentation fault,
10088
10089 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10090
10091         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
10092           <stsp AT users.sourceforge.net> with reversed byte order
10093         * support/regression/tests/rotate.c: added (ds390 skips some tests)
10094
10095 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10096
10097         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
10098           bug #1074377
10099         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
10100         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
10101
10102 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
10103
10104         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
10105
10106 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10107
10108         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
10109           conditions,
10110           (setFromConditionArgs): friendly operand parser for peephole rules,
10111           (operandBaseName, operandsNotRelated): new peephole condition
10112           "operandsNotRelated" -- similar to "operandsNotSame", but takes
10113           architecture specific register naming into account, handles n-way
10114           comparisons, and supports quoted literals
10115         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
10116
10117 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10118
10119         * src/mcs51/peeph.def: fixed bug #1076940
10120
10121 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
10122
10123         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
10124
10125 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10126
10127         Adding support for replacing ljmps with sjmps in jumptables
10128         generated for switch statements. For now you need to set the
10129         environment variable SDCC_SJMP_JUMPTABLE to enable this.
10130         Now 4 algorithms for mcs51 jumptable generation are used:
10131         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
10132         addresses loaded pc-relative for up to 112 cases and stack-pushing
10133         target addresses loaded with offset from dptr for up to 256 cases.
10134
10135         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
10136         * src/mcs51/main.c: adapted constants for switch table generation
10137         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
10138
10139 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
10140
10141         * device/lib/printf_large.c (_print_format): fixed bug 1073386
10142         * support/regression/tests/bug1057979.c: added test for bug 1073386
10143
10144 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
10145
10146         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
10147         compilers
10148
10149 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
10150
10151         * src/pic16/device.h,
10152         * src/pic16/genarith.c,
10153         * src/pic16/glue.c,
10154         * src/pic16/main.c,
10155         * src/pic16/pcode.c: applied patches #1068154 and #1070213
10156
10157 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
10158
10159         Large cummulative patch for pic16 port.
10160         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
10161         to call when a stack overflow occurs,
10162         * (malloc.h): added CVS Id tag,
10163         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
10164         variable,
10165         * added libc directory. The current version of LibC contains string
10166         functions, ctype functions and macros and some functions of the
10167         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
10168         be extensively tested in the future. Standard disclaimer here.
10169         Library is not automatically build yet. But one can build it by
10170         invoking 'make' inside the libc directory.
10171         * added ADC library under libio. Preliminary version yet.
10172
10173         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
10174         * src/pic16/gen.c (aopForRemat): asmop size is filled by
10175         aopForRemat() now and not by pic16_aopOp(),
10176         * (pic16_popGetTempReg): removed warning messgae when allocating
10177         temporary registers, its a buggy feature and will be removed,
10178         * (pic16_popGet): set register instance field in AOP_CRY,
10179         * (pic16_outBitC): fixed for results in size greater than 1,
10180         * (genUminusFloat): fixed for pic16, ported code from mcs51,
10181         * (pic16_storeForReturn): optimized return of 0,
10182         * (genCmp): experimental code for new genCmp which uses PIC18's
10183         special compare&skip instructions. Initial tests fail some times
10184         with variables grater than 1 byte in size, so new code is disabled,
10185         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
10186         a single bit,
10187         * (genCast): began a fix to optimize the casting of a bit to another
10188         bit, now assigning a bitfield to another bitfield will fail, sorry,
10189         * src/pic16/main.c: disabled the use of lr-support feature,
10190         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
10191         * added some function prototypes, added function _debugf prototype,
10192         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
10193         bits with offset (case PO_GPR_BIT),
10194         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
10195         command line,
10196         * (isBankInstruction): modified to return 0 for no banking instruction,
10197         and 1 for banking instruction,
10198         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
10199         caused stop processing pCodes after a inline assembly block,
10200         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
10201         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
10202         registers when it shouldn't,
10203         * src/pic16/ralloc.c (allocReg): add preliminary support for
10204         supporting a limited set of temporary registers,
10205
10206 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10207
10208         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
10209           genDataPointerSet): ensure assignments always copy in MSB to LSB
10210           order,
10211           (loadRegFromAop): recognize CLRH optimization,
10212           (genFunction): optimize RECEIVE iCodes in reentrant functions
10213
10214 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10215
10216         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
10217           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
10218           selected.
10219         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
10220         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
10221           contiguous with data
10222
10223 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10224
10225         * device/lib/_gptrget.c (_gptrget),
10226         * device/lib/_gptrgetc.c (_gptrgetc),
10227         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
10228           instead of sjmp to ret
10229         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
10230           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
10231
10232 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
10233
10234         * .version: bumped version to 2.4.7
10235         * device/lib/_gptrget.c (_gptrget): is now _naked
10236         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
10237         * device/lib/_gptrput.c (_gptrput): is now _naked
10238         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
10239           (createFunction): fixed xstack
10240         * src/SDCCglue.c (emitMaps): set allocation required for bit area
10241         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
10242           or bit either,
10243           (geniCodeCritical): store original interrupt state in an iTemp bit
10244           var unless stack-auto
10245         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
10246         * src/SDCCmain.c (setIncludePath): added include/target to search path
10247         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
10248         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
10249           prototype,
10250           (processFuncArgs): put bit vars in bit area
10251         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
10252           unsaveRBank): fixed xstack,
10253           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
10254           (genFunction, genEndFunction): fixed xstack,
10255           (genAssign): optimization don't walk backwards through mem
10256         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
10257         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
10258         * support/regression/Makefile: also make library (for stack-auto) when
10259           making "all" and added "test-mcs51-xstack-auto"
10260         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
10261         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
10262         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
10263         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
10264         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
10265           make-library by MAKE_LIBRARY
10266         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
10267           regression tests for xstack
10268         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
10269         * support/regression/tests/critical.c: test for critical on mcs51
10270
10271 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10272
10273         * support/regression/ports/ucz80/spec.mk: use include and lib files from
10274           built version of sdcc instead of installed version
10275
10276 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
10277
10278         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
10279         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
10280           vprintf.c now
10281         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
10282         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
10283           WARNING: remove device/lib/build/z80/printf.o by hand when
10284           updating from previous build!
10285         * device/lib/z80/printf.c: updated comment
10286         * support/regression/tests/bug1057979.c: test all ports now
10287         * support/regression/tests/bug1065458.c: file added
10288
10289 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10290
10291         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
10292           *_start and *_end symbols for static functions
10293
10294 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
10295
10296         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
10297           and search crt0.o in all library paths,
10298           (setIncludePath): proper handling of --nostdinc,
10299           (setLibPath): proper handling of --nostdlib
10300         * support/regression/Makefile,
10301         * support/regression/ports/ds390/spec.mk,
10302         * support/regression/ports/gbz80/spec.mk,
10303         * support/regression/ports/hc08/spec.mk,
10304         * support/regression/ports/mcs51/spec.mk,
10305         * support/regression/ports/mcs51-large/spec.mk,
10306         * support/regression/ports/mcs51-stack-auto/spec.mk,
10307         * support/regression/ports/z80/spec.mk: use include and lib files from
10308           built version of sdcc instead of installed version
10309         * doc/sdccman.lyx: fixed typo in --nostdinc
10310
10311 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
10312
10313         * src/pic/pcode.c,
10314         * src/pic/device.c,
10315         * src/pic/ralloc.c,
10316         * src/pic/gen.c : added support to generate code for struct bit fields.
10317
10318 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
10319
10320         * as/xa51/xa_version.h,
10321         * device/include/errno.h,
10322         * device/include/regc515c.h,
10323         * device/lib/_itoa.c,
10324         * device/lib/_ltoa.c,
10325         * device/lib/ser_ir_cts_rts.c,
10326         * sim/ucsim/xa.src/glob.cc,
10327         * sim/ucsim/xa.src/inst_gen.cc,
10328         * sim/ucsim/xa.src/xa_bit.cc,
10329         * sim/ucsim/xa.src/xa_sfr.cc,
10330         * sim/ucsim/z80.src/inst_dd.cc,
10331         * sim/ucsim/z80.src/inst_fdcb.cc,
10332         * support/scripts/keil2sdcc.pl,
10333         * src/pic16/pic16.dsp,
10334         * src/pic16/pic16a.dsp: corrected cvs line endings
10335         * device/lib/printf_large.c: fixed bug 1057979
10336         * src/pic16/gen.c: fixed non-C standard code
10337         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
10338         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
10339         * support/regression/ports/mcs51/support.c: reload T1 asap
10340         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
10341           pdata use and clear idata startup behaviour
10342         * support/regression/tests/bug1057979.c: added
10343
10344 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
10345
10346         * device/examples/ds390/ow390/ad26.h,
10347         * device/examples/ds390/ow390/cnt1d.h,
10348         * device/examples/ds390/ow390/crcutil.c,
10349         * device/examples/ds390/ow390/ownet.h,
10350         * device/examples/ds390/ow390/owsesu.c,
10351         * device/examples/ds390/ow390/swt12.h,
10352         * device/examples/ds390/ow390/swtoper.c,
10353         * device/examples/ds390/ow390/temp10.h,
10354         * device/examples/ds390/ow390/thermodl.c,
10355         * device/examples/ds390/tinitalk/tinitalk.dsp,
10356         * device/examples/ds390/tinitalk/tinitalk.dsw,
10357         * device/examples/mcs51/clock/hw.h,
10358         * device/examples/mcs51/simple2/go.bat,
10359         * device/examples/serialcomm/windows/serial.h,
10360         * device/examples/xa51/dummy.c,
10361         * device/examples/xa51/hello.c,
10362         * device/include/80c51xa.h,
10363         * device/include/at89x051.h: corrected cvs line endings
10364
10365 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
10366
10367         * src/pic16/main.c (options): added command line --gstack, to trace
10368         stack over/under flows,
10369         * added pragma 'wparam' to allow passing first byte of function
10370         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
10371         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
10372         call to __gstack_test function and sets up the symbol as extern,
10373         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
10374         * popaop): added call to pic16_testStackOverflow,
10375         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
10376         wparamList list,
10377         * (genCall, genPcall): now all parameters are passed via stack
10378         except in functions that are pass to wparam pragma in which WREG is
10379         used too,
10380         * (genPcall): REENTRANT flag is checked to see if variable prototype
10381         contains reentrant keyword, don't call a non-reentrant function, via
10382         a reentrant function pointer or vice versa, functions are never
10383         passed via WREG,
10384         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
10385         D.Winkler,
10386         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
10387         SIGSEGV when accessing a NULL register stucture,
10388         * (pic16_printGPointerType): modified to handle UPPER modifier for
10389         function initializers, changed prototype of function to simpler one,
10390         * (pic16_printIvalFuncPtr): check to see if function is already
10391         added in externs list,
10392         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
10393         optimized a move from W to SFR with a move to the same register
10394         later after a CALL,
10395         * device/lib/pic16/debug: NEW directory, contains debug features
10396         which are enabled when linking with libdebug.lib, currently command
10397         line option --gstack enables stack pointer tracing for over/under
10398         flow, corresponding sources are in debug/gstack
10399
10400 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
10401
10402         * doc/sdccman.lyx: updated SDCC version,
10403         * (PIC16 port): update list of command line options,
10404         * src/pic16/device.h (structure pic16_options_t): added field gstack
10405         to enable stack overflow tracing on push/pops,
10406         * src/pic16/device.c (statistics structure): added statistics
10407         structure,
10408         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
10409         pic16_dump_int_registers): increase statistics counters for each
10410         * variable which is encountered
10411         * (pic16_dump_usection): emit each .udata variable to its own udata
10412         section,
10413         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
10414         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
10415         parameters via stack, otherwise use old scheme,
10416         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
10417         assembler output file,
10418         * src/pic16/main.c: added command line options --gstack to enable
10419         push/pop tracing for stack overflow,
10420         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
10421         instructions): added size of each instruction,
10422         * (pic16_countInstruction): estimate size of instructions in
10423         the_pFile list, inline assembly blocks are not counted,
10424         * (pic16_FixRegisterBanking): trace previous register usage, when
10425         banksel optimizations is greater than 0, don't emit a redudant
10426         banksel directive,
10427
10428 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
10429
10430         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
10431         * src/pic16/ralloc.c : applied same fix for pic16.
10432         * src/pic/gen.c : tidied it up a little.
10433
10434 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10435
10436         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
10437         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
10438
10439 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10440
10441         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
10442
10443 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10444
10445         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
10446         non-reentrant function __modsint in the interrupt function (thus
10447         corrupting math operations during serial I/O)
10448         * device/lib/ser_ir.c: as above, changed buffersize
10449         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
10450         256.c,d for zeroing
10451         * doc/Makefile: added option -t for rsync
10452
10453 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10454
10455         * src/SDCCast.h (struct ast),
10456         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
10457
10458 2004-10-20 Borut Razem <borut.razem AT siol.net>
10459
10460         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
10461         package
10462
10463 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
10464
10465         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
10466         makefile targets,
10467         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
10468         support functions to replace long sequences of MOVFF's from access
10469         bank registers to stack and vice versa,
10470         * src/pic16/device.h: added new field opt_flags, where optimization
10471         flags can be set to enable certain features,
10472         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
10473         * pBlock, (genFunction, genEndFunction): surroung loop for
10474         saving/loading used registers in stack with PC_INFO pCodes,
10475         INF_LREGS. Code in between can then be optimized by pCode optimizer
10476         to support function calls,
10477         * (genDataPointerSet): fixed bug which loaded float fields in
10478         structures with corrupt data,
10479         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
10480         in a standard way debug info on stderr. Feature used for developing
10481         and debugging only,
10482         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
10483         obsolete chunks of code,
10484         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
10485         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
10486         * pic16/src/pcode.c (pic16_newpCodeInfo,
10487         * (pic16_newpCodeOpLocalRegs),
10488         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
10489         feature,
10490         * (pic16_pCodeConstString): printing of the initial value of a
10491         symbol as a comment is inhibited since parsing was already done by
10492         copyStr and output is corrupt,
10493         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
10494
10495 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10496
10497         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
10498
10499 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
10500
10501         * as/mcs51/lkarea.c: removed old K&R style,
10502           (lnksect): changed check on boundary error,
10503           (lnksect2): changed check on boundary error,
10504           (lnksect2): extend XSTK to end of page if size = 1
10505         * as/mcs51/lkmain.c: removed old K&R style,
10506           (Areas51): create l_IRAM symbol
10507         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
10508         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
10509           model-mcs51-stack-auto, added model-mcs51-xstack-auto
10510         * device/lib/_mullong.c: added version to be compiled with xstack
10511         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
10512         * device/lib/mcs51/crtxclear.asm: clear pdata as well
10513         * device/lib/mcs51/crtxstack.asm: fixed comment
10514         * src/SDCCglue.c: maxInterrupts defaults to 0,
10515           (emitMaps): added pdata,
10516           (createInterruptVect): (re)moved default,
10517           (glue): added pdata,
10518           (glue): moved __start__xstack to XSTK with default size 1
10519         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
10520           and options.float_rent when options.stackAuto is set,
10521           (linkEdit): only write XDATA_NAME if provided on command line
10522         * src/SDCCmem.h,
10523         * src/SDCCmem.c: added pdata
10524         * src/port.h: added pdata_name to PORT
10525         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
10526           (saveRegisters, unsaveRegisters): removed usage of B,
10527           (genMinus): fixed accumulator clash,
10528           (genJumpTab): added comment, this needs another look
10529         * src/mcs51/gen.c: added check for "B in use" paranoia,
10530           added pushB() and popB()
10531         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
10532           chance
10533         * src/avr/main.c,
10534         * src/ds390/main.c,
10535         * src/hc08/main.c,
10536         * src/mcs51/main.c,
10537         * src/pic/main.c,
10538         * src/pic16/main.c,
10539         * src/xa51/main.c,
10540         * src/z80/main.c: (reset_regparms) made void parameter explicit and
10541           added PSEG (PAG,XDATA) or NULL to port specifier
10542         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
10543         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
10544           (_mcs51_genInitStartup): removed __start__xstack equ,
10545           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
10546         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
10547         * src/z80/gen.c (_rleAppend): fixed warnings
10548         * support/regression/tests/zeropad.c: added pdata test
10549         * .version: bumped to 2.4.6
10550
10551 2004-10-17 Borut Razem <borut.razem AT siol.net>
10552
10553         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
10554         as a part of nightly build
10555
10556 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
10557
10558         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
10559         WREG holds the first byte function parameters,
10560         * (aopForSym): take special case for symbols which are in FARSPACE
10561         but in CODESPACE too,
10562         * (assignResultValue): modified to take into account _G.useWreg,
10563         * (genCall): don't use wreg for parameter passing when function is
10564         declared as reentrant, too, added optimization INCF to stack
10565         pointer when stack parameter count is 1,
10566         * (genFunction, genEndFunction): refurnished and fixed to not using
10567         wreg for passing parameters when function has varargs or is
10568         reentrant, fixed bug with symbol name compare for generating
10569         functions in absolute address,
10570         * (pic16_storeForReturn): refurnished,
10571         * (genCmp): began writing a new version of the function, not ready
10572         yet, therefore it is disabled,
10573         * (genAssign): do not read code memory when assigning a function to
10574         a pointer function,
10575         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
10576         array of characters, not pointer,
10577         * (pic16initialComments): in debug mode emit an .ident directive for
10578         the assembler,
10579         * (_process_pragma): emit a new warning type (internal to pic16)
10580         when setting stack to default length, emit a similar warning when
10581         placing a function at absolute address and address is not word aligned
10582         * (_pic16_parseOptions): added 'return TRUE' statement,
10583         * (_pic16_linkEdit): if compiling a source, then add the source's
10584         file object, first in the list of objects to link,
10585
10586 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
10587
10588         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
10589         * src/pic/main.c : removed VC warning.
10590         * src/pic/gen.c : changed comment.
10591
10592 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
10593
10594         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
10595         reference to a deprecated symbol _GPTRREG was causing failure to
10596         link. Thanks G. M. Gallant for the info.
10597
10598 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
10599
10600         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
10601         comments for Bugs item #954788.
10602
10603 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
10604
10605         * src/pic16/device.c (pic16_dump_gsection,
10606         * pic16_groupRegistersInSection): handle symbols declared to be in
10607         access bank differently,
10608         * src/pic16/gen.c (struct _G): added field resDirect,
10609         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
10610         send values read from stack directly to result and don't allocate
10611         temporary values,
10612         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
10613         same registers,
10614         * (pic16_sameRegsOfs): NEW,
10615         * (freeAsmop): if _G.resDirect is set then do not mark registers as
10616         free because they were not allocated from temporary pool,
10617         * pic16_popRegFromString): workaround to fix a problem with
10618         allocating variables twice or never,
10619         * (genGenPointerGet): using PRODL instead of FSR0H,
10620         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
10621         instead of FSR0H,
10622         * (genAssign): take advantage of the _G.resDirect flag,
10623         * (genCast): around line 11844, use mov2f instead of directly
10624         MOVFF'ing between operands to account for literal values,
10625         * src/pic16/genutils.c: some new debug functions for gpsim have been
10626         added,
10627         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
10628         float with integer part only,
10629         * src/pic16/main.c (_process_pragma): handle pragma udata access to
10630         place variables in access bank
10631         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
10632         updated sources to reflect recent changes in gen.c
10633
10634 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
10635
10636         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
10637         sources that searched for headers in installation path, now the
10638         device/include/pic16 is used,
10639         * src/pic16/glue.c (pic16glue),
10640         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
10641         .line directives if not in debug mode, this suppresses assembler's
10642         warnings for ignored directives
10643
10644 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
10645
10646         * src/port.h: made reset_regparms prototype void parameter explicit.
10647         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
10648         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
10649         * doc/sdccman.lyx: documented warning disabling and how to use
10650           printf_large to make it print floats.
10651         * device/include/stdbool.h: NEW
10652         * device/lib/_atof.c,
10653         * device/lib/_divuint.c,
10654         * device/lib/_divulong.c,
10655         * device/lib/expf.c,
10656         * device/lib/printf_large.c,
10657         * device/lib/sincosf.c,
10658         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
10659         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
10660           a completely reentrant lib.
10661
10662 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
10663
10664         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
10665         * device/include/pic16/stdio.h: fixed bug with colon
10666
10667 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
10668
10669         * device/include/pic16/stdio.h,
10670         * device/include/pic16/stdlib.h,
10671         * device/include/pic16/math.h: NEW
10672         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
10673         declared as _naked to reduce overhead
10674         * device/lib/Makefile.in (target port-specific-objects-pic16):
10675         changed * to *.* so to ignore the CVS directory,
10676         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
10677         stacked variables back in stack,
10678         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
10679         corruption
10680
10681 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
10682
10683         * .version: bumped version number to 2.4.5
10684         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
10685         * support/Util/SDCCerr.c (messages structure): added entry for
10686         W_POSSBUG2
10687
10688         Large cumulative patch for pic16 port and libraries.
10689         * device/include/pic16/sdcc-lib.h,
10690         * device/include/pic16/stdarg.h,
10691         * device/include/asm/pic16/features.h,
10692         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
10693         * device/include/pic16/float.h: changes reentrant keyword with
10694         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
10695         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
10696         updated target build-libraries to include objects from gptr,
10697         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
10698         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
10699         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
10700         all function headings,
10701         * src/SDCCmain.c: added global parameter userIncDirsSet,
10702         * (parseCmdLine): when option -I is encountered add directory to
10703         userIncDirsSet too,
10704         * src/version.awk: added space between control and long,
10705         * src/pic16/NOTES: added some notes for the port,
10706         * src/pic16/gen.c: added prototype for mov2fp function,
10707         * (fReturnpic16[]): properly named return value registers,
10708         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
10709         * (aopForSym): added code to handle symbols with onStack flag set,
10710         symbols onStack are allocated PTRSIZE bytes,
10711         * (aopFreeAsmop): handles special case where asmops are stack objects,
10712         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
10713         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
10714         added argument lock to trace flaws in allocating temporary registers
10715         when developing port,
10716         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
10717         * (pic16_popRegFromString): reenabled allocating a direct register
10718         from string,
10719         * (assignResultValue): various beautifications,
10720         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
10721         referenced function argument,
10722         * (genIpush): reenabled to allow stacked arguments, handles only
10723         ic->parmPush iCodes,
10724         * (genCall, genPcall): major changes to allow for variable argument
10725         functions, fixed a bug with falsely restoring stack pointer after
10726         returning from call,
10727         * (genFunction): pending code for critical function,
10728         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
10729         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
10730         * (genNearPointerGet): fixed bug with indirect reading, was always
10731         reading from INDF0
10732         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
10733         pointers,
10734         * (genAddrOf): rewrote code to take address of a stacked function parameter
10735         * (genCast): fixed casting to generic pointer type,
10736         * src/pic16/gen.h: added AOP_STA,
10737         * (struct asmop): added field stk,
10738         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
10739         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
10740         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
10741         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
10742         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
10743         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
10744         generic pointers,
10745         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
10746         and library paths,
10747         * (pic16_port structure): generic pointer size is set to 3,
10748         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
10749         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
10750         compiler warning,
10751         * src/pic16/ralloc.c (allocReg): prevent allocating register when
10752         operand is an iTemp,
10753
10754 2004-09-24 Martin Helmling <mh AT octo-soft.de>
10755
10756         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
10757         * debugger/mcs51/simi.c: addapt new syntax of s51
10758
10759 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
10760
10761         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
10762         * src/pic16/pcode.c: commented out some calls to free() in order to
10763         fix bug #989576,
10764
10765 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10766
10767         * src/SDCCicode.h,
10768         * src/SDCCicode.c (isiCodeInFunctionCall),
10769         * src/avr/ralloc.c (selectSpil),
10770         * src/pic/ralloc.c (selectSpil),
10771         * src/pic16/ralloc.c (selectSpil),
10772         * src/ds390/ralloc.c (selectSpil),
10773         * src/hc08/ralloc.c (selectSpil),
10774         * src/xa51/ralloc.c (selectSpil),
10775         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
10776         stack in the middle of a function call sequence (fixes bug #1020268)
10777         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
10778         costs associated with the minimum switch case.
10779
10780 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10781
10782         * src/SDCC.lex: fixed bug #1030549
10783
10784 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10785
10786         * src/SDCCcse.h (struct cseDef),
10787         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
10788         over a function call if the CSE is derived from a symbol whose
10789         address has been taken (fixes bug #1029883)
10790         * support/regression/tests/bug-1029883: a new regression test for
10791         this bug
10792
10793 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10794
10795         * src/hc08/gen.c (emitinline): fixed bug #1029778
10796         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
10797         to a cast object is no longer a syntax error ("fixes" bug #1030006,
10798         and starts toward RFE #905167)
10799
10800 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
10801
10802         * src/pic16/gen.c (mov2f): New function to move an operand to
10803         another without considering if it is a literal or a register,
10804         * (pic16_sameRegs): don't check if they are both AOP_REG,
10805         * (AccRsh): removed andmask=0 lines,
10806         * (genLeftShift): duplicated to be improved in future versions,
10807         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
10808         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
10809         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
10810         * (pic16initMnemonics): added initialization for POC_INFSNZW,
10811         * (insertBankSwitch): fixed inserting banksel directives algorithm
10812         for instructions that follow a skip instruction, this fixes a report
10813         for broken subtraction code generation,
10814         * src/pic16/ralloc.c (deassignLRs): do not free register if current
10815         iCode is a left op, just in case result and right share the same
10816         registers
10817
10818 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10819
10820         * src/hc08/main.c,
10821         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
10822         preservation of HX
10823         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
10824         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
10825         on 2004-09-12; it was buggy
10826
10827 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
10828
10829         * src/SDCCsymt.h: removed RESULT_CHECK
10830         * src/SDCCast.c,
10831         * src/SDCCglue.c,
10832         * src/SDCCval.c,
10833         * src/pic/glue.c,
10834         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
10835
10836 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
10837
10838         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
10839         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
10840         configuration values no more rejected by compiler, they are assigned
10841         to configuration registers with a warning message instead,
10842         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
10843         the for-loop so last conf register is emitted too,
10844         * (_pic16_initPaths): link library libsdcc.lib by default,
10845         * (_hasNativeMulFor): modified test for multiplication according to
10846         Raphael Neider's remarks. Integer multiplication is also done with
10847         support functions,
10848         * device/include/pic16/pic18fregs.h: corrected type error in while
10849         testing and including 18f6720 header file
10850
10851 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
10852
10853         * src/pic16/device.h (pic16_options): removed field use_crt,
10854         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
10855         until an optimization to handle single bits is added,
10856         * (pic16_loadFSR0): moved before genUnpackBits,
10857         * (genAnd): some white lines removed,
10858         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
10859         leave_reset flags in pic16_options when using crt modules,
10860
10861 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
10862
10863         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
10864           for bugs 898889 & 979599. Also used some safer print instructions.
10865
10866 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
10867
10868         * src/pic16/device.h (pic16_options_t): added field use_crt,
10869         crt_name, no_crt,
10870         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
10871         catch a probable future bug,
10872         * src/pic16/gen.c: aopIdx function commented out,
10873         * (genAssign): commented out old code which used aopIdx,
10874         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
10875         code, added if conditionals to take into account the --use-crt
10876         command line options,
10877         * src/pic16/main.c (pic16_optionsTable): added new command line
10878         options, --use-crt= and --no-crt,
10879         * (_pic16_linkEdit): now the proper crt object is added in the
10880         linker command line except than when --no-crt is specified,
10881         * src/pic16/pcode.c,
10882         * src/pic16/pcode.h: added some structures and functions for a new
10883         optimization scheme to compansate for instruction overhead between
10884         same iCodes, this scheme is currently under development and is not
10885         working in any way,
10886         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
10887         to && operator,
10888         * device/lib/pic16/startup/crt0i.c,
10889         * device/lib/pic16/startup/crt0iz.c: added global char variable
10890         __uflags to force the generation of an idata section
10891
10892 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
10893
10894         * doc/Makefile,
10895         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
10896         * doc/sdccman.lyx: updated sdcc version to 2.4.4
10897
10898 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10899
10900         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
10901         Frieder) and clarified the default code optimization mode
10902
10903 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10904
10905         * src/SDCC.lex (doPragma, process_pragma),
10906         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
10907         "opt_code_size", and "opt_code_balanced"
10908         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
10909         regrouped options by category, added support for category headers
10910         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
10911         and "--opt-code-size"
10912         * doc/sdccman.lyx: documented these new options and pragmas
10913         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
10914         preference into account
10915
10916 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10917
10918         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
10919           geniCodePreDec): Fixed bug 904237 by generating a warning
10920         * src/SDCCerr.h,
10921         * src/SDCCerr.c: added warning W_SIZEOF_VOID
10922
10923 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
10924
10925         * src/pic/device.c : When no max ram set validate full memory range.
10926         * src/pic/pcode.c,
10927         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
10928
10929 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10930
10931         * device/lib/_gptrget.c,
10932         * device/lib/_gptrput.c: updated comment
10933         * device/lib/calloc.c,
10934         * device/lib/free.c,
10935         * device/lib/malloc.c,
10936         * device/lib/realloc.c: added LGPL, made them reentrant-safe
10937         * src/SDCCcse.c (cseBBlock),
10938         * src/SDCCicode.c (printOperand, geniCodeArray),
10939         * src/SDCCicode.h (struct operand): fixed bug 868103
10940         * support/regression/tests/bug-868103.c: added
10941         * src/SDCCast.c (searchLitOp),
10942         * src/SDCCcse.h (struct cseDef),
10943         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
10944         * src/SDCCicode.h (struct operand),
10945         * src/SDCCsymt.h (struct sym_link),
10946         * src/avr/gen.c (hasInc),
10947         * src/ds390/gen.c (hasInc),
10948         * src/hc08/gen.c (genPlusIncr, hasInc),
10949         * src/mcs51/gen.c (hasInc),
10950         * src/pic16/glue.c (pic16_printIvalChar),
10951         * src/pic16/ralloc.c (regWithIdx),
10952         * src/xa51/gen.c (hasInc) : removed warnings
10953         * src/SDCCast.c (createBlock): added comment ???
10954         * src/hc08/ralloc.c: updated comments
10955
10956 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10957
10958         * doc/sdccman.lyx: updated section on switch statements, added
10959         section about semaphore locking
10960         * doc/Makefile: added option -info for latex2html
10961         * device/lib/_gptrget.c,
10962         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
10963
10964 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10965
10966         * src/pic/device.h,
10967         * src/pic/device.c,
10968         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
10969          maxram is less than 0x100.
10970
10971 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10972
10973         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
10974
10975 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10976
10977         * src/port.h,
10978         * src/mcs51/main.c,
10979         * src/ds390/main.c,
10980         * src/z80/main.c,
10981         * src/hc08/main.c,
10982         * src/pic/main.c,
10983         * src/pic16/main.c,
10984         * src/avr/main.c,
10985         * src/xa51/main.c
10986         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
10987         a jump table is the best form for a switch statement, including
10988         automatic insertion of missing cases to make the case range
10989         continuous. Developed in collaboration with Frieder Ferlemann.
10990
10991 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10992
10993         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
10994         accumulator result if it needs sign extension
10995
10996 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10997
10998         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
10999
11000 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
11001
11002         * device/lib/gbz80/printf.c,
11003         * device/lib/z80/printf.c: removed define for NULL
11004
11005 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
11006
11007         * as/xa51/xa_link.c,
11008         * device/examples/ds390/ow390/ad26.c,
11009         * device/examples/ds390/ow390/cnt1d.c,
11010         * device/examples/ds390/ow390/counter.c,
11011         * device/examples/ds390/ow390/ds2480.h,
11012         * device/examples/ds390/ow390/ds2480ut.c,
11013         * device/examples/ds390/ow390/findtype.c,
11014         * device/examples/ds390/ow390/gethumd.c,
11015         * device/examples/ds390/ow390/owllu.c,
11016         * device/examples/ds390/ow390/ownetu.c,
11017         * device/examples/ds390/ow390/swt12.c,
11018         * device/examples/ds390/ow390/swtloop.c,
11019         * device/examples/ds390/ow390/temp.c,
11020         * device/examples/ds390/ow390/temp10.c,
11021         * device/examples/ds390/ow390/thermo21.c,
11022         * device/examples/ds390/ow390/tinilnk.c,
11023         * device/examples/ds390/ow390/tstfind.c,
11024         * device/examples/serialcomm/windows/serial.cpp,
11025         * device/examples/serialcomm/windows/test_serialcomm.cpp,
11026         * device/include/reg51.h: fixed line endings for cvs
11027
11028 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11029
11030         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
11031         packRegsForAccUse, packRegisters): new accumulator register
11032         packing algorithm
11033         * support/regression/ports/hc08/support.c (_putchar): suppress
11034         warning of unused variable
11035         * src/SDCCicode.c: added SWAP entry to codeTable
11036
11037 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
11038
11039         * device/lib/sprintf.c: forgot to add this file before previous commit
11040
11041 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
11042
11043         * src/pic16/gen.c (genPackBits): added operand right in function
11044         parameters, load result directly if p_type is POINTER (that is
11045         called by genNearPointerSet)
11046         * (genUnPackBits): added operand left in function parameters,
11047         * (genNearPointerGet, genNearPointerSet): prevent the loading of
11048         FSR0 if accessing bitfields,
11049
11050 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
11051
11052         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
11053           _print_format; updated printf, sprintf, vsprintf
11054         * device/include/asm/default/features.h: corrected comment/define
11055         * device/lib/Makefile.in: added sprintf.c
11056         * device/lib/libsdcc.lib: added sprintf module
11057         * device/lib/printf_large.c,
11058         * device/lib/vprintf.c,
11059         * device/lib/sprintf.c: totally refactored printf_large and vprintf
11060           into these 3 files
11061         * support/regression/Makefile: changed ALL_PORTS into a usefull default
11062         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
11063         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
11064           hc08 test
11065         * support/regression/tests/zeropad.c: define idata as data for hc08
11066
11067 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11068
11069         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
11070         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
11071         labels are referenced at least once (even if a reference is not found)
11072         * src/hc08/gen.c (emitcode): set isComment flag for comments
11073         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
11074         loads), rules 6a..6b (optimize jumps to return)
11075
11076 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11077
11078         * device/lib/acosf.c (acosf),
11079         * device/lib/asinf.c (asinf),
11080         * device/lib/atanf.c (atanf),
11081         * device/lib/ceilf.c (ceilf),
11082         * device/lib/cosf.c (cosf),
11083         * device/lib/coshf.c (coshf),
11084         * device/lib/cotf.c (cotf),
11085         * device/lib/fabsf.c (fabsf),
11086         * device/lib/floorf.c (floorf),
11087         * device/lib/log10f.c (log10f),
11088         * device/lib/logf.c (logf),
11089         * device/lib/sinf.c (sinf),
11090         * device/lib/sinhf.c (sinhf),
11091         * device/lib/sqrtf.c (sqrtf),
11092         * device/lib/tanf.c (tanf),
11093         * device/lib/tanhf.c (tanhf),
11094         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
11095         replaced all instances of "reentrant" in the library functions
11096         defined in math.h with this macro.
11097         * support/regression/tests/float_trans.c: reenabled test for hc08
11098
11099 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
11100
11101         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
11102         erroneously deleted
11103
11104 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11105
11106         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
11107         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
11108         multi-byte volatile operands are used
11109         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
11110         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
11111         initialization to area GSINIT0 so that it would always precede
11112         any static initializers in GSINIT
11113         * support/regression/tests/zeropad.c: fixed idata define for hc08
11114         * support/regression/tests/bug-927659.c,
11115         * support/regression/tests/float_trans.c: disabled tests for hc08
11116         pending missing library routines
11117         * .version: increased version number to 2.4.4 - hc08 port now passes
11118         regression tests
11119
11120
11121 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
11122
11123         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
11124         * Makefile.common.in,
11125         * as/Makefile,
11126         * as/hc08/Makefile.in,
11127         * as/mcs51/Makefile.in,
11128         * as/z80/Makefile.in,
11129         * debugger/mcs51/Makefile.in,
11130         * device/include/Makefile.in,
11131         * device/lib/Makefile.in,
11132         * doc/Makefile,
11133         * link/Makefile,
11134         * link/z80/Makefile.in,
11135         * packihx/Makefile.in,
11136         * sim/ucsim/main_in.mk,
11137         * sim/ucsim/avr.src/Makefile.in,
11138         * sim/ucsim/doc/Makefile.in,
11139         * sim/ucsim/gui.src/serio.src/Makefile.in,
11140         * sim/ucsim/hc08.src/Makefile.in,
11141         * sim/ucsim/s51.src/Makefile.in,
11142         * sim/ucsim/xa.src/Makefile.in,
11143         * sim/ucsim/z80.src/Makefile.in,
11144         * src/Makefile.in,
11145         * support/cpp2/Makefile.in,
11146         * support/librarian/Makefile,
11147         * support/makebin/Makefile: added DESTDIR to the install path proposed
11148         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
11149         * doc/sdccman.lyx: added DESTDIR documentation
11150
11151 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
11152
11153         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
11154         instruction for interrupt handlers, use fast returns when returning
11155         from high priority interrupts
11156
11157 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11158
11159         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
11160         code generation
11161         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
11162         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
11163         bugs, ported much of Bernhard's code from mcs51
11164         * src/mcs51/gen.c (genSend),
11165         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
11166         than one when calling a reentrant function
11167         * device/lib/_mullong.c: defined an alternate struct layout for big
11168         endian ports (hc08)
11169
11170 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11171
11172         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
11173         test
11174
11175 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11176
11177         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
11178         are sane and complete before asking the port its prefered parameter
11179         passing method (fixes bug #1017633)
11180         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
11181         and _ret3
11182
11183 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11184
11185         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
11186         problem in bitfields >= 8 bits.
11187
11188 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
11189
11190         * src/SDCCsymt.c: undid changes that were not meant to be committed
11191
11192 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
11193
11194         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
11195
11196 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
11197
11198         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
11199           copied and wrong bit got inverted
11200
11201 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11202
11203         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
11204         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
11205         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
11206         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
11207         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
11208         assignments to bitfields at known addresses
11209         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
11210         reads from bitfields at known addresses
11211         * src/hc08/ralloc.c (packRegisters),
11212         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
11213         genhc08Code): optimize pointer get values used as conditionals
11214         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
11215         and branch
11216
11217 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11218
11219         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
11220         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
11221         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
11222         as conditionals
11223
11224 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11225
11226         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
11227
11228 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11229
11230         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
11231         related problems
11232
11233 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
11234
11235         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
11236
11237 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11238
11239         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
11240         mcs51 port
11241
11242 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
11243
11244         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
11245
11246 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11247
11248         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
11249         cases use more compact code.
11250
11251 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
11252
11253         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
11254
11255 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11256
11257         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
11258
11259 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11260
11261         * src/SDCCsymt.h,
11262         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
11263         parameter of changePointer() from symbol* to sym_link*
11264         * src/SDCCast.c (decorateType): call changePointer() for CAST op
11265         * src/SDCCsymt.c (compareType): void* type is castable to other
11266         pointers, but not necesarily an exact match.
11267         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
11268         is no longer blindly treated as an exact match.
11269         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
11270
11271 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
11272
11273         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
11274
11275 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
11276
11277         * src/pic/gen.c,
11278         * src/pic/pcode.c,
11279         * src/pic/ralloc.h,
11280         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
11281
11282 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
11283
11284         * src/pic/device.c,
11285         * src/pic/device.h,
11286         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
11287
11288 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11289
11290         * src/mcs51/gen.c (emitcode): fixed bug #992819
11291
11292 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
11293
11294         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
11295           there's no need to make it worse
11296
11297 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11298
11299         * src/mcs51/ralloc.c (deassignLR),
11300         * src/ds390/ralloc.c (deassignLR),
11301         * src/hc08/ralloc.c (deassignLR),
11302         * src/z80/ralloc.c (deassignLR),
11303         * src/pic/ralloc.c (deassignLR),
11304         * src/pic16/ralloc.c (deassignLR),
11305         * src/avr/ralloc.c (deassignLR),
11306         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
11307         rlivePoint): fixed another part of bug #971834
11308
11309 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11310
11311         * src/z80/main.c: enabled "critical" keyword
11312         * src/z80/mappings.i,
11313         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
11314         functions (fixes bug #979646)
11315         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
11316
11317 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11318
11319         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
11320           such as c:\mydir.
11321
11322 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
11323
11324         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
11325           doesn't disable too much optimizations
11326
11327 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
11328
11329         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
11330
11331 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
11332
11333         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
11334
11335 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
11336
11337         * src/pic/gen.c tidied up tabs
11338         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
11339         * src/pic/main.c tidied up tabs
11340         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
11341         * src/pic/pcoderegs.c tidied up tabs
11342         * src/pic/ralloc.c tidied up tabs
11343
11344 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
11345
11346         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
11347         to S_FIXED for pic16 port and when symbol is not in level 0,
11348         allocate for S_REGISTER storage class and pic16 port, too,
11349         * src/pic16/device.h: prototype for checkSym,
11350         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
11351         * (pic16_assignConfigWordValue): test the value and the mask to
11352         validate that the value is suitable for the configuration word,
11353         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
11354         collect extern declared symbols, don't emit symbol twice, check
11355         first if symbol is in publics set first,
11356         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
11357         * added command line '--fstack' which enables an experimental
11358         feature for stack access, too buggy to be used yet...
11359         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
11360         * (pic16_allocDirReg): when register has storage class S_REGISTER
11361         allocate in pic16_dynAccessRegs,
11362         * device/include/pic16/pic18f????.h: modified configuration word
11363         naming convention, words started as CONFIG0H but should be CONFIG1H
11364
11365 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
11366
11367         * device/include/mcs51reg.h: fixed bug 970993
11368
11369 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
11370
11371         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
11372         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
11373         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
11374         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
11375         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
11376         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
11377           error/warning numbers,
11378           added function setWarningDisabled()
11379         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
11380         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
11381           _memcmp.c _memmove.c calloc.c realloc.c free.c
11382         * support/regression/tests/malloc.c: added tests for new functionality
11383         * support/regression/tests/zeropad.c: added tests for truncated initializers
11384           and initialized char arrays starting with '\x0'
11385         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
11386
11387 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
11388
11389         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
11390
11391 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11392
11393         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
11394         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
11395         peephole 177.e. Thanks to anonymous
11396
11397 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
11398
11399         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
11400         function isn't used in the source but referenced as a
11401         variable initializer then declare it as extern in .asm file
11402
11403 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
11404
11405         * .version: increased version number to 2.4.3
11406
11407         Adding version extension according to ChangeLog CVS revision
11408         * src/Makefile.in (target all): added dependency 'version.h'
11409         * (rule version.h): added rule to create version.h from ChangeLog,
11410         * (rule dep): added dependency version.h,
11411         * src/version.awk: AWK script to create version.h
11412         * src/SDCCdwarf2.c (dwWriteModule),
11413         * src/SDCCglue.c (initialComments),
11414         * src/SDCCmain.c (printVersionInfo): modified to write after
11415         version string the version extension number,
11416         * src/SDCCutil.c: included "version.h"
11417         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
11418         number,
11419         * src/SDCCutil.h: added prototype for getBuildNumber
11420
11421         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
11422         includeDirsSet, too,
11423         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
11424         const char [] is found in function prototype...
11425
11426         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
11427         moving to WREG with source is already in WREG,
11428         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
11429         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
11430         * (aopForSym): stack'ed symbols are partially supported, added
11431         if-clause to support symbols in FARSPACE,
11432         * (sameRegs): added test for AOP_ACC to see if registers are same,
11433         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
11434         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
11435         * (pic16_popRegFromString): will not allocate a new register if it
11436         doesn't find one by name, bug may have introduced...
11437         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
11438         * (genIpush): revived to use pic16 port's stack,
11439         * (genAddrOf): added incomplete case for stack'ed operand,
11440         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
11441         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
11442         can handle multibyte operands,
11443         * src/pic16/glue.c (pic16_printIval*): some debug info added,
11444         * (pic16initialComments): added message for MPLAB compatibility
11445         mode enabled,
11446         * src/pic16/main.h: prototype for pic16_mplab_comp,
11447         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
11448         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
11449         * (_pic16_linkEdit): NEW, handles link stage, transferred here
11450         because of increased complexity of procedure,
11451         * (_process_pragma): stack pragma changed to format 'stack pos len',
11452         emit symbol '_stack_end' to conform with gplink,
11453         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
11454         to search for register,
11455         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
11456         PO_GPR_REGISTER,
11457         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
11458         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
11459         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
11460         case for PO_GPR_REGISTER,
11461         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
11462         dies, the new era is ahead !...
11463         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
11464         pic16_dynInternalRegs,
11465         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
11466         * (pic16_allocDirReg): minor optimizations and bug fixes,
11467         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
11468
11469         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
11470         load stack and frame pointer with address of 'stack_end' symbol
11471
11472 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
11473
11474         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
11475         without source code but only variable initializers
11476
11477 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
11478
11479         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
11480         external are not declared as extern to reduce overhead while linking
11481
11482 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
11483
11484         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
11485
11486 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
11487
11488         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
11489           Yee Keat for the patch
11490         * src/SDCCast.c (decorateType): fixed bug #979599
11491         * src/ds390/gen.h: removed local fReturnSizeDS390
11492         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
11493         * src/ds390/gen.c (genAnd, genOr, genXor),
11494         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
11495
11496 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
11497
11498         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
11499         add relFilesSet to $3, manipulate $2 to handle linking of object
11500         files without source files in command line,
11501         * device/include/pic16 (all headers): added ID location macros,
11502         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
11503         entries for ID location bytes,
11504         * (pic16_assignIdByteValue): NEW,
11505         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
11506         added field dumpcalltree to pic16_options_t,
11507         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
11508         is used instead of pic16_Gstack_base_addr, check if (ifx) before
11509         emitting rFalseIfx label after check_carry label,
11510         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
11511         pic16_emitDIRegs), NEW
11512         * (pic16glue): dump .calltree file when option --calltree found,
11513         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
11514         * (_pic16_genAssemblerPreamble): emit ID locations after
11515         configuration registers,
11516         * (pic16_linkCmd): modifications of the link command,
11517         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
11518         * (pic16_pCodeInitRegisters): don't init stack registers,
11519         * (pic16_findPrevInstruction): fixed bug,
11520         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
11521         bug with immediate registers,
11522         * (buildCallTree): traces stack push and pop,
11523         * (pct2): dump also stack usage for each function,
11524         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
11525         * (pic16_allocDirReg): various modifications,
11526         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
11527         fixed to 1,
11528
11529 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
11530
11531         * src/pic16/pcode.c: removed buggy double colon
11532
11533 2004-07-01 Borut Razem <borut.razem AT siol.net>
11534
11535         * support/scripts/sdcc.nsi: added include/pic16 to setup
11536
11537 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
11538
11539         * device/lib/Makefile.in: fixed bug in target objects-pic16,
11540         * device/lib/pic16/Makefile: prefixed with dash (-) command under
11541         target 'clean',
11542         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
11543         specific command line arguments. Also added sample lkr script
11544         for placing a variable at a specific memory bank.
11545         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
11546         at a specific memory bank,
11547         * (pic16_dump_isection): fixed bug which caused string literals to
11548         be omitted when dumping idata section,
11549         * (pic16_groupRegistersInSection): added code to handle registers
11550         in specific memory banks,
11551         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
11552         public, all references are renamed too,
11553         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
11554         AOP_DPTR2,
11555         * (pic16_storeForReturn): added case to handle when dest is WREG,
11556         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
11557         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
11558         pic16_rel_udata, check to see if that register is marked as being
11559         a member of a specific memory bank,
11560         * (pic16_printIvalCharPtr): added code to add string literals either
11561         to code or the idata sections,
11562         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
11563         also accept the 'udata' pragma,
11564         * src/pic16/main.h: new structure types sectName and sectSym
11565         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
11566         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
11567         * (pic16_findPrevInstruction): fixed, it returned nothing,
11568         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
11569         instruction combinations,
11570         * (pic16_FixRegisterBanking): heavily reorganised,
11571         * (pic16_AnalyzeBanking): if generating banksel directives is
11572         disabled, then don't call FixRegisterBanking at all,
11573         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
11574         completely removed,
11575         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
11576
11577 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
11578
11579         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
11580         Phuah Yee Keat <yk.phuah AT nestac.com>
11581
11582 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
11583
11584         * src/pic16/glue.c (pic16createInterruptVect): function now emits
11585         correctly the IVT even if it is relocated to some other location
11586
11587 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
11588
11589         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
11590         * device/include/pic16/pic18f2220.h: NEW,
11591         * device/lib/pic16/libdev/pic18f2220.c: NEW,
11592         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
11593         * src/pic16/device.c (struct Pics16): added info for 18f2220,
11594         * src/pic16/device.h (struct pic16_options): added ivt_loc and
11595         nodefaultlibs, ivt_loc is the location of the interrupt vector
11596         table, and nodefaultlibs signs that default libraries should not be
11597         linked in link stage,
11598         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
11599         according to --ivt-loc argument,
11600         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
11601         when pragma stack is found,
11602
11603 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11604
11605         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
11606         256 (range check), 257 (do while), 258.a-f (bit banging
11607         f.e. on 3-wire SPI bus)
11608
11609 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11610
11611         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
11612         variables used exclusively within a loop
11613
11614 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
11615
11616         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
11617
11618 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11619
11620         * src/SDCClrange.c (computeClash): fixed bug #971834
11621
11622 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11623
11624         * src/mcs51/gen.c (genCmp): fixed bug #975903
11625         * src/hc08/gen.c (operandsEqu),
11626         * src/ds390/gen.c (operandsEqu),
11627         * src/z80/gen.c (operandsEqu),
11628         * src/pic/gen.c (operandsEqu),
11629         * src/pic16/gen.c (operandsEqu),
11630         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
11631         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
11632
11633 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11634
11635         * src/SDCCcse.c (cseBBlock): fixed bug #966963
11636
11637 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
11638
11639         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
11640         default case in switch statement,
11641         * glue.c (pic16_initPointer): expr is initialised via decoarteType
11642         to eliminate problem with initialisation of pointers, but problem
11643         still exists,
11644         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
11645         * (emitStaticSegment): removed various lines emitting debug info,
11646         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
11647         added processor registers for utilizing EEPROM,
11648         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
11649         configurable and set 8
11650
11651 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
11652
11653         * .version: increased version number to 2.4.2,
11654
11655         Cumulative patch for pic16 port
11656         * src/pic16/device.c: changed scheme to dump initial values for
11657         variables in idata segment, all print_idata* functions were removed,
11658         now the pic16_printIval* will be called,
11659         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
11660         * _pic16_printPointerType, pic16_printPointerType,
11661         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
11662         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
11663         NEW, similar to the respective functions in SDCCglue.c,
11664         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
11665         way, emitting hex bytes,
11666         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
11667
11668 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11669
11670         * src/avr/ralloc.c (serialRegAssign),
11671         * src/xa51/ralloc.c (serialRegAssign),
11672         * src/pic/ralloc.c (serialRegAssign),
11673         * src/pic16/ralloc.c (serialRegAssign),
11674         * src/hc08/ralloc.c (serialRegAssign),
11675         * src/z80/ralloc.c (serialRegAssign),
11676         * src/ds390/ralloc.c (serialRegAssign),
11677         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
11678
11679 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11680
11681         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
11682         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
11683
11684 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
11685
11686         Cumulative patch for pic16 port:
11687         * src/pic16/device.h (typedef PIC16_device) modified fields for
11688         defining microcontrollers,
11689         * src/pic16/device.c: added new info for all devices in Pics16 array,
11690         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
11691         to be optimised out by the pCode optimiser,
11692         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
11693         specially, bug reported by G.M. Gallant,
11694         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
11695         as force'd so that cannot be optimised out by pCode optimiser,
11696         * src/pic16/pcode.c,
11697         * src/pic16/pcodepeeph.c,
11698         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
11699         they are disabled by default, but can be enabled explicit with
11700         command argument --denable-peeps, for testing,
11701         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
11702         --pomit-ivt in COMPILE_FLAGS
11703
11704 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
11705
11706         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
11707           compilation on MSVC
11708
11709 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
11710
11711         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
11712
11713 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11714
11715         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
11716         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
11717
11718 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
11719
11720         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
11721         would only assign 0x300001 register.
11722
11723 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
11724
11725         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
11726         in COMPILE_FLAGS. Thanks to G. Gallant for report.
11727
11728 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11729
11730         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
11731         for ds80c400
11732         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
11733         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
11734         added peephole 254 (left shift), 255 (jump table)
11735
11736 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
11737
11738         * device/lib/Makefile.in: removed comment line with model-pic16,
11739         * (target port-specific-objects-pic16): the libraries and objects
11740         are copied to the build directory form the device/lib/pic16/bin
11741         directory
11742
11743         Cumulative patch concerning pic16 port:
11744         * library directory has been re-organized,
11745         * added support for PIC18F1220,
11746         * added headers and library sources for chips 18f1220,18f6520,
11747         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
11748
11749         * configuration registers setting has changed, now each supported
11750         device has a complete description of the registers it uses,
11751         * all initialisations are moved to idata sections, these section
11752         can be absolute or relocatable,
11753         * fixed initialisation of codespace variables,
11754         * fixed warning about PCLATU and gpsim,
11755         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
11756         * (genAssign): use table reads when assigning from variables in codespace,
11757         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
11758         char/int variables placed in codespace,
11759         * (pic16_emitConfigRegs): NEW, emits a list with configuration
11760         registers set in .asm file, no need for --pomit-config-words anymore,
11761         * (pic16glue): some 8051 legacy segments are commented out
11762         (to be removed completely),
11763         * added support for alternative assembler and linker with --asm=
11764         and --link= command line arguments,
11765         * peepholes are disabled automatically in the port, no need to
11766         specify on command line,
11767         * port supports natively char/int/long multiplication, but converts
11768         all divisions to support functions,
11769         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
11770         to the file set in variable $2,
11771         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
11772         strings in ASCII format and not in hex,
11773         * ralloc.c (serialRegAssign): added a triplet of conditional calls
11774         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
11775         allocate proper register if iCodes aren't temporary,
11776
11777 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
11778
11779         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
11780
11781 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
11782
11783         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
11784         is commented out
11785
11786 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11787
11788         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
11789         computed address is reused
11790         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
11791         multi-byte bitfields
11792
11793 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11794
11795         * src/z80/gen.c: (genArrayInit): must check for pointers too
11796
11797 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11798
11799         * support/regression/tests/zeropad.c: never meant to commit the
11800           nestedstruct test: removed, added check for GCC version
11801
11802 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
11803
11804         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
11805         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
11806         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
11807           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
11808           bugs 928906 and 954082 half-empty initializers
11809         * src/SDCCsymt.h,
11810         * src/SDCCsymt.c (getAllocSize): added for above fix
11811         * src/z80/gen.c (genArrayInit): fixed bug 741044
11812         * support/regression/tests/zeropad.c: added tests
11813
11814 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
11815
11816         * src/pic16/device.c (pic16_dump_section): corrected bug which
11817         caused some symbols of the libraries to be misplaced
11818
11819 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11820
11821         * src/pic16/glue.c,
11822         * src/pic16/ralloc.h,
11823         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
11824         to fix conflict with pic port
11825
11826 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11827
11828         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
11829         externs configuration variables,
11830         * src/pic16/ralloc.h,
11831         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
11832         prototype in header, commented out some debug messages
11833
11834 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
11835
11836         * src/pic16/glue.c,
11837         * src/pic16/main.c,
11838         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
11839         for gpasm COFF object generation. Thanks to D. Hawkins for
11840         his patch info
11841
11842 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11843
11844         * src/ds390/main.c,
11845         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
11846         Brock for spotting this)
11847         * src/ds390/gen.c (genEndFunction),
11848         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
11849         interrupt handler and critical. Disable push/pop optimizations when
11850         peephole optimizations disabled.
11851
11852 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11853
11854         Updated pic16 library sources and headers.
11855         * device/lib/pic16/pic18f*/ ,
11856         * device/include/pic16/*.h: modified to handle structured SFR
11857         definitions
11858
11859 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11860
11861         * src/port.h (PORT structure): added hook initPaths, now each
11862         port can declare its own default search paths,
11863         which can been seen with the --print-search-dirs option,
11864         see pic16 port for example,
11865         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
11866         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
11867         * (doPrintSearchDirs): NEW, replaces in a central manner the
11868         printing of search dirs which was split in set*Paths functions,
11869         * (main): added call to port->initPaths and doPrintSearchDirs,
11870         * src/avr/main.c,
11871         * src/ds390/main.c,
11872         * src/hc08/main.c,
11873         * src/izt/i186.c,
11874         * src/izt/tlcs900h.c,
11875         * src/mcs51/main.c,
11876         * src/pic/main.c,
11877         * src/pic16/main.c: modified port structures to reflect addition of
11878         initPaths hook,
11879
11880         * src/pic16/device.c (regCompare): registers are finally sorted by name,
11881         * (pic16_dump_section): for registers in same address reserve memory once,
11882         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
11883         to no_banksel,
11884         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
11885         result is greater in size than right or left,
11886         * (pic16_genUMult8X8_8): there are some cases where the result can
11887         be 16 bits size, so handle these,
11888         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
11889         * (pic16_outBitC): modified to emit pcodes,
11890         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
11891         or not,
11892         * (genDivOneByte): implemented algorithm to divide 8-bits,
11893         * (genCmp): uncommented goto, but issues still exist,
11894         * (genAnd): fixed a bug with variables >8bits,
11895         * (genPackBits): optimization added that uses BCF/BSF to change a
11896         single bit,
11897         * (genAssign): fixed bug when assigning floating point literals,
11898         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
11899         __sdcc_gsinit_startup label,
11900         * src/pic16/main.c (_pic16_init): removed search directory
11901         initialisations,
11902         * (_pic16_initPaths): NEW, used to initialise search directories,
11903         * (_hasNativeMulFor): support functions for all except char/int
11904         multiplication, and char division,
11905         * (PIC16_port struct): modified entry for native mul support,
11906         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
11907         no_banksel option,
11908         * (buildCallTree): call to register_usage is ifdef'ed out,
11909
11910 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11911
11912         * device/include/string.h: applied Stas Sergeev's patch to make this
11913         header file compatible with the preprocessor -Wundef option
11914         * src/SDCCmain.c (main): abort compilation if preprocessor reports
11915         failure (fixes bug #941458)
11916
11917 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11918
11919         * src/SDCCopt.c (killDeadCode): fixed bug #907733
11920         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
11921         that the variable, not the function, should be static
11922         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
11923         to be consistent with non-literal case
11924
11925 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11926
11927         * src/SDCCast.c (isConformingBody): fixed bug #949967
11928         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
11929         convilong): fixed bug #952086
11930
11931 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11932
11933         * src/SDCCmem.c (allocVariables): fixed bug #955321
11934
11935 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11936
11937         * src/hc08/main.c (_hc08_genAssemblerEnd),
11938         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
11939         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
11940         completely eliminated the use of a temporary file
11941         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
11942         when more than one file linked
11943         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
11944
11945 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11946
11947         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
11948         which fixes bug #543481
11949         * support/regression/tests/bug-751703.c: fixed comments left from a
11950         cut and paste error
11951         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
11952         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
11953         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
11954         scopes
11955         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
11956         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
11957         are now changed to underscores in moduleName
11958
11959 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11960
11961         * as/mcs51/lkmem.c: better fix for bug #954173
11962
11963 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
11964         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11965
11966         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
11967         * device/include/c8051f000.h,
11968         * device/include/c8051f120.h,
11969         * device/include/c8051f300.h,
11970         * device/include/c8051f310.h,
11971         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
11972         PWM16) and detab'ed
11973
11974 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11975
11976         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
11977         and mailing lists, doc'ed --no-peep-comments, removed reference
11978         to knoppix (newest version has no LyX/LaTeX), other minor changes
11979         * src/SDCCglue.c (glue): save 2 bytes stack space with
11980         option --main-return. The ljmp could probably be avoided too
11981
11982 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11983
11984         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
11985
11986 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11987
11988         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
11989         * src/SDCCopt.c (isLocalWithoutDef),
11990         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
11991         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
11992         (credit to Maarten Brock for patch #949363, on which this is based)
11993         * support/regression/tests/bug-751703.c: some test cases of extern used
11994         within inner scopes.
11995
11996 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11997
11998         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
11999         SPEC_STRUCT
12000         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
12001         struct definitions
12002         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
12003         dwWriteLabel): fix to create valid debugger symbols even when
12004         the module name has non-alphanumeric symbols in it
12005         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
12006         when a variable's allocation has been optimized away
12007
12008
12009 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12010
12011         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
12012         * src/hc08/main.c,
12013         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
12014         * src/mcs51/main.c,
12015         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
12016         * src/ds390/main.c,
12017         * src/z80/gen.c (z80_emitDebuggerSymbol),
12018         * src/z80/main.c,
12019         * src/pic/gen.c (pic14_emitDebuggerSymbol),
12020         * src/pic/main.c,
12021         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
12022         * src/pic16/main.c,
12023         * src/avr/gen.c (avr_emitDebuggerSymbol),
12024         * src/avr/main.c,
12025         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
12026         * src/xa51/main.c,
12027         * src/SDCCdebug.c (emitDebuggerSymbol),
12028         * src/SDCCdebug.h,
12029         * src/port.h: added a debugger struct to the port struct. Added a
12030         callback for defining debugger symbols
12031
12032         * src/SDCCast.c (createLabel),
12033         * src/SDCC.y (labeled_statement): mark all compiler generated labels
12034         with isitmp = 1
12035         * src/SDCCicode.h,
12036         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
12037         iCode back to the ast for the function
12038
12039         * src/hc08/ralloc.c (hc08_assignRegisters),
12040         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
12041         unneeded fields from the regs struct.
12042         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
12043         pushReg() & pullReg() functions instead of emitcode()
12044
12045         * src/hc08/gen.c (genLabel, genhc08Code),
12046         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
12047
12048         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
12049         debugger hooks
12050
12051         * src/hc08/gen.c (genEndFunction, genhc08Code),
12052         * src/hc08/gen.h,
12053         * src/mcs51/gen.c (genEndFunction, gen51Code),
12054         * src/mcs51/gen.h,
12055         * src/ds390/gen.c (genEndFunction, gen390Code),
12056         * src/ds390/gen.h,
12057         * src/z80/gen.c (genEndFunction, genZ80Code),
12058         * src/z80/gen.h,
12059         * src/z80/z80.h,
12060         * src/pic/gen.c (genEndFunction, genpic14Code),
12061         * src/pic/gen.h,
12062         * src/pic16/gen.c (genEndFunction, genpic16Code),
12063         * src/pic16/gen.h,
12064         * src/avr/gen.c (genEndFunction, genAVRCode),
12065         * src/avr/gen.h,
12066         * src/xa51/gen.c (genEndFunction, genXA51Code),
12067         * src/xa51/gen.h,
12068         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
12069         specific code to cdbFile.c and out of the backend code generators
12070
12071         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
12072         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
12073         starting address is now 0
12074
12075         * as/hc08/asm.h,
12076         * as/hc08/m08pst.c,
12077         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
12078         assembler directive for DWARF support
12079         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
12080
12081         * src/src.dsp,
12082         * src/Makefile.in,
12083         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
12084
12085 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12086
12087         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
12088         and inappropriate peephole optimization in jump tables
12089
12090 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12091
12092         * as/hc08/m08pst.c,
12093         * src/SDCCglue.c: sdccopt works for the hc08 port now
12094
12095 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
12096
12097         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
12098
12099 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12100
12101         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
12102
12103 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12104
12105         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
12106         rules
12107         * src/SDCCmain.c,
12108         * src/SDCCglobl.h,
12109         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
12110         comments from the peephole optimizer replacement rules
12111         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
12112         symbols
12113         * src/SDCCcse.c (updateSpillLocation),
12114         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
12115         equivalents
12116         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
12117         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
12118         objects far pointers
12119
12120 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12121
12122         * src/SDCCsymt.h: a missing part of my last change
12123         * src/pic/ralloc.c (regTypeNum),
12124         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
12125
12126 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12127
12128         * src/SDCCicode.h,
12129         * src/SDCCicode.c (aggrToPtrDclType),
12130         * src/SDCCptropt.h,
12131         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
12132         ptrPseudoSymConvert),
12133         * src/pic/ralloc.c (regTypeNum),
12134         * src/pic16/ralloc.c (regTypeNum),
12135         * src/hc08/ralloc.c (regTypeNum),
12136         * src/ds390/ralloc.c (regTypeNum),
12137         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
12138         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
12139
12140 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12141
12142         * link/z80/lkmain.c (afile),
12143         * as/hc08/lkmain.c (afile),
12144         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
12145         prevent a pointer problem when a filename has no directory and
12146         no extension specified.
12147
12148 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12149
12150         * link/z80/lkmain.c (afile): allow periods in directory names
12151         * link/z80/lkmain.c (afile),
12152         * as/mcs51/lkmain.c (afile),
12153         * as/hc08/lkmain.c (afile): allow linker script file to have an
12154         extension other than ".lnk"
12155         * link/z80/lklex.c (getfid),
12156         * link/z80/lkmain.c (parse),
12157         * as/mcs51/lklex.c (getfid),
12158         * as/mcs51/lkmain.c (parse),
12159         * as/hc08/lklex.c (getfid),
12160         * as/hc08/lkmain.c (parse): Support comments in the linker script
12161         file on lines by themselves and after filenames
12162
12163 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12164
12165         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
12166
12167 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12168
12169         * src/z80/peeph-z80.def: removed some peephole rules that don't
12170         work with multibyte arithmetic (fixed bug #937126)
12171         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
12172         to registers and not global variables
12173         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
12174         geniCodePreInc, geniCodePostDec, geniCodePreDec,
12175         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
12176         checking for assignments not internally generated (fixed bug #931895)
12177         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
12178         structure member (fixed bug #930072)
12179
12180 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12181
12182         * src/SDCCmain.c (linkEdit),
12183         * src/hc08/main.c (_hc08_parseOptions),
12184         * as/hc08/Makefile.in,
12185         * as/hc08/aslink.h,
12186         * as/hc08/asm.h,
12187         * as/hc08/m08pst.c,
12188         * as/hc08/lkrloc.c (relr, rele),
12189         * as/hc08/lkarea.c (lnkarea)
12190         * as/hc08/lkmain.c (afile, parse),
12191         * as/hc08/lkelf.c: support for ELF output
12192         * as/hc08/lks19.c (s19),
12193         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
12194
12195 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12196
12197         * as/mcs51/lkihx.c: Fixed bug #899105.
12198
12199 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12200
12201         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
12202         .dsp files from Unix to DOS.
12203
12204 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12205
12206         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
12207         function pointers; we have been compliant for several months now.
12208         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
12209         change that was accidently commented out
12210         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
12211         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
12212         bug #922319
12213
12214 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12215
12216         * src/hc08/gen.c: output of all of the internal debugging information
12217         is now controlled by the D() macro; it is disabled by default
12218
12219 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12220
12221         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
12222         harder to keep the same registers during a CAST iCode
12223         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
12224         long via int can be done in a single cast, if the signedness is
12225         correct.
12226         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
12227         putchar() in tinibios.c in ds390's library
12228
12229 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
12230
12231         * src/SDCCast.c (decorateType): fixed bug #898889,
12232         cast result of a literal complement too
12233         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
12234         fixed check for bitfields
12235
12236 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
12237
12238         * src/SDCCicode.c (geniCodeLogic): made it static,
12239         (geniCodeLogicAndOr): added in order to fix bug #905492,
12240         (ast2iCode): fixed bug #905492
12241         * support/regression/tests/bug-905492.c: added
12242         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
12243         (processParms): fixed bug #927659: don't copy parms, this will clear
12244         decorated flag
12245         * support/regression/tests/bug-927659.c: added
12246
12247 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
12248
12249         * src/SDCCast.c (addCast): don't cast float to char
12250         * device/lib/libsdcc.lib: added _memmove
12251
12252 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
12253
12254         * device/lib/large/Makefile: fixed parallel execution by
12255         replacing `make` by `$(MAKE)`
12256
12257 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12258
12259         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
12260         offsets (fixes bug #923936)
12261
12262 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
12263
12264         * device/lib/small/Makefile: fixed parallel execution by
12265         replacing `make` by `$(MAKE)`
12266
12267 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
12268
12269         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
12270
12271 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
12272
12273         * src/pic/gen.c (genCpl): multi-byte complements were not working.
12274         * src/regression/Makefile: Regression test was not running.
12275
12276 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
12277
12278         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
12279         complement if possible
12280         * src/SDCCval.c (valComplement),
12281         * src/SDCCicode.c (operandOperation): fixed complement of literal
12282         * support/regression/tests/onebyte.c (testComplement): added
12283
12284 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
12285
12286         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
12287         return an optimized tree; actually replace actParm with the new tree
12288         * src/SDCCast.h: added some parantheses to remove side effects
12289         * support/regression/tests/bug-920866.c
12290
12291 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
12292         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
12293         Bit operands were not being handled properly in the pic14 port.
12294         (now src/regression/add.c passes again).
12295
12296 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12297
12298         * src/SDCC.y (labeled_statement): case and default no longer require
12299         a following statement (RFE #893037)
12300
12301 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12302
12303         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
12304         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
12305         disabled (fixes bug #916294)
12306         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
12307         "mov a,acc"; patch provided by Lenny Story
12308         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
12309
12310 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12311
12312         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
12313         functions
12314         * src/ds390/gen.c (genFunction, genEndFunction),
12315         * src/ds390/ralloc.c (ds390_assignRegisters),
12316         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
12317         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
12318         pushed if there are parameters passed on the stack. Also, a cleaner
12319         way to decide if r0/r1 should be pushed/popped. (Together they fix
12320         bug #918693)
12321
12322 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12323
12324         * doc/sdccman.lyx,
12325         * device/lib/mcs51/crtpagesfr.asm,
12326         * device/lib/mcs51/crtxinit.asm,
12327         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
12328         to avoid confusion with Si Lab's SFRPAGE register.
12329
12330 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12331
12332         * src/SDCCglue.c (emitMaps): allow public sfr variables
12333         * src/SDCCglue.c (initialComments): include compiler build date
12334         with compiler version and put the timestamp of the generated
12335         assembly file on a serperate line to be less confusing.
12336         * src/port.h: added genInitStartup hook
12337         * src/avr/main.c,
12338         * src/ds390/main.c,
12339         * src/hc08/main.c,
12340         * src/pic/main.c,
12341         * src/pic16/main.c,
12342         * src/xa51/main.c,
12343         * src/z80/main.c: genInitStartup initialize as NULL (default to
12344         historical behaviour)
12345         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
12346         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
12347         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
12348         library instead of hard coding it into the compiler.
12349         * support/regression/ports/mcs51-stack-auto/spec.mk,
12350         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
12351         * device/lib/mcs51/Makefile,
12352         * device/lib/small/Makefile,
12353         * device/lib/large/Makefile,
12354         * device/lib/mcs51/crtpagesfr.asm,
12355         * device/lib/mcs51/crtstart.asm,
12356         * device/lib/mcs51/crtxclear.asm,
12357         * device/lib/mcs51/crtxinit.asm,
12358         * device/lib/mcs51/crtclear.asm,
12359         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
12360         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
12361         and into user configurable files.
12362         * device/lib/clean.mk: clean mcs51 directory too
12363         * support/regression/tests/longlit.c: added static to T1 declaration
12364         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
12365         accesses in the initialization code
12366
12367 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12368
12369         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
12370         OSCTRIMVAL as noted in bug #916008
12371
12372 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12373
12374         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
12375         in loops with multiple exits (reported as incorrect registers
12376         used by Martin Helmling in Sdcc-user list)
12377
12378 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12379
12380         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
12381         made ds390 register extensions look less like error messages
12382
12383 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12384
12385         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
12386         reported by Adam Wozniak in Sdcc-user list
12387
12388 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
12389
12390         * src/SDCCast.c (decorateType): fixed with bug and promotion in
12391         arithmetic optimizations, added debug output
12392
12393 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
12394
12395         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
12396         * sdcc.spec: updated and split sdcc into 3 rpms
12397         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
12398         needed for literals of LEFT_OP and '+'
12399         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
12400         introduced RESULT_TYPE_NOPROM
12401         (geniCodeMultiply): fixed logic for decision if mul is optimized to
12402         left shift
12403         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
12404         limited promotion to int only for '*'
12405         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
12406
12407 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
12408
12409         * src/pic16/gen.c (genSkip),
12410         (genc16bit2lit), (gencjneshort): commented out
12411         (is_LitOp): new helper function, checks operand type
12412         (genCmpEq): rewritten
12413
12414 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
12415
12416         * support/regression/tests/bug-908454.c: added
12417
12418 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
12419
12420         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
12421         * src/SDCCicode.c (usualBinaryConversions): op needs int type
12422         (geniCodeCast): cosmetic, don't preserve bit storage class
12423         (geniCodeLeftShift): added promotion
12424         (geniCodeLogic): fixed regression
12425         * src/SDCCsymt.c (computeTypeOr): accept bits too
12426         (compareType): 2nd part of fix for bug #908454, needed for bitfields
12427
12428 2004-03-07  Borut Razem <borut.razem AT siol.net>
12429
12430         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
12431
12432 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
12433
12434         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
12435         version of pic16_genPackRegisters which does not check if ic is a
12436         CAST operator,
12437         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
12438         function cause string1.c regression test fails
12439
12440 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
12441
12442         * sim/ucsim/configure.in,
12443         * sim/ucsim/configure,
12444         * sim/ucsim/doc/Makefile.in: use docdir
12445         * src/SDCC.y: fixed sbit atrributes
12446         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
12447         * src/SDCCast.c (decorateType): |^& need special promotion handling
12448         * src/SDCCast.h,
12449         * src/SDCCsymt.h: moved definition of RESULT_TYPE
12450         * src/SDCCsymt.h (computeType),
12451         * src/SDCCicode.c: computeType() needs op
12452         * src/SDCCsymt.c (checkTypeSanity),
12453         * doc/sddman.lyx: "plain" bitfields are unsigned
12454         * src/SDCCsymt.c (computeTypeOr): added
12455         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
12456         |^& ops
12457         * src/SDCCval.c (val*): computeType() needs op
12458         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
12459         * support/regression/tests/onebyte.c: added tests for |^&
12460
12461 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
12462
12463         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
12464         for writing icode into asm output.
12465
12466 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
12467
12468         * src/pic16/device.c: added some debug lines enabled
12469         with macro DEBUG_CHECK,
12470         * src/pic16/genarith.c: more debug in genPlus,
12471         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
12472         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
12473         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
12474         * (aopForSym): onStack symbols are re-placed in data memspace,
12475         and onStack flag is cleared,
12476         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
12477         copy temporary pcodeop,
12478         * (genPcall): added warning for not updating PCLATU,
12479         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
12480         always true for pic16 port,
12481         * (genMultOneWord): NEW, supports integer multiplication,
12482         * (genMult): modified to call genMultOneWord,
12483         * (ifxForOp): added warning when return NULL,
12484         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
12485         flag is set before call to operandFromSymbol for implicit
12486         added structures,
12487         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
12488         options.intlong_rent are set by default,
12489         * (_hasNativeMulFor): modified to allow port generation of integer
12490         multiplication,
12491         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
12492         set regtype to REG_SFR for all registers, restricting seting the
12493         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
12494
12495 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12496
12497         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
12498         more than 500 times in the regression tests
12499
12500 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12501
12502         * support/Util/SDCCerr.h,
12503         * support/Util/SDCCerr.c,
12504         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
12505         enumerator_list),
12506         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
12507         for symbol conflicts.
12508         * support/valdiags/tests/enum.c,
12509         * support/valdiags/tests/tentdecl.c,
12510         * support/valdiags/tests/struct.c: expect possible error messages
12511         referring to original symbol definitions.
12512         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
12513         * src/SDCCsymt.h,
12514         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
12515
12516 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
12517
12518         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
12519
12520 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
12521
12522         * src/pic16/ralloc.c (newReg): fixed bug #908929
12523
12524 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12525
12526         * src/ds390/gen.c: added missing #include "main.h"
12527
12528 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
12529
12530         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
12531         checking if symbol is already in set,
12532         * src/pic16/device.h: prototype for checkAddSym,
12533         * src/pic16/gen.c: (_G): added entry interruptvector,
12534         * (assignResultValue): removed some commented out lines,
12535         * (genFunction): check for ISR via sym->type, absolute section for
12536         interrupt code is created via a new pBlock, the goto instruction is
12537         placed now correctly at the interrupt vector position, changed all
12538         references from ivec to _G.interruptvector,
12539         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
12540         is the interrupt is a high priority one, same for return from ISR,
12541         * src/pic16/glue.c: changed all calls of addSetHead for publics and
12542         externs to calls of checkAddSym,
12543         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
12544         pic16_pcode_verbose flag is set,
12545         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
12546         * src/pic16/pcoderegs.c: message about how many registers are saved
12547         will only be emitted if pic16_pcode_verbose flag is set,
12548
12549 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12550
12551         * src/ds390/ralloc.h,
12552         * src/ds390/ralloc.c (ds390_regWithIdx),
12553         * src/ds390/gen.c (emitcode),
12554         * src/ds390/main.h,
12555         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
12556         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
12557         ds390operandCompare, getRegsRead, getRegsWritten,
12558         initializeAsmLineNode): customized instruction size calculation for
12559         ds390, started basis for some register optimizations
12560         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
12561         corresponding assembly output
12562         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
12563         missing push/pop of r0/r1. Optimized push/pops
12564
12565 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12566
12567         * src/mcs51/main.c (instructionSize): fixed ACALL size
12568         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
12569
12570 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
12571
12572         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
12573         the sorting of rlist with NULL elements
12574         * (print_idataType, print_idata): NEW to create idata sections
12575         * src/pic16/device.h: idataSymSet new variable
12576         * src/pic16/gen.c (genFunction): fixed some bugs in string
12577         comparing, improved the absolute section creation for ISRs,
12578         added FSR0L/FSR0H in registers that are saved in an ISR,
12579         * (genInline): fixed the processing of inline snippets,
12580         now they undergo no process by the peephole optimizer
12581         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
12582         are placed in idataSymSet,
12583         * (pic16emitStaticSeg): extern symbols are added in externs,
12584         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
12585         switching when aboslute variables are placed in access bank memory
12586         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
12587         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
12588         commented out with #if,
12589         * (pic16_packRegisters): reintroduce the check for CAST because some
12590         symbols are not correctly handled,
12591         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
12592         pCodeInstruction instead of pCode,
12593         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
12594         pCodeAsmDir definition,
12595         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
12596         directive, then the argument directive is emitted without the leading
12597         tab, hack for inline labels which must be in the first column,
12598         * (compareLabel,pic16_findNextInstruction),
12599         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
12600         * (insertBankSwitch): modified for the new pCodeAsmDir,
12601
12602 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12603         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
12604
12605         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
12606         instance,
12607         * (pushSide): commented out with #if,
12608         * (assignResultValue): fixed some typos in saving
12609         registers,
12610         * (genPcall): FIXED and sync'ed with genCall,
12611         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
12612         * (genNearPointerGet): fixed to handle some more cases,
12613         implementation scheme via table reads,
12614         * (genConstPointerGet): modified to access code memory correct,
12615         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
12616         and improved to handle some cases
12617         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
12618         instead of "RETLW" for init data
12619         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
12620         not IN_DIRSPACE, work around to reduce bank switching when aboslute
12621         variables are placed in access bank memory (<0x80 and >=0xf80),
12622         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
12623         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
12624         TBLWT_POSTDEC,TBLWT_PREINC
12625         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
12626         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
12627         directives
12628         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
12629         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
12630         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
12631         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
12632
12633 2004-02-29  Borut Razem <borut.razem AT siol.net>
12634
12635         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
12636         support/Util/findme.h, support/Util/system.h: enhance binary relative
12637         search for lib and include by using findProgramPath()
12638
12639 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12640
12641         * src/SDCCpeeph.h,
12642         * src/SDCCpeeph.c (pcDistance),
12643         * src/port.h,
12644         * src/mcs51/ralloc.h,
12645         * src/mcs51/ralloc.c (mcs51_regWithIdx),
12646         * src/mcs51/main.h,
12647         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
12648         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
12649         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
12650         size calculation port specific, started basis for some register
12651         optimizations
12652         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
12653         missing push/pop of r0/r1. Optimized push/pops
12654         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
12655         * device/lib/_modsint.c (_modsint),
12656         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
12657         and stack version so regression tests pass
12658
12659 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
12660
12661         * src/Makefile.in (dep): include SLIBOBJS in dependency check
12662         * src/SDCCast.c (decorateType): catch another small optimization
12663         with '?' operator
12664         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
12665         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
12666         modified to finally use computeType() all over SDCC,
12667         see Feature Request #877103
12668         * src/SDCCval.h: cosmetic
12669         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
12670         valCompare(); regression tested in muldiv.c
12671         * support/regression/tests/muldiv.c (testMod): mod sign follows
12672         dividend only
12673
12674 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
12675
12676         * src/SDCCast.c (decorateType): fixed bug #902362
12677         * doc/INSTALL.txt: fixed install instructions for win32
12678
12679 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
12680
12681         * device/include/Makefile.in (install): fixed by replacing spaces
12682         by tabs
12683         * doc/README.txt,
12684         * doc/INSTALL.txt: updated for release
12685         * doc/sdccman.lyx: added warning for --xstack being buggy
12686
12687 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
12688
12689         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
12690         to eliminate build warnings.
12691         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
12692
12693 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
12694            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12695
12696         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
12697         removed -penable-stack, added comment for stack pragma, added
12698         warning for not initializing the stack/frame registers, removed
12699         comment at interrupts section
12700
12701         Stack is made permanent, there is no ability to disable stack usage.
12702         * src/pic16/device.h,
12703         * src/pic16/device.c: removed all references to USE_STACK macro,
12704         * src/pic16/device.c (pic16_dump_section): when no elements in
12705         rlist, free rlist before return,
12706         * (pic16_dump_int_registers): NEW, internal registers are a new set
12707         of general purpose registers reused by each function,
12708         * (checkAddReg): returns 1 if registers is added to set,
12709         * (pic16_groupRegistersInSection): when a registers is of type
12710         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
12711         * src/pic16/device.h: memRange and Assigned Memory are deleted,
12712         SRCASECMP macro is moved here from device.c
12713         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
12714         PO_PCLATU, PO_PRODL, PO_PRODH,
12715         * (pic16_pCodeOpType, genMinus,
12716         changed compares to "a" register, with AOP_ACC,
12717         * (pic16_genPlus): fixed some bugs and indented properly,
12718         * (pic16_addSign): changed size to size+offset in the MOVWF
12719         instruction,
12720         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
12721         multiply 8-bit operand by literal, result is 8-bit,
12722         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
12723         multiply 2 8-bit operand, result is 8-bit,
12724         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
12725         genUMult8X*_16,
12726         * src/pic16/gen.c: changed accUse to contain WREG only,
12727         * (pic16_emitcomment): renamed to pic16_emitpcomment,
12728         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
12729         true, do not use immediate addressing any more unless sym is a
12730         pointer in codespace,
12731         * (aopForRemat): do not use immediate addressing when symbol not in
12732         codespace and when symbol's address is requested,
12733         * (aopOp): for-loop in if(sym->accUse) is modified for the new
12734         accUse size (= 1),
12735         * (aopGet): added case for AOP_ACC and don't return "accumulator
12736         bug" but WREG instead,
12737         * (popGetTempReg): pushes contents of temporary register in stack,
12738         * (popReleaseTempReg): pops contents of temporary register from
12739         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
12740         * (pic16_popGet): separated case AOP_ACC to return register WREG
12741         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
12742         or PO_IMMEDIATE and initializes their instance/offset appropriately,
12743         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
12744         the use of immediate pointers to certain cases only.
12745
12746         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
12747         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
12748         * (assignResultValue, genCall, genRet): modified to use the new
12749         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
12750         genPcall is still broken,
12751         * (genFunction): added code to create 'A' type pBlocks when
12752         interrupt functions are generated, code not extensively tested yet,
12753         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
12754         * (genEndFunction): modified so ISRs pop stored registers from stack,
12755         * (genMultOneByte): cleanup,
12756         * (AccRsh): added flag andmask, to and result with appropriate mask,
12757         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
12758         * (genDataPointerGet): fixed and reenabled its use,
12759         * (genNearDataPointerGet): bugs fixed,
12760         * (genDataPointerSet): bugs fixed,
12761         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
12762         pic16_DumpSymbol, pic16_DumpOp,
12763         * src/pic16/genutils.h: function prototypes for the above functions,
12764         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
12765         pointers,
12766         * (pic16emitRegularMap): many many many improvements, but needs a
12767         major cleanup,
12768         * src/pic16/main.c: enable_stack in pic16_options is removed,
12769         * (_pic16_parseOptions): removed command line options -penable-stack,
12770         * (_process_pragma): emit stack symbol only when stack pragma is
12771         processed,
12772         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
12773         redirected to FSR0L/FSR0H pair,
12774         * (pic16_get_op, pic16_get_op2): modifications and improvements,
12775         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
12776         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
12777         for immediates,
12778         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
12779         * (dumpPicOptype): NEW,
12780         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
12781         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
12782         with movff instruction,
12783         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
12784         added pic16_int_regs, some packRegsFor* functions are commented out,
12785         because produce errors,
12786         * src/pic16/NOTES: minor modifications
12787
12788 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12789
12790         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
12791         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
12792         --pack-iram.
12793         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
12794         * as/mcs51/lkaomf51.c: fixed bug #895763
12795
12796 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
12797
12798         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
12799
12800 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12801
12802         * doc/sdccman.lyx: added details about the HC08 storage classes and
12803         interrupts, fixed the register usage info for z80 & gbz80
12804
12805 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
12806
12807         * doc/sdccman.lyx: added more pic16 port documentation
12808         * device/include/pic16/: added header pic18fregs.h
12809
12810 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
12811
12812         * doc/sdccman.lyx: added Vangelis' contribution
12813
12814 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12815
12816         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
12817         extend to the next CALL or PCALL, not just to the next CALL.
12818
12819 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
12820
12821         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
12822
12823 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12824
12825         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
12826         bug #895752 and a better fix for bug #716790
12827
12828 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12829
12830         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
12831
12832 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12833
12834         * doc/sdccman.lyx: minor changes, minor changed
12835
12836 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
12837
12838         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
12839         which can't handle SDCC_NEWONEBYTEOPS,
12840         (geniCodeMultiply): removed conversion from mult to shift for pic14
12841         and pic16
12842
12843 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12844
12845         * src/hc08/gen.h,
12846         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
12847         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
12848         thus fixing bug #895406
12849
12850 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
12851
12852         * device/lib/_modsint.c,
12853         * device/lib/_modslong.c: sign follows divisor only
12854         * src/hc08/gen.c (genMultOneByte): if result size is 1,
12855         signs or signedness can be ignored
12856         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
12857         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
12858         added optimization for IFX,
12859         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
12860         arguments;
12861         reenabled optimization for IFX, which was removed on 2004-01-11
12862         * src/SDCCast.h: added return type IFX
12863         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
12864         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
12865         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
12866         SDCC_OLDONEBYTEOPS selects the old behaviour
12867         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
12868         changed again and commented promotion rule
12869         * src/SDCCval.c (valDiv): promotion no longer necessary
12870         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
12871         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
12872         rewritten
12873         * support/regression/tests/onebyte.c: added
12874
12875 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
12876
12877         * gen.c (genInline): reverted to old code for assemnling inline
12878         code because of bug reported James Chadd
12879
12880 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
12881
12882         * ralloc.h: missing declarations from previous patch,
12883         seems that patch for ralloc.h was never applied, fixed
12884
12885 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12886            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
12887
12888         * pcode.c,
12889         * pcode.h,
12890         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
12891         indirect addressing. Marked FSR0 as deprecated
12892         * gen.c (pointerCode): commented out, not needed now
12893         (pic16_popGet2p): new MOVFF helper function
12894         (genGenPointerGet),
12895         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
12896         (shiftRLong): removed duplicate debugging info
12897
12898 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12899
12900         * src/ds390/gen.c (genNearPointerGet),
12901         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
12902         optimization with bits, but not bitfields.
12903         * src/ds390/ralloc.c (packRegisters),
12904         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
12905
12906 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
12907
12908         * src/SDCCcse.c (algebraicOpts): copy operands before modification
12909
12910 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12911
12912         * src/SDCCsymt.h,
12913         * src/SDCCicode.c (operandFromSymbol),
12914         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
12915         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
12916         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
12917         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
12918         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
12919         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
12920         bug #892038
12921         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
12922         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
12923         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
12924         * src/SDCCsymt.c (newSymbol),
12925         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
12926         enumerator_list),
12927         * src/SDCCval.h,
12928         * src/SDCCval.c (newiList): fixed bug #885705
12929
12930 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12931
12932         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
12933         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
12934
12935 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12936
12937         * device/include/c8051f120.h,
12938         * device/include/c8051f300.h,
12939         * device/include/c8051f310.h: added/updated header files for Silicon
12940         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
12941         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
12942         in new section Submitting patches
12943
12944 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12945
12946         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
12947         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12948         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12949         genGenPointerSet),
12950         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
12951         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12952         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12953         genGenPointerSet),
12954         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
12955         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12956         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12957         genGenPointerSet),
12958         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
12959         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12960         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12961         genGenPointerSet): fixed bug #892400
12962         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
12963         to eliminate build warnings.
12964         * src/SDCCast.c (processParms),
12965         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
12966         fixed bug 751859
12967         * support/valdiag/valdiag.py: added GCC to the list of defines active
12968         when compiling with gcc
12969
12970 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12971
12972         * support/Util/SDCCerr.h,
12973         * support/Util/SDCCerr.c,
12974         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
12975         with an incomplete type (fixed bug #883734)
12976         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
12977
12978 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12979
12980         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
12981
12982 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12983
12984         * src/SDCCast.c (decorateType),
12985         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
12986         function pointer implementation
12987         * support/regression/tests/funptrs.c: added tests to verify both forms
12988         of function pointers work correctly. Added tests to verify parameters
12989         are passed in the correct order.
12990
12991 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
12992
12993         * device.c (regCompare): registers are sorted by ascending
12994         address and increasing size,
12995         * main.c (_pic16_finaliseOptions): removed the declaration
12996         of compiler macro MCU. Now a macro of the format pic18fxxxx
12997         will be defined from the command line
12998
12999 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
13000             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
13001
13002         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
13003         PCOP_RLCF was overwritten!
13004         * gen.c (genSkip): commented out calls to pic16_emitcode,
13005         * (genCmpEQ): fixed "long" compares, only high word did get compared,
13006         * (genlshTwo),
13007         * (genRRC): added debugging info,
13008         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
13009         overwritten while shifting,
13010         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
13011         overwritten while shifting,
13012         * (AccLsh),
13013         * (AccRsh),
13014         * (shiftLLeftOrResult),
13015         * (shiftRLeftOrResult),
13016         * (shiftRLong),
13017         * (shiftLLong): Implemented with pic16_emitpcode
13018         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
13019         * (genLeftShift): Fixed bug, operand for shift by variable always
13020         was "and"ed with 0x0f,
13021         * (genLeftShiftLiteral),
13022         * (genrshTwo),
13023         * (genRightShiftLiteral): added debugging info,
13024         * (genrshFour): added comment,
13025         * (genRightShift): determined signedness from operand "left"
13026         instead of "result"
13027
13028 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13029
13030         * src/SDCCicode.c (geniCodeParms),
13031         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
13032         function pointers, fixed function pointer bugs #861242 and #861896
13033
13034 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13035
13036         * device/include/c8051f000.h,
13037         * device/include/c8051f120.h,
13038         * device/include/c8051f300.h: added header files for Silicon
13039         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
13040
13041 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
13042
13043         * src/SDCCast.c (processParams): added new type flow and restructured
13044         (gatherAutoInit): added new type flow
13045         (addCast): cosmetic changes
13046         (getLeftResultType): added new type flow for array indices, patch
13047         provided by Stas, see FR #877103
13048         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
13049         array index patch by Stas
13050         * src/SDCCast.h: added prototype getResultTypeFromType()
13051         * src/SDCCval.h,
13052         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
13053         * src/pic/glue.c (pic14emitStaticSeg),
13054         * src/pic16/glue.c (pic16emitStaticSeg),
13055         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
13056         for initialization of symbols
13057         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
13058         * support/Util/SDCCerr.h:
13059         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
13060         * .version: bumped version number to 2.3.8
13061         * device/include/Makefile.in (install),
13062         * doc/Makefile (install): changed to 'rm `find ...`' construct to
13063         avoid warnings
13064
13065 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
13066
13067         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
13068         Slade Rich fixed an optimization bug
13069         * src/pic/pcodepeep.c,
13070         * src/pic/pcoderegs.c
13071         * doc/Makefile (install): added test for directory
13072
13073 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13074
13075         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
13076         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
13077         * src/pic/ralloc.c (getRegPtr, getRegGpr),
13078         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
13079         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
13080         * as/mcs51/asexpr.c (term),
13081         * as/hc08/asexpr.c (term): fixed bug #887146
13082
13083 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13084
13085         * src/z80/gen.c (genMult): handle single byte result product
13086         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
13087         DUMMY_READ_VOLATILE (fixed bug #886367)
13088
13089 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
13090
13091         * support/regression/tests/libmullong.c: fixed logic, on little endian
13092         hosts we ended without a mullong_wrapper()
13093
13094 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13095
13096         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
13097         virus/worm forged address usage.
13098
13099 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
13100
13101         Fixed promotion, it should be done on AST level:
13102         * src/SDCCast.c (addCast): added promotion to int
13103         (decorateType): updated call to upCast()
13104         * src/SDCCicode.c (geniCodeLeftShift): removed call to
13105         usualUnaryConversions()
13106
13107 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
13108
13109         * support/regression/tests/literalop.c (mulWrapper): Added a
13110         wrapper to remove integer overflow warnings.
13111
13112         * support/regression/tests/float_trans.c: Made work on host.
13113
13114         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
13115         location of sz80.
13116
13117         * support/regression/generate-cases.py (main): Changed from inline
13118         to a main method.
13119
13120         * doc/Makefile (install): Changed to depth first to get rid of
13121         missing directory install warning.
13122
13123         * as/Makefile (install-doc): Made work on Mac.
13124
13125 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
13126
13127         * src/SDCCast.c: added an additional type flow in decorateType() of
13128         opposite direction, see feature request #860006; it's enabled at runtime
13129         by setting the environment variable SDCC_NEWTYPEFLOW
13130         * src/SDCCast.h: changed prototype of decorateType()
13131         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
13132         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
13133         'char' to 'int' can be omitted, if both operands are 'unsigned char';
13134         see feature request #877103
13135         * src/SDCCval.c: updated call of decorateType()
13136         (valBitwise): fixed bug #882876
13137         (valMinus): added promotion
13138         (valLogicAndOr): result is unsigned
13139         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
13140         * src/SDCCsymt.c (computeType),
13141         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
13142         must not cause an unsigned operation
13143         * src/pic/glue (pic14emitRegularMap),
13144         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
13145
13146 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
13147
13148         * src/pic/pcode.c (PCodeID): commented out left over debug code
13149
13150 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
13151
13152         * support/valdiag/tests/overflow.c: added shift tests
13153         * src/pic/device.c,
13154         * src/pic/gen.c,
13155         * src/pic/gen.h,
13156         * src/pic/glue.c,
13157         * src/pic/main.c,
13158         * src/pic/pcode.c,
13159         * src/pic/pcode.h,
13160         * src/pic/pcodepeep.c,
13161         * src/pic/pcoderegs.c,
13162         * src/pic/ralloc.c,
13163         * src/pic/ralloc.h: applied patch from Slade Rich;
13164         added support for multiple code pages and multiple RAM banks on the
13165         PIC 14 port. The ASM files now no longer simply assume all the
13166         code / RAM are in the same page / bank. This means the linker can
13167         safely allocate code/RAM of separate ASM files to different pages/banks.
13168         * doc/sdccman.lyx: added Slade's tips
13169         * src/mcs51/peeph.def: fixed bug #880768
13170
13171 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13172
13173         * src/hc08/ralloc.c (rematStr): fixed bug #879282
13174         * src/SDCCast.c (decorateType): fixed bug #880197
13175
13176 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
13177
13178         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
13179         getopt.h.
13180
13181         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
13182         strtof is not part of C89 and isn't included with Mac OS X.
13183
13184 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13185
13186         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
13187         shiftL2Left2Result): fixed bug #879326
13188         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
13189         (genMultOneByte): fixed bug in signed vs unsigned multiplication
13190         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
13191         address fetch for clr instruction
13192         * device/lib/hc08/_mulint.c: created optimized assembly version
13193         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
13194
13195 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
13196
13197         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
13198         proposed in FR #877103
13199
13200 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
13201
13202         * src/SDCCval.c (cheapestVal): added missing checks
13203         * src/SDCCicode.c (usualBinaryConversions): fixed condition
13204         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
13205
13206 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
13207
13208         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
13209         equal operands
13210
13211 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
13212
13213         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
13214         loaded with the linker search paths (-L arguments) and the libraries
13215         to be linked with the current source (-l arguments). Changes
13216         currently will affect only the pic16 port.
13217         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
13218         include path the port specific paths and port specific libraries,
13219         * gplink command now contains the $3 argument,
13220         * src/pic16/device.h,
13221         * src/pic16/device.c,: structure PIC_device is made public and
13222         renamed to PIC16_device, the same for variable Pics which is renamed
13223         to Pics16. Updated all references to them.
13224         * src/pic16/glue.c (pic16glue): corrected bug with code
13225         initialization which bypassed the variable initializations block.
13226
13227         * device/lib/pic16/Makefile.rules: removed --penable-stack from
13228         COMPILE_FLAGS and added the --nostdinc option
13229
13230 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13231
13232         * device/include/mc68hc908jb8.h: Register defs for another member
13233         of the hc08 family. Contributed by Bjorn Bringert - thanks!
13234
13235 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
13236
13237         Documenting changes from previous commits.
13238         * configure.in (version 1.56),
13239         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
13240         when generating output files to configure the pic16 library,
13241         but now I've commented it out, since gputils aren't installed in the
13242         SF compile farm, so library won't compile
13243
13244         * device/lib/Makefile.in (version 1.56): initially I've added in
13245         target 'all' the prerequestive 'model-pic16' so it compiled the
13246         pic16 library, but now I've commented it out for the same reasons
13247         above,
13248         * added targets 'model-pic16' and 'objects-pic16' to compile the
13249         library
13250         * added target 'port-specific-objects-pic16' to handle the
13251         generated libraries and copy them into the build/ directory
13252         * added target 'clean-intermediate-pic16' to clean intermediate
13253         files into pic16 directory
13254         * in target 'installdirs' added line to create directory pic16 in
13255         the installation path
13256
13257         * device/include/Makefile.in (version 1.11): in target 'install'
13258         added lines to copy all header files to installation path,
13259         * in target 'installdirs' added line create directory for pic16
13260         headers in the installation path
13261
13262 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
13263
13264         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
13265          a function call
13266
13267 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
13268
13269         * configure,
13270         * device/lib/configure.in,
13271         * device/lib/configure: fixed for autoconf 2.57
13272
13273 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13274
13275         * src/z80/main.c (_parseOptions): fixed the portmode= command line
13276         option so that it actually works. Made it specific to the z80, since
13277         the gbz80 doesn't have these kinds of I/O ports.
13278
13279 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13280
13281         * device/include/z180.h,
13282         * device/lib/_memcpy.c,
13283         * device/lib/_memmove.c,
13284         * device/lib/_mulint.c,
13285         * device/lib/ser_ir.c,
13286         * device/lib/ser_ir_cts_rts.c,
13287         * device/lib/_strcmp.c,
13288         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
13289         * src/z80/main.c (_process_pragma): add support for pragmas bank and
13290         portmode; added deprecation warning for bank= and protmode= forms.
13291         Also, guard against buffer overflow.
13292         * src/z80/gen.c (aopGet): generate better code for sfr banked read
13293
13294 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13295
13296         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
13297         changed interrupt vector table generation to only emit declared vectors.
13298         * device/include/Makefile.in: added missing backslash
13299         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
13300
13301 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
13302
13303         Mainly changes to support compilation of the device libraries
13304         * src/pic16/device.c: stack is allocated via symbol and not
13305         via literal number. The symbol is placed in the corresponding
13306         position of the data ram
13307         * (pic16_dump_section): relocatable and absolute uninitialized
13308         data are now emitted in sorted order to reduce section naming,
13309         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
13310         weren't marked as being in the access bank,
13311
13312 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
13313
13314         Added portion of GNU PIC Library under the directory
13315         device/include/pic16 and device/lib/pic16. These files
13316         contain the declarations of SFRs for the PIC18Fxx2 devices.
13317         The directory is initialized via configure from toplevel.
13318
13319 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
13320
13321         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
13322         the spilllocations to be compared correctly
13323
13324 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
13325
13326         * src/SDCCast.c (decorateType): fixed bug introduced today
13327
13328 2004-01-12  Borut Razem <borut.razem AT siol.net>
13329
13330         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
13331         doc/sdccman.lyx: upper case pragmas are deprecated
13332
13333 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
13334
13335         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
13336         in simpler and even better code
13337
13338 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
13339
13340         * src/SDCCicode.c (operandOperation): fixed bug #874819
13341         * src/SDCCast.c (decorateType): fixed
13342         char foo (unsigned long ul) { return ul > 0; }
13343
13344 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13345
13346         * doc/sdccman.lyx: Moved and added some sections, small changes
13347         all over. Telling LaTeX to be less strict with word spacing
13348         to better keep the right margin. Changed some notes about
13349         maintainance of the ports in section 3.2.1 - is it OK like this?
13350
13351 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
13352
13353         SDCC source changes:
13354         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
13355         convilong): modified to inform the pic16 port that builtin functions
13356         are external
13357
13358         PIC16 PORT specific changes:
13359         * src/pic16/device.c pic16_dump_equates() added,
13360         processor registers declared internally by the port are emitted in
13361         the translation as equates,
13362         * src/pic16/gen.c: inline code is passed unprocessed to the
13363         translation,
13364         * (pic16_popGetLit2): fnuction modified to take second operand as
13365         pCodeOp pointer and not as literal,
13366         * (popRegFromIdx): prefixed with pic16_,
13367         * (pic16_popCombine2): modified to receive already allocated pCode
13368         operands,
13369         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
13370         * (genFunction): initializes local stack frame and pushes on stack
13371         all the registers used by this function,
13372         * (genEndFunction): restores all registers from stack and restores
13373         stack frame,
13374         * src/pic16/glue.c (pic16emitRegularMap): various changes and
13375         improvements,
13376         * (pic16glue): changed the program startup sequence,
13377         * added new dbName code 'A' for functions placed in absolute section
13378         * src/pic16/main.c: added function attribute _naked,
13379         * added pragma 'code' to place a fnuction at an absolute address,
13380         * added command line arguments --debug-ralloc and --pcode-verbose,
13381         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
13382         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
13383         * (pic16_newpCodeOpLit2): modified to take the second operand as
13384         pCodeOp pointer,
13385         * (pic16_printpBlock): modified to emit each function in a separate
13386         section,
13387         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
13388         UPPER for immediate operands,
13389         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
13390         instruction,
13391         * src/pic16/peeph.def: all peepholes with movff are commented out,
13392         because there is a problem in the pcode peep optimizer,
13393         * src/pic16/ralloc.c: the register allocator can now reuse local
13394         function symbols for another function. This saves register usage.
13395         * src/pic16/ralloc.h: added flag isLocal in structure regs,
13396
13397         Added file src/pic16/NOTES with information about program writing on
13398         the current port version.
13399
13400 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13401
13402         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
13403         and peephole 252 (array access)
13404
13405 2004-01-09  Borut Razem <borut.razem AT siol.net>
13406
13407         * src/SDCCmain.c : fixed #872250: -l command line defined library
13408           files are scanned before standard library files
13409
13410 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13411
13412         * src/SDCCast.c (decorateType): fixed bug #874046
13413
13414 2004-01-09  Borut Razem <borut.razem AT siol.net>
13415
13416         * support/scripts/sdcc.nsi: remove previous installation
13417
13418 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13419
13420         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
13421         bytes for last interrupt vector (mcs51)
13422         * sdcc.spec: fixed typo
13423
13424 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13425
13426         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
13427         gen51Code): more efficient parameter receive for --model-large
13428         ("bug" #845294)
13429
13430 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13431
13432         * src/ds390/main.c,
13433         * src/z80/main.c: added missed needLinkerScript flags (more than
13434         one port structure defined in these file)
13435         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
13436         bug #795325
13437
13438 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
13439
13440         * src/SDCCmain.c: removed various references to DEFAULT_PORT
13441         * src/port.h: added flag needLinkerScript in port->linker
13442         structure to inform whether to create a .lnk file or not,
13443         * src/avr/main.c,
13444         * src/ds390/main.c,
13445         * src/hc08/main.c,
13446         * src/mcs51/main.c,
13447         * src/pic/main.c,
13448         * src/pic16/main.c,
13449         * src/xa51/main.c,
13450         * src/z80/main.c: changed appropriately to configure
13451         needLinkerScript flag
13452         * src/pic/gen.c,
13453         * src/pic16/gen.c (genAddrOf): fixed bug #863624
13454         * src/pic/glue.c: added variable udata_section_name to
13455         override default uninitialized data segment definition for
13456         devices only with SHAREBANK memory (reported from Erik Epetrich)
13457         * (pic14emitOverlay): modified to emit a commented overlay segment
13458         directive when no overlay data exist
13459         * (picglue): modified to emit uninitialized data segment
13460         according to udata_section_name
13461         * src/pic/main.c (_pic14_parseOptions): added command line
13462         options --udata-section-name=[name] to override default
13463         udata definition name
13464         * modified _linkCmd and _asmCmd to include compiler passed
13465         arguments via -W option
13466         * src/pic16/main.c: added $l in _asmCmd, changed extension for
13467         object file from '.rel' to '.o' in port->linker structure,
13468         changed size of fptr from 2 to 3 in port structure
13469
13470 2004-01-07  Borut Razem <borut.razem AT siol.net>
13471
13472         * support/scripts/sdcc.nsi: update PATH
13473         * support/scripts/sdcc.ico: craeted
13474
13475 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
13476
13477         * device/include/Makefile.in: fix install
13478         * doc/Makefile: fix install
13479
13480 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13481
13482         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
13483         in bug #860505
13484         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
13485         how the function variable allocation summary is displayed; also
13486         include information about variables allocated to the overlay
13487         segment
13488
13489 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13490
13491         * as/mcs51/lkmain.c: Help about -Y option
13492         * as/mcs51/lkarea.c: Fixed gcc warnings
13493
13494 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
13495
13496         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
13497         fixed warning
13498         * support/valdiag/tests/overflow.c: added
13499         * src/SDCCast.c (decorateType),
13500         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
13501         LEFT_OP (left shift)
13502
13503 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13504
13505         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
13506         (default behaviour).
13507
13508 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13509
13510         A python script to validate compiler diagnostic messages. It can be
13511         used to verify that sdcc complains about bad c source code and
13512         gives a good location of the error.
13513         * support/valdiag/Makefile,
13514         * support/valdiag/valdiag.py,
13515         * support/valdiag/tests/*
13516
13517 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13518
13519         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
13520         * src/SDCCsymt.c (newEnumType),
13521         * src/SDCCsymt.h
13522         * support/Util/SDCCerr.c,
13523         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
13524         enum related bugs.
13525         * support/regression/tests/enum.c: added test for enum values that
13526         require at least 2 bytes of storage.
13527
13528 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
13529
13530         * src/common.h: added ifndef/define/endif macros
13531         around the header file.
13532         Bug reported from Jesus Calvino-Fraga
13533
13534 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
13535
13536         * sdcc.spec: updated
13537         * device/include/Makefile.in: don't install CVS directories
13538         * device/lib/Makefile.in: added removal of CVS directories after install
13539         * doc/Makefile: fixed install, added local_icons
13540         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
13541         * src/mcs51/gen.c (genRightShift): fixed bug #870788
13542         * src/ds390/gen.c (genRightShift): fixed bug #870788
13543         * src/SDCCast.c (decorateType): fixed bug #870781
13544
13545 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
13546
13547         PIC16 port related changes:
13548         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
13549         added variable stackPos,
13550
13551         * gen.c: genCall, assignResultValue: added support for
13552         pushing/retrieving function parameters to/from stack,
13553         genFunction,genEndFunction: setup stack frame for the
13554         generated function,
13555         genAddrOf: will be changed according to bug 863624
13556
13557         * added files genutils.c and genutils.h which contain gen*
13558         debugged and optimised functions extracted from gen.c
13559
13560         * glue.c: added variable 'externs' which holds extern symbols,
13561         pic16emitRegularMap: is modified to properly handle relocatable
13562          symbols under the new scheme,
13563         pic16createInterruptVect: is modified
13564         pic16printPublics: is modified to emit 'global' assembler directives,
13565         added pic16_printExterns to print extern symbols,
13566         pic16glue: initializes stack/frame pointer in the beginning of
13567         the assembly output. Temporary hack, will be corrected later,
13568         because gplink yet does not support stack and SDCC does not
13569         yet support a type of crt0.o object to create the final binary.
13570
13571         * Removed many lines that contain 8051 legacy code.
13572         * The code is finally placed under a 'code' directive.
13573         * Added port specific options.
13574
13575         * _process_pragma: simplified since now we do not need *special*
13576         include file to define SFR registers. But a separate header
13577         will be needed. This will be developed later.
13578         * _pic16_parseOptions: added, parses port specific options:
13579         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
13580         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
13581         --preplace-udata-with=
13582
13583         * _pic16_setDefaultOptions: modified to initialize section names,
13584         but hack is temporarly out of order since it needs improvement.
13585         * _pic16_genAssemblerPreamble: configuration words are emitted by
13586         their address instead of their name. This part is incomplete and
13587         supports only the 18Fxx2 devices. Other devices will emit an error
13588         during assembly since they do not contain the same set of config
13589         registers
13590         * _pic16_genIVT: is modified,
13591
13592         * pcode.c: added definitions for some hardware registers that are needed
13593         for stack support
13594         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
13595         All PCI entries are updated. Now LFSR is supported.
13596         * Removed pic16_pciTRIS is mentioned by mdubuc in source
13597         * added pic16_newpCodeOpLit2 to support instructions with
13598         two literal arguments
13599         * pic16_pCode2str: corrected code that emits assembler instructions
13600         with two literal operands and those that have an access bit modifier
13601         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
13602         this fixes a bug which caused some labels to be lost, when an
13603         assembler directive was added, i.e. banksel,
13604         * pic16_FixRegisterBanking: improved logic that causes the insertion
13605         of bank switching,
13606         * InlineFunction: functions that are called once, are not any more
13607         inlined. This can be a port option in the future,
13608
13609         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
13610
13611         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
13612         hold the corresponding uninitialized symbols,
13613         * pic16_allocProcessorRegister: registers have explicit marked the
13614         accessBank field,
13615         * pic16_allocInternalRegister: registers are explicit marked as
13616         not used,
13617         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
13618         processing list, so bit registers were lost,
13619         *
13620
13621         * ralloc.h: added field 'accessBank' and original symbol operand
13622         in register definition,
13623         * removed the field isMapped from register definition,
13624
13625         ** Several functions have been removed from various sources:
13626         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
13627         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
13628         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
13629         pic16_assignRelocatableRegisters
13630
13631         ** others have been introduced:
13632         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
13633         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
13634
13635 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
13636
13637         * support/scripts/inc2h.pl: changed definition of BIT_AT
13638         to emit 'sbit at' instead of 'bit at'. This was a request.
13639
13640         PIC16 port related preliminary changes:
13641         * gen.c: prefixed function popRegFromString with
13642         pic16_ and all references to it corrected
13643         * pcode.c: all pic16_pc_* hardware registers prefixed
13644         with underscore (_),
13645         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
13646         * ralloc.c: newReg(): when register is REG_SFR then
13647         set address to rIdx,
13648         pic16_allocProcessorRegister(): marks register wasUsed=0
13649         pic16_writeUsedRegs(): added a call to assign processor
13650         registers via pic16_assignFixedRegisters
13651
13652 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13653
13654         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
13655         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
13656         variables in unused register banks.  Also the SSEG is placed
13657         wherever there is enough space for it, and IDATA can be anywhere
13658         in internal RAM.  For now compile using -Wl-Y[stack_size].
13659         The mem file is different for this option as well, since it
13660         makes no sense of talking about DSEG lenght.
13661
13662 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
13663
13664         * src/SDCClrange.c: fixed bug 869095 that caused segfault
13665         in certain cases, e.g. when ROM assignment, patch provided
13666         from Albert den Haan.
13667
13668 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
13669
13670         Many signedness and type propagation fixes:
13671         * src/SDCCicode.c: made geniCodeCast() static
13672         replaced SPEC_ by IS_ (cosmetic)
13673         (operandOperation): fixed div and mod operation
13674         (usualBinaryConversions): added support for promotion of char
13675         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
13676         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
13677         (geniCodeAdd): an array index will stay unsigned, even if promoted
13678         from char to int
13679         (geniCodeArray): ditto
13680         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
13681         * src/SDCCsymt.c (computeType): added more support for char;
13682         promotion of char is selectable by promoteCharToInt, fixed signedness
13683         for all cases
13684         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
13685         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
13686         * src/SDCCval (val*): replaced signedness calculation by
13687         computeType()
13688         rearranged if-branches (cosmetic)
13689         (valShift): added warning W_SHIFT_CHANGED
13690         (valCompare): fixed problem with different types
13691         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
13692         * support/regression/tests/literalop.c: added many cases
13693         * support/regression/tests/ast_constant_folding.c: changed finally to
13694         'unsigned int'
13695         * .version: new year, new version: 2.3.7
13696         * src/SDCCmain.c (main): applied patch #866468
13697         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
13698         provided by Scott Bronson
13699         * doc/sdccman.lyx: updated documentation for sdcdb
13700         updated and added chapter tips
13701
13702 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13703
13704         * src/SDCCsymt.h: missing from yesterday's commits
13705
13706 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13707
13708         * src/SDCC.y (struct_or_union_specifier),
13709         * support/Util/SDCCerr.c,
13710         * support/Util/SDCCerr.h: verify that struct & union tags are used
13711         as declared.
13712
13713 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13714
13715         * src/SDCCglobl.h: missing from yesterday's commits
13716
13717 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13718
13719         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
13720         sft_attributes, struct_declaration, parameter_declaration,
13721         type_name, start_block, declaration_list),
13722         * src/SDCC.lex (check_type): support redefinition of typedef names
13723
13724 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13725
13726         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
13727         aligned xdata arrays. Erik helped me with the if clause.
13728
13729 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13730
13731         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
13732         warning
13733
13734 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13735
13736         * src/SDCCast.h,
13737         * src/SDCCast.c (newAst_),
13738         * src/SDCCicode.h,
13739         * src/SDCCicode.c (ast2iCode, newiCode),
13740         * src/SDCCglobl.h,
13741         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
13742         expr, statement, expression_statement, selection_statement,
13743         iteration_statement, expr_opt, jump_statement): foundation for tracking
13744         sequence points
13745         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
13746         point code too)
13747
13748 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13749
13750         * support/Util/SDCCerr.c,
13751         * src/SDCCast.h,
13752         * src/SDCCast.c (createCase, createDefault, decorateType),
13753         * src/SDCClabel.c (labelUnreach),
13754         * src/SDCC.y (labeled_statement, jump_statement): More improvements
13755         to error messages.
13756         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
13757         (with thanks to Stas Sergeev)
13758         * device/include/time.h,
13759         * device/lib/time.c (CheckTime): suppress unreachable code warning
13760
13761 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13762
13763         * src/SDCCast.c (createIvalCharPtr),
13764         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
13765         bug #753752)
13766         * support/regression/tests/nullstring.c: tests for these two bugs
13767
13768 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13769
13770         * support/Util/SDCCerr.h,
13771         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
13772         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
13773         about storage class and 'at' used inside struct or union
13774         * src/SDCCBBlock.c (iCodeFromeBBlock),
13775         * src/SDCCcse.c (ifxOptimize),
13776         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
13777         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
13778         printIval, emitStaticSeg, emitOverlay),
13779         * src/SDCClabel.c (deleteIfx),
13780         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
13781         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
13782         gatherAutoInit, processParms),
13783         * support/Util/SDCCerr.h,
13784         * support/Util/SDCCerr.c (werrorfl): Support for better error location
13785         reporting for post-parse errors.
13786
13787 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13788
13789         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
13790         implicit casts via union; they don't work on big endian systems
13791         (possible fix for bug #861138)
13792
13793 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13794
13795         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
13796         * src/mcs51/main.c: fixed the fix for bug #737001
13797
13798 2003-12-15  Borut Razem <borut.razem AT siol.net>
13799
13800         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
13801
13802 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13803
13804         * support/makebin/makebin.c: put output in binary mode
13805
13806 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13807
13808         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
13809         xdata and data memory on startup. Set the environment variable
13810         SDCC_NOGENRAMCLEAR to disable this.
13811         * src/mcs51/peephole.def,
13812         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
13813         (allows non-interrupt and interrupt code to safely compete for a resource
13814         without the non-interrupt code having to disable interrupts)
13815
13816 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13817
13818         * src/SDCCicode.c (geniCodeAdd),
13819         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
13820         with valFromType if type might be a pointer and host is big endian).
13821         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
13822         types, not just integer types.
13823         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
13824         multiply defined with mismatching "at" address.
13825
13826 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13827
13828         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
13829         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
13830         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
13831         with embedded nulls (fixed bug #753752)
13832
13833 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13834
13835         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
13836         Apparently this did not see much testing (endless loop)
13837
13838 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13839
13840         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
13841
13842 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13843
13844         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
13845         gracefully handle NULL memmap pointers
13846
13847 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13848
13849         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
13850         instead of deleting the iCode when an operand is volatile
13851         * src/z80/gen.c (genDummyRead),
13852         * src/mcs51/gen.c (genDummyRead),
13853         * src/ds390/gen.c (genDummyRead),
13854         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
13855         not just IC_RIGHT
13856         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
13857         * src/SDCC.y: fixed bug #850420
13858
13859 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13860
13861         Applied z80 i/o port patch from Peter Townson and fixed some operators
13862         to better handle operands in A register.
13863         * device/include/z180.h
13864         * src/SDCC.y
13865         * src/SDCCglue.c
13866         * src/z80/gen.c
13867         * src/z80/gen.h
13868         * src/z80/main.c
13869         * src/z80/peeph-z80.def
13870         * src/z80/peeph.def
13871         * src/z80/z80.h
13872
13873 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13874
13875         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
13876
13877 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13878
13879         * device/lib/hc08/_mullong.c: Removed extra #endif
13880
13881 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13882
13883         * sim/ucsim/hc08.src/inst.cc,
13884         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
13885         carries from x to h
13886         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
13887         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
13888         * device/include/stdarg.h: fixed varargs for hc08
13889         * device/lib/Makefile.in,
13890         * device/lib/hc08/Makefile,
13891         * device/lib/hc08/_mulint.c,
13892         * device/lib/hc08/_mullong.c: fixed some endian problems
13893
13894 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13895
13896         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
13897         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
13898         * device/lib/_gptrget.c,
13899         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
13900
13901 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13902
13903         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
13904         * src/SDCCast.c (astErrors): fixed bug #846007
13905         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
13906
13907 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13908
13909         * src/SDCCast.c (decorateType): disabled a transformation I added in
13910         revision 1.188 (access to fields of a structure at an absolute address);
13911         it breaks with bitfields, extern declarations, and gcse analysis.
13912         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
13913         could be assigned through a pointer, so don't complain.
13914         * src/SDCCast.c (astErrors),
13915         * src/SDCCast.h,
13916         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
13917
13918 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
13919
13920         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
13921         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
13922         output of __config directives, since gpasm now supports them
13923         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
13924         pre-processor macro, i.e. -DMCU=p18f452
13925         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
13926         and modified to handle 'cast' icode similarly to '=' icode
13927         * src/pic16/device.h (typedef struct PIC_device): added field
13928         'extMIface' to indicate that chip has external memory interface
13929         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
13930         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
13931         18F8720
13932
13933 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13934
13935         * src/SDCC.y (pointer): fixed bug #846006
13936         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
13937         * src/SDCCast.c (decorateType): fixed bug #846009
13938         * src/ds390/peeph.def,
13939         * src/ds390/gen.c (genAnd, genOr),
13940         * src/mcs51/peeph.def,
13941         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
13942
13943 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13944
13945         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
13946         * src/SDCCdflow.c
13947         * src/SDCCcse.c
13948         * src/SDCCcse.h
13949         * src/SDCCBBlock.h
13950         * src/SDCCBBlock.c
13951
13952 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
13953
13954         fixed bug #845089
13955         * src/SDCCbitv.h,
13956         * src/SDCCbitv.c: added function to free a bitvector
13957         * src/SDCClrange.h,
13958         * src/SDCClrange.c: added function to recompute the liveranges
13959         * src/avr/ralloc.c,
13960         * src/ds390/ralloc.c,
13961         * src/hc08/ralloc.c,
13962         * src/mcs51/ralloc.c,
13963         * src/pic/ralloc.c,
13964         * src/pic16/ralloc.c,
13965         * src/xa51/ralloc.c,
13966         * src/z80/ralloc.c: recompute the liveranges after register packing
13967
13968 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
13969
13970         * src/SDCCloop.c (newInduction): fixed bug #845630
13971
13972 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13973
13974         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
13975         inadvertantly left behind from my 2003-11-12 change
13976
13977 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13978
13979         Updated headers I neglected to commit yesterday.
13980         * src/SDCClrange.h,
13981         * src/SDCCicode.h
13982
13983 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13984
13985         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
13986         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
13987         * src/SDCCopt.c (eBBlockFromiCode),
13988         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
13989         the creation of the key hash table from the sequencing so it can be used
13990         earlier (for some GCSE bug fixes still pending)
13991
13992 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13993
13994         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
13995         * support/regression/tests/addsub.c: testing genPlus shortcut
13996
13997 2003-11-15  Borut Razem <borut.razem AT siol.net>
13998
13999         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
14000
14001 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14002
14003         * src/SDCCcse.c (cseBBlock): fixed bug #527779
14004         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
14005         ordering is immaterial.
14006         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
14007
14008 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14009
14010         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
14011         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
14012         (SIGSEV) of bug #840381
14013         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
14014         unlink new file before rename if new and old filenames are the same)
14015
14016 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14017
14018         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
14019         uninitialized variables) for the mcs51. Set environment variable
14020         SDCC_GENRAMCLEAR to test.
14021         xdata initialization slightly shorter
14022
14023 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14024
14025         * src/SDCCsymt.h,
14026         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
14027         #838241 & 780691 (basicly the same bug)
14028         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
14029         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
14030
14031 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
14032
14033         * src/SDCCmain.c (linkEdit): "fix" #834252
14034
14035 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14036
14037         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
14038         * src/SDCCast.h,
14039         * src/SDCC.y: fixed bug #819403
14040
14041 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14042
14043         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
14044         the reentrant attribute.
14045         * src/hc08/gen.c (genPackBits): added missing stack readjustment
14046         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
14047         simulation
14048         * src/SDCCast.c (decorateType): fixed bug with storage class not being
14049         updated during pointer dereference; f.e. ~(((char *)1)*) was being
14050         erroneously reduced to a literal.
14051         * src/hc08/ralloc.c (packRegisters, rematStr),
14052         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
14053         some cases
14054
14055 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14056
14057         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
14058         * doc/sdccman.lyx: changed from 'article' to 'book'
14059         * doc/Makefile: readded test_suite_spec and cdbfileformat
14060
14061 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
14062
14063         * device/include/stdlib.h: include malloc.h to comply with ANSI
14064         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
14065
14066 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14067
14068         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
14069         * doc/clean.mk: also remove *.out files
14070         * doc/sdccman.lyx: some additions, larger top/bottom margins
14071
14072 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14073
14074         * src/SDCC.y: fixed bug #837365
14075         * support/regression/tests/bitopcse.c
14076         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
14077         a symbol (might be valop instead)
14078         * device/lib/Makefile.in: added errno.c to HC08SOURCES
14079         * device/lib/clean.mk: added hc08 to the cleaning list
14080
14081 2003-11-04  Borut Razem <borut.razem AT siol.net>
14082
14083         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
14084           made 2003-11-04
14085         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
14086           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
14087           malloc is declared in standard stdlib.h
14088
14089 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14090
14091         * device/lib/hc08/Makefile: need to clean .rel not .o files
14092         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
14093
14094 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14095
14096         * src/port.h,
14097         * src/hc08/main.c,
14098         * src/mcs51/main.c,
14099         * src/ds390/main.c,
14100         * src/z80/main.c,
14101         * src/avr/main.c,
14102         * src/pic/main.c,
14103         * src/pic16/main.c,
14104         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
14105         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
14106         tests (which uses the port's oclsExpense function)
14107         * src/SDCC.y,
14108         * src/SDCCast.c,
14109         * src/SDCCicode.c,
14110         * src/hc08/gen.c,
14111         * src/ds390/gen.c,
14112         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
14113
14114 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14115
14116         * src/SDCCcse.c (ifxOptimize),
14117         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
14118         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
14119         deleting the IFX iCode.
14120         * src/hc08/ralloc.c: reduced unneeded slocs
14121         * src/hc08/gen.c: fixed bug in asmopToBoolean
14122
14123 2003-11-04  Borut Razem <borut.razem AT siol.net>
14124
14125         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
14126           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
14127           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
14128           transferred to configure
14129
14130 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
14131
14132         Use headers defined in the C[++] standards:
14133         * sim/ucsim/gui.src/serio.src/fileio.cc
14134         * sim/ucsim/gui.src/serio.src/frontend.cc
14135         * sim/ucsim/gui.src/serio.src/main.cc
14136         * sim/ucsim/gui.src/serio.src/posix_signal.cc
14137         * support/Util/NewAlloc.c
14138         * as/hc08/lklibr.c
14139         * as/mcs51/lklibr.c
14140         * as/z80/aslist.c
14141         * as/z80/assym.c
14142
14143 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14144
14145         * Added MSVC projects for hc08 assembler and linker:
14146         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
14147         /as/hc08/link_hc08.dsp
14148
14149 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
14150
14151         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
14152
14153 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
14154
14155         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
14156
14157 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14158
14159         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
14160
14161 2003-10-31  Borut Razem <borut.razem AT siol.net>
14162
14163         * support/cpp2/cpplib.h,
14164           support/cpp2/cpplib.c,
14165           support/cpp2/cpplex.c,
14166           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
14167           to switch _asm block preprocessing on / off. Default is
14168           #pragma preproc_asm +
14169
14170 2003-10-31  Borut Razem <borut.razem AT siol.net>
14171
14172         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
14173           when outputting comment blocks (when executed with -C option) and
14174           _asm (SDCPP specific) blocks
14175
14176 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14177
14178         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
14179
14180 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
14181
14182         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
14183
14184 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
14185
14186         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
14187         * src/SDCCast.c (decorateType): fixed bug #832664
14188
14189 2003-10-31  Borut Razem <borut.razem AT siol.net>
14190
14191         * support/cpp2/cpplex.c: fixed for SDCPP:
14192           comments(when executed with -C option) and _asm blocks
14193           were included even if they where in skipped #if block.
14194           Applied solution from GCC cpp 3.3.2
14195
14196 2003-10-31  Borut Razem <borut.razem AT siol.net>
14197
14198         * src/SDCC.lex: sdcc now understands both formats:
14199           '# <line_number> <file_name>' and
14200           '#line <line_number> <file_name>'
14201         * support/cpp2/cppmain.c: sdcpp now generates the standard
14202           '# <line_number> <file_name>' instead of former
14203           '#line <line_number> <file_name>'
14204
14205 2003-10-30  Borut Razem <borut.razem AT siol.net>
14206
14207         * support/cpp2/cpphash.h,
14208         * support/cpp2/cpplib.h
14209         * support/cpp2/cpplex.c,
14210         * support/cpp2/cppmain.c,
14211         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
14212
14213 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14214
14215         Fixed a number of problems revealed by bug #827883.
14216         * src/SDCCloop.c (loopInvariants): Spill location of the
14217         result operand should be recomputed if extracted from
14218         a loop. Also, don't extract assignments of an iTemp
14219         from a literal.
14220         * src/SDCCast.c (isConformingBody): loop reversal should
14221         not occur if the control variable is involved with a
14222         relational operator.
14223
14224 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
14225
14226         * .version: bumped to 2.3.6 to reflect the big improvements
14227         made by Erik and Klaus. Thanks!
14228
14229 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
14230
14231         Replaced the livrange code.
14232         * src/SDCClrange.c: added new LR code
14233         * src/SDCCloop.c,
14234         * src/SDCCBBlock.h: removed remainig parts from old LR code
14235         * src/ds390/ralloc.c,
14236         * src/ds390/gen.c: minor fixes to make it work with new code
14237
14238 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14239
14240         * as/hc08/asm.h,
14241         * as/hc08/lkrloc.c,
14242         * src/hc08/gen.c,
14243         * src/hc08/ralloc.c: Fix various warnings related to the hc08
14244         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
14245         (tweaked fix for bug #818696)
14246
14247 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14248
14249         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
14250
14251 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14252
14253         * src/SDCCmain.c,
14254         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
14255         * src/mcs51/gen.c (gencjneshort),
14256         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
14257         more efficient (per Scott Bronson's suggestion)
14258
14259 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14260
14261         Extended the semantics of the critical keyword to include
14262         individual statements. See RFE #827755 and #799831
14263         * src/SDCC.y
14264         * src/SDCCicode.c
14265         * src/SDCCopt.c
14266         * src/SDCCast.c
14267         * support/Util/SDCCerr.c
14268         * support/Util/SDCCerr.h
14269         * src/mcs51/gen.c
14270         * src/ds390/gen.c
14271         * src/hc08/gen.c
14272
14273 2003-10-19  Borut Razem <borut.razem AT siol.net>
14274
14275         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
14276
14277 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14278
14279         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
14280         Fixed bug #818696
14281         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
14282         and predecrement operand is displayed
14283
14284 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
14285
14286         * src/SDCCval.c (valMinus): fixed bug #826041
14287
14288 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14289
14290         Some hc08 related updates that I missed earlier
14291         * sim/ucsim/stypes.h
14292         * support/regression/ports/hc08/spec.mk
14293
14294 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14295
14296         New target "hc08" for the Motorola 68hc08 family of micros
14297
14298         * configure
14299         * configure.in
14300         * Makefile
14301         * src/hc08/*
14302         * src/SDCCmain.c
14303         * src/port.h
14304         * sim/ucsim/hc08.src/*
14305         * sim/ucsim/configure.in
14306         * src/ucsim/configure
14307         * sim/ucsim/packages_in.mk
14308         * as/hc08/*
14309         * as/Makefile
14310         * device/include/mc68hc908qy.h
14311         * device/lib/hc08/*
14312         * device/lib/Makefile.in
14313         * support/regression/ports/hc08/*
14314         * support/regression/Makefile
14315
14316 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14317
14318         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
14319         regression test
14320         * src/ds390/gen.c (genCast): fixed bug #821957
14321
14322 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
14323
14324         * device/lib/logf.c: "fixed" overlay bug
14325         * support/regression/ports/host/spec.mk: added m library
14326         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
14327         * support/regression/tests/float_trans: added (for Eric)
14328
14329 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
14330
14331         * src/mcs51/gen.c (genCpl): fixed bug
14332         http://sf.net/mailarchive/message.php?msg_id=6263915
14333
14334 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
14335
14336         * src/SDCCast.c (decorateType): added extended constant folding
14337         * src/SDCCsymt.c (computeType): cleanup
14338         * src/SDCCval.c (valShift): minor optimization
14339         * support/regression/tests/ast_constant_folding.c: added
14340
14341 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14342
14343         * src/SDCCmain.c: removed some unintended changes
14344
14345 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14346
14347         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
14348         * src/z80/gen.c: fixed part of bug #817589
14349         * src/SDCCsymt.c (checkFunction): fixed bug #817895
14350
14351 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
14352
14353         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
14354         * src/SDCCcflow.c
14355         * src/SDCCcse.c
14356         * src/SDCCdflow.c
14357         * src/SDCClabel.c
14358         * src/SDCClrange.c
14359         * src/SDCCmem.c
14360         * src/SDCCopt.c
14361         * src/SDCCpeeph.c
14362         * src/SDCCset.c
14363         * src/avr/ralloc.c
14364         * src/ds390/ralloc.c
14365         * src/izt/ralloc.c
14366         * src/mcs51/ralloc.c
14367         * src/pic/ralloc.c
14368         * src/pic16/ralloc.c
14369         * src/xa51/ralloc.c
14370         * src/z80/ralloc.c
14371         * src/z80/gen.c: removed unused label "release:"
14372
14373 2003-10-06  Borut Razem <borut.razem AT siol.net>
14374
14375         * src/SDCC.lex: removed definition of unused variables
14376           save_optimize and save_options
14377
14378 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
14379
14380         * clean.mk: removed '=' in "-maxdepth=1"
14381         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
14382         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
14383
14384 2003-10-06  Borut Razem <borut.razem AT siol.net>
14385
14386         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
14387           my_unput() replaced by unput()
14388
14389 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
14390
14391         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
14392         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
14393         type-punned pointer will break strict-aliasing rules"
14394         Old LR behaviour is again default; Klaus' LR can be choosen by
14395         defining the environment variable LRKLAUS
14396         * src/SDCCBBlock.h
14397         * src/SDCCloop.c
14398         * src/SDCClrange.c
14399         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
14400         * clean.mk: fixed removal of files in bin/CVS/
14401         * device/lib/clean.mk: fixed removal of directories small and large
14402         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
14403         * src/SDCCicode.c,
14404         * src/SDCCval.c: removed superflous test for pedantic
14405
14406 2003-10-05  Borut Razem <borut.razem AT siol.net>
14407
14408         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
14409           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
14410           message "unmatched #pragma SAVE and #pragma RESTORE"
14411
14412 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14413
14414         * doc/sdccman.lyx: various additions and updates (interrupts, inline
14415           assembly, critical functions, atomic, nojtbound)
14416
14417 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
14418
14419         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
14420         * src/SDCCBBlock.h
14421         * src/SDCCloop.c
14422         * src/SDCCloop.h
14423         * src/SDCClrange.c
14424
14425 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14426
14427         * src/z80/gen.h,
14428         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14429         * src/mcs51/gen.h
14430         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14431         * src/ds390/gen.h
14432         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14433         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
14434         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
14435
14436 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14437
14438         * src/z80/gen.c (genRet): fixed bug #524753
14439         * src/z80/gen.c (genCast): fixed internal error on cast from
14440         pointer to long
14441         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
14442         fix for bug #477835 to the z80
14443         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
14444         for tracking iCodes in the peephole optimizer for z80
14445
14446 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14447
14448         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
14449         the other part of bug #814548
14450         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
14451
14452 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
14453
14454         * src/SDCCcse.c: fixed part of bug #814548
14455
14456 2003-09-28  Borut Razem <borut.razem AT siol.net>
14457
14458         * src/asm.c: rewrite of printILine() to use temporary file instead
14459           a pipe
14460         * src/xa51/main.c: commented out declaration of int rewinds
14461
14462 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14463
14464         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
14465
14466 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14467
14468         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
14469         * src/asm.c (printILine): Fixed bug #811015
14470
14471 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14472
14473         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
14474         freeing.
14475
14476 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14477
14478         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
14479         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
14480         to correctly handle general case of AOP_PAIRPTR
14481         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
14482
14483 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14484
14485         * src/mcs51/ralloc.c (fillGaps),
14486         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
14487         register positioning bug)
14488
14489 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
14490
14491         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
14492
14493 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14494
14495         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
14496         genCodePointerGet, genGenPointerGet, genFarPointerSet,
14497         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
14498         (ralloc doesn't intentionally do this now, but perhaps later)
14499         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
14500         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
14501         register positioning bugs (Fixed bug #762602 and #795325)
14502         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
14503         (Fixed bug #808779)
14504         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
14505         lines that --i-code-in-asm generates
14506
14507 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14508
14509         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
14510         trying to fclose a FILE* that was already closed.
14511
14512 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14513
14514         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
14515         of const struct should be treated as if const themselves)
14516
14517 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
14518
14519         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
14520
14521 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14522
14523         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
14524         Unix (/n) and DOS (/r/n) line terminations.
14525
14526 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14527
14528         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
14529         bug #613775
14530
14531 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14532
14533         * src/mcs51/gen.c (genFunction, genEndFunction),
14534         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
14535         and restore of EA so that stack offsets to parameters are
14536         correct when using both critical and reentrant/stack-auto.
14537         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
14538         size (can be triggered in error if sloc is shared between
14539         different sized objects)
14540         * device/include/float.h: fixed macros to explicitly use
14541         unsigned long where needed
14542
14543 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
14544
14545         Feature req. 799831: added code to allow nesting of critical functions
14546         * src/mcs51/gen.c (genFunction, genEndFunction)
14547         * src/ds390/gen.c (genFunction, genEndFunction)
14548
14549 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14550
14551         * src/SDCCsymt.c (sclsFromPtr),
14552         * src/SDCCsymt.h,
14553         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
14554         support for standard C idiom of memory mapped variables; for
14555         example, *((xdata int*)0x1234) = 1 is now internally equivalent
14556         to xdata int at 0x1234 tempvar = 1.
14557         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
14558         provided by Akiya ISHIDA
14559
14560 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
14561
14562         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
14563         * src/SDCCval.c (constVal): added reduction from int to char
14564         * src/SDCCval.c (valMult, valDiv): fixed sign handling
14565         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
14566         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
14567         to ignore the sign
14568         * support/regression/tests/shifts.c: fixed
14569
14570 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14571
14572         * src/z80/gen.c (genXor): Fixed bug #805445
14573
14574 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14575
14576         Fixed bug #621531 (const & volatile confusion in the type chain).
14577         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
14578         refer to the const or volatile state of the pointer itself.
14579
14580         * src/SDCCast.c
14581         * src/SDCCglue.c
14582         * src/SDCCicode.c
14583         * src/SDCCsymt.c
14584         * src/SDCCval.c
14585         * src/SDCC.y
14586         * src/SDCCsymt.h
14587         * src/pic/gen.c
14588         * src/pic/ralloc.c
14589         * src/pic16/gen.c
14590         * src/pic16/ralloc.c
14591         * support/regression/tests/const.c
14592
14593 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14594
14595         When checking for duplicated modules, use absolute paths
14596         instead of relative paths.  Files changed:
14597
14598         * as/mcs51/lklib.c
14599         * link/z80/lklib.c
14600
14601 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14602
14603         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
14604
14605 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14606
14607         * device/include/string.h: added size_t typedef, changed
14608         prototypes to use size_t, eliminated separate reentrant and
14609         non-reentrant declarations, added _memmove declaration
14610         * device/lib/_memcpy.c: changed to use size_t instead of int,
14611         changed /4 to >>2 to avoid division library call
14612         * device/lib/_memcmp.c,
14613         * device/lib/_memset.c,
14614         * device/lib/_strncat.c,
14615         * device/lib/_strncpy.c,
14616         * device/lib/_strncmp.c: changed to use size_t instead of int
14617         * device/lib/_memmove.c: new file (fixed bug #772294)
14618         * device/lib/Makefile.in: added _memmove.c
14619         * device/lib/z80/asm_strings.s: fixed bug #772290
14620         * support/regression/tests/bitfields.c: attempt to fix host assertion
14621         failure on amd64-unknown-linux2.2
14622
14623 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14624
14625         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
14626         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
14627         * as/z80/asmain.c (main): fixed bug #801766
14628
14629 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
14630
14631         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
14632         compilers
14633
14634 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14635
14636         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
14637         reported in bug #800609
14638
14639 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
14640
14641         * Top header beautifications in src/pic16 directory:
14642           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
14643           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
14644           pcoderegs.h, ralloc.c, ralloc.h
14645         * main.c: added top header and GPL license notice
14646         * pcode.c: fixed the if-conditional warning
14647
14648 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
14649
14650         * device/lib/_mullong.c: replaced int by short for gcc
14651
14652 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14653
14654         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
14655         and JUMPTABLE iCodes properly now (worked by accident before)
14656         * src/mcs51/gen.c (leftRightUseAcc),
14657         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
14658         iCode properly now. Use getSize instead of nRegs since a & b
14659         aren't part of the nRegs tally.
14660
14661 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
14662
14663         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
14664         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
14665           before instructions that use the _STATUS register
14666
14667 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
14668
14669         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
14670         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
14671         fetching of the pointer
14672         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
14673         copied from genNearPointerSet()
14674         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
14675         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
14676         If they pop r0/r1 they must be called in the opposite order than aopOp().
14677         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
14678         (resp. --stack-auto), prepared for --xstack
14679
14680 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14681
14682         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
14683
14684 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
14685
14686         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
14687         these ports have their own __sdcc_external_start()
14688
14689 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
14690
14691         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
14692         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
14693         type for bits was changed. It resulted in bit variables becoming
14694         global, which is not permitted in PIC 14 assembly output.
14695
14696 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14697
14698         * doc/sdccman.lyx: various additions and updates. Rearranged sections
14699
14700 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14701
14702         Z80 and MCS51 linkers complaint if a public symbol is defined
14703         in more than one library module:
14704
14705         * as/mcs51/lklib.c
14706         * link/z80/lklib.c
14707         * as/mcs51/Makefile.in
14708
14709 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14710
14711         A few small changes that speed up the peephole optimizer.
14712
14713         * src/SDCCpeeph.c
14714
14715 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14716
14717         Try to make the peephole optimizer smarter by maintaining
14718         an association between the assembly source code and the
14719         iCodes that originated them. Put this information to use
14720         with a new peephole rule condition "notVolatile" so that
14721         the rules can be aggressive yet still safe.
14722
14723         * src/SDCCpeeph.c
14724         * src/SDCCpeeph.h
14725         * src/mcs51/gen.c
14726         * src/mcs51/peeph.def
14727
14728 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14729
14730         Fixed bug #741761
14731
14732         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
14733         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
14734         if the left or right operand symbols have the accuse flag set.
14735
14736 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14737
14738         Changed the type of the result of the ! (NOT) operator to char;
14739         previously it returned the same type as the source. This allows
14740         us to eliminate all the genFloatNot functions (all of its target
14741         implementations were very buggy) since !float can use the same
14742         code as !long now.
14743
14744         * src/SDCCicode.c (ast2iCode): ! returns char
14745         * src/mcs51/gen.c (genNot, genNotFloat),
14746         * src/ds390/gen.c (genNot, genNotFloat),
14747         * src/z80/gen.c (genNot, genNotFloat),
14748         * src/pic/gen.c (genNot, genNotFloat),
14749         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
14750
14751 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
14752
14753         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
14754         1. Interrupt would not compile properly. Ensure PCLATH register is saved
14755            during interrupts. Ensure WSAVE is located at a shared bank address.
14756         2. Fixed page selection in some places
14757         3. Fixed BTFSS/C to where necessary use registers directly and not simply
14758            the registers name strings.
14759         4. Fixed "signed / unsigned compare" compiler warnings.
14760         5. The PIC port manages its own allocation of the general purpose
14761            registers, but makes no attempt to reuse them. As a result when
14762            compiling it soon runs out of general purpose registers. Some
14763            additional code was added to the files pcode.c and device.c to walk
14764            through the function call tree and rename the registers so that they
14765            get reused.
14766
14767         * src/pic/device.c
14768         * src/pic/gen.c
14769         * src/pic/glue.c
14770         * src/pic/pcode.c
14771         * src/pic/pcode.h
14772         * src/pic/ralloc.c
14773         * src/pic/ralloc.h
14774         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
14775         genPlus() & genMinus() when the result is the same as left or right
14776
14777 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14778
14779         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
14780
14781 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14782
14783         Made bitfield a distinct type from bit so that bitfields
14784         convert as per ANSI C and bits retain their traditional
14785         boolean style behaviour. Implemented bitfield support in
14786         the z80 port.
14787
14788         * src/SDCCsymt.h,
14789         * src/SDCCsymt.c,
14790         * src/SDCCast.c,
14791         * src/cdbFile.c,
14792         * src/mcs51/gen.c,
14793         * src/ds390/gen.c: bit v bitfield split
14794         * src/z80/gen.c: New support for bitfields
14795         * support/regression/tests/bitfields.c: reenabled z80,
14796         added more tests
14797
14798 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14799
14800         Rules 246.x, 247.x relate to bitfields, the others speed up
14801         access to xdata mapped I/O devices.
14802
14803         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
14804
14805 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14806
14807         Cleaned up genPackBits and genUnpackBits and added two helper
14808         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
14809         for literal assignments in genPackBits (thanks to Frieder for
14810         reminding me).
14811
14812         * src/mcs51/gen.c
14813         * src/ds390/gen.c
14814
14815 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14816
14817         Fixed bug #748310 (pointer to function type mishandled when the
14818         function name is omitted). Also fixed a SIGSEGV when a function
14819         attribute (reentrant, etc) is used on a non-function or on a
14820         function but misplaced before the parameter list.
14821
14822         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
14823         bug #748310
14824         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
14825         * support/Util/SDCCerr.h,
14826         * support/Util/SDCCerr.c: Added func attr misuse error msg
14827
14828 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
14829
14830         Fixed bug #787649 by anonymous
14831         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
14832         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
14833
14834 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14835
14836         Fixed numerous bitfield problems.
14837
14838         * src/SDCC.y: More bitfield related error checking
14839         * src/SDCCsymt.h,
14840         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
14841         * support/Util/SDCCerr.h,
14842         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
14843         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14844         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14845         * support/regression/tests/bitfields.c: tests added
14846
14847 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14848
14849         Made the constant following the "interrupt" keyword optional. If
14850         omitted, the function will not automatically be given an entry
14851         in the interrupt vector table (similar to #pragma NOIV, but
14852         less syntacticly kludgy). The interrupt number is also now
14853         range checked. Also fixed a bug in the high order bit example
14854         in the manual.
14855
14856         * src/SDCC.y
14857         * src/SDCCmem.c
14858         * src/SDCCglue.c
14859         * src/SDCCsymt.h
14860         * support/Util/SDCCerr.c
14861         * support/Util/SDCCerr.h
14862         * doc/sdccman.lyx
14863
14864 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
14865
14866         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
14867         * src/SDCCicode.c (operandOperation): rewritten some ops
14868         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
14869         * src/SDCCsymt.c (computeType): literals are handled the same way as any
14870         other type
14871         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
14872         be re-activated by defining REDUCE_LITERALS)
14873         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
14874         unsigned, but are signed by default
14875         * src/SDCCval.c (constVal): rearranged
14876         * src/SDCCval.c (valMod): preliminary fix
14877         * src/SDCCval.c (valCastLiteral): use TYPE_* types
14878         * support/regression/literalop.c: added, work in progress
14879
14880 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14881
14882         Generate warnings for useless declarations like "char data;"
14883         that don't do what new users expect.
14884
14885         * src/SDCC.y
14886         * support/Util/SDCCerr.h
14887         * support/Util/SDCCerr.c
14888
14889 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
14890
14891         * src/SDCCval.c (valMult): fix overflow detection of negative int
14892
14893 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14894
14895         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
14896
14897         Changes to support big endian targets:
14898
14899         * src/ports.h
14900         * src/SDCCglue.c
14901         * src/avr/main.c
14902         * src/ds390/main.c
14903         * src/izt/i186.c
14904         * src/mcs51/main.c
14905         * src/pic/main.c
14906         * src/pic16/main.c
14907         * src/xa51/main.c
14908         * src/z80/main.c
14909
14910 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
14911
14912         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
14913         * device/lib/time.c: fixed warning "integer overflow in expression"
14914
14915 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
14916
14917         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
14918         * src/SDCCval.c (constVal): changed default to signed; hex and octal
14919         constants are unsigned; added recognition of "u" flag for unsigned
14920         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
14921         * src/SDCCval.c (valDiv, valMod): fixed signdness
14922         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
14923         signedness of modulo, left and right shift
14924         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
14925         * support/Util/SDCCerr.h: added warning W_INT_OVL
14926         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
14927         * src/SDCCast.c (ast_print): improved output of constants
14928
14929 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14930
14931         Fixed some warnings when building with MSVC:
14932
14933         * as/mcs51/asdata.c
14934         * as/z80/asdata.c
14935         * as/mcs51/asm.h
14936         * as/z80/asm.h
14937         * link/z80/aslink.h
14938         * link/z80/lkdata.c
14939         * link/z80/lkeval.c
14940         * link/z80/lkgb.c
14941         * link/z80/lkihx.c
14942         * link/z80/lks19.c
14943         * link/z80/lksym.c
14944         * support/cpp2/cpplib.c
14945         * src/ds390/gen.c
14946         * src/mcs51/gen.c
14947
14948 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
14949
14950         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
14951
14952 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14953
14954         * support/librarian/clean.mk: Do not remove Makefile.
14955         * support/librarian/Makefile: added.
14956
14957 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14958
14959         Added librarian to MSVC build:
14960         * all.dsp
14961         * sdcc.dsw
14962         * support/librarian/librarian.dsp
14963
14964         'configure' not needed for librarian, removed:
14965         * support/librarian/configure
14966         * support/librarian/configure.in
14967         * support/librarian/config_in.h
14968         * support/librarian/Makefile.in
14969
14970         Hopefully these ones built the librarian and the rest of sdcc properly:
14971         * Makefile
14972         * Makefile.common.in
14973
14974         Messed up 'configure', so revert to previous version:
14975         * configure
14976         * configure.in
14977
14978 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
14979
14980         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
14981         there, while the mantissa of a double is "only" 53 bits wide.
14982
14983 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14984
14985         Adding sdcclib to the build.  MSVC project coming soon.
14986         Files added/changed:
14987
14988         * support/librarian/clean.mk
14989         * support/librarian/configure
14990         * support/librarian/configure.in
14991         * support/librarian/config_in.h
14992         * support/librarian/Makefile.bcc
14993         * support/librarian/Makefile.in
14994         * support/librarian/sdcclib.c
14995         * Makefile.bcc
14996         * Makefile
14997         * Makefile.common.in
14998         * configure
14999         * configure.in
15000
15001 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15002
15003         Linker now complaints if linked modules have conflicting options, for
15004         example, one compiled using --model-large and another one compiled with
15005         --model-small.  The following files were modified:
15006
15007         * as/mcs51/asdata.c
15008         * as/mcs51/aslink.h
15009         * as/mcs51/asm.h
15010         * as/mcs51/asmain.c
15011         * as/mcs51/asout.c
15012         * as/mcs51/i51pst.c
15013         * as/mcs51/lkdata.c
15014         * as/mcs51/lklibr.c
15015         * as/mcs51/lkmain.c
15016         * as/z80/asdata.c
15017         * as/z80/asm.h
15018         * as/z80/asmain.c
15019         * as/z80/asout.c
15020         * as/z80/z80pst.c
15021         * link/z80/aslink.h
15022         * link/z80/lkdata.c
15023         * link/z80/lklibr.c
15024         * link/z80/lkmain.c
15025         * src/SDCCglue.c
15026
15027 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15028
15029         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
15030         as/mcs51/lklibr.c: Generate a warning when a library is not found.
15031
15032 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
15033
15034         * src/z80/mappings.i: fix _mul[us][int,long] entries
15035
15036 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15037
15038         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
15039
15040 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
15041
15042         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
15043         * support/regression/tests/bitopcse.c: added
15044         fixed warning:
15045         * src/avr/gen.c:
15046         * src/pic/gen.c:
15047         * src/pic16/gen.c:
15048         * src/z80/gen.c:
15049         * src/xa51/gen.c:
15050
15051 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15052
15053         added support for new library format to z80, gbz80 linkers:
15054         *link/z80/aslink.h
15055         *link/z80/lklex.c
15056         *link/z80/lklib.c
15057         *link/z80/lklist.c
15058
15059 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
15060
15061         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
15062         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
15063
15064 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
15065
15066         added DUMMY_READ_VOLATILE:
15067         * src/SDCC.y:
15068         * src/avr/gen.c:
15069         * src/xa51/gen.c:
15070         * src/z80/gen.c:
15071         * src/pic/gen.c:
15072         * src/pic16/gen.c:
15073         * src/mcs51/gen.c:
15074         * src/ds390/gen.c:
15075         * src/SDCCcse.c (algebraicOpts): many improvements
15076         * src/SDCCcse.h: removed algebraicOpts()
15077         * src/SDCCicode.c (picDummyRead): added
15078
15079 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15080
15081         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
15082         "Insufficient space in data memory".
15083
15084 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
15085
15086         * src/mcs51/gen.c: fixed bug #771358
15087         * src/z80/gen.c: fixed bug #759087
15088
15089 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
15090
15091         * src/pic16/glue.c: minor cleanup by Vangelis
15092
15093 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15094
15095         * device/include/regc515c.h: fixed #758477
15096         * device/lib/_gptrget.c: saving some cycles in generic pointer get
15097         * device/lib/_gptrput.c: saved a few bytes
15098         * my tab spacing is 8, yours too?)
15099         * device/lib/_ser.c: process RX bytes earlier than TX bytes
15100         * device/lib/serial.c: process RX bytes earlier than TX bytes
15101         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
15102
15103 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
15104
15105         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
15106
15107 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15108
15109         * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
15110
15111 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
15112
15113         * device/lib/Makefile.in: bad fix, reverted to 1.43
15114
15115 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
15116
15117         * device/lib/Makefile.in: added missing z80 object files
15118
15119 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
15120
15121         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
15122         pic16 progress by Vangelis:
15123         * src/SDCCglobl.h:
15124         * src/SDCCmain.c:
15125         * src/pic/Makefile:
15126         * src/pic:
15127         * pic/Makefile:
15128         * pic16/device.c:
15129         * pic16/device.h:
15130         * pic16/gen.c:
15131         * pic16/gen.h:
15132         * pic16/genarith.c:
15133         * pic16/glue.c:
15134         * pic16/main.c:
15135         * pic16/pcode.c:
15136         * pic16/pcode.h:
15137         * pic16/pcodepeep.c:
15138         * pic16/peeph.def:
15139
15140 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15141
15142         * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
15143
15144 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15145
15146         * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
15147         added gbz80 build to MSVC project.
15148         * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
15149         link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
15150         from 8051 stuff and setup so it links using a .lnk file.
15151
15152 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15153
15154         * support/librarian/sdcclib.c: sdcc librarian.
15155         * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
15156         with sdcclib.
15157
15158 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15159
15160         * as/mcs51/lkmain.c: properly handle extensions in function afile.
15161
15162 2003-07-02  Borut Razem <borut.razem AT siol.net>
15163
15164         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
15165         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
15166         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
15167         src/xa51/main.c, src/z80/main.c:
15168         virtualization of glue() function: each port has it's own glue function,
15169         which is accessed by do_glue function pointer in PORT.general structure
15170
15171 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
15172
15173         * DS800C400 fun, improved ROM interface and tinibios.
15174
15175 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
15176
15177         * More support for DS80C400. Now includes beginning of interface to ROM.
15178
15179 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
15180
15181         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
15182
15183 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15184
15185         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
15186
15187 2003-06-19  Borut Razem <borut.razem AT siol.net>
15188
15189         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
15190
15191 2003-06-19  Borut Razem <borut.razem AT siol.net>
15192
15193         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
15194         fixed Z80 port - crt0.o: cannot open.
15195
15196 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
15197
15198         * support/Util/MySystem.c (merge_command): revert bad fix
15199
15200 2003-06-18  Borut Razem <borut.razem AT siol.net>
15201
15202         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
15203
15204 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15205
15206         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
15207         option --use-stdout sends errors to stdout instead of stderr.
15208
15209 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
15210
15211         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
15212
15213 2003-06-15  Borut Razem <borut.razem AT siol.net>
15214
15215         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
15216         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
15217         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
15218         fixed width array of pointers replaced with sets;
15219         multiple include and lib paths ared transferred to preprocessor and linker
15220         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
15221         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
15222         fixed width array of pointers
15223         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
15224         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
15225         fixupPath(), getPathDifference()
15226         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
15227         fixed width array of pointers
15228
15229 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
15230
15231         * src/pic16/ralloc.c: fix warnings
15232         * src/pic16/pcode.c: fix warning
15233
15234 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
15235
15236          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
15237         know all the details, but essentially this set of changes enable
15238         the pic16 port to generate movff instructions and generate assembler
15239         directives,
15240         * src/SDCCmain.c:
15241         * src/pic16/gen.c:
15242         * src/pic16/glue.c:
15243         * src/pic16/pcode.c:
15244         * src/pic16/device.c:
15245         * src/pic16/main.c:
15246         * src/pic16/pcode.h:
15247         * src/pic16/pcoderegs.c:
15248         * src/pic16/ralloc.c:
15249         * src/pic16/ralloc.h:
15250
15251 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15252
15253         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
15254         added option --vc, so sdcc errors and warnings are compatible with
15255         Microsoft Visual Studio.
15256
15257 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15258
15259         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
15260           device/lib/libfloat.lib: added atof function.
15261
15262 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
15263
15264         * doc/sdccman.lyx: updated to Lyx 1.3
15265         * doc/cdbfileformat.lyx: updated to Lyx 1.3
15266         * doc/test_suite_spec.lyx: updated to Lyx 1.3
15267         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
15268
15269 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
15270
15271         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
15272
15273 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15274
15275         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
15276           additions to the "related tools/documentation" section
15277
15278 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
15279
15280         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
15281
15282 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
15283
15284         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
15285         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
15286
15287 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
15288
15289         * doc/sdccman.lyx: fix double dash and other minor things
15290         * doc/Makefile: fix double dash
15291
15292 2003-05-28  Karl Bongers(patches from Martin Helmling)
15293         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
15294           condition and ignore commands.
15295
15296 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15297
15298         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
15299           is in parts still quite out of date, I did changes as far as I felt makes sense
15300           for a non-native english speaker.
15301           Please feel free to add to the manual or to correct my changes.
15302         * doc/Makefile: undid touching the date of intermediate tex files.
15303
15304 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15305
15306         * doc/sdccman.lyx: Manual has an index now
15307
15308 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
15309
15310         Finalize muluint/mulsint and mululong/mulslong merging:
15311         * device/lib/_mulint.c
15312         * device/lib/_mullong.c
15313         * device/lib/gbz80/mul.s
15314         * device/lib/gbz80/stubs.s
15315         * device/lib/z80/mul.s
15316         * device/lib/z80/stubs.s
15317         * src/SDCCsymt.c (initCSupport)
15318
15319 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15320
15321         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
15322         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
15323           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
15324           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
15325           instead of /Zm500.
15326
15327 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15328
15329         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
15330           the regression tests I'm not brave enough to enable 245.b, 245.c
15331         * doc/sdccman.lyx: added latex preamble for hyperref package.
15332           Using pdflatex this will give you a hyperlinked pdf file with
15333           bookmarks. (prepend '%' before /usepackage if this breaks something)
15334
15335 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15336
15337          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
15338
15339 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
15340
15341         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
15342
15343 2003-05-21    <johan AT balder>
15344
15345         * src/SDCCglue.c (printIval): fixed bug #739934
15346
15347 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
15348
15349         Applied patch from bug 737905 (renamed yylineo to mylineno):
15350         * src/altlex.c
15351         * src/SDCCast.c
15352         * src/SDCglobl.h
15353         * src/SDCC.lex
15354         * src/SDCCsymt.c
15355         * src/SDCCval.c
15356         * src/pic16/pcode.c: Cleaned warnings
15357         * src/pic16/pcodeflow.c: Cleaned warnings
15358         * src/pic16/pcoderegs.c: Cleaned warnings
15359
15360 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
15361
15362         * src/pic16/pcode.c: Cleaned warnings
15363         * src/pic16/pcodepeep.c: Cleaned warnings
15364         * src/pic16/ralloc.c: Cleaned warnings
15365
15366 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
15367
15368         * doc/sdccman.lyx: fixed bug 739745
15369         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
15370
15371 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
15372
15373         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
15374         it can be defined with CFLAGS when running configure
15375         * src/SDCCmain.c: fixed compiling + linking with object files
15376
15377 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
15378
15379         * configure.in: configure for pic16 port,
15380             added --disable-pic16-port
15381         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
15382         * src/SDCCmain.c: linkOptions is changed to set *,
15383             added if/endif conditional macros to remove options help
15384             messages from optionsTable when a port is not configured, added
15385             support for the PIc16 port in the ports table, when executing
15386             the compiler with no port specified on command line, a default
15387             port is selected with the new macro DEFAULT_PORT which is
15388             defined in port.h, in setDefaultOptions() linkOptions is removed
15389             from initialization assignment, since now it is a set,
15390             parseCmdLine uses setParseWithComma for linkOptions, in
15391             linkEdit() linkOptions are accessed with new function indexSet()
15392             which returns the i'th item of a set variable. See SDCCset.c, in
15393             linkEdit() when calling buildCmdLine(), added linkOptions as
15394             last argument. Now users can pass arguments to gplink via the
15395             -Wl option, main() uses pic16glue() to glue up pic16 programs
15396         * src/SDCCpeeph.c: various changes to support pic16
15397         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
15398             return the i'th item of the set
15399         * src/SDCCset.h: added function prototype for indexSet()
15400         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
15401         * src/clean.mk: added pic16 in CLEANALLPORTS variable
15402         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
15403             added macro DEFAULT_PORT
15404         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
15405         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
15406             generated
15407         * src/pic16/glue.c: commented out some error producing lines
15408         * src/pic16/main.c: __config directives are commented out to stop
15409             gpasm complaining and test the linkage with gplink, _linkCmd and
15410             _asmCmd changed to be more gplink and gpasm friendly
15411         * src/pic16/peeph.def: peep rule 3 is commented out, since it
15412             produced an error when parsed, peep rule 12 is added to utilize
15413             movff, but it is commented out since the pCode does not support
15414             yet a command with 2 address arguments
15415
15416 2003-05-18    <johan AT balder>
15417
15418         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
15419         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
15420 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
15421
15422         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
15423         Added feature to script commands from file.
15424
15425 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
15426
15427         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
15428         * src/SDCCutil.c: include ctype.h for win32
15429
15430 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
15431
15432         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
15433
15434 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
15435
15436         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
15437         Fixed so you can set breakpoints prior to run, run does not stop
15438         on entry now.  Add tbreak.  Other enhancements and fixes for use
15439         with ddd.
15440
15441 2003-05-12  Borut Razem <borut.razem AT siol.net>
15442
15443         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
15444
15445 2003-05-11  Borut Razem <borut.razem AT siol.net>
15446
15447         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
15448         the path of bin directory, so that PATH is the only env. variable, which has to be set
15449         in case of standard installation.
15450         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
15451         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
15452         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
15453
15454 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
15455
15456         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
15457         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
15458         temp files are in the port dir; clean the gen/test directory when
15459         generating new test.c
15460         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
15461         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
15462         * support/regression/tests/zeropad.c: added
15463
15464 2003-05-09    <johan AT balder>
15465
15466         * src/SDCCglue.c: fixed bug #597940
15467
15468 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
15469
15470         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
15471         cache sfr, optimize next,step, fix off by one sourceline,
15472         support ddd list function.
15473         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
15474
15475 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
15476
15477         * support/regression/HTMLgen.py: added compare_s2f()
15478         * support/regression/Makefile: redo 1.27
15479         * support/regression/generate-cases.py: redo 1.5
15480
15481 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
15482
15483         * support/regression/tests/float.c: workaround 33 bit hex constant
15484         * support/regression/tests/simplefloat.c: fix division for host
15485
15486 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
15487
15488         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
15489         that tame's the PIC's over-aggressive optimizer.
15490
15491 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15492
15493          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
15494          support for MSVC.
15495
15496 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
15497
15498         Initial support for DS80C400. "Hello world" runs on TINIm400
15499         (with polled I/O).
15500
15501 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
15502
15503          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
15504          * Some notes on ddd usage added in debugger/README
15505          Martin Helmling adding more features and fixes for ddd GUI debugger.
15506          Code added for nexti, stepi, up, down, and other adjustments.
15507
15508 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
15509
15510         * src/pic/pCodepeep.c non-wildcard asmops are now handled
15511         * src/pic/peeph.def Added two rules to optimize carry manipulation
15512         * src/pic/* removed debug printfs
15513
15514 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
15515
15516         * debugger/mcs51/cmd.c: added header newalloc.h
15517
15518 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
15519
15520         * as/Makefile: new EXEEXT
15521         * as/z80/Makefile: remove trailing slash of BUILDIR
15522         * as/z80/clean.mk: new EXEEXT
15523         * Makefile.common.in: add to CFLAGS (and others), don't replace it
15524         * support/cpp2/Makefile.in: new EXEEXT
15525         * src/pic/glue.c (pic14emitRegularMap): fixed warning
15526
15527 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
15528
15529         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
15530         EXEEXT was introduced to fix all related problems with targets
15531         "clean", "install" and "uninstall"; a couple of further flaws
15532         especially with "clean" have been fixed too
15533         * as/mcs51/Makefile.in
15534         * as/mcs51/clean.mk
15535         * as/z80/Makefile
15536         * Makefile
15537         * clean.mk
15538         * debugger/mcs51/Makefile.in
15539         * debugger/mcs51/clean.mk
15540         * link/z80/Makefile
15541         * link/z80/Makefile.in
15542         * link/z80/clean.mk
15543         * link/Makefile
15544         * packihx/Makefile.in
15545         * packihx/clean.mk
15546         * sim/ucsim/Makefile
15547         * sim/ucsim/clean.mk
15548         * sim/ucsim/avr.src/Makefile.in
15549         * sim/ucsim/avr.src/clean.mk
15550         * sim/ucsim/s51.src/Makefile.in
15551         * sim/ucsim/s51.src/clean.mk
15552         * sim/ucsim/xa.src/Makefile.in
15553         * sim/ucsim/xa.src/clean.mk
15554         * sim/ucsim/z80.src/Makefile.in
15555         * sim/ucsim/z80.src/clean.mk
15556         * sim/ucsim/main_in.mk
15557         * sim/ucsim/packages_in.mk
15558         * sim/ucsim/gui.src/Makefile.in
15559         * sim/ucsim/gui.src/serio.src/Makefile.in
15560         * sim/ucsim/gui.src/serio.src/clean.mk
15561         * src/Makefile.in
15562         * src/clean.mk
15563         * support/cpp2/Makefile.in
15564         * support/cpp2/clean.mk
15565         * support/makebin/Makefile
15566         * support/makebin/clean.mk
15567         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
15568         * doc/sdccman.lyx: --program-suffix no longer needed
15569
15570 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
15571
15572          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
15573          Martin Helmling added support for ddd GUI debugger.
15574          Code added to display assembly, set variables, and other commands
15575          to interface to ddd.
15576
15577 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
15578
15579         * as/Makefile: fix target clean
15580         * as/clean.mk: fix target clean
15581         * as/z80/clean.mk: fix target clean
15582
15583 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
15584
15585         * Makefile.common.in: added  AT EXEEXT AT
15586         * configure.in: removed all mingw32 stuff
15587         * configure: rebuilt from configure.in
15588         * doc/sdccman.lyx: updated section "installation"
15589         * support/scripts/sdcc_mingw32: adapted to configure
15590         * support/scripts/sdcc_cygwin_mingw32: added
15591
15592 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
15593
15594         * src/pic Added object file support for the PIC port
15595         * src/pic Applied patch from Craig Franklin (this started the object file support)
15596         * src/regression Updated the PIC regression tests for object files
15597
15598 2003-04-20  Borut Razem <borut.razem AT siol.net>
15599
15600         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
15601           lklex.c: In function `getfid':
15602           lklex.c:203: warning: array subscript has type `char'
15603         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
15604           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
15605         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
15606           stack handling macros
15607
15608 2003-04-19  Borut Razem <borut.razem AT siol.net>
15609
15610         * "handling space characters in file path" task:
15611         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
15612         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
15613         * support/Util/MySystem.h: make it self-sufficient
15614         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
15615           src/z80/main.c, sdcc/as/mcs51/lklex.c:
15616           handling space characters in file path
15617         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
15618           (it will be used by assemblers, which have their own includes, e.g. gpasm)
15619         * support/Util/MySystem.c: handling space characters in executable's path
15620
15621 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
15622
15623         * as/z80/Makefile: fix permanent rebuild of z80
15624         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
15625         * support/regression/tests/bitfields.c: added Johan's bitfields.c
15626
15627 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
15628
15629         * src/SDCCopt.c: add special case optimization to replace modulo by
15630           a power of two with a bitwise AND.
15631
15632 2003-04-18    <johan AT balder>
15633
15634         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
15635
15636 2003-04-17    <johan AT balder>
15637
15638         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
15639         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
15640
15641 2003-04-13  Borut Razem <borut.razem AT siol.net>
15642
15643         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
15644         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
15645           fixed mingw problem in adl_NORMALIZE_PATH
15646
15647 2003-04-12  Borut Razem <borut.razem AT siol.net>
15648
15649         * fixed "#pragma SAVE/RESTORE can not be nested":
15650         * src/SDCC.lex: reworked pragma handling functions
15651         * sdcc/src/SDCCglobl.h: reworked stack handling macros
15652         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
15653
15654 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
15655
15656         * src/SDCCutil.c (pathEquivalent): defined but not used
15657         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
15658         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
15659         * configure: rebuilt from configure.in
15660         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
15661         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
15662         * device/include/Makefile.in: replace sdcc_datadir
15663         * device/lib/Makefile.in: replace sdcc_datadir
15664         * Makefile.common.in: add LDFLAGS from configure
15665         * packihx/Makefile.in: use LDFLAGS
15666         * src/Makefile.in: use LDFLAGS
15667         * support/cpp2/Makefile.in: add LDFLAGS from configure
15668         * support/makebin/Makefile: use LDFLAGS
15669         * .version: bumped version number to 2.3.5
15670
15671 2003-04-12  Borut Razem <borut.razem AT siol.net>
15672
15673         * completed "different paths" task:
15674         * src/SDCCmacro.c: fixed bug in handling quotes
15675         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
15676         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
15677
15678 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
15679
15680         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
15681
15682 2003-04-11 kevin Vigor <kevin AT vigor.nu>
15683
15684         * ds390/gen.c ds390/peeph.def: fix bug 706781
15685
15686 2003-04-11  Borut Razem <borut.razem AT siol.net>
15687
15688         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
15689
15690 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
15691
15692         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
15693         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
15694          set - this bit used to not be set...).
15695         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
15696           bad code in PIC Port
15697         * src/regression/and2.c added to test bug 609268
15698         * src/regression/Makefile added and2.c to regression test
15699
15700
15701 2003-04-08    <johan AT CP255758-A>
15702
15703         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
15704         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
15705         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
15706
15707 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
15708
15709         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
15710         fix bug #487815
15711         * support/cpp2/Makefile.in: fix bug #487815
15712         * configure: rebuilt from configure.in
15713         * Makefile.common.in: docdir changed, new path suffixes
15714         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15715         * sdcc_vc_in.h: reflect changes from sdccconf.h
15716         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
15717         * src/SDCCutil.h: remove BINDIR hack
15718         * doc/sdccman.lyx: update new path hierarchy
15719
15720 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15721
15722         * src/SDCCpeeph.c: added okToRemoveSLOC test
15723
15724 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15725
15726         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
15727
15728 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15729
15730         * src/SDCCpeeph.c: added labelIsReturnOnly test
15731         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
15732
15733 2003-04-05    <johan AT balder>
15734
15735         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
15736         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
15737         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
15738         * src/SDCCast.c: fixed a warning
15739         * src/SDCCast.h: fixed a warning
15740         * src/SDCCicode.c (operandFromAst): fixed a warning
15741
15742 2003-04-04    <johan AT balder>
15743
15744         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
15745         * src/SDCCast.c (decorateType): fixed bug #715076
15746         * src/SDCC.y: fixed bug #702907
15747
15748 2003-04-03    <johan AT balder>
15749
15750         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
15751         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
15752         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
15753         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
15754         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
15755
15756 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
15757
15758         * _decdptr.c: fix return values
15759         * _gptrget.c: fix return values
15760         * _gptrgetc.c: fix return values
15761         * _gptrput.c: fix return values
15762         * _mulint.c: fix return values
15763         * as/z80/Makefile: fix 'make -j' problem
15764
15765 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
15766
15767         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
15768         * configure.in: big cleanup, updated to autoconf 2.5x
15769         * configure: rebuilt from configure.in
15770         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15771         * sdcc_vc_in.h: reflect changes from sdccconf.h
15772         * doc/Makefile: fixed a flaw in "make install"
15773
15774 2003-04-02    <johan AT balder>
15775
15776         * src/ds390/gen.c (genCmp): no comments
15777         * src/mcs51/gen.c (genCmp): no comments
15778         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
15779         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
15780
15781 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
15782
15783         * support/regression/generate-cases.py: place generated file in given sub directory
15784         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
15785         * support/regression/Makefile: improvements for 'make -j';
15786         side effect: it's simpler and faster now
15787
15788 2003-03-31  Borut Razem <borut.razem AT siol.net>
15789
15790         * src/z80/main.c: link-{port} and as-{port} defined without path
15791         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
15792
15793 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
15794
15795         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
15796
15797 2003-03-30  Borut Razem <borut.razem AT siol.net>
15798
15799         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
15800           changed type of list parameter to set
15801         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
15802         * src/port.h: changed type of do_assemble() parameter to set
15803         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
15804           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
15805           definition of "cppoutfilename" macro with NULL value in preProcess()
15806         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
15807         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
15808         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
15809           replaced with set *binPathSet
15810         * shash_add() deallocates the item, if allready exsists, before adding the new one
15811         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
15812
15813 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
15814
15815         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
15816           a nested for loop bug in the PIC port
15817         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
15818           for loops
15819
15820 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
15821
15822         * support/Util/dbuf.h: remove C++ stuff to make it portable
15823
15824 2003-03-28  Borut Razem <borut.razem AT siol.net>
15825
15826         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
15827           literal strings in stringLiteral()
15828         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
15829         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
15830           to the project
15831
15832 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
15833
15834         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
15835
15836 2003-03-26    <johan AT balder>
15837
15838         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
15839         * src/ds390/gen.c (saveRegisters): catched symbol abuse
15840         * src/SDCCast.c (decorateType): fixed " -v < 3"
15841
15842 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
15843
15844         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
15845         Added Lenny Story's debug infrastructure changes:
15846         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
15847         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
15848         * src/cdbFile.c: added
15849         * src/SDCCdebug.c: added
15850         * src/SDCCdebug.h: added
15851         * src/SDCCast.c (createFunction)
15852         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
15853         * src/SDCCmain.c (parseCmdLine, main)
15854         * src/SDCCmem.c (redoStackOffsets)
15855         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
15856         * src/SDCCsymt.h
15857         * src/common.h
15858         * src/avr/gen.c (genAVRCode)
15859         * src/ds390/gen.c (gen390Code)
15860         * src/mcs51/gen.c (gen51Code)
15861         * src/pic/gen.c (genpic14Code)
15862         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
15863         * src/xa51/gen.c (genXA51Code)
15864         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
15865
15866 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15867
15868         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
15869         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
15870
15871 2003-03-22    <johan AT balder>
15872
15873         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
15874
15875 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
15876
15877         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
15878         * doc/cdbfileformat.lyx: added, written by Lenny Story
15879         * doc/Makefile: added cdbfileformat.lyx
15880         * doc/clean.mk: added cdbfileformat.lyx
15881
15882 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
15883
15884         * src/mcs51/peeph.def: fix bug #705773
15885
15886 2003-03-20    <johan AT balder>
15887
15888         An sfr/sbit can have an "at #" AND an initializer
15889         * src/SDCCsymt.c (checkSClass):
15890         * src/SDCCmem.c (allocGlobal):
15891         * src/SDCCmem.c (allocLocal):
15892         * src/SDCCast.c (createBlock):
15893
15894 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
15895
15896         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
15897
15898 2003-03-16    <johan AT balder>
15899
15900         Undid the hackup of const and volatile, the problem is much bigger
15901         * src/SDCC.y:1.65
15902         * src/SDCCast.c:1.171
15903         * src/SDCCglue.c:1.138
15904         * src/SDCCicode.c:1.146
15905         * src/SDCCsymt.c:1.150
15906         * src/SDCCval.c:1.65
15907
15908 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
15909
15910         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
15911         * src/ds390/gen.c (genAddrOf): fixed bug #704087
15912
15913 2003-03-13    <johan AT balder>
15914
15915         Hackup const and volatile modifiers in type chains a bit:
15916         * src/SDCC.y:1.63
15917         * src/SDCCast.c:1.169
15918         * src/SDCCglue.c:1.136
15919         * src/SDCCicode.c:1.143
15920         * src/SDCCsymt.c1.146
15921         * src/SDCCsymt.h1.59
15922         * src/SDCCval.c:1.63
15923
15924 2003-03-12    <johan AT balder>
15925
15926         * src/SDCCBBlock.h: more LRH debugging junk
15927         * src/SDCCcflow.h: more LRH debugging junk
15928         * src/SDCCloop.c: more LRH debugging junk
15929         * src/SDCC.y (struct_declaration): fixed bug #697590
15930         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
15931         * src/ds390/gen.c (aopForRemat): fixed bug #700031
15932         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
15933
15934 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15935         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
15936         test function names must now match exactly).
15937         * src/SDCCcse.c: added special case in findCheaperOp to allow
15938         extending a short integer. Makes less awful code for bug 700121 test case.
15939
15940 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15941
15942         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
15943         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
15944
15945 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15946
15947         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
15948         actually called (operandsNotEqual() was called for all
15949         operandsNotEqualX tests).
15950
15951 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15952
15953         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
15954         with shorter literals. Fixes bug 700121.
15955
15956 2003-03-11    <johan AT balder>
15957
15958         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
15959
15960 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
15961
15962         * src/SDCCloop.c (mergeRegions): an evil beast is dead
15963         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
15964
15965 2003-03-10  Borut Razem <borut.razem AT siol.net>
15966
15967         * src/SDCCmain.c: pipe preprocessor's output
15968         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
15969         * sdcc_vc_in.h: define pclose as _pclose for WIN32
15970         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
15971         which closes all pipes in pipeSet set
15972         * src/SDCCset.c: free deleted item in function deleteSetItem()
15973         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
15974         moved from z80 to src subproject
15975         * .version: increased version number to 2.3.4
15976
15977 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
15978
15979         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
15980         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
15981         * support/regression/ports/xa51/spec.mk: fix typo
15982
15983 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
15984
15985         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
15986
15987 2003-03-09  Borut Razem <borut.razem AT siol.net>
15988
15989         * src/SDCCmain.c: pipe preprocessor's output
15990         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
15991         * sdcc_vc_in.h: define pclose as _pclose for WIN32
15992         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
15993         which closes all pipes in pipeSet set
15994         * src/SDCCset.c: free deleted item in function deleteSetItem()
15995         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
15996         moved from z80 to src subproject
15997
15998 2003-03-09  Borut Razem <borut.razem AT siol.net>
15999
16000         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
16001         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
16002         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
16003         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
16004         * src/SDCCglobl.h: unification of WIN32 native definitions
16005
16006 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
16007
16008         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
16009
16010 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
16011
16012         * src/configure.in:   check for endianess (even while cross-compiling)
16013         * src/configure:      check for endianess (even while cross-compiling)
16014         * src/configure_in.h: check for endianess (even while cross-compiling)
16015         * src/avr/gen.c:        remove old endianess stuff
16016         * src/mcs51/gen.c:      remove old endianess stuff
16017         * src/ds390/gen.c:      remove old endianess stuff
16018         * src/pic/gen.c:        remove old endianess stuff
16019         * src/pic/genarith.c:   remove old endianess stuff
16020         * src/pic/glue.c:       fix endianess check
16021         * src/pic16/gen.c:      remove old endianess stuff
16022         * src/pic16/genarith.c: remove old endianess stuff
16023         * src/pic16/glue.c:     fix endianess check
16024         * src/xa51/gen.c:       remove old endianess stuff
16025         * src/z80/gen.c:        fix endianess check
16026         * src/SDCCglue.c:       fix endianess check
16027         * src/ds390/peeph.def: fix bug 700036
16028
16029 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
16030
16031         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
16032         * src/configure: find appropriate data-types on host for SDCC's int and long
16033         * src/configure.in: find appropriate data-types on host for SDCC's int and long
16034         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
16035         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
16036
16037 2003-03-07    <johan AT balder>
16038
16039         Just a big NOOP:
16040                 some minor cleanups before the big shot
16041                 OP_DEFS and OP_USES now use Kevin's protection
16042                 new option --nolabelopt
16043
16044         * src/SDCCBBlock.c:
16045         * src/SDCCast.c,:
16046         * src/SDCCcflow.c:
16047         * src/SDCCcse.c:
16048         * src/SDCCicode.c:
16049         * src/SDCCicode.h:
16050         * src/SDCClabel.c:
16051         * src/SDCCloop.c:
16052         * src/SDCCmain.c:
16053         * src/ds390/ralloc.c:
16054         * src/mcs51/ralloc.c:
16055         * src/pic/ralloc.c:
16056         * src/xa51/ralloc.c:
16057         * src/z80/ralloc.c:
16058
16059 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
16060
16061         * src/pic/pcode.c (get_op): fix 64 bit warnings
16062         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
16063         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
16064         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
16065         * support/regression/tests/malloc.c: fix 64 bit warnings
16066
16067 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
16068
16069         * src/mcs51/gen.c (genMinus): fixed bug 696436
16070
16071 2003-03-02  Borut Razem <borut.razem AT siol.net>
16072
16073         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
16074
16075 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
16076
16077         * configure.in: test for mkstemp
16078         * sdccconf_in.h: add HAVE_MKSTEMP
16079
16080 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
16081
16082         * device/include/ctype.h: removed warning while using --stack-auto
16083         * device/include/malloc.h: removed warning while using --stack-auto
16084         * device/include/string.h: removed warning while using --stack-auto
16085
16086 2003-02-23  Borut Razem <borut.razem AT siol.net>
16087
16088         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
16089         because NDEBUG is defined (see man assert)
16090         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
16091
16092 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
16093
16094         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
16095         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
16096
16097 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
16098
16099         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
16100         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
16101
16102 2003-02-18    <johan AT balder>
16103
16104         * as/mcs51/asmain.c (asmbl): module can start with a digit
16105         * as/z80/asmain.c (asmbl): module can start with a digit
16106
16107 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
16108
16109         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
16110         * src/asm.c: fix pipe() for Mingw32
16111
16112 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
16113
16114         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
16115         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
16116         make -V work again; --c1mode reads now from stdin
16117         * doc/sdccman.lyx: added --c1mode
16118         * support/Util/SDCCerr.c: new messages for c1 mode
16119         * support/Util/SDCCerr.h: new messages for c1 mode
16120         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
16121
16122 2003-02-15    <johan AT balder>
16123
16124         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
16125
16126 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
16127
16128         * doc/sdccman.lyx: Environment variables, -o and other minor things
16129
16130 2003-02-14    <johan AT balder>
16131
16132         * src/xa51/main.c: before anyone really tries to use it :)
16133
16134         * Install doc's in share/sdcc/doc
16135         * removed some obsolete files
16136         * Do a proper make distclean and uninstall
16137         M Makefile.common.in
16138         R sdccbuild.sh
16139         M as/Makefile
16140         M device/include/Makefile.in
16141         M device/lib/Makefile.in
16142         M doc/sdccman.lyx
16143         M link/Makefile
16144         M sim/ucsim/doc/Makefile.in
16145         M src/clean.mk
16146         R src/avr/peeph.rul
16147         R src/xa51/peeph.rul
16148         M support/cpp2/Makefile.in
16149         M support/makebin/Makefile
16150
16151
16152 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
16153
16154         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
16155
16156 2003-02-10  Borut Razem <borut.razem AT siol.net>
16157
16158         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
16159         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
16160         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
16161         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
16162         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
16163         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
16164         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
16165         src/z80/Makefile.bcc: Borland Makefile cleanup
16166         * as/z80/Makefile.bcc: Added Borland Makefile
16167         * support/cpp2/borland.h: Removed
16168
16169 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
16170
16171         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
16172         * src/SDCC.lex: new pragma NOIV
16173         * src/SDCCglobl.h: new pragma NOIV
16174         * src/SDCCmem.c: new pragma NOIV
16175
16176 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
16177
16178         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
16179
16180 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
16181
16182         * src/SDCCmain.c: signal handling is switched off by --debug
16183         * doc/Makefile: small fix for install; use clean.mk again
16184         * doc/clean.mk: clean *.pdf and *.html too
16185
16186 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
16187
16188         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
16189         * device/lib/printfl.c: fix a ds390 bug by making it portable
16190         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
16191         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
16192         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
16193         * debugger/mcs51/cmd.c: converted multi-line string literals
16194         * sim/ucsim/globals.cc: converted multi-line string literals
16195         * src/SDCCmain.c: introduced signal handler to remove temp files
16196         * doc/Makefile: small tweaks, implement clean
16197         * doc: removed generated files
16198
16199 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16200
16201         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
16202         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
16203         Address Record is not correctly generated for DS390."
16204
16205 2003-02-02  Borut Razem <borut.razem AT siol.net>
16206
16207         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
16208         * as/mcs51/asm.h: fixed compilation with Borland C
16209         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
16210         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
16211         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
16212         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
16213         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
16214         src/z80/Makefile.bcc: delete $(LIB) only if exist
16215         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
16216
16217 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
16218
16219         * device/include/malloc.h: introduced NULL
16220         * device/include/string.h: introduced NULL
16221         * device/include/stdlib.h: introduced NULL
16222         * device/lib/_memcpy.c: removed NULL
16223         * device/lib/_strcat.c: removed NULL
16224         * device/lib/_strchr.c: removed NULL
16225         * device/lib/_strcmp.c: removed NULL
16226         * device/lib/_strcpy.c: removed NULL
16227         * device/lib/_strcspn.c: removed NULL
16228         * device/lib/_strlen.c: removed NULL
16229         * device/lib/_strncat.c: removed NULL
16230         * device/lib/_strncmp.c: removed NULL
16231         * device/lib/_strncpy.c: removed NULL
16232         * device/lib/_strpbrk.c: removed NULL
16233         * device/lib/_strrchr.c: removed NULL
16234         * device/lib/_strspn.c: removed NULL
16235         * device/lib/_strstr.c: removed NULL
16236         * device/lib/_strtok.c: removed NULL
16237         * device/lib/malloc.c: removed NULL, include own header
16238
16239 2003-02-02    <johan AT balder>
16240
16241         * 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
16242         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
16243         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
16244         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
16245         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
16246         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
16247
16248 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16249
16250         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
16251         area 'DATA'"
16252
16253 2003-02-01    <johan AT balder>
16254
16255         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
16256
16257 2003-01-31    <johan AT CP255758-A>
16258
16259         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
16260
16261 2003-01-30    <johan AT balder>
16262
16263         * src/SDCCBBlock.c: automatic bug detection
16264         * src/SDCCicode.c: automatic bug detection
16265
16266 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16267
16268         * src/SDCCglobl.h:   now --xram-size 0 works
16269         * src/SDCCmain.c:    now --xram-size 0 works
16270
16271 2003-01-29    <johan AT balder>
16272
16273         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
16274
16275 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16276
16277         * as/mcs51/aslink.h: Added options --xram-size and --code-size
16278         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
16279         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
16280         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
16281         * src/SDCCglobl.h:   Added options --xram-size and --code-size
16282         * src/SDCCmain.c:    Added options --xram-size and --code-size
16283
16284 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
16285
16286         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
16287         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
16288
16289 2003-01-27    <johan AT balder>
16290
16291         * src/SDCC.y: fixed bug #613764
16292
16293 2003-01-26    <johan AT balder>
16294
16295         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
16296         * src/SDCCsymt.h: fixed bug #673374
16297         * src/SDCCglue.c: fixed bug #661910
16298         * src/SDCCast.c: fixed bug #458099 and 673374
16299
16300 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
16301
16302         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
16303         * as/mcs51/strcmpi.h: added
16304         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
16305         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
16306         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
16307         * as/mcs51/assym.c: strcmpi -> as_strcmpi
16308         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
16309         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
16310         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
16311         * as/mcs51/Makefile.aslink: new module strcmpi
16312         * as/mcs51/Makefile.asx8051: new module strcmpi
16313         * as/mcs51/Makefil.bcc: new module strcmpi
16314         * as/mcs51/Makefile.in: new module strcmpi
16315         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
16316
16317 2003-01-26    <johan AT balder>
16318
16319         * src/SDCCglue.c: reverted back to 1.124
16320         * src/SDCCast.c: reverted back to 1.156
16321         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
16322
16323 2003-01-25    <johan AT balder>
16324
16325         * src/SDCCglue.c: A better fix for bug #661910
16326         * src/SDCCast.c: A better fix for bug #661910
16327         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
16328
16329 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
16330
16331         * src/Makefile.in: remove spawn.o
16332         * src/SDCCmain.c: remove spawn.h
16333         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
16334         * src/spawn.c: removed
16335         * src/spawn.h: removed
16336         * support/regression/ports/ds390/spec.mk: link with -r
16337
16338 2003-01-24    <johan AT CP255758-A>
16339
16340         * src/ds390/gen.c (aopOp): fixed bug #667458
16341         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
16342         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
16343         (createIvalCharPtr): an ival doesn't always have a storage class anymore
16344
16345 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
16346
16347         * src/mcs51/peeph.def: better assembler identation by Frieder
16348         * src/mcs51/gen.c: better assembler identation by Frieder
16349
16350 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
16351
16352         * as/z80/string.h: removed for gcc 3.2
16353         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
16354         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
16355
16356 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
16357
16358         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
16359         * src/SDCCpeeph.c (replaceRule): fix bug #663503
16360         * support/regression/Makefile: separate temp files for ports
16361         * support/regression/generate-cases.py: separate temp files for ports
16362         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
16363         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
16364
16365 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
16366
16367         * moved tinitalk to device/examples/ds390
16368
16369 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
16370
16371         * as/mcs51/lkmem.c: rflag is for DS390
16372         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
16373         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
16374                          (linkEdit): move mem- and map-files the same way as ihx-files
16375         * src/z80/main.c (_setDefaultOptions): removed --generic
16376         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
16377         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
16378         * src/pic/glue.c (picglue): --c1mode works again
16379         * src/pic16/glue.c (pic16glue): --c1mode works again
16380         * src/asm.c (printCLine): fix #660034
16381
16382 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
16383
16384         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
16385         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
16386         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
16387         * as/mcs51/lkmem (summary): better fix for sp problem
16388         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
16389         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
16390         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
16391                                               remove --stack-after-data
16392
16393 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
16394
16395         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
16396         * src/SDCCutil.c (join): ugly bug: missing '\0'
16397         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
16398
16399 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
16400
16401         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
16402         * src/port.h: typo
16403         * src/pic/main.c (_asmCmd): gpasm supports -o
16404         * src/z80/main.c: more general macros
16405         * device/lib/Makefile.in: remove intermediate files
16406
16407 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
16408
16409         * .version: Bumped version number to 2.3.3
16410         * src/SDCCBBlock.c: new option -o
16411         * src/SDCCglobl.h: new option -o
16412         * src/SDCCglue.c: new option -o
16413         * src/SDCCmain.c: new option -o
16414         * src/asm.c: new option -o
16415         * src/ds390/main.c: new option -o
16416         * src/pic/glue.c: new option -o
16417         * src/pic/pcode.c: new option -o
16418         * src/pic/ralloc.c: new option -o
16419         * src/pic16/glue.c: new option -o
16420         * src/pic16/pcode.c: new option -o
16421         * src/pic16/ralloc.c: new option -o
16422         * src/z80/main.c: new option -o
16423         * device/lib/Makefile.in: use -o
16424         * support/regression/ports/ds390/spec.mk: use -o
16425         * support/regression/ports/gbz80/spec.mk: use -o
16426         * support/regression/ports/mcs51/spec.mk: use -o
16427         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
16428         * support/regression/ports/z80/spec.mk: use -o
16429         * support/regression/ports/ucz80/spec.mk: use -o
16430         * support/regression/ports/xa51/spec.mk: use -o
16431         * support/regression/fwk/lib/timeout.c: fix usage string
16432
16433 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
16434         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
16435
16436 2003-01-07    <johan AT balder>
16437
16438         * src/SDCCast.c (decorateType): fixed bug #600035
16439
16440 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
16441         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
16442         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
16443         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
16444         * src/pic/pcode.c: outcommented unused variable to remove warnings
16445         * src/pic/ralloc.c: outcommented unused variable to remove warnings
16446
16447 2003-01-06    <karl AT turbobit.com>
16448         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
16449         regression tests.
16450
16451 2003-01-06    <johan AT balder>
16452
16453         * src/SDCCicode.c: fixed array add
16454
16455 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
16456         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
16457         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
16458
16459 2003-01-04    <johan AT balder>
16460
16461         * src/SDCCval.c (getNelements): fixed the initialized array of structures
16462
16463 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16464         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
16465
16466 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
16467         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
16468         * support/regression/tests/bug-524697.c: fit mem usage into 8032
16469
16470 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
16471         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
16472
16473 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
16474         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
16475
16476 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
16477         * src/mcs51/main.c: removed {bindir}{sep} from aslink
16478
16479 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16480
16481         * in /sdcc/as/mcs51/ changed these files in order to create an
16482         aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
16483         lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
16484         following files to include the previous two files: aslink.dsp,
16485         Makefile.aslink, Makefile.bcc, and Makefile.in.
16486
16487         * Changed /sdcc/src/SDCCmain.c so it creates files with extension
16488         .adb instead of .cdb
16489
16490 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16491
16492         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
16493         value from option --iram-size.
16494
16495 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16496
16497         * /sdcc/as/mcs51/lklist.c: added boundary check before using
16498         dram[] array.
16499
16500 2002-09-18    <wiml AT hhhh.org>
16501
16502         * SDCClrange.h: exposed setFromRange() and setToRange()
16503         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
16504           packRegsForAccUse() (bug 542397)
16505         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
16506           multiple times and emitting the fetch operations more than once
16507           added aopGetUsesAcc() function to allow binary operators to
16508           fetch their operands in the correct order; made genMinus() emit
16509           compact code for X = LITERAL - Y
16510
16511 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16512         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
16513         sprintf() in line 1267.
16514
16515 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16516         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
16517         like ports.
16518
16519 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16520         Changes to aslink (All the changes are marked with 'JCF'):
16521
16522         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
16523         summary().
16524
16525         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
16526         area BSEG.  Also moves, if possible, the DATA area down into the internal
16527         ram so more space is available.
16528
16529         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
16530         sflag.
16531
16532         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
16533         not bytes.  Function summary() which creates a memory usage summary
16534         file with extension .mem.  Reports of overlaping stack and small stack
16535         size.  If the space for the stack is less than 16 bytes aslink trows a
16536         warning.
16537
16538         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
16539         the 8051.  Option 'y' for memory summary output file.
16540
16541         Changes to sdcc (All the changes are marked with 'JCF'):
16542
16543         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
16544
16545         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
16546         overlaying area for it (uses RegBankUsed[4]).
16547
16548         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
16549         bank zero as used by default.  By default aslink locates the stack
16550         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
16551         the creation of the .mem file.  Delegates the allocation of data area
16552         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
16553         the begining of the stack area to aslink.
16554
16555         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
16556         glue() in SDCCglue.c creates an area for it.
16557
16558 2002-09-03  Borut Razem <borut.razem AT siol.net>
16559         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
16560         sdcc/src/pic/glue.c:
16561         introduced atexit() handler for teporay files removal in case of
16562         errors, assertions, ...
16563
16564 2002-08-29  Borut Razem <borut.razem AT siol.net>
16565         * sdcc/support/cpp2/auto-host_vc_in.h:
16566         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
16567         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
16568         Maybe there is a similar problem with BORLANDC? It should be checked!
16569
16570         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
16571         corrected improper use of assert: the assignment to clr variable was done inside the assert.
16572         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
16573         was not executed, and the compiler (cl) launched a warning:
16574         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
16575
16576 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
16577         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
16578
16579 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
16580         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
16581
16582         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
16583           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
16584           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
16585           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
16586           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
16587           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
16588           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
16589         - added Release configuration in VS projects
16590         - review of compiler an linker options
16591         - VC .exe files are generated in bin_vc directory, not to interfere
16592           with binaries generated from other projects (cygwin, mingw, bcc ...)
16593
16594         * sdcc/src/yacc.dsp: added
16595
16596         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
16597         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
16598         and insert the version number definitions from .version
16599
16600         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
16601
16602         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
16603         added - genarate auto-host.h using auto-host_vc_in.h as template
16604
16605         * sdcc/sdcc_vc.h,
16606         removed from CVS, generated automatically
16607
16608 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
16609         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
16610
16611 2002-08-11  Borut Razem <borut.razem AT siol.net>
16612         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
16613
16614 2002-08-10  Borut Razem <borut.razem AT siol.net>
16615         * src/SDCCmain.c (main):
16616         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
16617         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
16618         The consequence was that some temporary files were not removed.
16619
16620         * src/SDCCglue.c:
16621         unification of code in functions tempfilename() and tempfile():
16622         function tempnam() is defined in Visual Studio 6.0 and .NET
16623
16624         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
16625
16626         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
16627           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
16628         - removed compiler command line option /WX: Treats all warnings as errors
16629         - update a list of source files, included into the project
16630
16631         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
16632           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
16633         changed project type to Generic Project so that can be correcly converted to VS.NET project
16634
16635         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
16636
16637         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
16638
16639         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
16640
16641         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
16642         added return 0 statements after assert() to make compiler happy
16643
16644         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
16645         added newline in the def file to keep MSC compiler satisfied
16646
16647         * sdcc/src/z80/gen.c:
16648         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
16649           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
16650         - solved MSC error in function aopDump()
16651
16652         * sdcc_vc.h: define PREFIX as "\\sdcc"
16653
16654 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
16655         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
16656
16657 2002-06-22  Scott Dattalo <scott AT dattalo.com>
16658         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
16659         - Rewrote the register banking algorithm.
16660         - Added pCode live-range analysis to registers (for now, only non-used and
16661         singly-used registers optimized away)
16662
16663         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
16664
16665         * 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.
16666
16667 2002-05-10  Scott Dattalo <scott AT dattalo.com>
16668         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
16669
16670 2002-04-22  Michael Hope  <michaelh AT vroom>
16671
16672         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
16673
16674         * configure.in (DD_COPT): Added include support required for gbdk.
16675
16676         * .version: Bumped version number just to increase it.
16677
16678         * src/SDCCmain.c: Added -nostdinc to the default options.
16679
16680 2002-04-15  Michael Hope  <michaelh AT vroom>
16681
16682         * device/lib/z80/printf.c (sprintf): Added.
16683
16684         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
16685
16686         * src/z80/peeph.def: Added transpose redundent load rule.
16687
16688         * src/z80/main.c: Added force callee saves for jaune.
16689
16690         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
16691
16692         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
16693
16694 2002-03-28  Johan Knol  <johan AT balder>
16695
16696         * src/SDCCval.c: fixed bug #532436
16697
16698 2002-03-14  Scott Dattalo <scott AT dattalo.com>
16699         * /src/port.h:
16700         Added "char *Processor" field to the port structure.
16701
16702         * /src/SDCCmain.c:
16703         Added -p option. Allows port dependent processor to be specified.
16704
16705         * all ports:
16706         Initialized the new field char *Processor field to NULL in all ports
16707
16708         * /src/pic/*:
16709         Compiler generated registers for interrupt context saving
16710         were not getting allocated.
16711
16712 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
16713
16714         * /src/SDCCast.c:
16715         Fixed left shift. Will promote the left side of a left shift
16716         if a) left shifting more than size of operand or b) when assigned
16717         to something size > size of left side
16718
16719 2002-03-14  Scott Dattalo <scott AT dattalo.com>
16720         * src/pic/*
16721         tons of changes. Register allocation has been
16722         rewritten. Added customization for the various PICs. Flow
16723         analysis is restructured. ...
16724
16725         * src/pic/device.h:
16726         Added
16727
16728         * src/pic/device.c:
16729         Added. device.c is a PIC port hack to accomodate variations
16730         in PIC devices.
16731
16732 2002-03-13  Michael Hope  <michaelh AT vroom>
16733
16734         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
16735
16736 2002-03-04  johanknol  <johanknol AT manik>
16737
16738         * /src/SDCCval.c: fixed
16739
16740         const unsigned char arr[][2] = { { 0, 1 } };
16741         t18.c:1: error: Initializer element is not constant
16742
16743 2002-03-04  bela  <bela AT manik>
16744
16745         * /device/include/mcs51reg.h:
16746         ds89c420 register definition update
16747
16748 2002-03-03    <johan AT FRIJA>
16749
16750         * support/Util/SDCCerr.c: did something, but don't no why anymore
16751
16752         * support/regression/tests/bug-524691.c: made it a little less shy
16753
16754         * src/SDCCast.c (decorateType): fixed bug #524697
16755
16756         * src/SDCCast.c: made some lineno improvements
16757
16758         * src/SDCCval.c (getNelements): changed warning to error
16759
16760         * src/SDCCglue.c (printIvalArray): changed warning to error
16761
16762         * src/SDCCicode.c: fixed a warning for mingw
16763
16764         * src/SDCCast.c (decorateType): fixed the << promotion for ops
16765
16766         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
16767
16768 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
16769
16770         * src/ds390/peeph.def:
16771         Added some more peephole rules
16772
16773         * src/ds390/gen.c: Various fixes & enhancements
16774
16775         * src/SDCClrange.c, src/SDCClrange.h:
16776         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
16777
16778         * src/ds390/ralloc.c:
16779         various fixes & enhancements (ds390) specific
16780
16781         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
16782         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
16783         from rallocs.
16784
16785         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
16786
16787 2002-03-02    <johan AT FRIJA>
16788
16789         * src/SDCCast.c (decorateType): fixed bug #524708
16790
16791         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
16792
16793         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
16794
16795 2002-03-01  Michael Hope  <michaelh AT vroom>
16796
16797         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
16798
16799         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
16800
16801 2002-03-01    <johan AT FRIJA>
16802
16803         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
16804
16805         * src/SDCCast.c (decorateType): fixed bug #524209
16806
16807         * src/SDCCval.c (valNot): fixed bug #524195
16808
16809 2002-02-26    <johan AT balder>
16810
16811         * src/xa51/gen.c: fixed a warning
16812
16813         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
16814
16815         * src/SDCCast.c (decorateType): fixed bug #522534
16816
16817 2002-02-23    <johan AT balder>
16818
16819         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
16820
16821 2002-02-22    <johan AT balder>
16822
16823         * src/SDCCast.c: fixed bug #514865
16824
16825         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
16826
16827 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
16828
16829         * sdcc/src/SDCCloop.c:
16830         Previous fix was not good. basic blocks that have "break" or "return" are
16831         not really partof a loop , but live ranges used in these blocks should
16832         be live thru the entire loop, so set partOfLoop but don't add them to
16833         loop region
16834
16835 2002-02-21    <johan AT FRIJA>
16836
16837         * src/SDCCcse.c: fixed bug #514308
16838
16839 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
16840
16841         * src/SDCCloop.c:
16842         Fixed BUG #519583. If a conditional block ended in a return/break
16843         statement inside a loop, it was not being considered part of the loop.
16844
16845         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
16846
16847 2002-02-10  Karl Bongers <karl AT turbobit.com>
16848
16849         * debugger/*:
16850         Fixed up SDCDB debugger somewhat.  Updated debugger/README
16851         with lots of comments and notes.
16852
16853         * device/examples/test2.c:
16854         Fix bug, "red" variable not being initialized(compiler complained).
16855
16856         * device/examples/Makefile, examples/test3.c:
16857         Add Makefile in device/examples folder, compiles test3.c
16858         for use as a multiple module SDCDB test case.
16859
16860         * sim/ucsim/cmd.src/cmdset.cc:
16861         Took out debug printfs in ucsim "next" command.
16862
16863         * sim/ucsim/xa.src:
16864         Karl and Johan start ucsim XA support.  Most dissassembly working,
16865         about 75% emulation done(plenty of work remaining).
16866
16867         * sim/ucsim/z80.src:
16868         Add Z80 support to ucsim, add test-ucz80 regression test,
16869         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
16870         Notice z80 compiler fails on examples/test3.c/crc code.
16871
16872 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
16873
16874         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
16875         Added support for --parms-in-bank1
16876
16877         * src/ds390/peeph.def:
16878         added a few more peephole optimzations
16879
16880         * src/ds390/main.c:
16881         1) added __builtin_inp & __builtin_outp used to read in data of given length
16882            from a memory mapped port
16883         2) added __builtin_memcmp
16884         3) added __builtin_swapw swap bytes of a short
16885
16886         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
16887         1) handle multiple send & receives from register bank1
16888         2) ralloc can now allocate DPTR1 to some liveRanges
16889
16890         * src/SDCCsymt.c, src/SDCCsymt.h:
16891         changes to handle multiple sends & receives
16892
16893         * src/SDCCptropt.h:
16894         added some pointer arithmetic optimization
16895
16896         * src/SDCCptropt.c:
16897         added some pointer arithmetic optimizations but not stable yet so not
16898         called from anywhere (will get this working shortly)
16899
16900         * src/SDCCopt.c: fixed for multiple sends & receives
16901
16902         * src/SDCCmain.c:
16903         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
16904         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
16905            set preprocessor defines (depending on options)
16906
16907         * src/SDCCicode.c, src/SDCCicode.h:
16908         changes made to handle multiple sends & receives
16909
16910         * src/SDCCglobl.h:
16911         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
16912
16913         * src/SDCCcse.c, src/SDCCcse.h:
16914         added function findbackward def (to be used in upcoming optimization)
16915
16916         * src/SDCCcflow.c, src/SDCCcflow.h:
16917         added function returnAtEnd - to determine if a basic block terminates with
16918         a RETURN iCode
16919
16920         * src/SDCCast.c, src/SDCCast.h:
16921         added option parms-in-bank1
16922
16923         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
16924         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
16925         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
16926         adjusted for --parms-in-bank1 option
16927
16928         * device/include/string.h:
16929         donot redefine "reentrant" keyword
16930
16931         * device/include/ds80c390.h: Added some more SFRs
16932
16933 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
16934
16935         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
16936
16937 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
16938
16939         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
16940
16941 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
16942
16943         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
16944
16945 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
16946
16947         * Added --xram-movc option
16948
16949 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
16950
16951         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
16952
16953 2002-01-11  Johan Knol
16954
16955         * Added math lib of Jesus Calvino-Fraga
16956
16957 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
16958
16959         * src/SDCCmain.c (processFile): fix processing of ../../src.c
16960         * support/regression/Makefile: new target test-mcs51-stack-auto
16961         * support/regression/ports/mcs51-stack-auto/spec.mk: added
16962
16963 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
16964
16965         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
16966
16967 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
16968
16969         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
16970
16971 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
16972
16973         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
16974
16975         * src/SDCCglue.h: add definition for printIvalChar()
16976
16977 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
16978
16979         * src/SDCCast.c: fix #498138 by Johan
16980
16981         * src/SDCCglue.c: fix #498138 by Johan
16982
16983 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
16984
16985         * support/regression/Makefile: fix clean
16986
16987         * support/regression/ports/ds390/support.c: fix transmission of last character
16988
16989 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
16990
16991         * /sdcc/src/ds390/gen.c:
16992         a) improved computing address of stack variable
16993         b) took out some #if 0 code
16994         c) improved parmBytes adjustment
16995         d) improved genPlusIncr & genMinusIncr
16996         e) genCmp could generate bad code (when left assigned to DPTR)
16997         f) Fixed bug in hasInc
16998
16999         * /sdcc/src/ds390/ralloc.c:
17000         a) packRegsForSupport could mess up live information (Fixed)
17001         b) packRegsDPTRuse could be incorrect for left & right shift
17002
17003         * /sdcc/src/mcs51/ralloc.c:
17004         packRegsForSupport could mess up the live information (Fixed)
17005
17006         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
17007
17008         * /sdcc/src/SDCCast.c:
17009         can reverse a loop even if function call is present as long
17010         as the loop control variable is local & is not passed as parameter
17011
17012 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
17013
17014         * /sdcc/ChangeLog: *** empty log message ***
17015
17016         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
17017         More builtin function additions for TININative
17018
17019         * /sdcc/src/ds390/ralloc.c:
17020         Had broken the regression testsuite
17021
17022         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
17023
17024         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
17025         Added funcattr hasStackParms will be set for reentrant functions when there
17026         are paramteres on the stack, this helps in minimizing frame pointer generation
17027         typeFromStr can handle function pointers now
17028
17029         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
17030         *** empty log message ***
17031
17032 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
17033
17034         * /src/ds390/gen.c, /src/ds390/main.c:
17035         More builtin function additions for TININative
17036
17037         * /src/ds390/ralloc.c:
17038         Had broken the regression testsuite
17039
17040         * /src/SDCCast.c: Fixed a bug in dumptree
17041
17042         * /src/SDCCsymt.c, /src/SDCCsymt.h:
17043         Added funcattr hasStackParms will be set for reentrant functions when there
17044         are paramteres on the stack, this helps in minimizing frame pointer generation
17045         typeFromStr can handle function pointers now
17046
17047         * /doc/builtins.txt, /doc/TININative.txt:
17048         *** empty log message ***
17049
17050
17051 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
17052
17053         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
17054         ALPHA version for -mTININative
17055
17056         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
17057         updated to reflect changes in the port structure
17058
17059         * /src/port.h:
17060         added function do_assemble (similar to do_link) if non-null this function
17061         will be called to do assembly (-mTININative) requires a multi command
17062         assembly
17063         added function genAssemblerEnd will be called to generate assembler Epilogue
17064
17065         * /src/SDCCsymt.c:
17066         added _JavaNative to debug info printing
17067
17068         * /src/SDCCmain.c: added option --tini-libid
17069         added port->do_assemble function (-mTININative) has a multi command assemble
17070
17071         * /src/SDCCglue.c: Disabled "constExpr" check
17072         added port->genAssemblerEnd function
17073
17074         * /src/SDCCglobl.h: Added option --tini-libid value
17075
17076         * /src/SDCCast.h:
17077         tookout optimizeCompare from the header (has no external references)
17078
17079         * /src/SDCCast.c: made one more function "static"
17080
17081 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
17082
17083         * src/z80/mappings.i: Added z80asm support.
17084
17085         * src/z80/main.c: Added z80asm support on --asm=z80asm
17086
17087         * src/z80/gen.c: Fixed asm portability issues.
17088
17089         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
17090
17091         * src/SDCCglue.c (printExterns): Added global/extern split.
17092
17093 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
17094
17095         * support/regression/Makefile: added test for mcs51 model large
17096
17097         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
17098
17099         * support/regression/ports/gbz80/spec.mk: added -mgbz80
17100
17101 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
17102
17103         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
17104
17105 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
17106
17107         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
17108
17109         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
17110
17111 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
17112
17113         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
17114
17115         * support/regression/tests/simplefloat.c: Port to mcs51.
17116
17117 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
17118         * support/regression/tests/bug-485362.c: Added.
17119
17120         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
17121
17122         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
17123
17124         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
17125
17126         * src/z80/gen.c (aopDump): Added a dump function.
17127
17128 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
17129         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
17130
17131         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
17132
17133         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
17134
17135         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
17136
17137         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
17138
17139         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
17140
17141         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
17142
17143         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
17144
17145         * support/regression/ports/ds390/support.c: Use tinibios.
17146
17147         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
17148
17149 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
17150
17151         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
17152         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
17153
17154         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
17155
17156         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
17157
17158 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
17159
17160         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
17161
17162         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
17163         (packRegsForIYUse): Created and optimised.
17164
17165 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
17166
17167         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
17168 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
17169
17170         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
17171
17172         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
17173
17174         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
17175
17176 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
17177
17178         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
17179
17180         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
17181
17182 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
17183
17184         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
17185
17186         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
17187
17188         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
17189
17190 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
17191
17192         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
17193         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
17194         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
17195
17196         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
17197
17198         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
17199         (genNotFloat): Added.
17200         (genUminusFloat): Added.
17201
17202         * device/lib/z80/Makefile: Added floating pt stubs.
17203
17204         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
17205
17206         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
17207
17208         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
17209
17210 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
17211
17212         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
17213
17214         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
17215
17216         * sdcc/support/regression/Makefile: Add port ds390.
17217
17218         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
17219
17220         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
17221
17222         * sdcc/support/regression/ports/ds390/spec.mk: Added.
17223
17224         * sdcc/support/regression/ports/ds390/support.c: Added.
17225
17226         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
17227
17228         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
17229
17230         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
17231
17232 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
17233
17234         * device/include/malloc.h: Added z80 and gbz80 support.
17235
17236         * device/lib/gbz80/heap.s: Added.
17237
17238         * device/lib/z80/heap.s: Added.
17239
17240         * device/lib/malloc.c: Added z80 and gbz80 support.
17241
17242         * support/regression/tests/malloc.c (testMalloc): Added.
17243
17244         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
17245
17246         * support/regression/tests/bug-478094.c: Added.
17247
17248         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
17249
17250 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
17251
17252         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
17253
17254         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
17255
17256         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
17257
17258         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
17259
17260         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
17261
17262 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
17263
17264         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
17265
17266 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
17267
17268         * support/regression/tests/bug-477927.c: Added.
17269
17270         * src/z80/peeph.def: Added minor rules.
17271
17272         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
17273
17274         * src/z80/peeph.def: Added jump optimisation modification.
17275
17276 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
17277
17278         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
17279
17280 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
17281
17282         * support/regression/tests/funptrs.c: Added.
17283
17284 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
17285
17286         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
17287
17288 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
17289
17290         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
17291
17292         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
17293
17294         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
17295         (movLeft2ResultLong): Created.
17296
17297         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
17298         (joinPushes): Added.  Joins two char pushes into a word push.
17299
17300 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
17301
17302         * support/cpp2/Makefile.in (install): Added creation of dest dir.
17303
17304         * support/makebin/Makefile (install): Added creation of dest dir.
17305
17306 2001-10-24 Karl Bongers <karl AT turbobit.com>
17307
17308         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
17309
17310 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
17311
17312         * src/z80/ralloc.c: Turned off faulty pack for one use.
17313
17314         * src/z80/peeph-gbz80.def: Removed redundent restart options.
17315
17316         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
17317
17318 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
17319
17320         * support/regression/Makefile: Improved clean
17321
17322         * support/regression/ports/gbz80/spec.mk: Added clean
17323
17324         * support/regression/ports/host/spec.mk: Added clean
17325
17326         * support/regression/ports/z80/spec.mk: Added clean
17327
17328         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
17329
17330         * support/regression/ports/mcs51/timeout.c: little improvements
17331
17332 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
17333
17334         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
17335
17336         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
17337
17338         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
17339
17340 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
17341
17342         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
17343
17344         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
17345
17346 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
17347         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
17348
17349         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
17350
17351         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
17352
17353         * src/mcs51/main.c (_linkCmd): Added bin path to command.
17354
17355         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
17356
17357         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
17358
17359         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
17360
17361         * support/regression/tests/longor.c: Added.
17362
17363 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
17364
17365         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
17366
17367         * as/mcs51/aslink.h: define PATH_MAX
17368
17369         * as/mcs51/asm.h: define PATH_MAX
17370
17371         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
17372
17373         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
17374
17375         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
17376
17377         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
17378
17379         * src/SDCCglobl.h: define PATH_MAX
17380
17381         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
17382
17383         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
17384
17385 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
17386
17387         * src/z80/gen.c (gencjneshort): Fixed
17388
17389         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
17390
17391 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
17392
17393         * support/regression/tests/bug-469671.c: Added.
17394
17395         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
17396
17397 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
17398
17399         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
17400
17401         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
17402
17403 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
17404
17405         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
17406
17407         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
17408
17409         * src/device/lib/_mullong.c : removed hint: nooverlay bug
17410
17411         * src/device/lib/_divuint.c : removed hint: nooverlay bug
17412
17413         * src/device/lib/_divulong.c: removed hint: nooverlay bug
17414
17415         * src/device/lib/_moduint.c : removed hint: nooverlay bug
17416
17417         * src/device/lib/_modulong.c: removed hint: nooverlay bug
17418
17419 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
17420
17421         * 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.
17422
17423         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
17424
17425         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
17426
17427 2001-10-07    <johan AT FRIJA>
17428
17429         * device/lib/gets.c (gets): fixed the return value.
17430
17431 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
17432         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
17433
17434         * 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.
17435
17436         * 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.
17437
17438         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
17439
17440         * src/pic/gen.c: Removed Safe_strdup.
17441
17442         * configure.in: Added option to enable libgc support.
17443
17444         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
17445         (bitVectUnion): Optimised.
17446         (bitVectIntersect): Optimised.
17447         (bitVectBitsInCommon): Optimised.
17448         (bitVectCplAnd): Optimised.
17449
17450         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
17451
17452 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17453
17454         * src/SDCCmain.c: distinguish between assembler debug and plain options
17455
17456         * src/avr/main.c:   remove standard assembler options
17457
17458         * src/ds390/main.c: remove standard assembler options
17459
17460         * src/mcs51/main.c: remove standard assembler options
17461
17462         * src/port.h: removed "PENDING" comment
17463
17464 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17465
17466         * src/device/lib/_mulint.c  : new, with assember functions
17467
17468         * src/device/lib/_mullong.c : new, with assember functions
17469
17470         * src/device/lib/_divuint.c : with assember functions
17471
17472         * src/device/lib/_divsint.c : with assember functions
17473
17474         * src/device/lib/_divulong.c: with assember functions
17475
17476         * src/device/lib/_divslong.c: with assember functions
17477
17478         * src/device/lib/_moduint.c : with assember functions
17479
17480         * src/device/lib/_modsint.c : with assember functions
17481
17482         * src/device/lib/_modulong.c: with assember functions
17483
17484         * src/device/lib/_modslong.c: with assember functions
17485
17486         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
17487
17488         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
17489
17490         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
17491                                       replaced _mululong.c and _mulslong.c by _mullong.c
17492
17493 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17494
17495         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
17496
17497 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
17498
17499         * src/SDCCglue.c: test, if win32api is available for MINGW
17500
17501 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
17502
17503         * src/SDCCsymt.c: no more _modifier in printTypeChain()
17504         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
17505         * support/regression/ports/gbz80/spec.mk: removed GENERIC
17506         * support/regression/ports/host/spec.mk: removed GENERIC
17507         * support/regression/ports/mcs51/spec.mk: removed GENERIC
17508         * support/regression/ports/z80/spec.mk: removed GENERIC
17509
17510 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
17511
17512         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
17513
17514         * support/regression/tests/bug-467035.c: Created.
17515
17516 2001-10-01    <johan AT FRIJA>
17517
17518         * src/SDCC.y: fixed bug #466586 part 1
17519
17520 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
17521
17522         * SDCCicode.c: z80 has no generic pointers
17523         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
17524
17525 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
17526
17527         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
17528
17529 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
17530
17531         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
17532
17533         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
17534
17535 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
17536
17537         * configure.in: Fixed up so that ucsim is only configured once.
17538
17539         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
17540
17541         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
17542         (getPathDifference): As above.
17543
17544         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
17545
17546         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
17547
17548 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
17549         * .version: Updated to 2.3.1
17550
17551         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
17552         Added copyright header.
17553
17554         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
17555         (assemble): Added support for macro based assembler commands.
17556         (linkEdit): Added support for macro based linker commands.
17557         (preProcess): Changed the pre-processor to use macros.
17558         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
17559         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
17560
17561         * device/lib/z80/crt0.s: Added module name for debugging.
17562
17563 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
17564
17565         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
17566
17567         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
17568
17569         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
17570
17571         * src/Makefile.in: Added SDCCmacro and SDCCutil
17572
17573 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
17574
17575         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
17576
17577 2001-09-16    <johan AT FRIJA>
17578
17579         * 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.
17580
17581 2001-09-15    <johan AT FRIJA>
17582
17583         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
17584         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
17585
17586 2001-09-11    <johan AT FRIJA>
17587
17588         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
17589
17590 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
17591
17592         * support/regression/tests/bug-460444.c: Added test case.
17593
17594         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
17595         (genCast): Added justification for all of the asserts.
17596
17597 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
17598
17599         * support/regression/support.c: _xdata replaced by xdata
17600
17601         * support/regression/spec.mk: removed _generic
17602
17603 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
17604
17605         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
17606
17607         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
17608         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
17609
17610         * src/z80/peeph.def: Added a rule to optimise shift then compare.
17611
17612         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
17613
17614         * support/regression/tests/bug-460010.c: Added test case.
17615
17616         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
17617
17618 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
17619
17620         * support/regression/Makefile: inter-port-clean adjusted for mcs51
17621
17622         * support/regression/testfwk.c: removed workaround for bug #436344
17623
17624         * support/regression/tests/bp.c: use less memory with mcs51
17625
17626         * support/regression/tests/bug-441448.c: use less memory
17627
17628         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
17629
17630         * support/regression/collate-results.py: typo
17631
17632 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
17633
17634         * support/regression/tests/fetchoverlap.c: Added new test case.
17635
17636         * support/regression/tests/bp.c: Added new test case.
17637
17638         * support/regression/tests/bug-448984.c: Added new test case.
17639
17640         * support/regression/tests/pow2shifts.c: Added new test case.
17641
17642         * src/z80/gen.c: Turned off the noise it normally generates for the release.
17643         (genlshTwo): Fixed right shift for count > 8.
17644
17645         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
17646
17647 2001-09-08    <johan AT FRIJA>
17648
17649         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
17650
17651 2001-09-07    <johan AT FRIJA>
17652
17653         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
17654
17655         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
17656
17657 2001-09-06    <johan AT FRIJA>
17658
17659         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
17660         * bernhard noted me at this: "() equals to (void)" (1.38)
17661
17662 2001-09-05    <johan AT FRIJA>
17663
17664         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
17665
17666 2001-09-04    <johan AT FRIJA>
17667
17668         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
17669
17670
17671 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
17672
17673         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
17674
17675 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
17676
17677         * link/z80/aslink.h: Fixed path for PATH_MAX
17678
17679 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
17680
17681         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
17682
17683         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
17684
17685         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
17686
17687         * 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.
17688
17689 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
17690
17691         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
17692         (genCmp): Fixed up genCmp for the GB with longs.
17693
17694         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
17695
17696         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
17697
17698         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
17699
17700         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
17701
17702 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
17703
17704         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
17705
17706 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
17707
17708         * 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.
17709
17710         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
17711
17712 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
17713
17714         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
17715
17716         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
17717
17718 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
17719
17720         * sim/ucsim/configure:    little improvement of Cygwin-detection
17721         * sim/ucsim/configure.in: little improvement of Cygwin-detection
17722         * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
17723         * support/regression/tests/bug-221100.c: small changes for mcs51
17724         * support/regression/tests/bug-221168.c: small changes for mcs51
17725         * support/regression/tests/bug-227710.c: small changes for mcs51
17726         * support/regression/tests/staticinit.c: small changes for mcs51
17727         * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
17728         * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
17729         * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
17730
17731 $Revision$