Applied patch #2762516
[fw/sdcc] / ChangeLog
1 2009-04-19 Philipp Klaus Krause <pkk AT spth.de>
2         * device/lib/z80/shift.s,
3           device/lib/z80/memmove.s,
4           device/lib/z80/mul.s,
5           device/lib/z80/mulchar.s,
6           device/lib/z80/div.s,
7           device/lib/z80/mod.s:
8           Applied patch #2762516 from Marco Bodrato containing minor
9           improvementsof many Z80 asm routines.
10
11 2009-04-19 Philipp Klaus Krause <pkk AT spth.de>
12
13         * support/regression/tests/strtok.c,
14           support/regression/tests/strstr.c,
15           support/regression/tests/strspn.c,
16           support/regression/tests/strncmp.c,
17           support/regression/tests/strcpy.c,
18           support/regression/tests/strcmp.c:
19           Added some regression tests by Ruud van Silfhout from patch #2321830.
20
21 2009-04-13 Borut Razem <borut.razem AT siol.net>
22
23         * device/lib/Makefile.in, device/lib/ds390/Makefile.in,
24           device/lib/ds400/Makefile.in, device/lib/gbz80/Makefile.in,
25           device/lib/hc08/Makefile.in, device/lib/mcs51/Makefile.in,
26           device/lib/z80/Makefile.in: override PORTDIR in sub-makefiles
27
28 2009-04-13 Raphael Neider <rneider AT web.de>
29
30         * device/lib/pic16/bootstrap.sh: avoid symlinks
31         * device/lib/pic16/configure.ac,
32           device/lib/pic16/configure.gnu: removed obsolete configure-wrapper
33
34 2009-04-13 Borut Razem <borut.razem AT siol.net>
35
36         * device/lib/Makefile.in: remove abspath for PORTDIR, introduced in
37           svn revision #5341, since it makes asranlib to fail on cygming and
38           mingw builds: win32 native asranlib doesn't understand cygwin paths.
39
40 2009-04-10 Raphael Neider <rneider AT web.de>
41
42         * device/lib/pic/libsdcc/fs2ulong.c, device/lib/pic/libsdcc/fsadd.c,
43           device/lib/pic/libsdcc/fsdiv.c, device/lib/pic/libsdcc/fseq.c,
44           device/lib/pic/libsdcc/fsgt.c, device/lib/pic/libsdcc/fslt.c,
45           device/lib/pic/libsdcc/fsmul.c, device/lib/pic/libsdcc/fsneq.c,
46           device/lib/pic/libsdcc/fssub.c, device/lib/pic/libsdcc/ulong2fs.c,
47           device/lib/pic16/libsdcc/float/fs2ulong.c,
48           device/lib/pic16/libsdcc/float/fsadd.c,
49           device/lib/pic16/libsdcc/float/fsdiv.c,
50           device/lib/pic16/libsdcc/float/fsmul.c: fixed pic14 libraries, merge
51           changes from the pic16 port, minor code cleanup
52         * src/pic/gen.c: implemented genUminusFloat(), fixed warning and style
53
54 2009-04-09 Philipp Klaus Krause <pkk AT spth.de>
55
56         * device/lib/z80/mod.s,
57           device/lib/z80/Makefile.in,
58           device/lib/z80/div.s,
59           device/lib/z80/modsigned.s,
60           device/lib/z80/divsigned.s:
61           Applied patch #2741451 from Marco Bodrato
62           and moved functions for signed modulo into
63           separate file.
64
65 2009-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
66
67         * src/mcs51/peeph.def: disabled rule 270, fixing bug #2736282
68
69 2009-04-04 Philipp Klaus Krause <pkk AT spth.de>
70
71         * src/z80/gen.c,
72           src/z80/peeph-z80.def:
73           Improved caching of pointers in hl and iy.
74           device/lib/z80/div.s:
75           Applied patch #2727917 from Marco Bodrato.
76
77 2009-04-03 Philipp Klaus Krause <pkk AT spth.de>
78
79         * src/z80/ralloc.c:
80           Enabled use of hl as inter-i-code temporary.
81
82 2009-04-03 Philipp Klaus Krause <pkk AT spth.de>
83
84         * src/z80/peeph-z80.def:
85           Reenabled peephole 0t.
86
87 2009-04-03 Philipp Klaus Krause <pkk AT spth.de>
88
89         * src/z80/gen.c:
90           Fixed bugs #2728224, #2728218.
91           src/z80/peeph-z80.def:
92           Workaround for bug #2728445.
93           support/regression/tests/memory.c:
94           Added test for memcmp().
95
96 2009-04-03 Philipp Klaus Krause <pkk AT spth.de>
97
98         * device/lib/z80/mul.s,
99           device/lib/z80/memmove.s,
100           device/lib/z80/strlen.s:
101           Minor improvements, code cleanup and license clarification.
102
103 2009-04-01 Philipp Klaus Krause <pkk AT spth.de>
104
105         * device/lib/z80/mul.s: 
106           Minor improvement in Z80 16x16 bit multiplication.
107
108 2009-03-23 Borut Razem <borut.razem AT siol.net>
109
110         * src/SDCCval.c, src/SDCCmain.c, device/include/limits.h,
111           device/include/pic/limits.h, device/include/pic16/limits.h,
112           device/lib/_fs2schar.c, device/lib/pic/libsdcc/fs2schar.c,
113           device/lib/pic16/libsdcc/float/fs2schar.c, doc/sdccman.lyx,
114           support/regression/tests/funsigned-char.c:
115           applied patch 2704189: character constant sign fix
116           thanks to Robert Larice
117
118 2009-03-22 Borut Razem <borut.razem AT siol.net>
119
120         * Small Device C Compiler 2.9.0 released
121         * .version, doc/sdccman.lyx: changed sdcc version to 2.9.1
122
123 2009-03-15 Borut Razem <borut.razem AT siol.net>
124
125         * support/scripts/repack_release.sh: added
126
127 2009-03-13 Borut Razem <borut.razem AT siol.net>
128
129         * doc/sdccman.lyx: "freeware" replaced with "free open source"
130
131 2009-03-12 Borut Razem <borut.razem AT siol.net>
132
133         * src/z80/peep.c: #2652979: --debug crashes sdcc
134
135 2009-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
136
137         * src/SDCCglue.c,
138           support/regression/tests/bug2655200.c:
139           applied modified patch from Robert Larice <larice AT vidisys.de>
140           fixing original report of bug #2655200: pointer to pdata memory
141           not correctly initialized
142
143 2009-03-11 Borut Razem <borut.razem AT siol.net>
144
145         * as/asranlib/asranlib.c: retain the original file mode
146
147 2009-03-10 Borut Razem <borut.razem AT siol.net>
148
149         * src/mcs51/gen.c, src/z80/gen.c, src/hc08/gen.c, src/ds390/gen.c,
150           support/regression/tests/bug1875933.c:
151           fixed bug #1875933: Evelyn jumps into the void
152           thanks to Robert Larice
153
154 2009-03-10 Raphael Neider <rneider AT web.de>
155
156         * src/pic16/pcode.c (LinkFlow): fix invalid cast from pCodeLabel
157           to pCodeInstruction to avoid a segmentation fault
158
159 2009-03-03 Borut Razem <borut.razem AT siol.net>
160
161         * device/lib/printf_large.c: fixed bug #2656821: bug in printf
162
163 2009-03-03 Raphael Neider <rneider AT web.de>
164
165         * device/lib/pic/libdev/Makefile.in: build device-specific
166           libraries for the correct processor, fixes #2654585
167
168 2009-03-01 Raphael Neider <rneider AT web.de>
169
170         * device/lib/Makefile.in: fixed parallel builds (i.e., make -jN, N>1)
171
172 2009-03-01 Borut Razem <borut.razem AT siol.net>
173
174         * src/z80/peep.c: fixed bug #2648964: --i-code-in-asm crashes sdcc
175         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
176           changed sdcc version to 2.9.0
177
178 2009-03-01 Maarten Brock <sourceforge.brock AT dse.nl>
179
180         * src/mcs51/ralloc.c (spillThis, spilSomething): fixed bug 2435941
181           (serialRegAssign): do not spil bit registers
182           throughout cosmetic changes
183         * support/regression/tests/bug2435941.c: new, added
184
185 2009-02-28 Raphael Neider <rneider AT web.de>
186
187         * src/regression/compare10.c,
188           src/regression/compare7.c,
189           src/regression/compare8.c,
190           src/regression/compare9.c: reset watchdog timer in time
191         * src/regression/configword.c: apply patch from #2488150
192         * src/pic/glue.c (pic14createInterruptVect): pin RESET vector
193           handler to 0x0000 as the linker no longer knows STARTUP sections
194         * src/pic/pcode.c (register_reassign, ReuseReg): applied modified
195           patch #2512926 to (mostly) fix #1762626, cosmetic changes
196         * src/pic/pcodepeep.c: remove reference to nonexisting function
197
198 2009-02-28 Raphael Neider <rneider AT web.de>
199
200         * device/include/pic16/signal.h: avoid multiline inline
201           assembler statements in macros, addresses #2644965
202
203 2009-02-27 Raphael Neider <rneider AT web.de>
204
205         * device/include/pic16/pic18f[24][3456]k20.h,
206           device/include/pic16/pic18f[68][567]j50.h,
207           device/include/pic16/pic18f[68]6j55.h,
208           device/lib/pic16/libdev/pic18f[24][3456]k20.c,
209           device/lib/pic16/libdev/pic18f[68][567]j50.c,
210           device/lib/pic16/libdev/pic18f[68]6j55.c,
211           device/include/pic16/pic18fregs.h,
212           device/include/pic16/pic16devices.txt,
213           device/lib/pic16/pics.all,
214           device/lib/pic16/libdev/Makefile.am,
215           device/lib/pic16/libio/Makefile.am: added/re-enabled many device
216           families (87j50 family contributed by Robert Wuest)
217
218         * device/include/pic16/adc.h,
219           device/lib/pic16/libio/adc/adcbusy.c,
220           device/lib/pic16/libio/adc/adcclose.c,
221           device/lib/pic16/libio/adc/adcconv.c,
222           device/lib/pic16/libio/adc/adcopen.c,
223           device/lib/pic16/libio/adc/adcsetch.c: added 65j50-style ADC
224
225         * doc/sdccman.lyx: updated list of supported devices, fixed typo
226         * device/lib/pic16/Makefile.common: do not suppress assembler warnings
227
228         * device/lib/pic16/Makefile.in,
229           device/lib/pic16/libm/Makefile.in,
230           device/lib/pic16/debug/Makefile.in,
231           device/lib/pic16/libio/Makefile.in,
232           device/lib/pic16/startup/Makefile.in,
233           device/lib/pic16/libsdcc/Makefile.in,
234           device/lib/pic16/libdev/Makefile.in,
235           device/lib/pic16/libc/Makefile.in: regenerated
236
237 2009-02-27 Borut Razem <borut.razem AT siol.net>
238
239         * as/z80/asexpr.c, as/z80/z80mch.c: re-fixed bugs
240           #1829678 and #1704376 in the way proposed by Alan Baldwin
241
242 2009-02-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
243
244         * device/include/mcs51/at89c51ed2.h: Fixed address of SFR P5. Thanks
245           to Steve Qu for the fix.
246
247 2009-02-23 Borut Razem <borut.razem AT siol.net>
248
249         * as/z80/asexpr.c: fixed bug #1829678: Z-80 CP A,<xxx> assembly
250           it is already fixed for mcs51 and hc08 targets
251         * as/z80/z80mch.c: fixed bug #1704376: missing as-z80 errors
252
253 2009-02-22 Borut Razem <borut.razem AT siol.net>
254
255         * device/lib/Makefile.in: fixed parenthesis error
256         * doc/sdccman.lyx: fixed webdocs bug #2071421: error in the manual,
257           fixed webdocs bug #1967920: --version
258
259 2009-02-18 Maarten Brock <sourceforge.brock AT dse.nl>
260
261         * device/include/mcs51/at89c51ed2.h: fixed bug #2071949 bitmask RBCK wrong
262
263 2009-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
264
265         * as/link/mcs51/lkihx.c (hexRecord): bugfix do not insert extended address
266           when addresses are unsorted
267
268 2009-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
269
270         * device/include/mcs51/p89v66x.h: added ENBOOT thanks
271           Gudjon Gudjonsson <gudjon AT gudjon.org>
272         * device/include/mcs51/p89c66x.h: fixed some defines
273         * device/include/mcs51/p89v66x.h: fixed some sbit addresses
274         * doc/sdccman.lyx: added <NO FLOAT> to index, try to reanimate
275           svn keywords
276
277 2009-02-14 Borut Razem <borut.razem AT siol.net>
278
279         * doc/sdccman.lyx: corrected cpp info
280
281 2009-02-13 Borut Razem <borut.razem AT siol.net>
282
283         * as/Makefile.in: *.doc renamed to *.txt
284
285 2009-02-11 Borut Razem <borut.razem AT siol.net>
286
287         * as/doc/aslnk.doc, as/doc/abstra.doc: renamed to *.txt
288         * as/doc/aslnk.txt, as/doc/asxhtml.html: changed licens to GPLv3
289
290 2009-02-11 Borut Razem <borut.razem AT siol.net>
291
292         * doc/sdccman.lyx: documented ar format libraries
293
294 2009-02-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
295
296         * support/regression/tests/float_single.c: added regression
297           test. Some testpoints for probably rarely used functions
298           (acosf, sinhf, tanf, expf) disabled for some targets
299
300 2009-02-10 Raphael Neider <rneider AT web.de>
301
302         * src/pic16/gen.c (pic16_freeAsmop): avoid NULL pointer dereference,
303           (genAssign): fixed for operands on the stack
304
305         * device/lib/pic16/libc/stdio/vfprintf.c,
306           device/lib/pic16/configure.ac,
307           device/lib/pic16/Makefile.common: add configurable support for
308           printing floats via ./configure --enable-floats
309         * device/lib/pic16/configure,
310           device/lib/pic16/Makefile.in,
311           device/lib/pic16/libm/Makefile.in,
312           device/lib/pic16/debug/Makefile.in,
313           device/lib/pic16/libio/Makefile.in,
314           device/lib/pic16/startup/Makefile.in,
315           device/lib/pic16/libsdcc/Makefile.in,
316           device/lib/pic16/libdev/Makefile.in,
317           device/lib/pic16/libc/Makefile.in: regenerated
318         * doc/sdccman.lyx: documented float support and how to get it
319         * doc/Makefile.in: fixed race condition on parallel builds
320
321         * device/lib/pic16/libc/stdio/sprintf.c,
322           device/lib/pic16/libc/stdio/vsprintf.c: do not mess up the user's
323           pointer to the string buffer, enlarge buffer for x_ftoa()
324
325 2009-02-10 Borut Razem <borut.razem AT siol.net>
326
327         * device/lib/printf_tiny.c: replaced non-C89 comments '//' with '/* */'
328
329 2009-02-10 Raphael Neider <rneider AT web.de>
330
331         * device/include/pic16/pic18f*.h: add bit aliases in INTCONbits_t
332
333 2009-02-09 Raphael Neider <rneider AT web.de>
334
335         * src/pic16/pcode.c (assignToSameBank): add force argument to ignore
336           artificial bank size limits for compound data (structs, arrays),
337           avoids assert if --obanksel=N, N > 1, is given
338
339 2009-02-09 Borut Razem <borut.razem AT siol.net>
340
341         * as/asranlib/asranlib.c, link/lkar.c: don't check the padding bytes since
342           the openSUSE GNU ar (GNU Binutils; openSUSE 11.0) 2.18.50.20080409-11.1
343           uses '`' character instead '\n' for padding
344         * as/asranlib/asranlib.c: made it more robust
345
346 2009-02-08 Borut Razem <borut.razem AT siol.net>
347
348         * as/COPYING3: added
349         * support/scripts/sdcc.nsi: added COPYING3.txt to the package
350         * device/lib/Makefile.in: reenable floating point in model-xstack-auto
351           libraries
352
353 2009-02-07 Borut Razem <borut.razem AT siol.net>
354
355         * as/asranlib/asranlib.c: fixed BSD header length calculation
356         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.9
357           due sdcc asxxxx license change to GPLv3
358
359 2009-02-05 Borut Razem <borut.razem AT siol.net>
360
361         * as/asranlib/asranlib.c, link/lkar.h, link/lkar.c:
362           added support for BSD (Mac OS X) ar format
363         * as/asxxsrc/aslex.c, as/as/asxxsrc/asnoice.c, as/as/asxxsrc/assym.c,
364           as/as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/aslist.c,
365           as/hc08/asm.h, as/hc08/asmain.c, as/hc08/asout.c, as/hc08/assubr.c,
366           as/hc08/m08adr.c, as/hc08/m08ext.c, as/hc08/m08mch.c,
367           as/hc08/m08pst.c, as/hc08/m6808.h, as/link/aslink.h,
368           as/link/hc08/lkarea.c, as/link/hc08/lkelf.c, as/link/hc08/lkihx.c,
369           as/link/hc08/lkmain.c, as/link/hc08/lkmem.c, as/link/hc08/lkrloc.c,
370           as/link/hc08/lks19.c, as/link/lkaomf51.c, as/link/lkdata.c,
371           as/link/lkeval.c, as/link/lkhead.c, as/link/lklex.c, as/link/lklib.c,
372           as/link/lklibr.c, as/link/lklibr.h, as/link/lklist.c,
373           as/link/lknoice.c, as/link/lkrel.c, as/link/lkrel.h,
374           as/link/lksdcclib.c, as/link/lkstore.c, as/link/lksym.c,
375           as/link/mcs51/lkarea.c, as/link/mcs51/lkihx.c,
376           as/link/mcs51/lkmain.c, as/link/mcs51/lkmem.c,
377           as/link/mcs51/lkrloc.c, as/link/mcs51/lks19.c, as/link/z80/lkarea.c,
378           as/link/z80/lkgb.c, as/link/z80/lkgg.c, as/link/z80/lkihx.c,
379           as/link/z80/lkmain.c, as/link/z80/lkrloc.c, as/link/z80/lks19.c,
380           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/aslist.c,
381           as/mcs51/asm.h, as/mcs51/asmain.c, as/mcs51/asout.c,
382           as/mcs51/assubr.c, as/mcs51/i51adr.c, as/mcs51/i51ext.c,
383           as/mcs51/i51mch.c, as/mcs51/i51pst.c, as/mcs51/i8051.h,
384           as/xa51/xa_link.c, as/xa51/xa_main.c, as/xa51/xa_main.h,
385           as/xa51/xa_rasm.l, as/xa51/xa_rasm.y, as/xa51/xa_version.h,
386           as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c, as/z80/asm.h,
387           as/z80/asmain.c, as/z80/asout.c, as/z80/assubr.c, as/z80/z80.h,
388           as/z80/z80adr.c, as/z80/z80ext.c, as/z80/z80mch.c, as/z80/z80pst.c:
389           changed license to GPL either version 3, or (at your option) any
390           later version
391
392 2009-02-05 Borut Razem <borut.razem AT siol.net>
393
394         * as/asranlib/asranlib.c, link/lkar.h, link/lkar.c:
395           added support for BSD (Mac OS X) ar format
396
397 2009-02-02 Borut Razem <borut.razem AT siol.net>
398
399         * device/lib/gbz80/Makefile.in, device/lib/hc08/Makefile.in,
400           device/lib/z80/Makefile.in:
401           chose source files in the PORT directory if they are available
402
403 2009-02-01 Raphael Neider <rneider AT web.de>
404
405         * device/lib/pic16/libdev/pic18f1220.c,
406         * device/lib/pic16/libdev/pic18f4450.c:
407           define SSPBUF to allow use of printf
408
409 2009-02-01 Borut Razem <borut.razem AT siol.net>
410
411         * device/lib/Makefile.in, device/lib/gbz80/Makefile.in,
412           device/lib/hc08/Makefile.in, device/lib/incl.mk,
413           device/lib/z80/Makefile.in:
414           don't remake libraries
415         * support/regression/tests/snprintf.c:
416           reenable floating point in small-xstack-auto library
417
418 2009-01-26 Raphael Neider <rneider AT web.de>
419
420         * src/pic16/ralloc.c (packForPush): disabled to fix #2496919
421
422 2009-01-25 Raphael Neider <rneider AT web.de>
423
424         * src/pic16/main.c (_pic16_linkEdit): prepend -L paths to linker
425           search path instead of appending them
426
427 2009-01-24 Borut Razem <borut.razem AT siol.net>
428
429         * as/asranlib/asranlib.h: changed type of offset to unsigned int to
430           make it work on ppc Mac OS X (off_t is 64 bit and is not converted
431           to 32 bit unsigned int when calling sputl() since it is a macro
432         * as/link/lkar.c: changed the initialization of This->loaded
433
434 2009-01-23 Borut Razem <borut.razem AT siol.net>
435
436         * as/link/lkar.h: changed type of ar_size to size_t to make it work on
437           ppc Mac OS X (off_t is 64 bit and is not converted to 32 bit
438           unsigned int when calling new(), since asxxxx doesn't use function
439           prototypes)
440
441 2009-01-21 Borut Razem <borut.razem AT siol.net>
442
443         * as/link/lkar.h: sgetl and sputl are independent of endianness
444         * as/link/sdxxxx_config.h.in: removed endianness detection
445
446 2009-01-20 Borut Razem <borut.razem AT siol.net>
447
448         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.8
449           due creation of ar format libraries
450         * support/scripts/sdcc.nsi:
451           don't add nonexistent object files to the package
452
453 2009-01-19 Borut Razem <borut.razem AT siol.net>
454
455         * Makefile.in, configure.in, configure,
456           device/lib/Makefile.in, device/lib/ds390/Makefile.in,
457           device/lib/ds400/Makefile.in, device/lib/gbz80/Makefile.in,
458           device/lib/hc08/Makefile.in, device/lib/large/Makefile.in,
459           device/lib/mcs51/Makefile.in, device/lib/medium/Makefile.in,
460           device/lib/small/Makefile.in,
461           device/lib/z80/Makefile.in: create ar format libraries
462         * support/regression/ports/mcs51-xstack-auto/spec.mk:
463           use device/lib/Makefile to create library
464         * support/regression/tests/snprintf.c:
465           floating point is not enabled in small-xstack-auto library
466         * device/lib/libfloat.lib, device/lib/libint.lib,
467           device/lib/liblong.lib, device/lib/libsdcc.lib: removed
468
469 2009-01-18 Borut Razem <borut.razem AT siol.net>
470
471         * support/cpp/auto-host.h: fixed warning: "__STDC__" redefined,
472           warning: extra tokens at end of #endif directive
473
474 2009-01-11 Borut Razem <borut.razem AT siol.net>
475
476         * Makefile.in: added SDCC_ASRANLIB to PKGS
477
478 2009-01-10 Borut Razem <borut.razem AT siol.net>
479
480         * support/scripts/sdcc.nsi: added asranlib.exe to the install package
481         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.7
482           due added support for ar format libraries
483
484 2009-01-09 Borut Razem <borut.razem AT siol.net>
485
486         * as/asranlib/Makefile.in, as/asranlib/asranlib.dsp,
487           as/asranlib/asranlib.c: added asranlib
488         * as/link/lkar.c, as/link/lkar.h: added support for ar format libraries
489         * Makefile.in, as/link/hc08/Makefile.in,
490           as/link/hc08/link_hc08.dsp, as/link/lklib.c, as/link/lklibr.c,
491           as/link/lklibr.h, as/link/lkrel.c, as/link/lkrel.h,
492           as/link/lksdcclib.c, as/link/mcs51/Makefile.in,
493           as/link/mcs51/aslink.dsp, as/link/z80/Makefile.in,
494           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp, configure,
495           configure.in, sdcc.dsw: modified to support ar format libraries
496
497 2009-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
498
499         * src/SDCCast.c (decorateType RETURN): use RESULT_TYPE_GPTR for generic
500           pointer return
501
502 2009-01-05 Philipp Klaus Krause <pkk AT spth.de>
503
504         * sim/ucsim/z80.src/inst_ed.cc:
505           Fixed bug #2488074, which made regression tests fail.
506
507 2009-01-05 Philipp Klaus Krause <pkk AT spth.de>
508
509         * device/lib/z80/mod.s,
510           device/lib/z80/div.s,
511           device/lib/z80/mulchar.s,
512           device/lib/z80/mul.s,
513           device/lib/z80/divsigned.s,
514           device/lib/z80/Makefile.in:
515           Implemented RFE #1702376.
516
517 2009-01-05 Borut Razem <borut.razem AT siol.net>
518
519         * as/link/lksdcclib.c:
520           fixed linker hanging in INDEXLIB is not defined (hc08)
521
522 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
523
524         * src/z80/gen.c:
525           Implemented RFE #2485684, and some further improvements of HL caching
526           including a bugfix.
527         * src/z80/peeph-z80.def:
528           Fixed a bug exposed by implementing RFE #2485684.
529
530 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
531
532         * src/z80/peeph-z80.def:
533           Peephole improvements.
534         * src/z80/gen.c,
535           src/z80/main.c,
536           device/include/string.h,
537           device/lib/z80/memmove.s:
538           Minor code cleanup.
539         * device/lib/z80/Makefile.in,
540           device/lib/Makefile.in,
541           support/regression/tests/memory.c,
542           device/lib/z80/strlen.s:
543           Partially implemented RFE #2471534.
544
545 2009-01-04 Borut Razem <borut.razem AT siol.net>
546
547         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.6
548           due changes in sdcc asxxxx linkers - it sholud be done 2 days ago :(
549         * doc/README.txt: updated John Hartman's e-mail address
550         * as/link/lkrel.c, as/link/lksdcclib.c:
551           fixed bug #2484677: Linker hangs
552         * src/z80/peep.c: fixed msvc warning C4047:
553           'return' : 'int ' differs in levels of indirection from 'char *'
554         * config.dsp: as/lib corrected to as/link
555
556 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
557
558         * src/z80/peep.c:
559           Implemented RFE #2484693.
560         * src/z80/peeph-z80.def:
561           Some peephole improvements.
562
563 2009-01-03 Borut Razem <borut.razem AT siol.net>
564
565         * as/link/lklibr.c:
566           fixed warning: 'ret' may be used uninitialized in this function
567
568 2009-01-02 Borut Razem <borut.razem AT siol.net>
569
570         * as/link/lklib.c, as/link/lksdcclib.c, as/link/lklibr.h,
571           as/link/getline.[ch], as/link/lkrel.[ch]: added,
572           made support for differnet library formats more flexible,
573           preparation for support of ar format
574         * as/link/lklibr.c, as/link/z80/Makefile.in,
575           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
576           as/link/hc08/link_hc08.dsp, as/link/hc08/Makefile.in,
577           as/link/mcs51/aslink.dsp, as/link/mcs51/Makefile.in,
578           as/link/hc08/lkelf.c, as/link/aslink.h:
579           made support for differnet library formats more flexible,
580           preparation for support of ar format
581
582 2009-01-01 Borut Razem <borut.razem AT siol.net>
583
584         * as/link/asxxxx_config.h.in:
585           fixed warning: extra tokens at end of #endif directive
586         * src/z80/peep.c:
587           fixed warning: suggest parentheses around && within ||
588         * device/lib/Makefile.in: allow whitespaces at the end of lines in
589           ports.build, in order to make it work on cygwin - it seems to be a
590           bug in cygwin grep: CR is not treated as part of end-of-line
591
592 2008-12-31 Borut Razem <borut.razem AT siol.net>
593
594         * configure, configure.in, config.dsp, config_vc.awk,
595           as/link/asxxxx_config.h.in, as/link/hc08/lkelf.c, as/link/aslink.h,
596           as/link/hc08/Makefile.in, as/link/mcs51/Makefile.in:
597           introduced asxxxx_config.h.in
598
599 2008-12-30 Philipp Klaus Krause <pkk AT spth.de>
600
601         * src/z80/gen.c,
602           src/z80/peeph-z80.def:
603           Minor addition improvement.
604
605 2008-12-30 Raphael Neider <rneider AT web.de>
606
607         * as/link/hc08/lkelf.c, as/link/lkaomf51.c, as/link/lklibr.c,
608           as/link/z80/lkgb.c, debugger/mcs51/cmd.c, sim/ucsim/utils.cc,
609           src/SDCCasm.c, support/Util/dbuf_string.c, support/cpp/c-ppoutput.c,
610           support/cpp/libcpp/lex.c, support/cpp/libcpp/macro.c,
611           support/librarian/sdcclib.c, support/makebin/makebin.c:
612           partially revert changes from r5293..r5295
613
614 2008-12-29 Philipp Klaus Krause <pkk AT spth.de>
615
616         * src/z80/peeph-z80.def:
617           Minor peephole improvement.
618
619 2008-12-29 Raphael Neider <rneider AT web.de>
620
621         * src/pic/pcode.c (insertBankSel, FixRegisterBanking): emit
622           incorrectly discarded BANKSELs
623
624 2008-12-29 Philipp Klaus Krause <pkk AT spth.de>
625
626         * support/regression/tests/memory.c:
627           Added simple test for memset(), memcpy() and memmove()
628
629 2008-12-29 Borut Razem <borut.razem AT siol.net>
630
631         * sdcc/support/scripts/sdcc.nsi: removed $INSTDIR\lib\src\z80\*.c
632
633 2008-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
634
635         * src/mcs51/peeph.def (177.e): replaced notVolatile(%3) with
636           operandsNotRelated(%1 %3), had to change (a)r%1 to (a)%1 for this to work
637           (177.j): added new rule
638         * src/SDCCsymt.h: added RESULT_TYPE_GPTR
639         * src/SDCCast.c (processParms): use RESULT_TYPE_GPTR for generic ptr parms,
640           (decorateType CAST): propagate storage class to generic pointer results
641
642 2008-12-27 Philipp Klaus Krause <pkk AT spth.de>
643
644         * device/lib/z80/string.c,
645           device/lib/z80/printf.c,
646           device/lib/z80/mul.s:
647           z80 library cleanup
648         * src/z80/gen.c:
649           Fixed code generation bug exposed by builtin memcpy().
650
651 2008-12-27 Philipp Klaus Krause <pkk AT spth.de>
652
653         * device/lib/_memcpy.c:
654           fixed conflict with builtin memcpy()
655
656 2008-12-26 Borut Razem <borut.razem AT siol.net>
657
658         * support/librarian/sdcclib.c:
659           fixed bug 2466950: "sdcclib broken"
660           by removing fgets return value check
661
662 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
663         * src/z80/main.c,
664           src/z80/gen.c,
665           device/include/string.h: Implemented RFE #1914254
666
667 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
668         * device/lib/z80/Makefile.in,
669           device/lib/Makefile.in,
670           device/lib/z80/memmove.s: Implemented RFE #1914256
671
672 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
673
674         * src/z80/peeph-z80.def: fixed a bug in peephole 0zf
675         * src/z80/peep.c: improved checks for unused data
676         * src/z80/gen.c,
677           src/z80/main.c: Implemented RFE #1899189
678
679 2008-12-25 Borut Razem <borut.razem AT siol.net>
680
681         * support/regression/Makefile.in:
682           add -I$(INC_DIR) to SDCCFLAGS only if INC_DIR is defined
683
684 2008-12-25 Philipp Klaus Krause <pkk AT spth.de>
685
686         * src/z80/peeph-z80.def: minor peephole improvements
687
688 2008-12-21 Borut Razem <borut.razem AT siol.net>
689
690         * support/librarian/sdcclib.c: fixed build failure on Mac OS X
691           due to redefinition of symbol __assert
692           sdcclib.c:53:1:warning: "__assert" redefined
693           /Xcode2.5/SDKs/MacOSX10.4u.sdk/usr/include/assert.h:80:1:
694           warning: this is the location of the previous definition
695
696 2008-12-20 Raphael Neider <rneider AT web.de>
697
698         * debugger/mcs51/break.c, debugger/mcs51/cmd.c,
699           debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
700           support/cpp/libcpp/macro.c: fix format string errors
701
702         * sim/ucsim/s51.src/timer2.cc: add clarifying parens
703
704         * src/pic/device.c: partial rewrite using strtok,
705           quieten compiler warnings, adopt SDCC coding style
706
707         * as/link/hc08/lkelf.c, as/link/lkaomf51.c, as/link/lklibr.c,
708           as/link/z80/lkgb.c, as/z80/asout.c, debugger/mcs51/cmd.c,
709           sim/ucsim/utils.cc, src/SDCCasm.c, support/Util/dbuf_string.c,
710           support/cpp/c-ppoutput.c, support/cpp/libcpp/lex.c,
711           support/librarian/sdcclib.c, support/makebin/makebin.c:
712           quieten most compiler warnings
713
714         * sim/ucsim/avr.src/arith_inst.cc: quieten compiler warnings,
715           probably fix operator precedence bug
716
717         * doc/clean.mk: quieten rm if no .lyx is present
718
719 2008-12-19 Borut Razem <borut.razem AT siol.net>
720
721         * doc/sdccman.lyx, doc/random-notes.txt, doc/avr/avr_design.txt,
722           doc/TININative.txt, doc/macro-sys-design.txt, doc/libdoc.txt,
723           doc/README.txt, doc/test_suite_spec.lyx:
724           applied patch 2446381: Dcoumentation spelling correcitons
725           thanks to Steven Borley
726
727 2008-12-16 Raphael Neider <rneider AT web.de>
728
729         * device/include/pic/pic12f629.h,
730           device/include/pic/pic12f675.h,
731           device/lib/pic/libdev/pic12f629.c,
732           device/lib/pic/libdev/pic12f675.c: consolidated, added TRISIO bits
733
734 2008-12-14 Borut Razem <borut.razem AT siol.net>
735
736         * doc/sdccman.lyx, cdbfileformat.lyx, test_suite_spec.lyx:
737           converted to LyX 1.5.7 (\lyxformat 276) format
738
739 2008-12-07 Borut Razem <borut.razem AT siol.net>
740
741         * support/regression/tests/bitfields.c:
742           added test case for bug #2366757
743
744 2008-12-07 Raphael Neider <rneider AT web.de>
745
746         * src/pic16/glue.c (pic16_printIvalBitFields): prevent
747           NULL pointer dereference, closes #2366757
748
749 2008-11-25 Raphael Neider <rneider AT web.de>
750
751         * device/include/pic16/pic16devices.txt,
752           sdcc/src/pic16/device.c,
753           sdcc/src/pic16/device.h: implicitly disable XINST
754           whenever CONFIG4L is set via an additional optional
755           argument to the configword directive in pic16devices.txt
756
757 2008-11-24 Raphael Neider <rneider AT web.de>
758
759         * device/lib/pic16/configure.ac,
760           device/lib/pic16/Makefile.common: fixed quoting issues
761
762         * device/lib/pic16/configure,
763           device/lib/pic16/debug/Makefile.in,
764           device/lib/pic16/libc/Makefile.in,
765           device/lib/pic16/libdev/Makefile.in,
766           device/lib/pic16/libio/Makefile.in,
767           device/lib/pic16/libm/Makefile.in,
768           device/lib/pic16/libsdcc/Makefile.in,
769           device/lib/pic16/Makefile.in,
770           device/lib/pic16/startup/Makefile.in: regenerated
771
772         * src/pic16/main.c (_pic16_finaliseOptions): revert to
773           variant of r5216
774
775 2008-11-24 Raphael Neider <rneider AT web.de>
776
777         * src/pic16/main.c (_pic16_finaliseOptions): do not quote the
778           argument of --asm= or --link= to allow for
779           --asm="sh script --options", the user can double quote the
780           argument if needed: --asm="'c:/program files/gpasm' -q",
781           also fix some potential buffer overflows
782
783 2008-11-19 Borut Razem <borut.razem AT siol.net>
784
785         * doc/sdccman.lyx:
786           fixed 2314467: sdccman.lyx: fix "--" in command line parameters
787           thanks Mauro Giachero
788
789 2008-11-16 Borut Razem <borut.razem AT siol.net>
790
791         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.5
792         * doc/sdccman.lyx: documented fixed unnamed bit-field initialization
793
794 2008-11-15 Borut Razem <borut.razem AT siol.net>
795
796         * src/pic16/glue.c, src/SDCC.y, src/SDCCast.c, src/SDCCglue.c,
797           src/SDCCsymt.c, src/SDCCsymt.h:
798           fixed RFE #2291335 : Unnamed bit-field initialization
799         * support/regression/tests/bitfields.c:
800           added test case for RFE #2291335
801         * support/regression/tests/bug-1981238.c:
802           don't initialize unnamed bit-fields
803
804 2008-11-11 Raphael Neider <rneider AT web.de>
805
806         * device/include/pic16/pic18f25j10.h,
807           device/include/pic16/pic18f45j10.h: remove useless boilerplate
808
809         * device/include/pic16/adc.h,
810           device/lib/pic16/libio/adc/adcbusy.c,
811           device/lib/pic16/libio/adc/adcclose.c,
812           device/lib/pic16/libio/adc/adcconv.c,
813           device/lib/pic16/libio/adc/adcopen.c,
814           device/lib/pic16/libio/adc/adcread.c,
815           device/lib/pic16/libio/adc/adcsetch.c: generalized, documented,
816           and fixed ADC routines to work for more target devices,
817           incorporates patch #2036130 by Nick Materer
818
819 2008-11-10 Steven Borley <steven.borley AT partnerelectronics.com>
820
821         * device/include/ctype.h,
822         * device/include/ds400rom.h,
823         * device/include/ds80c390.h,
824         * device/include/float.h,
825         * device/include/math.h,
826         * device/include/serial.h,
827         * device/include/stdbool.h,
828         * device/include/tinibios.h: replaced non-C89 '//' with '/* */',
829           patch 2195343
830         * device/include/mcs51/C8051F336.h,
831         * device/include/mcs51/C8051T600.h,
832         * device/include/mcs51/C8051T610.h,
833         * device/include/mcs51/C8051T630.h: new, added, patch 2183334
834           (svn commit by Maarten Brock <sourceforge.brock AT dse.nl>)
835
836 2008-11-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
837
838         * device/include/mcs51/P89LPC922.h: fixed #2255989, thanks kubi57
839
840 2008-11-10 Raphael Neider <rneider AT web.de>
841
842         * device/lib/pic16/libdev/mkmk.sh: obey pics.all
843         * device/lib/pic16/libio/mkmk.sh: properly match whole lines in
844           .ignore files, fixes IO libs for 18f242, 18f252, 18f442, and 18f452
845           (patch by Nick Materer, #2253980)
846
847         * device/lib/pic16/libio/adc.ignore,
848           device/lib/pic16/libio/i2c.ignore,
849           device/lib/pic16/libio/usart.ignore,
850           device/lib/pic16/pics.all: updated to build more device libs
851
852         * device/lib/pic16/libdev/Makefile.am,
853           device/lib/pic16/libdev/Makefile.in,
854           device/lib/pic16/libio/Makefile.am,
855           device/lib/pic16/libio/Makefile.in: regenerated
856
857         * src/pic16/device.c (pic16_dump_usection): fixed output of multiple
858           names per memory location, applied SDCC style to more functions
859
860 2008-11-09 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
861
862         * device/include/mcs51/p89lpc933_4.h: new NXP header file
863         * device/include/mcs51/p89lpc935_6.h: new NXP header file
864         * device/include/mcs51/p89v66x.h: minor changes
865           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
866
867 2008-11-09 Raphael Neider <rneider AT web.de>
868
869         * device/include/pic/pic14devices.txt: fixed memory description for
870           12f629 and 12f675, closes #2236240
871
872 2008-11-06 Borut Razem <borut.razem AT siol.net>
873
874         * src/SDCCmain.c: fixed bug #2224960: sdcc -MM no working correctly
875           pass system include paths with -isystem to sdcpp
876         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c: removed unneeded
877           functions (closePipes), (closeTmpFiles) and (rmTmpFiles)
878
879 2008-11-02 Raphael Neider <rneider AT web.de>
880
881         * doc/sdccman.lyx: updated the sections on the library build process
882           and on how to add support for new devices, and documented known
883           problems with the extended instruction set including a workaround
884
885 2008-11-01 Raphael Neider <rneider AT web.de>
886
887         * device/include/pic16/adc.h,
888           device/include/pic16/pic16devices.txt,
889           device/include/pic16/pic18f2410.h,
890           device/include/pic16/pic18f2510.h,
891           device/include/pic16/pic18f2515.h,
892           device/include/pic16/pic18f2610.h,
893           device/include/pic16/pic18f4410.h,
894           device/include/pic16/pic18f4510.h,
895           device/include/pic16/pic18f4515.h,
896           device/include/pic16/pic18f4610.h,
897           device/include/pic16/pic18fregs.h,
898           device/lib/pic16/libdev/Makefile.am,
899           device/lib/pic16/libdev/Makefile.in,
900           device/lib/pic16/libdev/pic18f2410.c,
901           device/lib/pic16/libdev/pic18f2510.c,
902           device/lib/pic16/libdev/pic18f2515.c,
903           device/lib/pic16/libdev/pic18f2610.c,
904           device/lib/pic16/libdev/pic18f4410.c,
905           device/lib/pic16/libdev/pic18f4510.c,
906           device/lib/pic16/libdev/pic18f4515.c,
907           device/lib/pic16/libdev/pic18f4610.c,
908           device/lib/pic16/libio/Makefile.am,
909           device/lib/pic16/libio/Makefile.in,
910           device/lib/pic16/pics.all: added support for 18f[24][456]10
911           and 18f[24]515 devices
912         * doc/sdccman.lyx: updated list of supported PIC16 devices
913
914         * src/pic/glue.c, src/pic/pcode.c, src/pic/pcodeflow.c,
915           src/pic16/glue.c, src/pic16/pcode.c, src/pic16/pcodeflow.c,
916           src/xa51/gen.c: avoid compiler warnings
917         * support/scripts/inc2h-pic16.pl: removed trailing whitespace
918
919 2008-10-22 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
920
921         * device/include/mcs51/p89v66x.h: NXP header file
922         * device/include/mcs51/p89c66x.h: fixed an SBIT definition
923           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
924
925 2008-10-14 Raphael Neider <rneider AT web.de>
926
927         * device/lib/pic16/libdev/Makefile.am,
928           device/lib/pic16/libio/Makefile.am: enable building libraries for
929           18f2321, 18f4321, 18f2523, 18f4620, 18f66j60, 18f66j65, 18f67j60,
930           18f86j60, 18f86j65, 18f87j60, 18f96j60, 18f96j65, and 18f97j60
931         * device/lib/pic16/libdev/Makefile.in,
932           device/lib/pic16/libio/Makefile.in: regenerated
933
934 2008-10-14 Raphael Neider <rneider AT web.de>
935
936         * device/include/pic16/pic18f2450.h,
937           device/include/pic16/pic18f4450.h,
938           device/lib/pic16/libdev/pic18f2450.c,
939           device/lib/pic16/libdev/pic18f4450.c,
940           device/include/pic16/adc.h,
941           device/include/pic16/pic16devices.txt,
942           device/include/pic16/pic18fregs.h,
943           device/lib/pic16/libdev/Makefile.am,
944           device/lib/pic16/libdev/Makefile.in,
945           device/lib/pic16/libio/Makefile.am,
946           device/lib/pic16/libio/Makefile.in,
947           device/lib/pic16/pics.all: added 18f2450 and 18f4450, closes #1844525
948
949         * device/lib/pic16/libsdcc/stack/stack.S: there is no need to pin the
950           stack to a fixed location, relax it to automatically work with all
951           but the smallest devices (256 byte RAM devices need #pragma stack)
952
953 2008-10-09 Maarten Brock <sourceforge.brock AT dse.nl>
954
955         * debugger/mcs51/break.c: bugfix from patch 1989966, thanks Risto Huotari
956         * debugger/mcs51/simi.c: bugfix from patch 1989972, thanks Risto Huotari
957         * device/lib/_strcspn.c: fixed bug 2140931
958
959 2008-10-06 Raphael Neider <rneider AT web.de>
960
961         * device/include/pic16/stdio.h,
962           device/lib/pic16/libc/stdio/putchar.c: putchar should not be
963           declared __naked for convenience, named all arguments
964         * device/lib/pic16/libc/stdio/strmgpsim.c,
965           device/lib/pic16/libc/stdio/strmmssp.c,
966           device/lib/pic16/libc/stdio/strmusart.c: cosmetic changes
967
968         * src/pic16/pcode.c (createReachingDefinitions): avoid segfault on
969           empty __naked functions,
970         * (pCodeLabelDestruct, pic16_unlinkpCode, pic16_pCodeUnlink): fix
971           corner cases (unlink first/last pCode in list), reuse more code
972
973 2008-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
974
975         * src/ds390/main.c (_ds390_genInitStartup): added
976         * src/SDCCpeeph.c (getPatternVar): new, added,
977           (labelInRange): fixed bug 2115959
978         * src/mcs51/peeph.def (rules 193.x to 198.x): check for labelInRange
979         * src/SDCCicode.h: added newiTempOperand
980         * src/SDCCcse.c (algebraicOpts): fixed bug for x*-1,
981           added optimizations for 0/x and x/-1, see also patch 2142900
982         * support/regression/tests/onebyte.c (testMul): added test cases
983
984 2008-09-20 Borut Razem <borut.razem AT siol.net>
985
986         * src/pic16/glue.c:
987           definition of absolute address symbols without initial value,
988           fixed SDCC crash "do not know how to intialize symbol"
989
990 2008-09-16 Maarten Brock <sourceforge.brock AT dse.nl>
991
992         * device/lib/z80/mul.s (__mulsuchar_rrx_s, __muluschar_rrx_s),
993         * device/lib/z80/div.s (__divsuchar_rrx_s, __modsuchar_rrx_s,
994           __divuschar_rrx_s, __moduschar_rrx_s): added mixed signedness versions
995         * device/lib/z80/stubs.s: added stubs for above functions
996         * src/SDCCopt.c (convilong),
997         * src/SDCCsymt.c (initCSupport): fixed bug 1900961
998         * src/SDCCsymt.h (__muldiv): enlarged for mixed signedness
999         * src/z80/main.c (_hasNativeMulFor): fixed bug, I think
1000         * support/regression/tests/onebyte.c: enabled all tests for z80
1001
1002 2008-09-15 Borut Razem <borut.razem AT siol.net>
1003
1004         * device/include/pic16/stdio.h, device/lib/pic16/libc/stdio/streams.c,
1005           device/lib/pic16/libc/stdio/printf.c,
1006           device/lib/pic16/libc/stdio/strmusart.c,
1007           device/lib/pic16/libc/stdio/printf_tiny.c,
1008           device/lib/pic16/libc/stdio/sprintf.c,
1009           device/lib/pic16/libc/stdio/strmgpsim.c,
1010           device/lib/pic16/libc/stdio/putchar.c,
1011           device/lib/pic16/libc/stdio/fprintf.c,
1012           device/lib/pic16/libc/stdio/strmmssp.c,
1013           device/device/lib/pic16/libc/stdio/vprintf.c,
1014           device/lib/pic16/libc/stdio/printf_small.c,
1015           device/lib/pic16/libc/stdio/vsprintf.c,
1016           device/lib/pic16/libc/stdio/strmputchar.c,
1017           device/lib/pic16/libc/Makefile.am,
1018           device/lib/pic16/libc/Makefile.in:
1019           *printf now returns int, puchar.c moved from stdlib to stdio,
1020           *printf format parameter type changed from char * to const char *,
1021           added GNU link excetion text to library source files,
1022           applyed GNU coding style, removed useless svn ids,
1023           added BINARY_SPECIFIER macro re-enables the use of the removed 'b'
1024           binary specifier: "%b", "%hb" and "%lb"
1025         * device/lib/pic16/libc/stdio/vfprintf.c:
1026           applied patch #2044424: PIC16: vfprintf
1027           thanks Mauro Giachero
1028         * support/regression/tests/bug1057979.c:
1029           removed old pic16 sprintf specifics
1030         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.4
1031         * doc/sdccman.lyx: documented 'b' binary format specifier removal
1032
1033 2008-09-15 Raphael Neider <rneider AT web.de>
1034
1035         * src/pic16/device.c (pic16_dump_usection): force udata sections
1036           into the addressable range (0..0xFFF), workaround for a gpsim
1037           bug preventing simulation of regtest bug1750318
1038         * src/pic16/ralloc.c (deassignLRs): cosmetic changes,
1039           (serialRegAssign): fixed regtest bug-971834,
1040           (pic16_packRegisters): avoid null-pointer dereference
1041
1042 2008-09-14 Raphael Neider <rneider AT web.de>
1043
1044         * src/pic16/gen.c, src/pic16/ralloc.c: use
1045           SYM_SPIL_LOC/SPIL_LOC macros, no functional changes
1046         * src/pic16/ralloc.c (rematStr): reimplemented, fixes #1818857
1047
1048 2008-09-12 Borut Razem <borut.razem AT siol.net>
1049
1050         * support/regression/fwk/testfwk.h:
1051           define pdata as data for pic16 target
1052           thanks Mauro Giachero
1053
1054 2008-09-11 Borut Razem <borut.razem AT siol.net>
1055
1056         * support/regression/tests/bug-221100.c, support/regression/shifts.c,
1057           support/regression/absolute.c:
1058           applied patch #2105615: Some PIC16 testcase fixlets
1059           thanks Mauro Giachero
1060
1061 2008-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
1062
1063         * src/z80/gen.c (genCmpGt, genCmpLt): fixed bug 2094505
1064         * support/regression/tests/bug2094505.c: new, added
1065
1066 2008-09-07 Borut Razem <borut.razem AT siol.net>
1067
1068         * src/SDCCglue.c, src/SDCCast.c:
1069           fixed throw of "excess elements" warning for char arrays
1070         * support/regression/tests/nullstring.c:
1071           disable warning about excess elements in array of chars initializer
1072
1073 2008-09-07 Maarten Brock <sourceforge.brock AT dse.nl>
1074
1075         * as/z80/aslist.c (lstsym): changed old K&R to ANSI
1076         * src/SDCCicode.c (geniCodeCritical): fixed bug for hc08
1077         * src/z80/gen.c (genCritical, genEndCritical): fixed bug 2077267
1078         * support/regression/tests/bug2077267.c: new, added
1079
1080 2008-09-05 Raphael Neider <rneider AT web.de>
1081
1082         * configure.in, Makefile.common.in: add support for ccache,
1083           remove spurious $VERSION output, detect doc-tools even without
1084           --enable-doc to facilitate later manual doc-builds, minor cleanup
1085         * configure: regenerated
1086
1087         * doc/Makefile.in: quieten pdflatex, makeindex, and latex2html,
1088           avoid races in parallel VPATH builds
1089         * doc/clean.mk: remove .lyx files in the builddir for VPATH builds
1090         * doc/sdccman.lyx: mention --without-ccache configure option
1091
1092 2008-09-01 Raphael Neider <rneider AT web.de>
1093
1094         * src/pic16/gen.c (pic16_derefPtr): handle CPOINTERs as well
1095         * (genConstPointerGet): fix reading bitfields from __code space
1096         * src/pic16/glue.c (pic16_printIvalBitFields): correctly mask
1097           bitfield initializers (fix regression test bug1856409.c)
1098         * (pic16_printIvalCharPtr,pic16_printIvalPtr): generalized to support
1099           arbitrary sizes
1100
1101 2008-08-31 Raphael Neider <rneider AT web.de>
1102
1103         * src/pic16/gen.c (genAssign): removed useless compiler output
1104         * (genPointerGet,genPointerSet,genCast),
1105           src/pic16/glue.c (pic16_printGPointerType):
1106           also handle PPOINTERs just to avoid spurious asserts
1107         * (pic16_printIvalType,pic16_printIvalBitFields):
1108           generalized to arbitrary type/bitfield sizes, allows compilation of
1109           regression test bug-1981238.c
1110         * (pic16_printIvalChar): fix regression test structflexarray.c
1111         * (pic16_printIvalArray): avoid SIGSEGV on uninitialized strings
1112           in initialized structs and fix #1843745
1113         * (pic16_printIvalStruct): always output initializers for all fields,
1114           even those not explicitly given, fixes zeropad.c regression test
1115         * (pic16_printIvalUnion): fix union initializers (bug1426356.c,
1116           #2073635, #1567098, and #1485812)
1117         * src/pic16/main.c (_pic16_keywords): remove unsupported 'pdata'
1118
1119 2008-08-31 Borut Razem <borut.razem AT siol.net>
1120
1121         * support/regression/tests/bug-895992.c,
1122           support/regression/tests/onebyte.c:
1123           enabled pic16 regression testing since the bugs
1124           1511794: pic16: regression test bug-895992.c fails
1125           1444425: onebyte.c regression tes fails on pic16
1126           are fixed, probably by fixing
1127           2048464: PIC16: fix genUminus - addresses not.c regression test
1128         * src/SDCCsymt.c, src/SDCCglue.c,
1129           support/regression/tests/bug-1981238.c:
1130           applied patch 2076664: fix #1981238 + SIGSEGV in SDCCGlue.c
1131           thanks to RvS
1132
1133 2008-08-30 Borut Razem <borut.razem AT siol.net>
1134
1135         * support/cpp/libcpp/files.c: SDCPP synchronized with GCC CPP
1136           release version 4.3.2
1137
1138 2008-08-24 Raphael Neider <rneider AT web.de>
1139
1140         * device/lib/pic16/configure, device/lib/pic16/configure.ac:
1141           always use the sdcc from the current build tree (ignore $CC from
1142           the environment, fixes compile farm builds)
1143         * device/lib/Makefile.in: rename .a into .lib for compatibility,
1144           remove more build products from install directory
1145         * sdcc/src/pic16/main.c (_pic16_linkEdit,_pic16_finaliseOptions)
1146         * sdcc/support/scripts/sdcc.nsi: revert to .lib extension for libs
1147
1148 2008-08-24 Borut Razem <borut.razem AT siol.net>
1149
1150         * src/SDCC.y: applied patch
1151           2050245: Fix # 1963382
1152           for bug
1153           1963382: Listing File - C file comment is incorrect
1154           thanks to RvS
1155
1156 2008-08-23 Borut Razem <borut.razem AT siol.net>
1157
1158         * src/pic16/gen.c: applied patch
1159           2048464: PIC16: fix genUminus - addresses not.c regression test
1160           thanks Mauro Giachero
1161
1162 2008-08-22 Borut Razem <borut.razem AT siol.net>
1163
1164         * device/lib/pic16/configure, device/lib/pic16/configure.ac,
1165           src/pic16/main.c: allow spaces in gpasm and gplink paths
1166
1167 2008-08-15 Philipp Klaus Krause <pkk AT spth.de>
1168
1169         * src/z80/peep.c,
1170         * src/z80/peeph-z80.def: minor peephole improvement
1171
1172 2008-08-15 Raphael Neider <rneider AT web.de>
1173
1174         * src/z80/gen.c (_vemit2): suppress compiler warning
1175
1176         * src/pic/*.[ch]: make proper use of header files and avoid
1177           ad-hoc extern declarations, mark module-local helpers 'static',
1178           removed dead/replaced code, no functional changes
1179         * src/pic16/pcode.c: disentangled from pic14 backend
1180
1181 2008-08-14 Philipp Klaus Krause <pkk AT spth.de>
1182
1183         * src/z80/gen.c: fixed #2051348
1184         * support/regression/tests/bug-2051348.c: regression test for #2051348
1185
1186 2008-08-10 Raphael Neider <rneider AT web.de>
1187
1188         * configure.in,
1189         * Makefile.common.in: export PACKAGE for $docdir,
1190           fixes #1957036, avoid some "underquoted definition" warnings
1191         * configure: regenerated
1192
1193 2008-08-10 Raphael Neider <rneider AT web.de>
1194
1195         * device/lib/pic16/**: build pic16 library using autotools for
1196           improved dependency tracking
1197
1198         * device/lib/Makefile.in,
1199         * src/pic16/main.c,
1200         * support/scripts/sdcc.nsi: adapt to changes in filenames (s/.lib/.a/)
1201
1202 2008-08-10 Raphael Neider <rneider AT web.de>
1203
1204         * src/pic/pcode.c (ReuseReg): do not overlay the registers used for
1205           local variables if --nooverlay is given, workaround for #2023121
1206
1207 2008-08-08 Raphael Neider <rneider AT web.de>
1208
1209         * src/pic16/genarith.c (genAddLit): fix structure access (#1888004)
1210
1211 2008-08-08 Raphael Neider <rneider AT web.de>
1212
1213         * src/pic/pcoderegs.c,
1214         * src/pic/pcode.c,
1215         * src/pic16/pcode.c: replace own SAFE_snprintf with common SNPRINTF
1216
1217 2008-08-07 Borut Razem <borut.razem AT siol.net>
1218
1219         * src/SDCCval.c, src/SDCCmain.c, src/SDCC.lex,
1220           device/lib/pic/Makefile.rules, device/lib/ds390/Makefile.in,
1221           device/lib/ds400/Makefile.in, device/lib/hc08/Makefile.in,
1222           support/cpp/libcpp/lex.c,  doc/sdccman.lyx:
1223           applied modified patch 2038174: Add support for binary constants v2
1224           thanks Mauro Giachero
1225         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.3
1226
1227 2008-08-04 Raphael Neider <rneider AT web.de>
1228
1229         * doc/sdccman.lyx,
1230         * src/pic16/device.h,
1231         * src/pic16/glue.c,
1232         * src/pic16/main.c: enable --optimize-goto by default
1233
1234         * device/lib/pic16/Makefile.common.in: suppress removed option
1235
1236         * src/pic16/gen.c,
1237         * src/pic16/genutils.c: avoid too long relative branches (#2031890)
1238
1239 2008-07-30 Borut Razem <borut.razem AT siol.net>
1240
1241         * src/pic16/device.c, src/pic16/glue.c, src/pic16/pcode.c:
1242           applied patch 22032433: PIC16: fix constant strings,
1243           thanks Mauro Giachero
1244
1245 2008-07-29 Borut Razem <borut.razem AT siol.net>
1246
1247         * src/pic16/gen.c: applied patches:
1248           2030306: [1/3] PIC16: fix failing rotate.c tests on 16-bit variables,
1249           2030307: [2/3] PIC16: fix failing rotate.c tests for 32-bit var (1),
1250           2030310: [3/3] PIC16: fix failing rotate.c tests for 32-bit var (2),
1251           thanks Mauro Giachero
1252
1253 2008-07-13 Philipp Klaus Krause <pkk AT spth.de>
1254
1255         * src/port.h: Fixed typo in comment
1256
1257 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
1258
1259         * src/z80/mappings.i: Implemented RFE #1919415
1260         * src/z80/peeph-z80.def: Implemented RFE #1919415, #1861376,
1261           #1880202, #1914434, prepared for RFE #1703943
1262
1263 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
1264
1265         * src/z80/peeph.def,
1266         * src/z80/peeph-z80.def,
1267         * src/z80/peeph-gbz80.def: separate Z80 from GBZ80 peepholes in
1268           preparation for Z80 peephole improvements
1269
1270 2008-06-21 Raphael Neider <rneider AT web.de>
1271
1272         * device/include/pic16/pic18f66j60.h,
1273         * device/include/pic16/pic18f66j65.h,
1274         * device/include/pic16/pic18f67j60.h,
1275         * device/include/pic16/pic18f86j60.h,
1276         * device/include/pic16/pic18f86j65.h,
1277         * device/include/pic16/pic18f87j60.h,
1278         * device/include/pic16/pic18f96j60.h,
1279         * device/include/pic16/pic18f96j65.h,
1280         * device/include/pic16/pic18f97j60.h,
1281         * device/lib/pic16/libdev/pic18f66j60.c,
1282         * device/lib/pic16/libdev/pic18f66j65.c,
1283         * device/lib/pic16/libdev/pic18f67j60.c,
1284         * device/lib/pic16/libdev/pic18f86j60.c,
1285         * device/lib/pic16/libdev/pic18f86j65.c,
1286         * device/lib/pic16/libdev/pic18f87j60.c,
1287         * device/lib/pic16/libdev/pic18f96j60.c,
1288         * device/lib/pic16/libdev/pic18f96j65.c,
1289         * device/lib/pic16/libdev/pic18f97j60.c,
1290         * device/include/pic16/pic16devices.txt,
1291         * device/include/pic16/pic18fregs.h,
1292         * device/lib/pic16/pics.all: added new devices
1293
1294         * device/include/pic16/adc.h,
1295         * device/lib/pic16/libio/adc/adcbusy.c,
1296         * device/lib/pic16/libio/adc/adcopen.c,
1297         * device/lib/pic16/libio/adc/adcsetch.c,
1298         * device/lib/pic16/libio/i2c/i2copen.c,
1299         * device/lib/pic16/libio/usart/uopen.c: adapted to new devices,
1300           all changes from a patch by Anton Strobl
1301
1302 2008-06-12 Borut Razem <borut.razem AT siol.net>
1303
1304         * sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/bp.cc,
1305           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
1306           sim/ucsim/z80.src/z80cl.h, sim/ucsim/z80.src/z80.cc,
1307           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
1308           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
1309           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/uc390.cc,
1310           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/uc390cl.h,
1311           sim/ucsim/avr.src/avrcl.h, sim/ucsim/avr.src/avr.cc:
1312           fixed bug 1990586: s51 simulator, uc::disass() unimplemented
1313           by applying the modified patch from Risto Huotari
1314
1315 2008-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
1316
1317         * .version,
1318         * doc/sdccman.lyx: bumped sdcc version to 2.8.2
1319         * src/ds390/gen.c (aopPutUsesAcc, genAddrOf): fixed bug 1015185
1320         * src/mcs51/gen.c (genNearPointerGet, genNearPointerSet): fixed bug 1938300
1321         * support/regression/tests/bug1938300.c: new, added
1322
1323 2008-06-03 Maarten Brock <sourceforge.brock AT dse.nl>
1324
1325         * device/include/asm/ds390/features.h,
1326         * device/include/asm/mcs51/features.h,
1327         * device/include/mcs51/regc515c.h: inserted LGPL notice
1328
1329 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1330
1331         * device/lib/gbz80/div.s,
1332         * device/lib/z80/div.s: fixed bug 1904314 by applying a modified part of
1333           patch 1597883, Thanks Robert Ramey
1334
1335 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1336
1337         * src/SDCCast.c (createIvalType, createIvalStruct, createIvalArray,
1338           createIvalCharPtr, createIvalPtr, createIval),
1339         * src/SDCCval.h
1340         * src/SDCCval.c (convertIListToConstList, list2expr): handle incomplete
1341           initializers for local auto variables
1342         * support/regression/tests/zeropad.c: added testcase for auto initializers
1343
1344 2008-05-26 Raphael Neider <rneider AT web.de>
1345
1346         * device/lib/pic16/startup/crt0.c,
1347         * device/lib/pic16/startup/crt0i.c,
1348         * device/lib/pic16/startup/crt0iz.c: clean up, make use of access bank
1349           explicit, fixed curr_entry loop for >= 256 initializer records,
1350           removed debug code (write to 0xf7e)
1351
1352 2008-05-25 Raphael Neider <rneider AT web.de>
1353
1354         * device/include/pic/pic16f627a.h,
1355         * device/include/pic/pic16f628a.h,
1356         * device/include/pic/pic16f648a.h: added missing ports
1357
1358 2008-05-20 Maarten Brock <sourceforge.brock AT dse.nl>
1359
1360         * device/include/float.h: added __INFINITY
1361         * device/lib/_fsadd.c: handle overflows
1362         * device/lib/_fsmul.c,
1363         * device/lib/_fsdiv.c: use __INFINITY
1364         * device/lib/_fseq.c,
1365         * device/lib/_fsneq.c: handle -0.0
1366         * sim/ucsim/s51.src/uc89c51r.cc,
1367         * sim/ucsim/s51.src/uc89c51rcl.h: fixed bug 1385430
1368         * sim/ucsim/sim.src/hwcl.h: */* confuses VC
1369         * src/mcs51/gen.c (genSend): fixed bug with --xstack
1370         * support/regression/ports/mcs51-xstack-auto/spec.mk: print floats
1371         * support/regression/tests/snprintf.c: test bug with --xstack
1372
1373 2008-05-19  Philipp Klaus Krause <pkk AT spth.de>
1374
1375         * src/SDCCpeeph.c (callFuncByName):
1376           Support nested parenthesis in peephole function arguments (#1967300)
1377
1378 2008-05-19 Raphael Neider <rneider AT web.de>
1379
1380         * src/pic16/gen.c (pic16_emitpLabel,pic16_emitpLabelFORCE):
1381           fixed duplicate labels (#1911325)
1382
1383 2008-05-19 Raphael Neider <rneider AT web.de>
1384
1385         * src/regression/empty.c: suppress warning
1386         * src/regression/pointer1.c: enabled index_by_pointer()
1387         * src/regression/inline.c: now works for pic16 as well
1388
1389         * src/pic16/device.c: include dbuf declarations
1390         * src/pic16/device.h: removed obsolete prototypes
1391
1392         * src/pic16/gen.c, src/pic16/gen.h: moved generic pointer tags
1393         * src/pic16/glue.c: made purely local functions static,
1394           (pic16_printGPointerType, pic16_printIvalCharPtr,
1395           pic16_printIvalFuncPtr, pic16_printIvalPtr): fixed initialized
1396           generic pointers' tags (#1961866)
1397
1398         * src/pic16/pcode.c (assignValnums): optimize literal assignments
1399
1400 2008-05-19 Borut Razem <borut.razem AT siol.net>
1401
1402         * support/scripts/sdcc.nsi: remove uninstall.exe after uninstallation,
1403           fixed typo, uninstall include/pic16/pic16devices.txt
1404
1405 2008-05-18 Borut Razem <borut.razem AT siol.net>
1406
1407         * support/Utils/dbuf_string.[ch]: added dbuf_chomp(),
1408           the buffer is null terminated
1409         * src/device/pic16.c:
1410           applied modified patch 1965676: Patch for Win32 16 bit PIC
1411         * sdcc_vc_in.h: defined YY_NO_UNISTD_H
1412
1413 2008-05-16 Maarten Brock <sourceforge.brock AT dse.nl>
1414
1415         * src/SDCC.lex (check_type),
1416         * src/SDCC.y (type_specifier2 TYPE_NAME): fixed bug 1925942
1417         * as/hc08/clean.mk,
1418         * as/mcs51/clean.mk,
1419         * as/z80/clean.mk: also clean *.dep
1420         * device/lib/pic16/libsdcc/stack/Makefile,
1421         * sim/ucsim/libtool: removed as they are rebuild by configure
1422         * src/clean.mk: removed izt, so Makefile is not deleted for distclean
1423
1424 2008-05-13 Maarten Brock <sourceforge.brock AT dse.nl>
1425
1426         * src/SDCCast.c (fixupInline, createFunction): save currBlockno in
1427           fixupInline instead of createFunction to fix bug 1864577
1428           (inlineFindMaxBlockno): removed, use global blockNo
1429         * src/SDCCglobl.h: added blockNo
1430         * src/z80/peep.c,
1431         * src/z80/peep.h: modified properties
1432         * support/regression/tests/bug1864577.c: new, added
1433
1434 2008-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
1435
1436         * as/mcs51/asdata.c,
1437         * as/mcs51/asm.h: added org_cnt
1438         * as/mcs51/asmain.c (main, asmbl): fixed bug 1957716, changed old K&R to ANSI
1439         * as/mcs51/asout.c: changed old K&R to ANSI
1440         * as/mcs51/Makefile.in: use common identifiers
1441         * as/hc08/asdata.c,
1442         * as/hc08/asexpr.c,
1443         * as/hc08/asm.h,
1444         * as/hc08/asmain.c,
1445         * as/hc08/asout.c,
1446         * as/hc08/Makefile.bcc,
1447         * as/hc08/Makefile.in: synchronized with as/mcs51/*
1448         * sdcc_vc_in.h: added define __func__
1449         * src/SDCCast.c (expandInlineFuncs): applied patch 1957148 to fix bug 1717305,
1450           Thanks Ruud van Silfhout
1451         * support/regression/tests/bug1717305.c: new, added
1452
1453 2008-05-05 Borut Razem <borut.razem AT siol.net>
1454
1455         * support/regression/Makefile.in,
1456           support/regression/ports/ds390/spec.mk,
1457           support/regression/ports/hc08/spec.mk,
1458           support/regression/ports/mcs51-common/spec.mk,
1459           support/regression/ports/pic14/spec.mk,
1460           support/regression/ports/pic16/spec.mk,
1461           support/regression/ports/ucz80/spec.mk,
1462           support/regression/ports/z80/spec.mk:
1463           added INC_DIR and LIBDIR paths
1464         * src/ds390/gen.c: removed duplicated selicolon
1465
1466 2008-05-04 Borut Razem <borut.razem AT siol.net>
1467
1468         * support/regression/Makefile.in,
1469           support/regression/fwk/lib/testfwk.c,
1470           support/regression/ports/ds390/spec.mk,
1471           support/regression/ports/hc08/spec.mk,
1472           support/regression/ports/mcs51-common/spec.mk,
1473           support/regression/ports/mcs51-large/spec.mk,
1474           support/regression/ports/mcs51-medium/spec.mk,
1475           support/regression/ports/mcs51-small/spec.mk,
1476           support/regression/ports/mcs51-stack-auto/spec.mk,
1477           support/regression/ports/mcs51-xstack-auto/spec.mk,
1478           support/regression/ports/pic14/spec.mk,
1479           support/regression/ports/pic16/spec.mk,
1480           support/regression/ports/ucz80/spec.mk:
1481           added possibility to define the sdcc binary directory SDCC_BIN_PATH
1482           used to run regeression tests
1483
1484 2008-05-01 Raphael Neider <rneider AT web.de>
1485
1486         * doc/sdccman.lyx, support/scripts/inc2h-pic16.pl: updated list of
1487           supported devices and instructions to add new ones
1488
1489 2008-05-01 Raphael Neider <rneider AT web.de>
1490
1491         * device/include/pic16/adc.h,
1492           device/lib/pic16/libio/adc/adcbusy.c,
1493           device/lib/pic16/libio/adc/adcopen.c,
1494           device/lib/pic16/libio/adc/adcsetch.c: support old 18f242 and new
1495           18f2455 style ADC devices, based on patch #1776197
1496         * device/lib/pic16/libio/adc/adcclose.c,
1497           device/lib/pic16/libio/adc/adcconv.c,
1498           device/lib/pic16/libio/adc/adcread.c: cosmetic changes
1499         * device/include/pic16/{pic18f2331.h,pic18f2431.h},
1500           device/lib/pic16/libdev/{pic18f2331.c,pic18f2431.c}: reuse 18f4331
1501         * device/include/pic16/pic18f4431.h,
1502           device/lib/pic16/libdev/pic18f4431.c: remove outdated comments
1503         * device/lib/pic16/libio/adc.ignore: forbid unhandled devices
1504
1505 2008-05-01 Raphael Neider <rneider AT web.de>
1506
1507         * src/pic16/device.h: removed unused field PIC16_device.sfrRange,
1508           moved xinst flag into pic16_options_t
1509         * src/pic16/device.c (default_device, pic16_list_devices,
1510           pic16_find_device): removed references to sfrrange
1511         * src/pic16/gen.c (genFunction),
1512           src/pic16/glue.c (pic16initialComments),
1513           src/pic16/main.c (pic16_optionsTable),
1514           src/pic16/ralloc.c (newReg, pic16_writeUsedRegs): updated references
1515           to xinst
1516         * device/include/pic16/pic16devices.txt: removed sfrrange lines
1517
1518 2008-04-29 Raphael Neider <rneider AT web.de>
1519
1520         * src/pic16/devices.inc,
1521           device/include/pic16/pic16devices.txt: replaced compiled-in list
1522           of devices with a variant parsed at runtime
1523         * src/pic16/device.c: added support for parsing pic16devices.txt,
1524           clean up
1525         * src/pic16/device.h: removed (now) unused fields from PIC_device
1526         * src/pic16/main.c: removed #pragma maxram,
1527           (_pic16_initPaths): removed bogus generation of search paths,
1528           setup the port proper only after the search paths (for
1529           pic16devices.txt) are set up,
1530           (_pic16_finaliseOptions): moved processor dependant code here
1531           from _pic16_initPaths(), clean up
1532         * src/pic16/ralloc.c (pic16_init_stack),
1533         * src/pic16/ralloc.h,
1534         * src/pic16/pcode.c: clean up
1535         * device/include/Makefile.in,
1536           support/scripts/sdcc.nsi: also install/package pic16devices.txt
1537         * support/scripts/inc2h-pic16.pl: updated instructions
1538
1539 2008-04-29 Raphael Neider <rneider AT web.de>
1540
1541         * device/include/pic16/{pic18f2480.h, pic18f2580.h, pic18f4423.h,
1542           pic18f4480.h, pic18f4523.h, pic18f4580.h, pic18f6585.h, pic18f8585.h},
1543           device/lib/pic16/libdev/{pic18f2480.c, pic18f2580.c, pic18f4423.c,
1544           pic18f4480.c, pic18f4523.c, pic18f4580.c, pic18f6585.c, pic18f8585.c}:
1545           added missing family members and 18f2480/2580/4480/4580 family
1546         * device/include/pic16/{pic18f2423.h, pic18f2523.h}: use 18f4523.h
1547         * device/include/pic16/pic18f2525.h: use 18f4620.h
1548         * device/include/pic16/pic18f6680.h: use 18f8680.h
1549         * device/include/pic16/pic18fregs.h,
1550           device/lib/pic16/pics.all,
1551           src/pic16/devices.inc: add new devices
1552         * device/lib/pic16/libdev/{pic18f2423.c, pic18f2523.c}: use 18f4523.c
1553         * device/lib/pic16/libdev/pic18f2525.c: use 18f4620.c
1554         * device/lib/pic16/libdev/pic18f6680.c: uso 18f8680.c
1555         * device/lib/pic16/libio/{adc.ignore, i2c.ignore, usart.ignore}:
1556           prevent attempting to build the libio for some new devices
1557
1558 2008-04-29 Raphael Neider <rneider AT web.de>
1559
1560         * debugger/mcs51/Makefile.in: fixed paths to sources
1561
1562 2008-04-25 Borut Razem <borut.razem AT siol.net>
1563
1564         * as/link/lklibr.c: moved from as/link/z80/lklibr.c
1565         * as/link/hc08/lklibr.c, as/link/mcs51/lklibr.c: deleted
1566         * as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
1567         * as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
1568           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
1569           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
1570           as/link/z80/linkz80.dsp: lklibr.c moved
1571         * doc/INSTALL.txt: binary archives in bz2 format
1572         * support/cpp/auto-host_vc_in.h: CPP2 replaced with CPP
1573
1574 2008-04-23 Maarten Brock <sourceforge.brock AT dse.nl>
1575
1576         * src/SDCCglue.c (printIvalType, printIvalBitFields): fixed bug 1856409
1577         * support/regression/tests/bug1856409.c: new, added
1578
1579 2008-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
1580
1581         * src/z80/peep.c,
1582         * src/mcs51/peep.c: Use werror for error messages.
1583         * src/SDCCicode.c (geniCodeConditional),
1584         * src/SDCCsymt.c (structElemType): fixed bug 1839321
1585         * src/z80/Makefile.bcc,
1586         * src/z80/z80.dsp: added src/z80/peep.c/h
1587         * support/regression/tests/bug1839321.c: new, added
1588
1589 2008-04-20 Raphael Neider <rneider AT web.de>
1590
1591         * device/include/pic16/pic18f2455.h: added bitfields for port C
1592
1593 2008-04-20 Philipp Klaus Krause <pkk AT spth.de>
1594
1595         * src/z80/peep.c: Use werror for error messages.
1596
1597 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
1598
1599         * src/z80/peep.h (declaration of notUsed()),
1600         * src/z80/main.c (enabled notUsed() for z80 port, documented z80_port
1601           struct),
1602         * src/z80/z80.h (added dependency on peep.h),
1603         * src/z80/peep.c (definition of notUsed()): Implemented RFE #1880202
1604           for Z80.
1605
1606 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
1607
1608         * src/SDCCpeeph.c (added support for notUsed()),
1609         * src/mcs51/main.c (added dependency on peep.h, documented mcs51_port
1610           struct),
1611         * src/port.h (removed dependency on mcs51/peep.h, added declaration
1612           for notUsed()): Implemented generic (that is not port-specific) part
1613           of RFE #1880202.
1614
1615 2008-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
1616
1617         * as/link/mcs51/lkmem.c (summary2): fixed bug 1796077
1618         * device/lib/libsdcc.lib,
1619         * device/lib/Makefile.in,
1620         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1621         * device/lib/calloc.c: renamed to _calloc.c
1622         * device/lib/free.c: renamed to _free.c
1623         * device/lib/malloc.c: renamed to _malloc.c
1624         * device/lib/realloc.c: renamed to _realloc.c
1625         * src/ds390/gen.c (aopGet, aopPut, genPlusBits, genDataPointerSet,
1626           genNearPointerSet, genPagedPointerSet): synchronized with mcs51/gen.c
1627         * src/ds390/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq, ifxForOp,
1628           genAnd, genOr, genXor, genIfx, gen390Code): fixed bug 1509084
1629         * src/mcs51/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq,
1630           ifxForOp, genAnd, genOr, genXor, genNearPointerGet,
1631           genPagedPointerGet, genFarPointerGet, genCodePointerGet,
1632           genGenPointerGet, genIfx, gen51Code): fixed bug 1509084
1633         * src/ds390/gen.c,
1634         * src/mcs51/gen.c: throughout cosmetic changes for syncing both
1635         * src/SDCCsymt.h: updated IS_OP_RUONLY, IS_OP_ACCUSE
1636         * support/regression/tests/bug1509084.c: new, added
1637
1638 2008-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
1639
1640         * device/include/mcs51/cc2510fx.h: added _XPAGE
1641         * device/include/mcs51/compiler.h: cosmetic changes
1642
1643 2008-03-31 Maarten Brock <sourceforge.brock AT dse.nl>
1644
1645         * sdcc.dsw: adapted for moved cpp2, added dependency for as_z80 on
1646           config
1647
1648 2008-03-31 Borut Razem <borut.razem AT siol.net>
1649
1650         * support/cpp2 renamed to support/cpp
1651         * support/cpp2/libiberty/filenames.h, support/cpp2/libiberty/hex.c,
1652           support/cpp2/libiberty/splay-tree.c,
1653           support/cpp2/libiberty/splay-tree.h, support/cpp2/libcpp/macro.c,
1654           support/cpp2/libcpp/directives.c,
1655           support/cpp2/libcpp/include/cpplib.h,
1656           support/cpp2/libcpp/include/symtab.h,
1657           support/cpp2/libcpp/include/line-map.h,
1658           support/cpp2/libcpp/line-map.c, support/cpp2/libcpp/files.c,
1659           support/cpp2/libcpp/init.c, support/cpp2/libcpp/traditional.c,
1660           support/cpp2/libcpp/expr.c, support/cpp2/libcpp/internal.h,
1661           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/system.h,
1662           support/cpp2/libcpp/charset.c: SDCPP synchronized with GCC CPP
1663           release version 4.3.0
1664         * configure.in, configure, Makefile.in, Makefile.bcc:
1665           adapted for moved cpp2
1666
1667 2008-03-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1668
1669         * device/include/hc08/mc68hc908jkjl.h: committed fix for bug #1929739,
1670           thanks Alejandro Pustowka <alejo_pustowka AT yahoo.com.mx>
1671
1672 2008-03-30 Maarten Brock <sourceforge.brock AT dse.nl>
1673
1674         * src/SDCCloop.c (loopInvariants): applied fix for bug 1717943, thanks
1675           Robert Larice
1676         * support/regression/tests/bug1717943.c: new, added
1677
1678 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1679
1680         * src/z80/gen.c (assignResultValue): Reverted reversal of order of
1681           bytewise return value assignments introduced in last commit.
1682
1683 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1684
1685         * src/z80/gen.c (emitDebug, assignResultValue, genPlus, genMinus,
1686           genMult, genJumpTab):
1687           Use 16-bit instructions for addition in some additional cases,
1688           implemented RFEs #1914251, #1914245, #1922090, #1921382, #1918323.
1689
1690 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1691
1692         * src/z80/ralloc.c (serialRegAssign, allocReg, tryAllocatingRegPair):
1693           Implemented RFE #1921450, changed some debug messages.
1694
1695 2008-03-30 Borut Razem <borut.razem AT siol.net>
1696
1697         * Small Device C Compiler 2.8.0 released
1698         * .version, doc/sdccman.lyx: changed sdcc version to 2.8.1
1699         * support/scripts/sdcc.nsi: added finish page; this version
1700           was used for 2.8.0 release
1701         * doc/knownbugs.html: removed; magically generated by the build
1702           process using gen_known_bugs.pl from now on
1703
1704 2008-03-23 Borut Razem <borut.razem AT siol.net>
1705
1706         * src/pic/gen.h: Q&D solution for the bug, found by Jim Paris
1707           and reverted it, since it was already fixed by Raphael ;-)
1708         * doc/knownbugs.html: updated for RC2
1709
1710 2008-03-22 Raphael Neider <rneider AT web.de>
1711
1712         * src/SDCCicode.c (getPtrType): avoid unnecessary extra assignments
1713           for PIC16 targets
1714
1715 2008-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
1716
1717         * src/mcs51/gen.c (adjustArithmeticResult): fixed bug 1839299
1718         * support/regression/tests/bug1839277.c: added related testBug1839299
1719
1720 2008-03-21 Maarten Brock <sourceforge.brock AT dse.nl>
1721
1722         * src/ds390/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign),
1723         * src/mcs51/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign):
1724           fixed bug 1839277
1725         * src/mcs51/gen.c: throughout only output hex constants
1726         * src/SDCCicode.c (getPtrType, geniCodeCast): fixed code size regression
1727         * support/regression/tests/bug1839277.c: new, added
1728
1729 2008-03-21 Philipp Klaus Krause <pkk AT spth.de>
1730
1731         * src/z80/ralloc.c (callFuncByName): Used // instead of /**/ to fix
1732           compilation warning about nested comments.
1733
1734 2008-03-20 Maarten Brock <sourceforge.brock AT dse.nl>
1735
1736         * src/SDCCsymt.c (comparePtrType): fixed bug 1921073
1737         * support/regression/tests/bug1921073.c: new, added
1738
1739 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
1740
1741         * src/z80/SDCCpeeph.c.c (callFuncByName):
1742           Commented function parameters.
1743
1744 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
1745
1746         * src/z80/ralloc.c (packRegsForAccUse2):
1747           disabled a broken accumulator packing optimization (fixed #1292721).
1748         * support/regression/tests/bug-1292721: Regression test for #1292721.
1749
1750 2008-03-16 Raphael Neider <rneider AT web.de>
1751
1752         * src/pic/gen.c (SetIrp,genNearPointerGet,genNearPointerSet):
1753           fixed code bloat regression using a variant of patch #1915618
1754
1755 2008-03-16 Borut Razem <borut.razem AT siol.net>
1756
1757         * support/scripts/sdcc.nsi: added section debugging macros, added SDCC
1758           icon, changed startup menu for release distribution, code cleaning,
1759           create url files instead links in startup menu
1760
1761 2008-03-16 Maarten Brock <sourceforge.brock AT dse.nl>
1762
1763         * src/SDCCcse.c (algebraicOpts): fixed bug 1579949
1764         * support/regression/tests/bug1579949.c: new, added
1765
1766 2008-03-14 Paul Stoffregen <paul AT pjrc.com>
1767
1768         * device/lib/printf_fast.c: fixed bug 1255403
1769
1770 2008-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
1771
1772         * doc/sdccman.lyx: enhanced paragraph about bankswitching for mcs51
1773         * src/cdbFile.c (cdbWriteBasicSymbol): fixed bug 1909409 for locals
1774
1775 2008-03-14 Borut Razem <borut.razem AT siol.net>
1776
1777         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated link-xx and aslink
1778           command line options
1779         * as/link/hc08/lkmain.c: converted tabs to spaces so that the usage
1780           is correctly displayed
1781         * as/link/z80/lkmain.c: usage line commented out
1782
1783 2008-03-13 Borut Razem <borut.razem AT siol.net>
1784
1785         * doc/sdccman.lyx: corrected to be able to convert to PDF,
1786           updated the list pf supported pic14 devices
1787
1788 2008-03-12 Maarten Brock <sourceforge.brock AT dse.nl>
1789
1790         * doc/sdccman.lyx: added paragraph about bankswitching for mcs51
1791
1792 2008-03-12 Borut Razem <borut.razem AT siol.net>
1793
1794         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated command line options,
1795           fixed documentation request #1718191
1796         * as/hc80/asmain.c, as/mcs51/asmain.c: added option -c to usage
1797         * doc/sdccman.lyx: added description of --no-std-crt0 gbz80
1798           command line option
1799
1800 2008-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
1801
1802         * src/SDCCast.c (isConformingBody): fixed bug 1505811, thanks Robert Larice
1803         * support/regression/tests/bug1505811.c: new, added
1804
1805 2008-03-09 Raphael Neider <rneider AT web.de>
1806
1807         * device/include/pic16/pic18f2620.h,
1808         * device/include/pic16/pic18f4620.h,
1809         * device/lib/pic16/libdev/pic18f2620.c,
1810         * device/lib/pic16/libdev/pic18f4525.c,
1811         * device/lib/pic16/libdev/pic18f4620.c: merged 18f2525/2620/4525/4620
1812           family to consistently use pic18f4620.[ch], fixes #1832562
1813
1814 2008-03-09 Borut Razem <borut.razem AT siol.net>
1815
1816         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
1817           changed sdcc version to 2.8.0
1818         * knownbugs.html: regenerated
1819         * support/scripts/gen_known_bugs.pl: added number of open bugs
1820
1821 2008-03-09 Raphael Neider <rneider AT web.de>
1822
1823         * src/pic16/gen.c (pic16_mov2w_volatile): NEW, read volatile operands,
1824           (genOr): read volatile operand even if the result is known,
1825           closes #1511838
1826           (genOr,genXor): removed unused legacy code,
1827           (genDummyRead): use pic16_mov2w_volatile()
1828
1829 2008-03-08 Borut Razem <borut.razem AT siol.net>
1830
1831         * src/SDCCglue.c: fixed bug #1864582: multiple definition of char
1832           cons w. --model-large
1833         * support/regression/staticinit.c: added regression test for bug
1834           #1864582
1835
1836 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1837
1838         * src/ds390/gen.c (pushSide, genPcall),
1839         * src/hc08/gen.c (pushSide, genPcall): synchronized with mcs51
1840         * src/mcs51/gen.c: cosmetic changes
1841         * support/regression/fwk/include/testfwk.h: added macro reentrant
1842         * support/regression/tests/bug1908493.c: new, added
1843
1844 2008-03-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1845
1846         * src/SDCCdebug.c:, as/link/lkaomf51.c: Fixed bug 1909409: Pdata in OMF file
1847
1848 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1849
1850         * src/mcs51/gen.c (pushSide, genPcall): fixed bug 1908493
1851         * src/SDCCmain.c (preProcess): removed -DSDCC_PARMS_IN_BANK1 because it is
1852           already set in ds390/main.c and mcs51/main.c
1853
1854 2008-03-07 Raphael Neider <rneider AT web.de>
1855
1856         * src/regression/init0.c: new test for initialized arrays of function
1857           pointers
1858         * src/regression/Makefile: made a bit more flexible, added init0.c
1859         * src/pic/glue.c (emitIvals): hacky fix for initializing from function
1860           pointers, closes #1427663
1861
1862 2008-03-05 Borut Razem <borut.razem AT siol.net>
1863
1864         * dos/sdccman.lyx: docummented predefined macros SDCC_REVISION,
1865           SDCC_PARMS_IN_BANK1, SDCC_FLOAT_REENT and SDCC_INT_LONG_REENT
1866
1867 2008-03-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1868
1869         * support/librarian/sdcclib.c:Added feature request 1908061:
1870           Synchronise sdcclib commands with ar.
1871
1872 2008-03-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1873
1874         * src/SDCCmain.c: added predefined macros SDCC_REVISION (RFE #1907229),
1875           and (depending on corresponding compiler option) SDCC_PARMS_IN_BANK1,
1876           SDCC_FLOAT_REENT, SDCC_INT_LONG_REENT
1877         * device/include/mcs51/compiler.h: removed umlauts, added double
1878           underscore
1879
1880 2008-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
1881
1882         * src/SDCCptropt.c (ptrPseudoSymConvert): fixed bug 1536762
1883         * support/regression/tests/bug1536762.c: new, added
1884         * src/SDCCutil.c,
1885         * src/SDCCutil.h: added getBuildDate()
1886         * src/SDCCmain.c (printVersionInfo),
1887         * src/SDCCglue.c (initialComments): use getBuildDate() instead of
1888           __DATE__
1889         * src/*/ralloc.c: removed IS_OP_RUONLY macro
1890         * src/ds390/ralloc.c (packRegisters),
1891         * src/mcs51/ralloc.c (packRegisters),
1892         * src/z80/ralloc.c (packRegisters): applied fix for bug 1618050, thanks
1893           Robert Larice
1894         * support/regression/tests/bug1618050.c: new, added
1895         * src/SDCCsymt.h: fixed typo in DECLSPEC2TXT
1896         * support/regression/fwk/include/testfwk.h,
1897         * support/regression/tests/bug1838000.c: moved _AUTOMEM and _STATMEM to
1898           testfwk.h
1899
1900 2008-03-04 Raphael Neider <rneider AT web.de>
1901
1902         * src/pic/gen.c: removed unused prototypes, prevent internal errors
1903           on accessing OP_SYM_TYPE(op)
1904         * src/pic/gen.h: removed unused prototype of genMinusDec()
1905         * src/pic/genarith.c (genMinus): cosmetic changes, rewritten to
1906           fix #1876953 (invalid subtraction code), removed unused code
1907
1908 2008-03-03 Raphael Neider <rneider AT web.de>
1909
1910         * src/pic/gen.c,
1911         * src/pic/gen.h,
1912         * src/pic/genarith.c,
1913         * src/pic/ralloc.c,
1914         * src/pic/ralloc.h: removed AOP_R0, AOP_R1, AOP_DPTR, AOP_DPTR2,
1915           AOP_ACC, and *_IDX and adjusted code, removed unused legacy code
1916
1917 2008-03-03 Raphael Neider <rneider AT web.de>
1918
1919         * src/pic/device.c (find_device): search user-specified paths first
1920           for pic14devices.txt, fixes #1900827
1921
1922 2008-03-02 Borut Razem <borut.razem AT siol.net>
1923
1924         * support/scripts/sdcc.nsi: fixed bug in IsNT, LogicLib-isation of
1925           AddToPath and RemoveFromPath
1926
1927 2008-03-01 Borut Razem <borut.razem AT siol.net>
1928
1929         * support/scripts/sdcc.nsi: reverted MULTIUSER page since it didn't
1930           work correctly, added debugging support if -DSDCC.DEBUG command line
1931           option is defined
1932
1933 2008-02-28 Borut Razem <borut.razem AT siol.net>
1934
1935         * doc/sdccman.lyx: cosmetic changes
1936
1937 2008-02-28 Maarten Brock <sourceforge.brock AT dse.nl>
1938
1939         * src/mcs51/ralloc.c (fillGaps): fixed bug 1839671
1940         * doc/sdccman.lyx: fixed unmeant removal of spaces
1941
1942 2008-02-27 Borut Razem <borut.razem AT siol.net>
1943
1944         * support/scripts/sdcc.nsi: corrected installation directory for
1945           current user installation mode
1946         * doc/README.txt: added Philipp Klaus Krause to the developers list
1947
1948 2008-02-27 Maarten Brock <sourceforge.brock AT dse.nl>
1949
1950         * src/mcs51/gen.c (genUnpackBits): don't generate ifxJump, instead
1951           return ifx condition
1952           (genNearPointerGet, genPagedPointerGet, genFarPointerGet,
1953           genCodePointerGet, genGenPointerGet): cleanup aop before generating
1954             ifxJump to fix bug 1838000
1955         * src/SDCCsymt.c (aggregateToPointer): fix problem for xstack
1956         * support/regression/tests/bug1838000.c: new, added
1957         * device/include/mcs51/cc1110.h: new, added, thanks to Pravin Angolkar
1958
1959 2008-02-26 Borut Razem <borut.razem AT siol.net>
1960
1961         * src/SDCCast.c, doc/sdccman.lyx: fixed RFE #1901171: inerger promotion
1962           of casted varargs
1963         * support/scripts/sdcc.nsi: added MULTIUSER page,
1964           NSIS upgraded to version 2.35
1965
1966 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1967
1968         * src/mcs51/ralloc.c (isSpiltOnStack): fixed bug 1565152
1969         * support/regression/tests/bug1565152.c: new, added
1970
1971 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1972
1973         * src/mcs51/gen.c (genPagedPointerSet): fixed bug 1670148
1974         * support/regression/ports/mcs51-xstack-auto/spec.mk: added expf.c
1975         * support/regression/tests/bug1670148.c: new, added
1976
1977 2008-02-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1978
1979         * device/include/mcs51/at89c51ed2.h: fixed bug 1901469.
1980
1981 2008-02-24 Borut Razem <borut.razem AT siol.net>
1982
1983         * src/SDCCast.c, src/SDCCast.h: fixed bug #1874922: explicit typecast
1984           is ineffective for unsigned char parameter
1985
1986 2008-02-24 Maarten Brock <sourceforge.brock AT dse.nl>
1987
1988         * src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
1989         * src/SDCCglue.c (printIvalBitFields): fixed bug 1806631
1990         * support/regression/tests/bitopcse.c: removed hc08 exception, see testfwk.h
1991         * support/Util/MySystem.c (my_system): output errorcode when verbose
1992
1993 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
1994
1995         * src/z80/gen.c (genMult): Rewrote 8-bit multiplication by constant,
1996           implements #1898231
1997
1998 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
1999
2000         * device/lib/z80/mul.s: Rewrote __muluchar_rrx_s, to improve 8-bit mult.,
2001           implements #1896290
2002
2003 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
2004
2005         * src/SDCCast.c (createIvalStruct): fixed bug 1466761
2006
2007 2008-02-21 Borut Razem <borut.razem AT siol.net>
2008
2009         * support/regression/Makefile.in,
2010           support/regression/ports/ds390/spec.mk,
2011           support/regression/ports/hc08/spec.mk,
2012           support/regression/ports/mcs51-common/spec.mk,
2013           support/regression/ports/pic14/spec.mk,
2014           support/regression/ports/pic16/spec.mk,
2015           support/regression/ports/ucz80/spec.mk,
2016           support/regression/ports/xa51/spec.mk:
2017           added CFLAGS when compiling timeout
2018
2019 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
2020
2021         * support/regression/tests/bugs-1596270-1736867.c: Regression test for
2022           #1596270, #1736867
2023
2024 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
2025
2026         * src/SDCClrange.c (findPrevUse): fixed bug 1888147
2027         * support/regression/tests/bug1888147.c: new, added
2028
2029 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
2030
2031         * src/z80/gen.c: fixed bugs #1596270, #1736867
2032
2033 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
2034
2035         * src/z80/gen.c: fixed bug in register pair loading when swapping register
2036           contents, mostly fixes #1596270
2037
2038 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
2039
2040         * src/z80/peeph.def,
2041         * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific
2042           peepholes, fixes #1806565
2043
2044 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
2045
2046         * src/SDCCpeeph.c (operandBaseName): added check for @Ri
2047         * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
2048           fixes bug 1739475, thanks Robert Larice
2049           (rule 271): new, added
2050
2051 2008-02-18 Borut Razem <borut.razem AT siol.net>
2052
2053         * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
2054
2055 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
2056
2057         * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
2058
2059 2008-02-17 Raphael Neider <rneider AT web.de>
2060
2061         * src/pic16/genarith.c,
2062         * src/pic16/gen.c,
2063         * src/pic16/gen.h,
2064         * src/pic16/genutils.c: removed unused legacy code,
2065           removed unused fields from struct asmop and struct _G
2066
2067 2008-02-17 Raphael Neider <rneider AT web.de>
2068
2069         * src/pic16/gen.c (AccRsh): cosmetic changes,
2070           (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
2071           genRightShiftLiteral): fixed to work with SFRs as result by
2072           assigning only once to result,
2073           removed a lot of unused/excluded code fragments
2074
2075 2008-02-17 Raphael Neider <rneider AT web.de>
2076
2077         * device/include/pic/pic16f88.h,
2078         * device/include/pic/pic16f886.h,
2079         * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
2080
2081 2008-02-17 Borut Razem <borut.razem AT siol.net>
2082
2083         * src/z80/peeph.def: applied patch
2084           #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
2085         * src/z80/gen.c, src/z80/peeph.def: applied patch
2086           #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
2087         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
2088           sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
2089           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
2090           sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
2091           enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
2092
2093 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
2094
2095         * as/link/mcs51/aslink.dsp: removed SDK define
2096         * as/link/z80/clean.mk: brought in sync with other ports
2097         * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
2098         * as/hc08/Makefile.bcc,
2099         * as/mcs51/Makefile.bcc,
2100         * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
2101         * src/z80/main.c (_setValues): use the now capitalized -Z,
2102           (z80_port, gbz80_port): generate debug information when asked
2103
2104 2008-02-16 Borut Razem <borut.razem AT siol.net>
2105
2106         * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
2107           as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
2108           as/z80/Makefile.in. as/z80/Makefile.bcc:
2109           applied patch #1893393: patch for as-z80 and link-z80 to generate
2110           cdb, thanks to Armin Diehl
2111         * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
2112           as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
2113           asnoice.c moved to as/asxxsrc/asnoice.c
2114         * src/z80/peeph-gbz80.def: applied patch
2115           #1880235: Z80 return peephole, thanks to Philipp Krause
2116
2117 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
2118
2119         * .version,
2120         * doc/sdccman.lyx: bumped version to 2.7.5
2121         * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
2122
2123 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
2124
2125         * device/include/pic16/stdlib.h,
2126         * device/lib/pic16/libc/stdlib/ltoa.c,
2127         * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
2128
2129 2008-02-13 Borut Razem <borut.razem AT siol.net>
2130
2131         * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
2132         * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
2133           src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
2134           src/SDCCopt.c,  src/SDCCval.c:
2135           fixed bug #1890273: SDCC Warning 154 shows wrong filename
2136
2137 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
2138
2139         * src/SDCCsymt.c (compareType): fixed bug 1309013
2140
2141 2008-02-09 Borut Razem <borut.razem AT siol.net>
2142
2143         * src/SDCCval.c, src/SDCCval.h:
2144           code cleaning, added function constChrVal()
2145         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
2146           call constChrVal() instead constVal()
2147
2148 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
2149
2150         * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
2151           of function pointer
2152         * src/SDCCerr.h,
2153         * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
2154         * support/regression/tests/absolute.c: added TestStruct TestVar (see also
2155           bug 1859853)
2156
2157 2008-02-01 Raphael Neider <rneider AT web.de>
2158
2159         * device/include/pic/pic16f886.h,
2160         * device/include/pic/pic16f887.h: added RA6 and RA7
2161
2162 2008-01-24 Raphael Neider <rneider AT web.de>
2163
2164         * device/include/pic/pic16f88.h: added RA6 and RA7
2165         * device/lib/pic/libdev/disabled_pic16f886.c,
2166         * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
2167
2168         * src/pic16/devices.inc,
2169         * device/include/pic16/pic18f2423.h,
2170         * device/include/pic16/pic18f2523.h,
2171         * device/include/pic16/pic18fregs.h,
2172         * device/lib/pic16/pics.all
2173         * device/lib/pic16/libdev/pic18f2423.c,
2174         * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
2175         * device/lib/pic16/libio/i2c.ignore,
2176         * device/lib/pic16/libio/usart.ignore,
2177         * device/lib/pic16/libio/adc.ignore: ignore new devices
2178
2179 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
2180
2181         * src/SDCCast.c (createRMW): fixed bug 1582651
2182
2183 2008-01-20 Borut Razem <borut.razem AT siol.net>
2184
2185         * src/SDCCcse.c: partially fixed enhancement request
2186           #1793872 - multiply by -1 not collapsed
2187         * support/regression/tests/arithcsi.c: added regression test
2188
2189 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
2190
2191         * as/mcs51/asx8051.dsp: removed define SDK
2192         * as/mcs51/i51mch.c (machine): fixed bug 1865114
2193         * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
2194         * as/link/lklex.c,
2195         * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
2196           cosmetic changes, brought more in sync, changed old K&R to ANSI
2197
2198 2008-01-13 Borut Razem <borut.razem AT siol.net>
2199
2200         * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
2201         * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
2202
2203 2007-12-30 Borut Razem <borut.razem AT siol.net>
2204
2205         * src/pic16/gen.c: fixed implementation of bitwise operations for
2206           pic16 target
2207         * support/regression/tests/bitwise.c: added test cases
2208
2209 2007-12-29 Borut Razem <borut.razem AT siol.net>
2210
2211         * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
2212         * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
2213           src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
2214         * support/Util/dbuf_string.[ch]: added function dbuf_getline()
2215         * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
2216           src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
2217           src/pic16/pcode.[ch]: added const qualifier
2218         * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
2219           as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
2220           as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
2221           as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
2222         * as/asxxsrc/aslex.c: use dbuf_getline()
2223         * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
2224           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
2225           as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
2226           as/z80/asm.h, as/z80/z80adr.c:
2227           changed type of ib and ip to const char *
2228
2229 2007-12-28 Borut Razem <borut.razem AT siol.net>
2230
2231         * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
2232           introduced (readlin) - long lines are turuncated
2233         * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
2234           as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
2235           as/z80/Makefile.in: moved aslex.c to asxxsrc
2236         * as/hc08/aslex.c, as/z80/aslex.c: deleted
2237         * as/hc08/asmain.c, as/mcs51/asmain.c:
2238           added missing initialization of a_addr field
2239         * support/regression/tests/long_asm_line.c: added regtest for long
2240           assembler line
2241
2242 2007-12-22 Borut Razem <borut.razem AT siol.net>
2243
2244         * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
2245
2246 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
2247
2248         * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
2249
2250 2007-12-16 Borut Razem <borut.razem AT siol.net>
2251
2252         * device/include/pic16/stdbool.h: removed, since already exists in
2253          device/include/; this also fixes bitopcse.c regression test for pic16
2254          target
2255         * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
2256         * src/pic16/glue.c: fixed bug #1851855: generic static pointer
2257           dereference doesn't work; covered by regression test bug1399290
2258
2259 2007-12-05 Borut Razem <borut.razem AT siol.net>
2260
2261         * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
2262           Adding new PIC16
2263
2264 2007-12-01 Borut Razem <borut.razem AT siol.net>
2265
2266         * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
2267           corrected handling of the highest_valid_address
2268
2269 2007-11-17 Raphael Neider <rneider AT web.de>
2270
2271         * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
2272         * src/pic/glue.c (picglue): emit .file if --debug is given
2273
2274 2007-11-17 Raphael Neider <rneider AT web.de>
2275
2276         * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
2277         care when left or right operand resides in result, fixes #1830220
2278
2279 2007-11-17 Borut Razem <borut.razem AT siol.net>
2280
2281         * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
2282           #983491 - "Merge duplicate strings function is ineffective"
2283         * support/regression/tests/bug-983491.c: regtest disabled
2284         * as/asxxsrc: created
2285           as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
2286           as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
2287           as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
2288           as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
2289           as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
2290           as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
2291           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
2292           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
2293           as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
2294           as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
2295           as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
2296           as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
2297           created as/asxxsrc directory, assym.c and strcpi.c moved into it
2298
2299 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
2300
2301         * device/include/stdarg.h: added and removed some casts
2302         * src/SDCCsymt.c (compareType): Fully check types between generic and
2303           non-generic pointers, also accept ptr-ptr to void-ptr assignments
2304
2305 2007-11-13 Borut Razem <borut.razem AT siol.net>
2306
2307         * support/regression/tests/bug-1817005.c:
2308           added regtest for bug #1817005 - as-z80 chokes on long labels
2309
2310 2007-11-12 Borut Razem <borut.razem AT siol.net>
2311
2312         * as/z80/asmain.c, as/z80/asm.h, as/z80/assym.c, as/z80/asdata.c,
2313           as/z80/asout.c, as/z80/aslist.c:
2314           fixed bug #1817005 - as-z80 chokes on long labels
2315
2316 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
2317
2318         * as/hc08/asmain.c,
2319         * as/z80/asmain.c: cosmetic changes
2320         * as/hc08/alloc.h,
2321         * as/mcs51/alloc.h,
2322         * as/z80/alloc.h: removed
2323         * as/hc08/assym.c,
2324         * as/mcs51/assym.c: replaced alloc.h with stdlib.h
2325         * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
2326         * as/link/hc08/Makefile.in,
2327         * as/link/mcs51/Makefile.in,
2328         * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
2329         * as/link/lklex.c,
2330         * as/link/mcs51/lkarea.c,
2331         * as/link/mcs51/lkmain.c: cosmetic changes
2332         * as/link/hc08/lklibr.c,
2333         * as/link/z80/lklibr.c,
2334         * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
2335           used cygwin_conv_to_full_posix_path,
2336           added warnings, cosmetic changes, brought more in sync
2337           changed old K&R into ANSI function declarations
2338         * as/link/z80/lklibr.c (loadAdb): added
2339         * as/link/z80/lkmain.c: removed -- option from usage text
2340
2341 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
2342
2343         * src/mcs51/gen.c (outBitC): optimized for no result
2344
2345 2007-10-31 Borut Razem <borut.razem AT siol.net>
2346
2347         * src/SDCCsymt.c: fixed (hopeful properly) bug
2348           #1805702 - order of extern matters
2349         * support/regression/tests/bug-1805702.c: enabled regtest for bug
2350           #1805702
2351
2352 2007-10-29 Borut Razem <borut.razem AT siol.net>
2353
2354         * src/SDCCsymt.c: reverted bad fixed of bug #1805702
2355           - order of extern matters
2356         * support/regression/tests/bug-1805702.c: disabled regtest for bug
2357           #1805702
2358
2359 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
2360
2361         * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
2362           24bitMode, portIsDS390
2363         * src/mcs51/gen.c (genOr): optimized for RFE 1750727
2364         * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
2365           (notVolatileVariable): also check sloc names,
2366           (callFuncByName): moved ftab[] out of function and sorted it by use
2367
2368 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
2369
2370         * device/include/stdarg.h: fixed bug in va_start macro for --xstack
2371         * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
2372           aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
2373         * src/SDCCicode.c (geniCodeCast): fixed bug 880197
2374         * support/regression/tests/bug-880197.c: new, added
2375
2376 2007-10-28 Borut Razem <borut.razem AT siol.net>
2377
2378         * support/regression/Makefile.in,
2379           support/regression/ports/mcs51-large/spec.mk,
2380           support/regression/ports/mcs51-xstack-auto/spec.mk,
2381           support/regression/ports/mcs51-stack-auto/spec.mk,
2382           support/regression/ports/mcs51-medium/spec.mk,
2383           support/regression/ports/mcs51-common/spec.mk,
2384           support/regression/ports/mcs51-common/*,
2385           support/regression/ports/mcs51-small/*:
2386           mcs51 renamed to mcs51-common, created mcs51-small
2387         * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
2388         * support/regression/tests/bug-1805702.c: added regtest for bug
2389           #1805702
2390
2391 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
2392
2393         * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
2394           added new rules 265 - 270
2395         * support/regression/tests/bug1721024.c:new, added
2396         * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
2397           introduced new test-mcs51 to run all mcs51 tests
2398
2399 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
2400
2401         * support/regression/tests/bug1816470.c: new, added
2402
2403 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
2404
2405         * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
2406           propagate for *,+,- with float, fixed bug 1816470
2407           (decorateType): cast to resultTypeProp instead of resultType
2408
2409 2007-10-19 Borut Razem <borut.razem AT siol.net>
2410
2411         * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
2412           function is ineffective" for pic16 tareget
2413         * support/scripts/listerr.c: corrected include path
2414         * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
2415           adjacent memory
2416
2417 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
2418
2419         * support/regression/tests/using.c: new, added
2420         * support/regression/tests/vaargs.c: fixed and enabled test
2421
2422 2007-10-18 Borut Razem <borut.razem AT siol.net>
2423
2424         * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
2425           is ineffective
2426         * support/regression/tests/bug-983491.c: added regtest for bug #983491
2427
2428 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
2429
2430         * doc/sdccman.lyx: documented option --Werror
2431         * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
2432           RegBankUsed[] earlier
2433
2434 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
2435
2436         * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
2437         * src/pic/glue.c,
2438         * src/SDCCval.c,
2439         * src/SDCCast.c,
2440         * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
2441           AST_ULONG_VALUE
2442         * src/SDCCast.c (decorateType): improved optimization of tri-op
2443         * src/SDCCerr.c (vwerror, setWError),
2444         * src/SDCCerr.h,
2445         * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
2446           warnings as errors, thanks Stas Sergeev for PATCH 1813211
2447
2448 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
2449
2450         * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
2451         * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
2452         * support/regression/tests/bug-223113.c,
2453         * support/regression/tests/bug-426632.c,
2454         * support/regression/tests/bug-468811.c,
2455         * support/regression/tests/bug-477835.c,
2456         * support/regression/tests/bug-478094.c,
2457         * support/regression/tests/bug-499644.c,
2458         * support/regression/tests/bug-524209.c,
2459         * support/regression/tests/bug-524211.c,
2460         * support/regression/tests/packcast.c,
2461         * support/regression/tests/structidx.c: added empty tests
2462         * support/regression/tests/bug-607243.c: enabled test
2463
2464 2007-10-06 Borut Razem <borut.razem AT siol.net>
2465
2466         * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
2467            support of universal binaries on Mac OS X
2468
2469 2007-10-02 Borut Razem <borut.razem AT siol.net>
2470
2471         * src/SDCCval.h: unified double2ul macro for all platforms
2472         * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
2473         * support/regression/tests/bitwise.c: added regtest for bug #1777758
2474
2475 2007-09-30 Borut Razem <borut.razem AT siol.net>
2476
2477         * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
2478           platforms
2479         * sdcc_vc_in.h: enabled warnings
2480         * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
2481           unsigned type, result still unsigned
2482         * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
2483
2484 2007-09-28 Raphael Neider <rneider AT web.de>
2485
2486         * src/pic/device.c (find_device): prevent buffer underflow error
2487         * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
2488           the just destroyed list entry
2489
2490 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2491
2492         * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
2493           Alexander Neundorf
2494
2495 2007-09-18 Borut Razem <borut.razem AT siol.net>
2496
2497         * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
2498          applied to unsigned type, result still unsigned
2499
2500 2007-09-17 Borut Razem <borut.razem AT siol.net>
2501
2502         * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
2503           src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
2504           src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
2505           src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
2506           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
2507           src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
2508           src/z80/gen.c, src/z80/ralloc.c:
2509           fixed bug #1739860 - sdcc does not work correctly on some platforms
2510           (not finished)
2511           introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
2512
2513 2007-09-17 Raphael Neider <rneider AT web.de>
2514
2515         * src/pic16/device.c: reverted to previous version
2516         * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
2517
2518 2007-09-16 Raphael Neider <rneider AT web.de>
2519
2520         * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
2521           as this raises a ton of gpasm warnings, just emit a second label
2522         * src/pic16/devices.inc,
2523         * device/lib/pic16/pics.all,
2524         * device/lib/pic16/libdev/pic18f2585.c,
2525         * device/lib/pic16/libdev/pic18f2680.c,
2526         * device/lib/pic16/libdev/pic18f2682.c,
2527         * device/lib/pic16/libdev/pic18f2685.c,
2528         * device/lib/pic16/libdev/pic18f4585.c,
2529         * device/lib/pic16/libdev/pic18f4680.c,
2530         * device/lib/pic16/libdev/pic18f4682.c,
2531         * device/lib/pic16/libdev/pic18f4685.c,
2532         * device/include/pic16/pic18f2585.h,
2533         * device/include/pic16/pic18f2680.h,
2534         * device/include/pic16/pic18f2682.h,
2535         * device/include/pic16/pic18f2685.h,
2536         * device/include/pic16/pic18f4585.h,
2537         * device/include/pic16/pic18f4680.h,
2538         * device/include/pic16/pic18f4682.h,
2539         * device/include/pic16/pic18f4685.h,
2540         * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
2541           18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
2542           patch contributed by Anton Strobl, applied with changes
2543
2544 2007-09-16 Raphael Neider <rneider AT web.de>
2545
2546         * device/include/pic16/pic18f2431.h,
2547         * device/include/pic16/pic18f25j10.h,
2548         * device/include/pic16/pic18f4431.h,
2549         * device/include/pic16/pic18f45j10.h: adopted common include style
2550         * device/include/pic16/pic18f1320.h,
2551         * device/include/pic16/pic18f2320.h,
2552         * device/include/pic16/pic18f2525.h,
2553         * device/include/pic16/pic18f4320.h,
2554         * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
2555         * device/include/pic16/pic18fregs.h: prepared for automatic include
2556           file selection by having DEVICE.h for every DEVICE
2557         * device/lib/pic16/libdev/pic18f2320.c,
2558         * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
2559
2560         * device/lib/pic16/configure.in,
2561         * device/lib/pic16/configure: use rm -rf instead of rmdir
2562         * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
2563         * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
2564
2565 2007-09-09 Borut Razem <borut.razem AT siol.net>
2566
2567         * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
2568           distingush between i386 and ppc Mac OS X versions
2569
2570 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
2571
2572         * src/mcs51/gen.c (genReceive): fixed bug 1788177
2573         * support/regression/tests/bug1788177.c: new, added
2574
2575 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2576
2577         * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
2578         * device/include/mcs51/lint.h added keyword __naked
2579
2580 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
2581
2582         * src/pic16/glue.c,
2583         * src/pic/glue.c,
2584         * src/SDCCmem.h: removed maxRegBank
2585         * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
2586           RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
2587         * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
2588         * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
2589           name and behaviour to handle banked functions
2590           (scan4op): and use it to fix bug 1786213
2591
2592 2007-09-03 Raphael Neider <rneider AT web.de>
2593
2594         * device/include/pic16/pic18f248.h,
2595         * device/include/pic16/pic18f258.h,
2596         * device/include/pic16/pic18f448.h,
2597         * device/lib/pic16/libdev/pic18f248.c,
2598         * device/lib/pic16/libdev/pic18f258.c,
2599         * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
2600           added T0CONbits, fixes #1786891
2601
2602 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
2603
2604         * src/ds390/gen.c (genFarPointerSet),
2605         * src/hc08/ralloc.c (packRegisters),
2606         * src/mcs51/ralloc.c (packRegisters),
2607         * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
2608           bug 1750318
2609         * src/SDCCicode.h: POINTER_SET can be true for literals too
2610         * support/regression/tests/bug1750318.c: new, added
2611
2612 2007-08-23 Borut Razem <borut.razem AT siol.net>
2613
2614         * debugger/mcs51/sdcdb.c: fixed compilation with older readline
2615           library versions without the completition functionality
2616
2617 2007-08-22 Raphael Neider <rneider AT web.de>
2618
2619         * device/include/pic16/pic18f1220.h,
2620         * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
2621
2622 2007-08-12 Borut Razem <borut.razem AT siol.net>
2623
2624         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
2625
2626 2007-08-11 Borut Razem <borut.razem AT siol.net>
2627
2628         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
2629           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
2630           support/Util/SDCCerr.[ch] moved to src
2631         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
2632           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
2633           device/examples/ds390/tinitalk/tinitalk.dsp,
2634           device/examples/serialcomm/windows/serialcomm.dsp,
2635           support/librarian/librarian.dsp:
2636           removed linking of unused odbc32.lib and odbccp32.lib
2637         * support/scripts/winres.h:
2638           added for compilation with Visual C++ 2005 Express Edition
2639
2640 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2641
2642         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
2643           and CKCON1.
2644
2645 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2646
2647         * sdccconf_in.h: update the endian test so that SPARC Solaris
2648           does not throw syntax errors
2649
2650 2007-08-06 Borut Razem <borut.razem AT siol.net>
2651
2652         * doc/sdccman.lyx: removed two index entries which prevented the
2653           generation of sdcc doc archive
2654
2655 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2656
2657         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
2658           instead of lyx 1.5.0.
2659
2660 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2661
2662         * device/include/hc08/mc68hc908apxx.h: new header contributed by
2663           Lucas Loizaga, with minor modifications. Thanks!
2664
2665 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2666
2667         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
2668           in sdcclib.
2669
2670 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2671
2672         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
2673           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
2674           with acall/ajmp.
2675
2676 2007-07-22 Borut Razem <borut.razem AT siol.net>
2677
2678         * configure.in, configure: re-introduced .version
2679         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
2680           the version reverted to 2.7.0
2681
2682 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
2683
2684         * configure.in,
2685         * doc/sdccman.lyx: bumped version to 2.7.3
2686         * device/include/mcs51/compiler.h: fixed elif->else
2687         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
2688         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
2689           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
2690            enable accuse for bit operands
2691         * src/SDCCmain.c (printVersionInfo),
2692         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
2693           environment descriptor
2694         * src/SDCCutil.h: added getBuildEnvironment
2695         * src/SDCCglue.c (initialComments): use getBuildEnvironment
2696         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
2697         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
2698         * support/regression/tests/bug1348008.c,
2699         * support/regression/tests/bug1496419.c,
2700         * support/regression/tests/bug1503067.c,
2701         * support/regression/tests/preproc.c: added empty tests
2702
2703 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
2704
2705         * support/regression/tests/bug1678803.c: new, added
2706
2707 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
2708
2709         * as/link/aslink.h,
2710         * as/link/hc08/lkihx.c,
2711         * as/link/hc08/lkrloc.c,
2712         * as/link/mcs51/lkihx.c,
2713         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
2714           ihxExtendedLinearAddress
2715         * as/link/mcs51/lkrloc.c (relr),
2716         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
2717           acall/ajmp, see bug 830513
2718
2719 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
2720
2721         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
2722           (cseBBlock): remember aggr2ptr has been used
2723         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
2724           (geniCodeAssign): fixed bug 868103
2725         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
2726           added operandSize prototype
2727         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
2728           (genDataPointerSet): use max of size of right and result,
2729           (gencjne): added parameter useCarry for optimization,
2730           (genCmpEq): use carry if appropriate,
2731           (genXor): check if operand already in carry
2732         * support/regression/tests/bug-868103.c: enabled test
2733
2734 2007-07-12 Raphael Neider <rneider AT web.de>
2735
2736         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
2737
2738 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
2739
2740         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
2741           from Robert Larice, thanks
2742         * support/regression/tests/bitopcse.c,
2743         * support/regression/tests/bitvars.c,
2744         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
2745         * support/regression/tests/bug-927659.c: enabled test for z80
2746         * support/regression/tests/bug1738367.c: added extra tests by Frieder
2747         * support/regression/tests/bug1745717.c: new, added
2748         * support/regression/tests/literalop.c,
2749         * support/regression/tests/nullstring.c: removed storage definitions that
2750           are now in testfwk.h
2751
2752 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
2753
2754         * device/include/stdbool.h: do not define __bool_true_false_are_defined
2755           and bool for targets that do not fully support it.
2756         * support/regression/tests/bug1546986.c,
2757         * support/regression/tests/bug1723128.c,
2758         * support/regression/tests/bug1734654.c,
2759         * support/regression/tests/bug1738367.c,
2760         * support/regression/tests/constantRange.c: only use bool if allowed
2761
2762 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
2763
2764         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
2765           Larice, also handle function pointers
2766         * support/regression/tests/bug1749275.c: new, added
2767
2768 2007-07-03 Borut Razem <borut.razem AT siol.net>
2769
2770         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
2771           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
2772           #1746528: SDCC should ignore ':' in inline assembler comments
2773         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
2774
2775 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
2776
2777         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
2778         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
2779
2780 2007-06-29 Borut Razem <borut.razem AT siol.net>
2781
2782         * src/SDCCmain.c: fixed bug
2783           #1744746: SDCC #4867: broken option --xram-size
2784
2785 2007-06-28 Borut Razem <borut.razem AT siol.net>
2786
2787         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
2788           find out the endianess of host machine for ucsim
2789
2790 2007-06-27 Borut Razem <borut.razem AT siol.net>
2791
2792         * support/regression/generate-cases.py: corrected the file name
2793           in warning
2794         * configure.in, configure, sdccconf_in.h: find out the endianess of
2795           host machine
2796         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
2797           negative size
2798
2799 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
2800
2801         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
2802
2803 2007-06-26 Borut Razem <borut.razem AT siol.net>
2804
2805         * support/regression/generate-cases.py: display warning if function
2806           list is empty; implemented more flexible rule for detection of
2807           testing functions, allowing return type 'void' in the same line as
2808           the function name in the function definition
2809         * support/regression/tests/bug-1654060.c: corrected test
2810         * support/librarian/sdcclib.c: fixed warning:
2811           format '%s' expects type 'char *', but argument 2 has type 'int'
2812
2813 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2814
2815         * support/librarian/sdcclib.c: Added feature Requests [1510635]
2816           Multiple infiles for sdcclib.
2817
2818 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2819
2820         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
2821           bug 1731741
2822
2823 2007-06-18 Borut Razem <borut.razem AT siol.net>
2824
2825         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
2826           how to handle comments, so they have to be removed by the
2827           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
2828         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
2829           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
2830           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
2831           table driven option hadling
2832
2833 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
2834
2835         * src/SDCCast.c (decorateType),
2836         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
2837           iCode to ast level to fix bug 1738367
2838         * support/regression/tests/bug1738367.c: new, added
2839
2840 2007-06-15 Raphael Neider <rneider AT web.de>
2841
2842         * src/pic16/devices.inc,
2843         * device/lib/pic16/pics.all,
2844         * device/include/pic16/pic18fregs.h,
2845         * device/include/pic16/pic18f[24][45]20.h,
2846         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
2847           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
2848         * device/lib/pic16/Makefile.in: faster cleanup
2849
2850 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2851
2852         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
2853
2854 2007-06-13 Raphael Neider <rneider AT web.de>
2855
2856         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
2857
2858 2007-06-12 Raphael Neider <rneider AT web.de>
2859
2860         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
2861           suppress bit defines if NO_BIT_DEFINES is #define'd
2862         * device/include/pic/pic*.h: recreated all headers to include
2863           conditional bit defines
2864         * device/include/pic/pic16f886.h,
2865         * device/include/pic/pic16f887.h: fixed based on newer .inc file
2866         * device/include/pic/recreate.sh: script to recreate the complete
2867           device library files based on the currently supported devices
2868
2869 2007-06-12 Borut Razem <borut.razem AT siol.net>
2870
2871         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
2872           support/regression/Makefile.in, support/scripts/build.mak,
2873           support/scripts/Makefile.snapshot:
2874           use new svn URL scheme
2875         * doc/sdccman.lyx: SDCC Wiki moved to
2876           http://sdcc.wiki.sourceforge.net/
2877
2878 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2879
2880         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
2881         * support/regression/tests/bug1734654.c: added
2882
2883 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
2884
2885         * src/SDCCast.c (decorateType): optimized '?' for equal operands
2886         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
2887           with literal operands
2888
2889 2007-06-10 Borut Razem <borut.razem AT siol.net>
2890
2891         * as/link/z80/lklibr.c: fixed mingw build warning
2892           lklibr.c:575: warning: implicit declaration of function 'tolower'
2893         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
2894           src/z80/main.c: move target specific options from src/SDCCmain.c
2895           to src/<target>/main.c
2896
2897 2007-06-09 Borut Razem <borut.razem AT siol.net>
2898
2899         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
2900           removed unused swap_sense; removed outBitCLong, replaced with outBitC
2901         * support/regression/tests/bug-1294691.c: added
2902
2903 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
2904
2905         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
2906           can also be static, fixes bug 1733438
2907         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
2908           have absolute address too
2909           (computeType): added optimization for 'cond ? true : false'
2910         * support/regression/tests/absolute.c: added test for static absolute var
2911
2912 2007-06-08 Raphael Neider <rneider AT web.de>
2913
2914         * src/regression/Makefile: suppress parallel builds, allow easy
2915           switching between pic14/pic16 ports
2916         * src/regression/picregs.h: added pic14/16 header file switch
2917         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
2918           inline.c,nestfor.c,string1.c}: include "picregs.h"
2919
2920 2007-06-07 Borut Razem <borut.razem AT siol.net>
2921
2922         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
2923           permanent solution to suppress GCC 4.2.0 c++ warning:
2924           deprecated conversion from string constant to `char *'
2925           use 'const char *' where ever required
2926         * support/regression/generate-cases.py: implemented more flexible rule
2927           for detection of testing functions, allowing white-spaces surrounding
2928           the function name and the 'void' parameter.
2929         * support/regression/tests/constantRange.c,
2930           support/regression/tests/scott-compare3.c: fixed failing regression
2931           tests, uncovered by implementation of more flexible rule for detection
2932           of testing functions
2933
2934 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
2935
2936         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
2937
2938 2007-06-04 Borut Razem <borut.razem AT siol.net>
2939
2940         * configure.in, configure, config_vc.awk: sdcc version number is now
2941           stored in configure.in; removed .version
2942         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
2943           doc/INSTALL.txt: version bumped to 2.7.2
2944         * sim/ucsim/configure.in, sim/ucsim/configure:
2945           use "read" to read from .version
2946
2947 2007-06-03 Borut Razem <borut.razem AT siol.net>
2948
2949         * */Makefile.in: removed annoying warning:
2950           Makefile:xx: Makefile.dep: No such file or directory
2951
2952 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
2953
2954         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
2955           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
2956         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
2957         * src/SDCCast.c (resultTypePropagate): propagate for '!',
2958           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
2959           bugfix: only use newBoolLink for bit result type
2960         * src/SDCCicode.c (geniCodeLogic): added param tree,
2961           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
2962           (geniCodeLogicAndOr): use IS_BIT,
2963           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
2964           (ast2iCode): added tree param to geniCodeLogic for comparisons
2965         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
2966         * support/regression/tests/bug1723128.c: added test NotZero
2967
2968 2007-06-01 Borut Razem <borut.razem AT siol.net>
2969
2970         * SDCPP synchronized with GCC CPP release version 4.2.0,
2971           currently the latest release:
2972         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2973           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
2974           support/cpp2/cppdefault.h, support/cpp2/except.h,
2975           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
2976           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
2977           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
2978           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
2979           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
2980           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
2981           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
2982           support/cpp2/opts.h, support/cpp2/output.h,
2983           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
2984           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
2985           support/cpp2/system.h, support/cpp2/version.c,
2986           support/cpp2/Makefile.in: modified
2987         * support/cpp2/opts-common.c: added
2988         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
2989         * device/lib/pic16/libdev/pic18f[24]5j10.c:
2990           search for included source file in local directory
2991         * sim/ucsim/configure, sim/ucsim/configure.in:
2992           temporary solution to suppress GCC 4.2.0 c++ warning:
2993           deprecated conversion from string constant to `char *'
2994
2995 2007-06-01 Raphael Neider <rneider AT web.de>
2996
2997         * device/lib/pic/libdev/pic12f683.c,
2998         * device/include/pic/pic12f683.h: added GPIO bits
2999
3000 2007-06-01 Raphael Neider <rneider AT web.de>
3001
3002         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
3003           quotation marks, clarified role of PIC14 vs. PIC16 ports
3004         * src/pic16/devices.inc,
3005         * device/include/pic16/pic18fregs.h,
3006         * device/include/pic16/pic18f[24][45]j10.h,
3007         * device/lib/pic16/pics.all,
3008         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
3009           18f24j10, 18f25j10, 18f44j10, and 18f45j10
3010         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
3011           for new devices as they are not yet supported by gputils
3012
3013 2007-05-31 Borut Razem <borut.razem AT siol.net>
3014
3015         * Small Device C Compiler 2.7.0 released
3016         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
3017           changed sdcc version to 2.7.1
3018         * support/scripts/sdcc.nsi: added How to create WIN32 release
3019           setup.exe package
3020
3021 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
3022
3023         * doc/sdccman.lyx: documented initialization and allocation of absolute
3024           variables, bit parameter passing, the need for function pointers to be
3025           reentrant and alpha quality support of inline and retrict
3026
3027 2007-05-26 Borut Razem <borut.razem AT siol.net>
3028
3029         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
3030           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
3031         * docs/knownbugs.html: updated
3032
3033 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
3034
3035         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
3036           thanks Jan Waclawek
3037         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
3038           AOP_CRY and ruonly
3039           (gencjneshort): optimized when left is AOP_DIR
3040         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
3041           initializing unions in a struct/array
3042         * support/regression/fwk/include/testfwk.h: added defines for data, near
3043           and far for host and z80
3044         * support/regression/tests/bug1723128.c: new, added
3045
3046 2007-05-22 Borut Razem <borut.razem AT siol.net>
3047
3048         * doc/knownbugs.html: updated
3049
3050 2007-05-21 Raphael Neider <rneider AT web.de>
3051
3052         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
3053           error message instead
3054         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
3055
3056 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
3057
3058         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
3059
3060 2007-05-21 Raphael Neider <rneider AT web.de>
3061
3062         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
3063           closes #1722392
3064         * src/regression/gpsim_assert.h,
3065         * src/regression/Makefile,
3066         * src/regression/pcodeopt.c: regression test for the above fix
3067
3068 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
3069
3070         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
3071           jumps to self, fixed bug 1717281
3072
3073 2007-05-10 Borut Razem <borut.razem AT siol.net>
3074
3075         * support/scripts/gen_known_bugs.pl: cosmetic fix
3076         * doc/knownbugs.html: generated by gen_known_bugs.pl
3077
3078 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3079
3080         * src/SDCCast.c (createFunction): also generate non-inlined version of
3081           function for functions declared as "static inline"
3082         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
3083           function can be inlined after non-inlined version generated.
3084
3085 2007-05-10 Borut Razem <borut.razem AT siol.net>
3086
3087         * support/scripts/gen_known_bugs.pl: added script
3088           which generates knownbugs.html
3089
3090 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
3091
3092         * doc/knownbugs.html: updated for release 2.7.0
3093
3094 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3095
3096         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
3097
3098 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
3099
3100         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
3101           (throughout): updated generating comments
3102         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
3103           (throughout): updated generating comments
3104         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
3105           rule instead of at the second, or it might skip lines when removing the
3106           complete match
3107         * support/regression/tests/bug1714204.c: changed test to foo
3108
3109 2007-05-08 Borut Razem <borut.razem AT siol.net>
3110
3111         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
3112           thanks to SDCC Distributed Compile Farm members,
3113           added Z80 and GBZ80 command line options
3114         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
3115
3116 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
3117
3118         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
3119         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
3120         * support/regression/tests/longlit.c: modified to be tested at all and
3121           to pass the actual test
3122
3123 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3124
3125         * device/include/mcs51/uPSD33xx.h: Added.
3126
3127 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
3128
3129         * device/lib/_gptrput.c,
3130         * device/lib/_gptrget.c: removed old code,
3131          (_gptrgetWord),
3132         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
3133         * support/regression/tests/bug1714204.c: new, added
3134
3135 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3136
3137         * support/regression/tests/regtrack.c: test was never executed
3138           because of the regression test being picky about white spaces.
3139         * device/lib/mcs51/crtclear.asm: added comment
3140
3141 2007-05-06 Raphael Neider <rneider AT web.de>
3142
3143         * device/lib/pic/Makefile.rules,
3144         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
3145           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
3146
3147 2007-05-06 Raphael Neider <rneider AT web.de>
3148
3149         * src/pic16/device.h,
3150         * src/pic16/main.h,
3151         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
3152           _pic16_setDefaultOptions): removed/reordered command-line args
3153         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
3154           devices, regrouped command line args, environment variables),
3155           clarified sone points, added sections on how to add devices to the
3156           PIC14/PIC16 ports
3157
3158 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
3159
3160         * src/z80/peeph.def: fixed bug in rule 2
3161
3162 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
3163
3164         * src/port.h: added TARGET_MCS51_LIKE
3165         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
3166           take advantage of it too
3167         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
3168           (shiftR2Left2Result): Optimized: don't check shifting by 0
3169         * src/z80/peeph-z80.def,
3170         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
3171           modifications, see patch 1700823
3172         * src/mcs51/peep.c (): fixed bug 1712928
3173         * support/regression/tests/bug1712928.c: new, added
3174
3175 2007-05-05 Borut Razem <borut.razem AT siol.net>
3176
3177         * device/lib/pic16/Makefile.common.in,
3178           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
3179           removed bash dependencies
3180
3181 2007-05-01 Borut Razem <borut.razem AT siol.net>
3182
3183         * src/SDCCicode.c:
3184           fixed bug #1710507: --i-code-in-asm makes compile fail
3185           all iCode comments are now one liners
3186         * src/mcs51/gen.c: fixed memory leak
3187
3188 2007-05-01 Raphael Neider <rneider AT web.de>
3189
3190         * device/lib/pic/libdev/*.c
3191         * device/include/pic/*.h: regenerated all device libs from updated
3192           .inc files
3193         * support/scripts/inc2h.pl: documented usage, now uses strict to
3194           catch more bugs
3195
3196 2007-04-30 Borut Razem <borut.razem AT siol.net>
3197
3198         * doc/sdccman.lyx:
3199           fixed bug #1669175: Problem with space in output paths
3200           documented how to use paths with spaces for Windows users
3201
3202 2007-04-29 Borut Razem <borut.razem AT siol.net>
3203
3204         * Fixed svn:eol-style and svn:keywords properties
3205         * src/SDCCval.c: fixed bug
3206           #1592871: Segfault with "large" const arrays of characters
3207           replaced recursion with iteration
3208         * Removed svn:executable property from non-executable files
3209
3210 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
3211
3212         * src/mcs51/gen.c (genRet): fixed bug 1707003
3213
3214 2007-04-27 Raphael Neider <rneider AT web.de>
3215
3216         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
3217           createReachingDefinitions,assignValnums,pic16_destructDF,
3218           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
3219           prevent NULL pointer dereferences
3220         * device/lib/pic/libdev/pic16f886.c,
3221         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
3222           prevent building them, gputils do not really support them yet
3223
3224 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3225
3226         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
3227           helps printf_small. 32 bytes more __idata mem.
3228
3229 2007-04-27 Raphael Neider <rneider AT web.de>
3230
3231         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
3232           return early when pb or pb->pcHead is NULL (patch #1708427)
3233         * src/regression/empty.c,
3234         * src/regression/Makefile: added test with empty functions
3235         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
3236
3237 2007-04-27 Borut Razem <borut.razem AT siol.net>
3238
3239         * src/SDCCast.c: fixed feature request
3240           #1547512: Redundant strings linked when using sizeof("abc")
3241
3242 2007-04-23 Borut Razem <borut.razem AT siol.net>
3243
3244         * doc/sdccman.lyx, src/SDCCmain.c:
3245           peep-hole comments are generated only if --fverbose-asm option is
3246           specified and --no-peep-comments is not, as proposed by Frieder.
3247         * support/regression/Makefile.in: compile regression tests with
3248           --fverbose-asm option so one can "grep" whether a new (or an old)
3249           peephole is (still) applied; requested by Frieder.
3250
3251 2007-04-23 Kevin Buettner <kevin AT buettner.to>
3252
3253         * device/include/pic/pic16f886.h,
3254         * device/include/pic/pic16f887.h,
3255         * device/lib/pic/libdev/pic16f886.c,
3256         * device/lib/pic/libdev/pic16f887.c,
3257         * device/include/pic/pic14devices.txt,
3258         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
3259
3260 2007-04-23 Kevin Buettner <kevin AT buettner.to>
3261
3262         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
3263           fixes #1704666
3264
3265 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3266
3267         * device/lib/_memset.c: assembler version for mcs51
3268
3269 2007-04-22 Borut Razem <borut.razem AT siol.net>
3270
3271         * support/scripts/listerr.c: program to create the list of errors and
3272           warnings list from - added
3273         * doc/sdccman.lyx: removed the note
3274           "For list of warnings and corresponding codes, see err_warn.txt"
3275         * src/SDCCsymt.c: fixed bug #1699804:
3276           Bug with some uses of sizeof(static local array) (MCS51)
3277         * support/regression/tests/bug-1699804.c: added
3278
3279 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
3280
3281         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
3282           (main): added option -i,
3283           (asmbl, case S_INCL): use search_path_fopen,
3284           mostly from patch 1579668 by Peter Miller, thanks
3285         * src/z80/main.c: fixed typo --callee-saves-bc
3286         * device/include/mcs51/compiler.h: added sfrword for Tasking
3287
3288 2007-04-20 Borut Razem <borut.razem AT siol.net>
3289
3290         * src/z80/main.c: replaced reserved keyword asm with asmblr
3291
3292 2007-04-19 Borut Razem <borut.razem AT siol.net>
3293
3294         * src/port.h: use const pointers to strings
3295         * src/SDCCargs.h: declared getStringArg() and getIntArg()
3296         * src/pic16/main.c: include SDCCargs.h
3297         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
3298           const char, since the strings are dynamically allocated
3299         * src/SDCCmain.c: options.code_seg and options.const_seg are
3300           dynamically allocated; check port specific command line options
3301           before the general ones
3302         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
3303
3304 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
3305
3306         * device/include/ds400rom.h,
3307         * device/lib/ds390/lcd390.c,
3308         * device/lib/ds390/memcpyx.c,
3309         * device/lib/ds390/rtc390.c,
3310         * device/lib/ds400/ds400rom.c,
3311         * device/lib/ds400/memcpyx.c,
3312         * device/lib/hc08/_ret.c: more replacements of keywords with their
3313           double underscore equivalents
3314         * device/lib/ds390/Makefile.in,
3315         * device/lib/ds400/Makefile.in,
3316         * device/lib/gbz80/Makefile.in,
3317         * device/lib/hc08/Makefile.in,
3318         * device/lib/mcs51/Makefile.in,
3319         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
3320
3321 2007-04-17 Borut Razem <borut.razem AT siol.net>
3322
3323         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
3324           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
3325           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
3326           to --fverbose-asm, to be gcc'ish
3327
3328 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
3329
3330         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
3331
3332 2007-04-17 Borut Razem <borut.razem AT siol.net>
3333
3334         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
3335         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
3336           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
3337           with their double underscore equivalent
3338
3339 2007-04-14 Borut Razem <borut.razem AT siol.net>
3340
3341         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
3342           source"
3343
3344 2007-04-13 Borut Razem <borut.razem AT siol.net>
3345
3346         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
3347           C99 standard
3348         * device/examples/serialcomm/windows/serial.[ch],
3349           device/examples/serialcomm/windows/test_serialcomm.cpp:
3350           updated by Bela Torok
3351         * device/examples/serialcomm/windows/serialcomm.dsw,
3352           device/examples/serialcomm/windows/serialcomm.dsp: added
3353
3354 2007-04-13 Jan Waclawek <wek AT efton.sk>
3355
3356         * doc/sdccman.lyx: additions and changes at various places
3357           (submitted as #1697136).
3358           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
3359
3360 2007-04-10 Borut Razem <borut.razem AT siol.net>
3361
3362         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
3363           LyX file format changed to 245
3364         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
3365           "FreeWare" replaced with "free open source"
3366
3367 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
3368
3369         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
3370
3371 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
3372
3373         * device/include/pic16/pic18fregs.h,
3374         * device/lib/_bp.c,
3375         * device/lib/_decdptr.c,
3376         * device/lib/_divsint.c,
3377         * device/lib/_divslong.c,
3378         * device/lib/_divuint.c,
3379         * device/lib/_divulong.c,
3380         * device/lib/_fs2schar.c,
3381         * device/lib/_fs2sint.c,
3382         * device/lib/_fs2slong.c,
3383         * device/lib/_fs2uchar.c,
3384         * device/lib/_fs2uint.c,
3385         * device/lib/_fs2ulong.c,
3386         * device/lib/_fsadd.c,
3387         * device/lib/_fscmp.c,
3388         * device/lib/_fsdiv.c,
3389         * device/lib/_fseq.c,
3390         * device/lib/_fsget1arg.c,
3391         * device/lib/_fsget2args.c,
3392         * device/lib/_fsgt.c,
3393         * device/lib/_fslt.c,
3394         * device/lib/_fsmul.c,
3395         * device/lib/_fsneq.c,
3396         * device/lib/_fsnormalize.c,
3397         * device/lib/_fsreturnval.c,
3398         * device/lib/_fsrshift.c,
3399         * device/lib/_fssub.c,
3400         * device/lib/_fsswapargs.c,
3401         * device/lib/_gptrget.c,
3402         * device/lib/_gptrgetc.c,
3403         * device/lib/_gptrput.c,
3404         * device/lib/_logexpf.c,
3405         * device/lib/_modsint.c,
3406         * device/lib/_modslong.c,
3407         * device/lib/_moduint.c,
3408         * device/lib/_modulong.c,
3409         * device/lib/_mulint.c,
3410         * device/lib/_mullong.c,
3411         * device/lib/_schar2fs.c,
3412         * device/lib/_ser.c,
3413         * device/lib/_setjmp.c,
3414         * device/lib/_sint2fs.c,
3415         * device/lib/_slong2fs.c,
3416         * device/lib/_spx.c,
3417         * device/lib/_uchar2fs.c,
3418         * device/lib/_uint2fs.c,
3419         * device/lib/_ulong2fs.c,
3420         * device/lib/asincosf.c,
3421         * device/lib/atanf.c,
3422         * device/lib/calloc.c,
3423         * device/lib/ds390/tinibios.c,
3424         * device/lib/ds400/tinibios.c,
3425         * device/lib/expf.c,
3426         * device/lib/free.c,
3427         * device/lib/hc08/_mulint.c,
3428         * device/lib/logf.c,
3429         * device/lib/malloc.c,
3430         * device/lib/printf_fast.c,
3431         * device/lib/printf_tiny.c,
3432         * device/lib/printfl.c,
3433         * device/lib/realloc.c,
3434         * device/lib/ser_ir.c,
3435         * device/lib/serial.c,
3436         * support/regression/tests/libmullong.c: replaced all special keywords
3437           with their double underscore equivalent
3438         * support/regression/ports/mcs51-xstack-auto/spec.mk,
3439         * device/lib/Makefile.in: compile libs with --std-c99 instead of
3440           --std-sdcc99
3441         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
3442           (genRet): if the bit-symbol is ruonly it already is in the carry
3443         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
3444         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
3445         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
3446           type UCHAR if dest is not bit
3447
3448 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
3449
3450         * device/include/math.h,
3451         * device/lib/cotf.c,
3452         * device/lib/expf.c,
3453         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
3454
3455 2007-04-01 Borut Razem <borut.razem AT siol.net>
3456
3457         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
3458           fixed bug #1692042: input buffer overflow...scanner uses REJECT
3459         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
3460           gcc_unreachable() called internal_error()...
3461
3462 2007-03-30 Raphael Neider <rneider AT web.de>
3463
3464         * src/pic/ralloc.c (isData): suppress garbage debug output
3465
3466 2007-03-28 Borut Razem <borut.razem AT siol.net>
3467
3468         * doc/sdccman.lyx:
3469           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
3470           is developed, built and used worldwide, and the word "night" doesn't
3471           make any sense.
3472
3473 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
3474
3475         * device/include/mcs51/C8051F360.h: new, added
3476         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
3477
3478 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3479
3480         * src/SDCC.y (declaration_specifiers, function_specifier),
3481         * support/Util/SDCCerr.c,
3482         * support/Util/SDCCerr.h,
3483         * src/SDCCsymt.h,
3484         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
3485           inline keyword
3486         * src/SDCCmem.c (deallocParms),
3487         * src/SDCCast.c: support for function inlining, not quite complete
3488         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
3489           'restrict' qualifier
3490
3491 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
3492
3493         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
3494           (saveRBank, unsaveRBank): don't save bits,
3495           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
3496         * support/regression/tests/bug1535242.c: new, added
3497         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
3498           thanks Alexey Shamrin <shamrin AT gmail.com>,
3499           made assert.h header ANSI compliant (added a check for NDEBUG macro,
3500           removed header guard)
3501         * .version,
3502         * sdcc.spec: bumped version to 2.6.5
3503         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
3504
3505 2007-03-22 Borut Razem <borut.razem AT siol.net>
3506
3507         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
3508           fixed bug #1653671: sdcdb integration into ddd is broken
3509
3510 2007-03-22 Raphael Neider <rneider AT web.de>
3511
3512         * src/pic/gen.c (popGetExternal): augmented to also create references
3513           to external variables (not only labels),
3514           (genCall): comment on plan to reduce PAGESEL overhead,
3515           (genFunction, genEndFunction): also save/restore FSR around interrupt
3516           handling code, removed lots of unused code
3517           (genDivOneByte): release acquired temp register
3518         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
3519           of popGetExternal
3520         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
3521           for registers that need to be saved during interrupts (FSR, STATUS,
3522           PCLATH; W needs special handling), currently only FSR is used
3523
3524 2007-03-22 Raphael Neider <rneider AT web.de>
3525
3526         * device/include/pic/pic14devices.txt: 16f688 has only one config word
3527
3528 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3529
3530         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
3531
3532 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
3533
3534         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
3535
3536 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
3537
3538         * as/link/aslink.h: added LKOBJEXT
3539         * as/link/hc08/link_hc08.dsp,
3540         * as/link/hc08/Makefile.bcc,
3541         * as/link/hc08/Makefile.in,
3542         * as/link/mcs51/aslink.dsp,
3543         * as/link/mcs51/Makefile.bcc,
3544         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
3545         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
3546         * as/link/lkaomf51.c: merged and moved
3547         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
3548         * as/link/z80/lkdata.c,
3549         * as/link/lkdata.c: merged and moved
3550         * as/link/hc08/lkmain.c,
3551         * as/link/mcs51/lkmain.c: cosmetic changes
3552         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
3553         * as/link/lklex.c: use LKOBJEXT
3554         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
3555           ANSI-fied functions, removed bubble-sorts
3556         * as/link/z80/lksym.c           as/link/lksym.c: merged,
3557           ANSI-fied functions
3558         * as/link/z80/linkgbz80.dsp,
3559         * as/link/z80/linkz80.dsp,
3560         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
3561           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
3562         * as/link/z80/lkhead.c,
3563         * as/link/z80/lklex.c: deleted
3564         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
3565         * as/link/z80/lkmain.c: added copyfile()
3566
3567 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3568
3569         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
3570
3571 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3572
3573         * device/lib/_strlen.c: assembler version for mcs51
3574
3575 2007-03-13 Raphael Neider <rneider AT web.de>
3576
3577         * device/include/pic16/pic18f2221.h,
3578         * device/include/pic16/pic18f2321.h,
3579         * device/include/pic16/pic18f2331.h,
3580         * device/include/pic16/pic18f4221.h,
3581         * device/include/pic16/pic18f4321.h,
3582         * device/include/pic16/pic18f4331.h: fixed config byte location names
3583         * support/scripts/inc2h-pic16.pl: removed debug output, emit
3584           consistently named config byte locations
3585
3586 2007-03-13 Borut Razem <borut.razem AT siol.net>
3587
3588         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
3589           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
3590           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
3591           as/link/z80/Makefile.in, as/z80/Makefile.in:
3592           introduced LDFLAGS
3593
3594 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3595
3596         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
3597         * device/lib/printf_large.c: pointer was converted to generic
3598         pointer for mcs51 models other than model-small (Maarten noticed)
3599
3600 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3601
3602         * device/include/mcs51/ADuC84x.h: Added.
3603
3604 2007-03-10 Borut Razem <borut.razem AT siol.net>
3605
3606         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
3607           fixed RFE #1624219: double backslashes in filenames;
3608           functions hexEscape(), octalEscape() and copyStr() moved from
3609           SDCCval.c to SDCCutil.c and made them glovbally available
3610
3611 2007-03-09 Borut Razem <borut.razem AT siol.net>
3612
3613         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
3614           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
3615           1673361: Missaligned comments in output files
3616
3617 2007-03-09 Raphael Neider <rneider AT web.de>
3618
3619         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
3620
3621 2007-03-09 Raphael Neider <rneider AT web.de>
3622
3623         * src/pic/gen.c,
3624         * src/pic/glue.c,
3625         * src/pic/ralloc.c: suppress undesired debug output
3626         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
3627
3628 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3629
3630         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
3631
3632 2007-03-07 Borut Razem <borut.razem AT siol.net>
3633
3634         * device/lib/pic16/libdev/pic18f[24][34]31.c:
3635           search include files in the current directory
3636
3637 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
3638
3639         * src/SDCCglue.c (emitMaps, glue),
3640         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
3641           absolute xdata
3642         * support/regression/tests/absolute.c: added xdata test
3643
3644 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
3645
3646         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
3647           added condition to macro, fixes bug 1666080
3648
3649 2007-03-02 Raphael Neider <rneider AT web.de>
3650
3651         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
3652
3653 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3654
3655         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
3656         be cleared. Unconditionally set __XPAGE
3657         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
3658
3659 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3660
3661         * src/SDCCglobl.h,
3662         * src/SDCCmain.c,
3663         * src/mcs51/gen.c,
3664         * src/mcs51/rtrack.c,
3665         * src/ds390/gen.c,
3666         * doc/sdccman.lyx: added --no-gen-comments
3667         * src/mcs51/peeph.def: added 192.b, disabled 185
3668
3669 2007-02-25 Raphael Neider <rneider AT web.de>
3670
3671         * src/pic16/gen.c (genCast): fixed typo
3672         * device/lib/pic16/Makefile.subdir: only install existing files
3673         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
3674
3675 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
3676
3677         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
3678         * device/lib/mcs51/crtclear.asm,
3679         * device/lib/mcs51/crtxclear.asm: renumbered labels
3680         * device/lib/mcs51/Makefile.in: added crtcall.asm
3681         * doc/sdccman.lyx: documented mcs51 crt* library startup code
3682         * src/mcs51/gen.c (movc): removed,
3683           (aopGet, genPlusBits): clear a after loading the carry (possibly from
3684             acc.x or psw.x),
3685           (toCarry, genSend, genRet): added function toCarry,
3686           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
3687           (assignBit, genAssign, genCast): added function assignBit
3688         * src/mcs51/Makefile.bcc: added rtrack.c
3689         * src/mcs51/ralloc.h: made valueKnown a bitfield
3690         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
3691           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
3692           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
3693         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
3694         * src/z80/gen.c: added AOP_IS_PAIRPTR,
3695           (_pop): only pop valid pairs, see gencjneshort,
3696           (gencjneshort): return pair that still needs to be popped, restructured,
3697           (gencjne, genCmpEq): call _pop
3698
3699 2007-02-23 Raphael Neider <rneider AT web.de>
3700
3701         * device/include/pic/pic14devices.txt: 16f684 has only one config word
3702
3703 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3704
3705         * device/include/mcs51/P89LPC925.h: Added.
3706
3707 2007-02-18 Raphael Neider <rneider AT web.de>
3708
3709         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
3710
3711 2007-02-17 Borut Razem <borut.razem AT siol.net>
3712
3713         * support/cpp2/directives.c, support/cpp2/version.c:
3714           synchronized with GCC CPP 4.1.2
3715
3716 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3717
3718         * src/mcs51/rtrack.h,
3719         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
3720           by checking the strings passed by emitcode() to the assembler.
3721           Feel free to change. This in part addresses RFE #482179.
3722           Set environment variable SDCC_RTRACK to enable.
3723         * src/mcs51/gen.c: inserted hooks
3724         * src/mcs51/ralloc.h: added two members to struct regs
3725         * support/regression/tests/regtrack.c: added
3726
3727 2007-02-14 Borut Razem <borut.razem AT siol.net>
3728
3729         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
3730         * Makefile.in: applied patch from Makefile related part of
3731           #1469393: Compiler does not initialize static data
3732
3733 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
3734
3735         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
3736           for better fix of bug 1273984, compiles pic16 rand.c
3737
3738 2007-02-12 Borut Razem <borut.razem AT siol.net>
3739
3740         * src/pic16/main.c: fixed pic16 standard library directory bug
3741
3742 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
3743
3744         * src/hc08/gen.c (genSwap): fix swap regression test
3745
3746 2007-02-10 Borut Razem <borut.razem AT siol.net>
3747
3748         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
3749           with same scope
3750         * support/regression/tests/bug-1654060.c: added regression test for
3751           #1654060
3752
3753 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
3754
3755         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
3756         bit moves in return statement
3757
3758 2007-02-09 Borut Razem <borut.razem AT siol.net>
3759
3760         * src/SDCC.y: fixed bug #1654060 typedef within function causes
3761           syntax error
3762
3763 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3764
3765         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
3766         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
3767
3768 2007-02-07 Raphael Neider <rneider AT web.de>
3769
3770         * src/pic16/devices.inc,
3771         * device/include/pic16/pic18fregs.h,
3772         * device/include/pic16/pic18f[24][34]31.h,
3773         * device/lib/pic16/libdev/pic18f[24][34]31.c,
3774         * device/lib/pic16/pics.all: added 18f[24][34]31 family
3775         * device/lib/pic16/libio/i2c.ignore: do not build i2c
3776
3777 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3778
3779         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
3780           can this have lived here for so many years?
3781         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
3782           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
3783         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
3784
3785 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
3786
3787         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
3788         appended by loop induction must be at the very end of the eBBlock
3789
3790 2007-02-05 Kevin Vigor
3791
3792         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
3793
3794 2007-02-05 Borut Razem <borut.razem AT siol.net>
3795
3796         * support/regression/fwk/lib/timeout.c: native WIN32 port,
3797           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
3798
3799 2007-02-03 Borut Razem <borut.razem AT siol.net>
3800
3801         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
3802           applied patch #1646602 option to set default signedness of char to
3803           unsigned, added -funsigned-char command line option,
3804           thanks to Gunther Jehle
3805         * device/lib/Makefile.in: added the -f option to rm so it doesn't
3806           prompt for file deletion a few hundred times (especially the
3807           subversion files, which have ro permissions so it asks for
3808           confirmation), thanks to Simon McAuliffe;
3809           added {} + option to find in order to remove multiple files from a
3810           single rm commad
3811
3812 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3813
3814         * device/include/mcs51/SST89x5xRDx.h: Added.
3815
3816 2007-02-02 Raphael Neider <rneider AT web.de>
3817
3818         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
3819         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
3820
3821 2007-02-01 Raphael Neider <rneider AT web.de>
3822
3823         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
3824           config words again
3825
3826 2007-01-31 Borut Razem <borut.razem AT siol.net>
3827
3828         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
3829           if compiled with GCC. Thanks to Raphael Neider
3830
3831 2007-01-31 Raphael Neider <rneider AT web.de>
3832
3833         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
3834             operand names, handles name and (name + n) for all n,
3835           (sameBank): restructured, also check bank allocation policy,
3836         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
3837           (pic14_operandsAllocatedInSameBank): check whether to operands
3838             will be allocated into the same bank (i.e., section) to reduce
3839             BANKSEL overhead, queried from pcode.c:sameBank,
3840           (pic14printLocals): reintroduced clustering registers into a single
3841             section: all compiler generated symbols will now reside in one
3842             bank (per file), reducing BANKSEL overhead and code size,
3843           (showAllMemmaps): use local dbuf where possible
3844
3845 2007-01-29 Raphael Neider <rneider AT web.de>
3846
3847         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
3848           (call_libraryfunc): retrieve/create symbol and mark as used,
3849           (genFunction): mark defined functions as non-extern and add again
3850            to code memmap for later output
3851         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
3852           (pic14printLocals): reworked for new symbol emission,
3853           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
3854           showAllMemmaps): reworked symbol output using dbufs, added handling
3855             of string literals (still incomplete),
3856           (picglue): removed symbol emission, moved into showAllMemmaps,
3857           (emitSymbolSet): new workhorse for symbol output,
3858           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
3859
3860 2007-01-29 Borut Razem <borut.razem AT siol.net>
3861
3862         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
3863           component contains the extension separator.
3864
3865 2007-01-28 Borut Razem <borut.razem AT siol.net>
3866
3867         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
3868           on WIN32
3869         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
3870           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
3871           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
3872           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
3873           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
3874           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
3875           src/z80/gen.c, support/Util/MySystem.c:
3876           accept slash and backslash as directory separator on WIN32 and
3877           Cygwin ports
3878
3879 2007-01-28 Raphael Neider <rneider AT web.de>
3880
3881         * src/pic16/devices.inc,
3882         * device/include/pic16/pic18f[24][23]21.h,
3883         * device/include/pic16/pic18fregs.h,
3884         * device/lib/pic16/libdev/pic18f[24][23]21.c,
3885         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
3886         * device/lib/pic16/libio/adc.ignore,
3887         * device/lib/pic16/libio/i2c.ignore,
3888         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
3889           family, as gputils do not yet support the devices
3890         * device/lib/pic16/Makefile.subdir: ignore errors on install
3891         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
3892           headers and libraries from gputils .inc files
3893
3894 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3895
3896         * doc/sdccman.lyx: add printf_fast_f precision limitation note
3897
3898 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3899
3900         * doc/sdccman.lyx: add printf benchmarks
3901
3902 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3903
3904         * device/lib/printf_fast.c: fix %c, char promoted to int
3905         * device/lib/printf_tiny.c: fix %c, char promoted to int
3906
3907 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3908
3909         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
3910
3911 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3912
3913         * support/regression/tests/swap.c: 64 bit hosts failed
3914         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
3915
3916 2007-01-25 Raphael Neider <rneider AT web.de>
3917
3918         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
3919           based on absolute register address, patch by Alex Blond
3920
3921 2007-01-22 Raphael Neider <rneider AT web.de>
3922
3923         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
3924           emitted, do not emit them again...
3925
3926 2007-01-22 Raphael Neider <rneider AT web.de>
3927
3928         * src/regression/bank1.c, src/regression/compare6.c,
3929           src/regression/add.c: cosmetic changes
3930         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
3931         * src/pic/gen.c: fixed global zero and one,
3932           (aopForSym): removed unued code,
3933           (aopGet): assert aop is defined, check and use `index' of
3934             pCodeImmd operands (fixes #1630908),
3935         * src/pic/pcode.c (get_op): added output of generic pointer tag,
3936           (register_reassign): prevent accidental register unification,
3937           (ReuseReg): cosmetic changes (also above)
3938         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
3939           pic14emitStaticSeg): do not emit initialized data,
3940           (printIval*): replaced with working versions,
3941           (pic14createInterruptVect,picglue): use idata for initialized data,
3942             now init data should work in all modules (not only main()),
3943         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
3944
3945 2007-01-21 Borut Razem <borut.razem AT siol.net>
3946
3947         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
3948           use -fPIC or -fpic if they are supported and not ignored
3949         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
3950         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
3951
3952 2007-01-20 Borut Razem <borut.razem AT siol.net>
3953
3954         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
3955           implemented RFE #1470316: allow "$" in variable names
3956
3957 2007-01-20 Raphael Neider <rneider AT web.de>
3958
3959         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
3960
3961 2007-01-20 Raphael Neider <rneider AT web.de>
3962
3963         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
3964         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
3965         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
3966         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
3967           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
3968         * device/lib/pic/libdev/pic*.c,
3969         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
3970         * device/lib/pic/libdev/Makefile.in: show progress
3971
3972 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
3973
3974         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
3975         * support/scripts/sdcc_cygwin_mingw32,
3976         * support/scripts/sdcc_mingw32,
3977         * support/scripts/build.mak: replaced --datadir by --datarootdir for
3978         conformance with autoconf 2.6
3979
3980 2007-01-19 Raphael Neider <rneider AT web.de>
3981
3982         * src/pic/device.c (register_map): fixed list construction
3983         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
3984           (genMod): removed case for genModbits,
3985           (genModbits): removed as now unused/unimplemented
3986         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
3987
3988 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3989
3990         * support/regression/tests/swap.c: added in response to #1638622
3991         * doc/sdccman.lyx: synced version, minor changes
3992
3993 2007-01-18 Borut Razem <borut.razem AT siol.net>
3994
3995         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
3996           thanks to Gunther Jehle
3997         * src/asm.c: don't die if the file drfined in #line couldn't be opened
3998         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
3999           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
4000           use filename in lineno instead.
4001         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
4002           print the file name in ast_print()
4003
4004 2007-01-18 Borut Razem <borut.razem AT siol.net>
4005
4006         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
4007           defined in MSVC
4008         * src/SDCC.lex: stringLiteral() returns const char pointer,
4009           EOF detection in stringLiteral(), fixed asmbuf memory leak,
4010           fixed column counting
4011         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
4012           accept const char pointer as parameter
4013         * src/SDCCdwarf2.c: corrected buffer size
4014
4015 2007-01-17 Borut Razem <borut.razem AT siol.net>
4016
4017         * support/Util/dbuf_string.c: fixed for amd64
4018
4019 2007-01-15 Borut Razem <borut.razem AT siol.net>
4020
4021         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
4022           removed terminal symbol ELIPSIS, since it was never generated by the
4023           lexer and it was wrongly used in parameter_identifier_list rule
4024
4025 2007-01-15 Raphael Neider <rneider AT web.de>
4026
4027         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
4028             code page and data banking description
4029         * src/pic/genarith.c,
4030         * src/pic/gen.h: removed bit arithmetic functions,
4031             updated exit(1) to exit(EXIT_FAILURE)
4032         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
4033         * device/include/pic16/pic18f2455.h,
4034         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
4035             TRISD and TRISE, fixed/added some bit names
4036         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
4037         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
4038             updated pic18f2455.{c,h} instead of duplicating them
4039
4040 2007-01-14 Borut Razem <borut.razem AT siol.net>
4041
4042         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
4043           Cannot debug files that contain spaces in the path name
4044           by converting spaces in asm file name to underscores
4045
4046 2007-01-13 Borut Razem <borut.razem AT siol.net>
4047
4048         * doc/sdccman.lyx: fixed format errors
4049
4050 2007-01-10 Borut Razem <borut.razem AT siol.net>
4051
4052         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
4053           codeseg/constseg #pragma fail
4054         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
4055         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
4056           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
4057           suppoprt/cpp2/sdcpp.[ch]: house cleaning
4058
4059 2007-01-09 Borut Razem <borut.razem AT siol.net>
4060
4061         * get rid of diagnistic.[ch], pretty-print.[ch],
4062           c-pretty-print.[ch], ... used just for error, warning, ...
4063           message formatting
4064         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
4065           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
4066           suppoprt/cpp2/pretty-print.[ch]:
4067           removed
4068         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
4069           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
4070           suppoprt/cpp2/sdcpp.dsp:
4071           changed
4072
4073 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
4074
4075         * device/lib/printf_large.c (output_float): removed recursion,
4076           use smaller buffer on stack for mcs51,
4077           fixed bug printing 1.96
4078         * support/regression/tests/snprintf.c: added test
4079
4080 2007-01-07 Borut Razem <borut.razem AT siol.net>
4081
4082         * use dynamic memory buffers instead temporary files
4083         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
4084           added
4085         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
4086           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
4087           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
4088           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
4089           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
4090           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
4091           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
4092           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
4093           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
4094           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
4095           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
4096           support/Util/dbuf.c, support/Util/dbuf.h:
4097           modified
4098         * .version, sdcc.spec: bumped version to 2.6.4
4099
4100 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
4101
4102         * src/port.h: added TARGET_Z80_LIKE macro
4103         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
4104           output PSEG location if --xram-loc or --xstack-loc was used
4105         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
4106
4107 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
4108
4109         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
4110         * as/as_z80.dsp,   as/z80/as_z80.dsp,
4111         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
4112         * sdcc.dsw: moved project files into subdir
4113         * as/hc08/as_hc08.dsp,
4114         * as/hc08/Makefile.bcc,
4115         * as/hc08/Makefile.in,
4116         * as/mcs51/Makefile.bcc,
4117         * as/mcs51/Makefile.in,
4118         * as/z80/Makefile.bcc,
4119         * as/z80/Makefile.in,
4120         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
4121         * as/hc08/asm.h,
4122         * as/mcs51/asm.h,
4123         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
4124         * as/hc08/asmain.c,
4125         * as/hc08/assym.c,
4126         * as/mcs51/asmain.c,
4127         * as/mcs51/assym.c,
4128         * as/z80/assym.c: removed include "strcmpi.h"
4129         * as/hc08/strcmpi.c,
4130         * as/hc08/strcmpi.h,
4131         * as/mcs51/strcmpi.c,
4132         * as/mcs51/strcmpi.h,
4133         * support/Util/strcmpi.c,
4134         * support/Util/strcmpi.h: removed files
4135         * as/strcmpi.c: added as_strncmpi()
4136
4137 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4138
4139         * sdcc.dsw: Added some dependencies on project config.dsp
4140
4141 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
4142
4143         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
4144           with [di]ram_start to fix a regresion
4145
4146 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
4147
4148         * configure.in: added missing mcs51 in status output
4149         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
4150         directory
4151         * debugger/mcs51/clean.mk (distclean): remove config.h
4152         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
4153         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
4154         options.h, s-options-h and options.c
4155         * support/cpp2/clean.mk: unused, removed
4156         * Makefile.common.in,
4157         * main_in.mk,
4158         * as/Makefile.in,
4159         * as/hc08/Makefile.in,
4160         * as/hc08/clean.mk,
4161         * as/mcs51/Makefile.in,
4162         * as/mcs51/clean.mk,
4163         * as/z80/clean.mk,
4164         * as/z80/conf.mk,
4165         * as/z80/Makefile.in,
4166         * as/z80/clean.mk,
4167         * as/link/Makefile.in,
4168         * as/link/hc08/Makefile.in,
4169         * as/link/hc08/clean.mk,
4170         * as/link/mcs51/Makefile.in,
4171         * as/link/mcs51/clean.mk,
4172         * as/link/z80/Makefile.in,
4173         * as/link/z80/clean.mk,
4174         * as/link/z80/conf.mk,
4175         * debugger/mcs51/Makefile.in,
4176         * debugger/mcs51/clean.mk,
4177         * device/include/Makefile.in,
4178         * device/lib/Makefile.in,
4179         * device/lib/mcs51/Makefile.in,
4180         * device/lib/pic/Makefile.in,
4181         * device/lib/pic/Makefile.common.in,
4182         * device/lib/pic/Makefile.subdir,
4183         * device/lib/pic/Makefile.rules,
4184         * device/lib/pic16/libio/Makefile.in,
4185         * device/lib/pic16/Makefile.subdir,
4186         * device/lib/pic16/libdev/Makefile.in,
4187         * device/lib/pic16/Makefile.rules,
4188         * device/lib/pic16/Makefile.common.in,
4189         * sim/ucsim/avr.src/Makefile.in,
4190         * sim/ucsim/main_in.mk,
4191         * sim/ucsim/cmd.src/Makefile.in,
4192         * sim/ucsim/doc/Makefile.in,
4193         * sim/ucsim/gui.src/Makefile.in,
4194         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
4195         * sim/ucsim/gui.src/serio.src/Makefile.in,
4196         * sim/ucsim/hc08.src/Makefile.in,
4197         * sim/ucsim/libltdl/Makefile.in,
4198         * sim/ucsim/s51.src/Makefile.in,
4199         * sim/ucsim/sim.src/Makefile.in,
4200         * sim/ucsim/sim.src/conf.mk,
4201         * sim/ucsim/xa.src/Makefile.in,
4202         * sim/ucsim/z80.src/Makefile.in,
4203         * src/Makefile.in,
4204         * src/clean.mk,
4205         * src/port.mk,
4206         * support/cpp2/Makefile.in,
4207         * support/librarian/Makefile.in,
4208         * support/librarian/clean.mk,
4209         * support/makebin/Makefile.in,
4210         * support/makebin/clean.mk,
4211         * support/packihx/Makefile.in,
4212         * support/regression/Makefile.in,
4213         * support/regression/ports/ds390/spec.mk,
4214         * support/regression/ports/gbz80/spec.mk,
4215         * support/regression/ports/hc08/spec.mk,
4216         * support/regression/ports/mcs51/spec.mk,
4217         * support/regression/ports/mcs51-large/spec.mk,
4218         * support/regression/ports/mcs51-medium/spec.mk,
4219         * support/regression/ports/mcs51-xstack-auto/spec.mk,
4220         * support/regression/ports/pic14/spec.mk,
4221         * support/regression/ports/pic16/spec.mk,
4222         * support/regression/ports/mcs51-stack-auto/spec.mk,
4223         * support/regression/ports/ucz80/spec.mk,
4224         * support/regression/ports/xa51/spec.mk,
4225         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
4226         adding a slash after $(top_builddir) and/or adding @datarootdir@
4227         * configure.in,
4228         * debugger/mcs51/configure.in,
4229         * device/lib/pic/configure.in,
4230         * device/lib/pic16/configure.in,
4231         * sim/ucsim/configure.in,
4232         * support/cpp2/configure.in,
4233         * support/packihx/configure.in: changed AC_PREREQ to 2.60
4234         * configure,
4235         * debugger/mcs51/configure,
4236         * device/lib/pic/configure,
4237         * device/lib/pic16/configure,
4238         * sim/ucsim/configure,
4239         * support/cpp2/configure,
4240         * support/packihx/configure: generated with autoconf 2.60
4241
4242 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
4243
4244         * as/link/hc08/lkihx.c (newArea),
4245         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
4246
4247 2007-01-02 Borut Razem <borut.razem AT siol.net>
4248
4249         * doc/sdccman.lyx: documented #pragma sdcc_hash
4250         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
4251           initialized to 0
4252         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
4253
4254 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
4255
4256         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
4257         empty 'while'-loop to work correctly, see regression test 'while.c'
4258         * support/regression/tests/while.c: added
4259
4260 2007-01-01 Borut Razem <borut.razem AT siol.net>
4261
4262         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
4263           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
4264           support/cpp2/libcpp/sdcpp.c:
4265           sdcpp specific pragma/directive/option handling moved to sdcpp.c
4266         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
4267         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
4268
4269 2006-12-31 Borut Razem <borut.razem AT siol.net>
4270
4271         * SDCPP synchronized with GCC CPP release version 4.1.1,
4272           currently the latest release:
4273         * support/cpp2/libcpp, support/cpp2/libcpp/include,
4274           support/cpp2/libcpp/include/cpp-id-data.h
4275           support/cpp2/libiberty/fopen_unlocked.c
4276           support/cpp2/libiberty/md5.c
4277           support/cpp2/md5.h
4278           support/cpp2/opt-functions.awk
4279           support/cpp2/opt-gather.awk
4280           support/cpp2/optc-gen.awk
4281           support/cpp2/opth-gen.awk:
4282           added
4283         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
4284           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
4285           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
4286           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
4287           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
4288           support/cpp2/diagnostic.h, support/cpp2/except.h,
4289           support/cpp2/hwint.h, support/cpp2/input.h,
4290           support/cpp2/intl.h, support/cpp2/move-if-change,
4291           support/cpp2/opts.c, support/cpp2/opts.h,
4292           support/cpp2/output.h, support/cpp2/prefix.c,
4293           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
4294           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
4295           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
4296           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
4297           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
4298           support/cpp2/version.c:
4299           modified
4300         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
4301           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
4302           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
4303           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
4304           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
4305           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
4306           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
4307           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
4308           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
4309           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
4310           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
4311           moved
4312         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
4313           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
4314           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
4315           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
4316           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
4317           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
4318           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
4319           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
4320           support/cpp2/hashtable.h, support/cpp2/line-map.c,
4321           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
4322           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
4323           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
4324           support/cpp2/system.h:
4325           deleted / moved
4326
4327 2006-12-31 Borut Razem <borut.razem AT siol.net>
4328
4329         * configure.in, configure: fixed bug #1538756: configure dies if bison
4330           and flex are not installed, 2nd try
4331
4332 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
4333
4334         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
4335         400.x for better code in RFE 899102
4336
4337 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
4338
4339         * src/SDCCpeeph.c (deadMove),
4340         * src/port.h,
4341         * src/mcs51/peep.h: renamed 'op' by 'reg'
4342         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
4343         (scan4op): small change for removeDeadMove(), added support for
4344         'callee saves' and/or PACLL function calls,
4345         (removeDeadMove): added, removes superflous 'mov r%1,%2',
4346         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
4347         left in new dispatcher mcs51DeadMove()
4348         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
4349         removeDeadMove()
4350         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
4351
4352 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4353
4354         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
4355           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
4356
4357 2006-12-30 Borut Razem <borut.razem AT siol.net>
4358
4359         * support/cpp2/spacs.h: deleted from svn
4360         * configure.in, configure: fixed bug #1538756: configure dies if bison
4361           and flex are not installed
4362
4363 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
4364
4365         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
4366           with this z80 passes printf float test when enabled
4367         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
4368
4369 2006-12-28 Borut Razem <borut.razem AT siol.net>
4370
4371         * support/cpp2/config.in, support/cpp2/configure.in,
4372           support/cpp2/configure, support/cpp2/Makefile.in:
4373           fix for the solaris build
4374
4375 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4376
4377         * src/SDCC.y (type_specifier2, pointer),
4378         * src/SDCCsymt.h,
4379         * src/SDCCsymt.c (mergeSpec, checkSClass),
4380         * support/Util/SDCCerr.c,
4381         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
4382         * support/valdiag/valdiag.py: Allow test cases to specify
4383           required language standard
4384         * support/valdiag/tests/restrict.c: New file to test restrict keyword
4385         * support/valdiag/tests/tentdecl.c: Supress empty source file error
4386
4387 2006-12-27 Borut Razem <borut.razem AT siol.net>
4388
4389         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
4390         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
4391           mbchar removed
4392         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
4393           fixed for borland C
4394         * support/cpp2/libiberty/Makefile.bcc: updated
4395         * src/pic16/main.c: fixed #pragma udata handling
4396         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
4397
4398 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
4399
4400         * src/SDCCpeeph.c: made labelHashEntry global,
4401         made pcDistance, FBYNAME static,
4402         (pcDistance): made static, use isComment and isLabel,
4403         (deadMove): added,
4404         (getLabelRef): added, extracted from labelRefCount(),
4405         (labelRefCount): use new getLabelRef(),
4406         (callFuncByName): made static, added deadMove,
4407         use isComment and isLabel,
4408         (newPeepRule): made static, set isLabel,
4409         (isLabelDefinition): added parameter isPeepRule to allow '%' in
4410         labels from peephole rules,
4411         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
4412         when isComment or isLabel is set
4413         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
4414         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
4415         to make them global
4416         * src/mcs51/peep.h: added
4417         * src/mcs51/peep.c: added, implements mcs51DeadMove()
4418         * src/port.h: added peep->deadMove to port structure
4419         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
4420         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
4421         deadMove, finally removed no. 1 and 2
4422         * src/mcs51/gen.c,
4423         * src/pic/gen.c,
4424         * src/z80/gen.c,
4425         * src/z80/ralloc.c,
4426         * src/pic16/gen.c,
4427         * src/ds390/gen.c,
4428         * src/hc08/gen.c: mark lines with isComment or isLabel
4429         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
4430         * .version,
4431         * sdcc.spec: bumped version to 2.6.3
4432
4433 2006-12-26 Borut Razem <borut.razem AT siol.net>
4434
4435         * support/cpp2/Makefile.in: added dependency on options.h
4436         * configure: regenerated
4437         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
4438         * support/cpp2/Makefile.in: added vasprintf.c
4439
4440 2006-12-25 Borut Razem <borut.razem AT siol.net>
4441
4442         * SDCPP synchronized with GCC CPP release version 3.4.6,
4443           the latest release before 4.x:
4444         * support/cpp2/Makefile.in, support/cpp2/config.h,
4445           support/cpp2/configure, support/cpp2/configure.in,
4446           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
4447           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
4448           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
4449           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
4450           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
4451           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
4452           support/cpp2/cpptrad.c, support/cpp2/except.h,
4453           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
4454           support/cpp2/hwint.h, support/cpp2/intl.h,
4455           support/cpp2/line-map.c, support/cpp2/line-map.h,
4456           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
4457           support/cpp2/output.h, support/cpp2/prefix.c,
4458           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
4459           support/cpp2/system.h, support/cpp2/version.c:
4460           modified
4461         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
4462           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
4463           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
4464           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
4465           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
4466           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
4467           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
4468           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
4469           support/cpp2/move-if-change, support/cpp2/opts.c,
4470           support/cpp2/opts.h, support/cpp2/opts.sh,
4471           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
4472           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
4473           support/cpp2/win32, support/cpp2/win32/dirent.c,
4474           support/cpp2/win32/dirent.h:
4475           added
4476         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
4477         * support/cpp2/sdcpp.h: renamed from sdcc.h
4478         * sdcppinit.c: deleted
4479
4480 2006-12-23 Borut Razem <borut.razem AT siol.net>
4481
4482         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
4483           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
4484           preproc.c: an other try to fix bug #982435: introduced
4485           -pedantic-parse-number command line option and pedantic_parse_number
4486           pragma
4487
4488 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
4489
4490         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
4491            BSEG handling,
4492           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
4493            corrected overlayed areax addresses, warn about memory overlaps
4494         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
4495         * src/avr/main.c,
4496         * src/ds390/main.c,
4497         * src/hc08/main.c,
4498         * src/mcs51/main.c,
4499         * src/pic16/main.c,
4500         * src/pic/main.c,
4501         * src/xa51/main.c,
4502         * src/z80/main.c,
4503         * src/port.h: added xabs_name and iabs_name
4504         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
4505           (glue, emitMaps): create and emit maps d_abs and i_abs
4506         * src/SDCCglue.h: cosmetic changes
4507         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
4508         * src/SDCCmem.h,
4509         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
4510           (allocDefault): put absolute, initialized globals in them
4511         * support/regression/tests/absolute.c: added absolute bdata test
4512         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
4513
4514 2006-12-20 Borut Razem <borut.razem AT siol.net>
4515
4516         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
4517         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
4518           added regression test for bug #982435
4519
4520 2006-12-18 Borut Razem <borut.razem AT siol.net>
4521
4522         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
4523         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
4524           small cosmetic changes
4525         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
4526         * support/regression/tests/bug-1351710.c: added regression test
4527
4528 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4529
4530         * doc/sdccman.lyx: added the long missed iCode table
4531           "<where is figure II?>", added links to wiki
4532
4533 2006-12-17 Borut Razem <borut.razem AT siol.net>
4534
4535         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
4536           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
4537           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
4538           unified table driven pragma handling, pragma argument type checking
4539         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
4540           current one - version 1.1.3
4541         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
4542
4543 2006-12-13 Raphael Neider <rneider AT web.de>
4544
4545         * src/pic/device.h: removed AssignedMemory structure and macros
4546         * src/pic/device.c: removed global finalMapping (linker assigns
4547             memory locations),
4548           (register_map): add SFRs to remembered memRanges
4549           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
4550           assignFixedRegisters,assignRelocatableRegisters): removed,
4551           (setMaxRAM,validAddress): adapted accordingly,
4552           (pic14_hasSharebank,pic14_getSharedStack): only report and use
4553             reasonably sized sharebanks,
4554         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
4555           (allDefsOutOfRange): removed unused code,
4556         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
4557             handling
4558         * src/pic/pcode.c (register_reassign): removed recursion warning,
4559             fired far too often,
4560         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
4561             to use existing pic14_stringInSet() to avoid duplicate symbols,
4562             tidied up the code a bit,
4563           (pic14printLocals): added in symmetry to printExterns, replaces
4564             writeUsedRegs more or less,
4565           (picglue): call new pic14_printLocals(),
4566         * device/include/pic/pic*.h: removed #pragma memmap directives,
4567             information gathered from include/pic/pic14devices.txt
4568         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
4569
4570 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
4571
4572         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
4573
4574 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4575
4576         * device/include/mcs51/cc2430.h: fixed missing ';'
4577
4578 2006-12-10 Raphael Neider <rneider AT web.de>
4579
4580         * device/lib/pic16/libc/stdio/vfprintf.c,
4581         * device/lib/pic16/libc/stdio/printf_small.c,
4582         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
4583           char arguments, as char varargs are cast to int by the caller,
4584           hopefully fixes #1604915 (other device libraries are still affected)
4585
4586 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4587
4588         * src/mcs51/ralloc.c (packRegsForAssign),
4589         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
4590
4591 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
4592
4593         * device/include/malloc.h: removed init_dynamic_memory
4594         * device/lib/malloc.c: made init_dynamic_memory static and automatically
4595           call it once from malloc. Also use _sdcc_heap[] from _heap.c
4596         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
4597         * device/lib/libsdcc.lib,
4598         * device/lib/Makefile.in,
4599         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
4600         * doc/sdccman.lyx: documented use of new _heap.c
4601         * support/regression/tests/malloc.c: removed init_dynamic_memory
4602         * src/cdbFile.c(spacesToUnderscores): new function,
4603           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
4604           1068030
4605         * device/include/tinibios.h: removed defines for putchar and getchar
4606         * device/lib/ds390/Makefile.in: added putchar.c
4607         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
4608
4609 2006-12-09 Borut Razem <borut.razem AT siol.net>
4610
4611         * support/cpp2/sdcc.h: prevent multiple inclusion
4612         * support/cpp2/options.h: deleted
4613
4614 2006-12-08 Borut Razem <borut.razem AT siol.net>
4615
4616         * support/cpp2/sdcc.h: removed x*alloc() macros
4617         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
4618         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
4619           support/cpp2/sdcpp.sdc: x*alloc files added to the project
4620         * support/cpp2/system.h: moved #include "sdcc.h"
4621         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
4622           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
4623           added
4624         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
4625           -funsigned-char options
4626         * support/cpp2/sdcppmain.c: fixed bug 1611411
4627
4628 2006-12-07 Borut Razem <borut.razem AT siol.net>
4629
4630         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
4631           directive
4632
4633 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
4634
4635         * src/SDCCsymt.c (addDecl): fixed bug 1609244
4636         * src/SDCCmain.c (linkEdit): fixed bug 1609279
4637         * doc/sdccman.lyx,
4638         * .version: bumped to 2.6.2 because a) it's been a while
4639           b) the linker sources have moved c) the preprocessor is upgraded
4640
4641 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4642
4643         * support/regression/tests/snprintf.c: some checks
4644         * lib/src/printf_large.c: %bc: read char instead of int from stack
4645
4646 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
4647
4648         * device/include/mcs51/cc2430.h: inserted _XPAGE
4649
4650 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4651
4652         * device/include/mcs51/cc2430.h: added
4653
4654 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
4655
4656         * device/include/asm/default/features.h,
4657         * device/include/asm/ds390/features.h,
4658         * device/include/mcs51/at89s53.h,
4659         * device/include/ser.h,
4660         * device/include/ser_ir.h,
4661         * device/include/serial.h: changed keywords to double underscore variants,
4662           fixes bug 1590261 some more, thanks Steven Borley
4663
4664 2006-12-01 Raphael Neider <rneider AT web.de>
4665
4666         * src/pic/pcode.c (register_reassign): do not crash on recursive code
4667           but emit warning (recursion is not supported for pic14)
4668
4669 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4670
4671         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
4672         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
4673
4674 2006-11-30 Raphael Neider <rneider AT web.de>
4675
4676         * src/pic/device.c (dump_sfr): always emit symbols
4677         * src/pic/glue.c (pic14printPublics): fixed typo
4678
4679 2006-11-30 Raphael Neider <rneider AT web.de>
4680
4681         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
4682           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
4683           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
4684            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
4685            a sharebank, use a non-shared bank for the stack if none available
4686         * src/pic/device.h (struct memRange): added linked list next field,
4687           added prototypes for above functions
4688         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
4689           (typeRegWithIdx): accept fixed and unfixed stack registers
4690         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
4691           the stack, handle shared and banked stack (except for WSAVE),
4692           (insertBankSel): removed useless optimization (will never fire),
4693           (FixRegisterBanking): added optimization for devices with only one
4694           possibly aliased bank of memory, like 16f84
4695         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
4696           devices have no SHAREBANK in the linker script
4697         * device/include/pic/pic14devices.txt: documented memmap
4698         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
4699
4700 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4701
4702         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
4703           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
4704           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
4705           genhc08Code): switched most of the D (debug) macros to DD (detailed
4706           debug) macros to better control clutter in the generated .asm file.
4707         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
4708           genRightShift): fixed bug with non-constant bit shift stored to
4709           a volatile result (SF Open Discussion forum thread #1616749).
4710           Single byte case is not yet optimized.
4711
4712 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
4713
4714         * device/include/asm/mcs51/features.h,
4715         * device/include/malloc.h,
4716         * device/include/stdio.h: changed keywords to double underscore variants,
4717           fixes bug 1590261
4718
4719 2006-11-27 Borut Razem <borut.razem AT siol.net>
4720
4721         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4722           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
4723           support/cpp2/output.h, support/cpp2/cppinit.c,
4724           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
4725           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4726           support/cpp2/cppdefault.c, support/cpp2/system.h,
4727           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
4728           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
4729           support/cpp2/prefix.c, support/cpp2/except.h,
4730           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
4731           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
4732           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4733           support/cpp2/version.c, support/cpp2/cppmain.c,
4734           support/cpp2/version.h, support/cpp2/hashtable.c,
4735           support/cpp2/cpperror.c:
4736           synchronized with GCC CPP release version 3.3.6,
4737           the latest where cppmain.c still exists.
4738         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
4739           support/cpp2/sdcppinit.c: added
4740
4741 2006-11-27 Borut Razem <borut.razem AT siol.net>
4742
4743         * support/cpp2/cpplex.c:
4744           fixed _asm ... _endasm handling bug, introduce with GCC CPP
4745           synchronization
4746         * support/cpp2/cpplib.c: removed definitions of unused variables
4747
4748 2006-11-26 Borut Razem <borut.razem AT siol.net>
4749
4750         * support/cpp2/libiberty.h: commented out x*alloc() declarations
4751           since they are redefined by macros in support/cpp2/sdcc.h
4752         * support/cpp2/sdcc.h: x*alloc macro redefinition
4753
4754 2006-11-25 Borut Razem <borut.razem AT siol.net>
4755
4756         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4757           support/cpp2/configure, support/cpp2/Makefile.in,
4758           support/cpp2/cppfiles.c, support/cpp2/output.h,
4759           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
4760           support/cpp2/config.h, support/cpp2/cpplib.h,
4761           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4762           support/cpp2/cppdefault.c, support/cpp2/config.in,
4763           support/cpp2/system.h, support/cpp2/cpplex.c,
4764           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
4765           support/cpp2/cppdefault.h, support/cpp2/prefix.c
4766           support/cpp2/hwint.h, support/cpp2/mbchar.h,
4767           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
4768           support/cpp2/configure.in, support/cpp2/intl.h,
4769           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
4770           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4771           support/cpp2/version.c, support/cpp2/cppmain.c,
4772           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
4773           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
4774           support/cpp2/cpperror.c,
4775           support/cpp2/libiberty/safe-ctype.c,
4776           support/cpp2/libiberty/safe-ctype.h,
4777           support/cpp2/libiberty/splay-tree.c,
4778           support/cpp2/libiberty/obstack.c,
4779           support/cpp2/libiberty/lbasename.c,
4780           support/cpp2/libiberty/splay-tree.h,
4781           support/cpp2/libiberty/obstack.h:
4782           synchronized with GCC CPP release version 3.2.3,
4783           the latest before integration of cpp into gcc
4784         * support/cpp2/except.h, support/cpp2/line-map.c,
4785           support/cpp2/line-map.h,
4786           support/cpp2/libiberty/hex.c,
4787           support/cpp2/libiberty/concat.c,
4788           support/cpp2/libiberty/filenames.h: added
4789         * support/cpp2/intl.c: deleted
4790
4791 2006-11-24 Borut Razem <borut.razem AT siol.net>
4792
4793         * src/SDCC.y: enabled compilation of empty source file
4794         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
4795           "ISO C forbids an empty source file"
4796         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
4797           if all the code is ifdefed out.
4798
4799 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4800
4801         * src/hc08/gen.c (genPcall): fix for bug #1601032
4802
4803 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4804
4805         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
4806         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
4807         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
4808         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
4809         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
4810         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
4811         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
4812         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
4813         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
4814         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
4815         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
4816         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
4817         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
4818         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
4819         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
4820           Renamed to all upper case as per the standard set by SiLabs
4821
4822 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4823
4824         * device/include/mcs51/C8051F520.h: new, added
4825         * device/include/mcs51/compiler.h: added link about predefined macros
4826
4827 2006-11-23 Raphael Neider <rneider AT web.de>
4828
4829         * src/regression/Makefile: add -L path to fresh library
4830         * src/regression/simulate: emphasize FAILED output
4831         * src/regression/create_stc: output _failures from gpsim
4832         * src/regression/compare4.c,
4833         * src/regression/rotate6.c: fixed char literals,
4834           all compile, all run =8-D
4835
4836         * src/pic/pcode.h: added isPCASMDIR macro
4837         * src/pic/gen.c (genAnd): fixed bit offset
4838         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
4839           packBits): unified register numbering schemes,
4840           (newReg): do not insert stack registers into hash table,
4841           (initStack): unpinned pseudo stack, simplified,
4842           (typeRegWithIdx): fixed retrieval of stack registers,
4843         * src/pic/pcode.c (addpCodeComment,sameBank): added,
4844           (pCodeReplace): removed invalid assertion,
4845           (insertPCodeInstruction): fixed newly added labels,
4846           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
4847           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
4848           DumpFlow): removed unsed (broken?) code,
4849           (insertBankSel): prevent STATUS from being BANKSELed,
4850           (FixRegisterBanking): rewritten from scratch, implemented generic
4851             optimizations (suppress BANKSELs to same register and to registers
4852             present in all banks),
4853           (AnalyzeBanking): update flow after BANKSELection
4854
4855         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
4856             sharebank, let linker place it, mark STKxx symbols as emitted
4857
4858 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4859
4860         * src/regression/arrays.c,
4861         * src/regression/bank1.c,
4862         * src/regression/bool2.c,
4863         * src/regression/compare7.c,
4864         * src/regression/compare8.c,
4865         * src/regression/compare9.c,
4866         * src/regression/compare10.c,
4867         * src/regression/configword.c,
4868         * src/regression/for.c,
4869         * src/regression/mult1.c,
4870         * src/regression/pointer1.c,
4871         * src/regression/rotate6.c,
4872         * src/regression/string1.c,
4873         * src/regression/struct1.c,
4874         * src/regression/Makefile: make PIC14 regression tests run again
4875           (3 fail, 6 won't compile)
4876
4877 2006-11-21 Raphael Neider <rneider AT web.de>
4878
4879         * device/include/pic16/pic18f4550.h,
4880         * device/include/pic16/pic18f4455.h,
4881         * device/lib/pic16/libdev/pic18f4550.c,
4882         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
4883         * configure.in: removed superfluous closing bracket
4884
4885 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4886
4887         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
4888           always positive.
4889
4890 2006-11-21 Raphael Neider <rneider AT web.de>
4891
4892         * src/pic/device.{c,h}: added pic14_getPIC()
4893         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
4894           (genAnd): added PIC code for one case, fixes #1597044
4895         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
4896           SFRs that are present in all banks (e.g., STATUS)
4897
4898 2006-11-20 Raphael Neider <rneider AT web.de>
4899
4900         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
4901           INCFSZ/INCFSZW and declared them as changing Z bit,
4902           (insertPCodeInstruction): correctly invert the above instructions,
4903           fixes #1599333,
4904           (DoBankSelect): don't panic on po_immediates
4905
4906 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4907
4908         * as/link/aslink.h,
4909         * as/link/mcs51/lkihx.c (newArea),
4910         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
4911         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
4912
4913 2006-11-11 Raphael Neider <rneider AT web.de>
4914
4915         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
4916           bitfield symbols, fixes #1579535 (once more...).
4917
4918 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4919
4920         * support/regression/generate-cases.py,
4921         * support/regression/fwk/include/testfwk.h,
4922         * support/regression/fwk/lib/testfwk.c: used code pointers,
4923           (about 50kByte less code generated for mcs51)
4924
4925 2006-11-06 Borut Razem <borut.razem AT siol.net>
4926
4927         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4928           debugger/mcs51/configure: fixed failed check because the function
4929           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
4930           who submitted the patch for gpsim.
4931         * debugger/mcs51/configure.in: removed the result message
4932         * debugger/mcs51/Makefile.in: fixed the config.status warning
4933           "... seems to ignore the --datarootdir setting"
4934
4935 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
4936
4937         * device/include/mcs51/c8051f020.h,
4938         * device/include/mcs51/c8051f040.h,
4939         * device/include/mcs51/c8051f060.h,
4940         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
4941         * src/z80/gen.c (gencjneshort),
4942         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
4943
4944 2006-10-31 Borut Razem <borut.razem AT siol.net>
4945
4946         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4947           debugger/mcs51/configure: get readline version
4948
4949 2006-10-30 Borut Razem <borut.razem AT siol.net>
4950
4951         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
4952         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4953           debugger/mcs51/configure: locate readline even when cross compiling
4954         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
4955
4956 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4957
4958         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
4959           serial port.
4960
4961 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4962
4963         * device/include/malloc.h,
4964         * device/lib/calloc.c,
4965         * device/lib/free.c,
4966         * device/lib/malloc.c,
4967         * device/lib/realloc.c: moved definition of struct into sources
4968         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
4969
4970 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4971
4972         * as/asx8051.dsp: corrected output directories
4973         * as/link/hc08: new directory for hc08 linker
4974         * as/hc08/aslink.h,             as/link/aslink.h,
4975         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
4976         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
4977         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
4978         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
4979         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
4980         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
4981         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
4982         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
4983         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
4984         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
4985         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
4986         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
4987         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
4988         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
4989         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
4990         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
4991         * as/link/hc08/conf.mk,
4992         * configure,
4993         * configure.in,
4994         * Makefile.in,
4995         * sdcc.dsw: moved hc08 linker to as/link/hc08
4996         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
4997         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
4998         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
4999         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
5000         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
5001         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
5002         * as/link/mcs51/aslink.dsp,
5003         * as/link/mcs51/Makefile.in: factored out the common files
5004         * as/hc08/lkstore.c: deleted, use the one already in as/link/
5005         * as/clean.mk: extra cleaning common files
5006         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
5007         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
5008         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
5009
5010 2006-10-29 Raphael Neider <rneider AT web.de>
5011
5012         * src/pic/ralloc.c (newReg): create aliases for registers with
5013           multiple names to fix #1579535 and #1584001,
5014           (regWithIdx,dirregWithName): resolve aliases on lookup
5015         * src/pic/pcode.c (DoBankSelect): die with error message on failing
5016           bankselect
5017         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
5018           to prevent build errors on small devices
5019
5020 2006-10-28 Raphael Neider <rneider AT web.de>
5021
5022         * src/pic/gen.c (genFunction,genCall): drop "same code page"
5023           assumption within interrupt handlers, fixes #1584940
5024         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
5025           "emitted" to avoid emitting them again in udata
5026
5027 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5028
5029         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
5030         Removed.
5031
5032 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5033
5034         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
5035         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
5036         on/off CR to CRLF conversion.
5037
5038 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5039
5040         * doc/sdccman.lyx: updated IRQ section
5041
5042 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5043
5044         * device/lib/serial_io.c: removed
5045         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
5046         replacements for serial_io.c
5047
5048 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
5049
5050         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
5051
5052 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5053
5054         * device/lib/serial_io.c: Default putchar() and getchar() for
5055           mcs51 uses serial port.
5056
5057 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
5058
5059         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
5060
5061 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5062
5063         * support/regression/ports/mcs51/support.c: smaller
5064         _sdcc_external_startup()
5065         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
5066
5067 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
5068
5069         * device/lib/gbz80/crt0.s,
5070         * device/lib/gbz80/crt0_rle.s,
5071         * device/lib/gbz80/div.s,
5072         * device/lib/gbz80/fstubs.s,
5073         * device/lib/gbz80/heap.s,
5074         * device/lib/gbz80/mul.s,
5075         * device/lib/gbz80/putchar.s,
5076         * device/lib/gbz80/stubs.s,
5077         * device/lib/z80/crt0.s,
5078         * device/lib/z80/crt0_rle.s,
5079         * device/lib/z80/div.s,
5080         * device/lib/z80/fstubs.s,
5081         * device/lib/z80/heap.s,
5082         * device/lib/z80/mul.s,
5083         * device/lib/z80/putchar.s,
5084         * device/lib/z80/stubs.s: reverted, I was mistaken
5085
5086 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5087
5088         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
5089         * support/regression/ports/mcs51/support.c: removed race
5090         condition on TI in _putchar allowing to use serial port mode 0
5091
5092 2006-10-20 Borut Razem <borut.razem AT siol.net>
5093
5094         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
5095
5096 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
5097
5098         * device/lib/gbz80/crt0.s,
5099         * device/lib/gbz80/crt0_rle.s,
5100         * device/lib/gbz80/div.s,
5101         * device/lib/gbz80/fstubs.s,
5102         * device/lib/gbz80/heap.s,
5103         * device/lib/gbz80/mul.s,
5104         * device/lib/gbz80/putchar.s,
5105         * device/lib/gbz80/stubs.s,
5106         * device/lib/z80/crt0.s,
5107         * device/lib/z80/crt0_rle.s,
5108         * device/lib/z80/div.s,
5109         * device/lib/z80/fstubs.s,
5110         * device/lib/z80/heap.s,
5111         * device/lib/z80/mul.s,
5112         * device/lib/z80/putchar.s,
5113         * device/lib/z80/stubs.s: removed all leading underscores from area names
5114
5115 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
5116
5117         * support/regression/ports/mcs51/support.c: use highest baudrate so the
5118           regression tests are not waiting in the simulator for simulated
5119           transmission of debug output
5120
5121 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5122
5123         * device/lib/printf_large.c: slightly smaller
5124         * doc/sdccman.lyx: do not use spaces within html links
5125
5126 2006-10-16 Borut Razem <borut.razem AT siol.net>
5127
5128         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
5129           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
5130           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
5131           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
5132           debugger/mcs51/configure:
5133           [ 1185668 ] add gnu readline support to sdcdb - enabled
5134
5135 2006-10-16 Raphael Neider <rneider AT web.de>
5136
5137         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
5138           fixes #1577882, removes close to all banking optimizations
5139
5140 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
5141
5142         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
5143           variables in code memory
5144         * support/regression/tests/absolute.c: added test for this
5145
5146 2006-10-15 Raphael Neider <rneider AT web.de>
5147
5148         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
5149           devices,
5150           (BankSelect): emit BANKSEL before touching linker-placed regs,
5151           fixes #1570934
5152
5153 2006-10-10 Raphael Neider <rneider AT web.de>
5154
5155         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
5156         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
5157         * src/pic/main.c (_pic14_parseOptions),
5158         * src/pic/main.h: mostly reverted to previous state, now use results
5159             from SDCCmain.c's argument parsing
5160
5161 2006-10-10 Borut Razem <borut.razem AT siol.net>
5162
5163         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
5164           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
5165           [ 1185668 ] add gnu readline support to sdcdb -
5166           prepared for READLINE, not enabled yet,
5167           thanks to <tal.bav AT gmail.com>
5168
5169 2006-10-10 Raphael Neider <rneider AT web.de>
5170
5171         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
5172         * src/pic16/devices.inc,
5173         * device/include/pic16 (pic18f[24]620.h),
5174         * device/include/pic18fregs.h,
5175         * device/lib/pic16/pics.all,
5176         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
5177             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
5178             Gary Plumbridge and Anton Strobl
5179
5180 2006-10-10 Raphael Neider <rneider AT web.de>
5181
5182         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
5183           --stack-siz=NUM options to configure the argument passing stack
5184         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
5185         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
5186           (pic14_getSharebankSize): obey --stack-siz=NUM,
5187           (pic14_getSharebankAddress): obey --stack-loc=NUM
5188
5189 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5190
5191         * doc/sdccman.lyx: added to the manual
5192         * doc/figures/ddd_example.png: added (neither pdflatex nor
5193         most browsers seem to like the .eps file)
5194
5195 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
5196
5197         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
5198         to /tmp and /var/tmp acc. LSB
5199         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
5200         RESULT_TYPE_IFX
5201         * support/regression/tests/onebyte.c: added test
5202
5203 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5204
5205         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
5206
5207 2006-10-05 Borut Razem <borut.razem AT siol.net>
5208
5209         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
5210           thanks to dfulab:
5211           - sdcc.dsw: changed property eol-style to CRLF
5212           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
5213
5214 2006-10-04 Raphael Neider <rneider AT web.de>
5215
5216         * device/include/pic/{pic16f84.h,pic16f84a.h},
5217         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
5218           from patch #1522504, thanks to Robas Teodor
5219
5220 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
5221
5222         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
5223           fixes bug 1566015
5224
5225 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
5226
5227         * src/pic16/glue.c (pic16emitMaps),
5228         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
5229         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
5230         * device/lib/pic16/libc/string/memcpypgm2ram.c,
5231         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
5232           Philipp Krause
5233         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
5234         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
5235
5236 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5237
5238         * support/librarian/sdcclib.c: Added option -l.
5239         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
5240           usage totals.
5241         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
5242           using Windows command prompt.
5243
5244 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
5245
5246         * device/lib/libsdcc.lib: added module rand
5247         * src/ds390/ralloc.c (rematStr),
5248         * src/hc08/ralloc.c (rematStr),
5249         * src/mcs51/ralloc.c (rematStr),
5250         * src/z80/ralloc.c (rematStr): made output more consistent
5251         * src/mcs51/gen.c: cosmetic changes
5252
5253 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
5254
5255         * src/port.h: added mem.cabs_name to PORT
5256         * src/ds390/main.c,
5257         * src/hc08/main.c,
5258         * src/mcs51/main.c,
5259         * src/pic16/main.c,
5260         * src/pic/main.c,
5261         * src/xa51/main.c,
5262         * src/z80/main.c: added cabs_name initializers
5263         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
5264           constants
5265           (emitMaps): emit absolutes in code memory into cabs_name
5266         * src/SDCCmem.c,
5267         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
5268         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
5269         * support/regression/fwk/include/testfwk.h: added define for at
5270         * support/regression/tests/absolute.c: added, new
5271
5272 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
5273
5274         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
5275           optimizations, see also patch 887161 by Stas Sergeev
5276         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
5277           to be necessary anymore,
5278           (102, 103, 104, 127): renamed all occurances of bp to _bp
5279
5280 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
5281
5282         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
5283           thanks Weston T. Schmidt for patch 1555221
5284         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
5285         * src/SDCCicode.c(geniCodeMultiply): small optimization
5286
5287 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
5288
5289         * device/include/stdlib.h: added rand prototypes
5290         * device/lib/rand.c: new, added
5291         * device/lib/Makefile.in: added rand.c
5292         * src/z80/peeph.def,
5293         * src/z80/peeph-gbz80.def,
5294         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
5295
5296 2006-09-20 Raphael Neider <rneider AT web.de>
5297
5298         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
5299
5300 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
5301
5302         * as/link/aslink.h: cosmetic changes
5303         * as/link/mcs51/Makefile.in,
5304         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
5305
5306 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
5307
5308         * as/link/aslink.h,
5309         * as/link/mcs51/aslink.h,
5310         * as/link/z80/aslink.h: merged and moved to as/link/
5311         * as/link/lkstore.c,
5312         * as/link/mcs51/lkstore.c: moved to as/link/
5313         * as/link/clean.mk: remove *.o
5314         * as/link/mcs51/alloc.h: deleted
5315         * as/link/mcs51/lkarea.c: added lnksect prototype
5316         * as/link/mcs51/lkdata.c,
5317         * as/link/mcs51/lklex.c,
5318         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
5319         * as/link/mcs51/lkmem.c,
5320         * as/link/mcs51/lknoice.c: removed include strcmpi.h
5321         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
5322         * as/link/mcs51/aslink.dsp,
5323         * as/link/mcs51/Makefile.aslink,
5324         * as/link/mcs51/Makefile.bcc,
5325         * as/link/mcs51/Makefile.in: updated for moved files
5326         * as/link/z80/lkarea.c,
5327         * as/link/z80/lkhead.c,
5328         * as/link/z80/lklex.c,
5329         * as/link/z80/lklibr.c,
5330         * as/link/z80/lklist.c,
5331         * as/link/z80/lkmain.c,
5332         * as/link/z80/lkrloc.c,
5333         * as/link/z80/lksym.c: synced with mcs51
5334         * as/link/z80/lkdata.c,
5335         * as/link/z80/lkeval.c,
5336         * as/link/z80/lkihx.c,
5337         * as/link/z80/lks19.c: cosmetic changes
5338         * as/link/z80/Makefile.in,
5339         * as/link/z80/linkgbz80.dsp,
5340         * as/link/z80/linkz80.dsp: updated for moved files
5341
5342 2006-09-16 Borut Razem <borut.razem AT siol.net>
5343
5344         * debugger/mcs51/sdcdb.c: partially fixed
5345           [ 1203664 ] sdcdb fails to open files w. two "." periods
5346         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
5347           debugger/mcs51/symtab.h: fixed indenting
5348         * configure.in, configure: up to date with latest Maarten's changes
5349
5350 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
5351
5352         as/link/mcs51
5353         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
5354         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
5355         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
5356         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
5357         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
5358         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
5359         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
5360         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
5361         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
5362         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
5363         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
5364         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
5365         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
5366         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
5367         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
5368         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
5369         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
5370         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
5371         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
5372         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
5373         as/link/mcs51/alloc.h,
5374         as/link/mcs51/clean.mk,
5375         as/link/mcs51/conf.mk,
5376         as/link/mcs51/Makefile.bcc,
5377         as/link/mcs51/Makefile.in,
5378         as/link/mcs51/readme.390,
5379         as/link/mcs51/strcmpi.c,
5380         as/link/mcs51/strcmpi.h,
5381         as/mcs51/clean.mk,
5382         as/mcs51/Makefile.bcc,
5383         as/mcs51/Makefile.in,
5384         configure,
5385         Makefile.in,
5386         sdcc.dsw: moved mcs51 linker to as/link/mcs51
5387
5388 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
5389
5390         * as/link,
5391         * as/link/Makefile.in,
5392         * as/link/z80/linkgbz80.dsp,
5393         * as/link/z80/linkz80.dsp,
5394         * configure,
5395         * link,
5396         * link/clean.mk,
5397         * link/Makefile.in,
5398         * link/README,
5399         * link/z80,
5400         * link/z80/aslink.h,
5401         * link/z80/clean.mk,
5402         * link/z80/conf.mk,
5403         * link/z80/linkgbz80.dsp,
5404         * link/z80/linkz80.dsp,
5405         * link/z80/lkarea.c,
5406         * link/z80/lkdata.c,
5407         * link/z80/lkeval.c,
5408         * link/z80/lkgb.c,
5409         * link/z80/lkgg.c,
5410         * link/z80/lkhead.c,
5411         * link/z80/lkihx.c,
5412         * link/z80/lklex.c,
5413         * link/z80/lklibr.c,
5414         * link/z80/lklist.c,
5415         * link/z80/lkmain.c,
5416         * link/z80/lkrloc.c,
5417         * link/z80/lks19.c,
5418         * link/z80/lksym.c,
5419         * link/z80/Makefile.in,
5420         * Makefile.in,
5421         * sdcc.dsw: moved link/ to as/link/
5422
5423 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
5424
5425         * as/mcs51/i51mch.c (machine): fixed warning
5426
5427 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
5428
5429         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
5430
5431 2006-09-09 Borut Razem <borut.razem AT siol.net>
5432
5433         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
5434           sdcdb WIN32 native port
5435         * src/clean.mk: fixed
5436
5437 2006-09-08 Borut Razem <borut.razem AT siol.net>
5438
5439         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
5440
5441 2006-09-08 Raphael Neider <rneider AT web.de>
5442
5443         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
5444         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
5445             to gplink to disable processor mismatch warning and to allow
5446             the use of devices with only aliased (shared) memory banks,
5447           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
5448
5449 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5450
5451         * doc/sdccman.lyx: Some re-formating plus example on using
5452           #pragma preproc_asm +/-
5453
5454 2006-09-07 Borut Razem <borut.razem AT siol.net>
5455
5456         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
5457           section
5458
5459 2006-09-06 Borut Razem <borut.razem AT siol.net>
5460
5461         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
5462           line at sdcc.nsi:153
5463         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
5464
5465 2006-09-05 Borut Razem <borut.razem AT siol.net>
5466
5467         * configure.in, configure: support for winsock2
5468         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
5469           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
5470           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
5471           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
5472           debugger/mcs51/symtab.h: sdcdb WIN32 native port
5473
5474 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
5475
5476         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
5477           and OP_DEFS
5478         * support/regression/tests/bug1551947.c: new, added
5479         * src/SDCCsymt.h: strings are char* not byte*
5480
5481 2006-09-05 Raphael Neider <rneider AT web.de>
5482
5483         * device/lib/pic16/libdev/pic18f4550.c,
5484           device/include/pic16/pic18f4550.h: added PORTD/TRISD
5485             declarations/definitions from patch #1520949
5486
5487 2006-09-05 Raphael Neider <rneider AT web.de>
5488
5489         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
5490           byte-aligned bitfields, fixes #1539278
5491
5492 2006-09-05 Raphael Neider <rneider AT web.de>
5493
5494         * src/pic/gen.c (genReceive): skip unreferenced arguments,
5495           fixes #1544120
5496
5497 2006-09-04 Borut Razem <borut.razem AT siol.net>
5498
5499         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
5500         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
5501           -mno-cygwin is a part of the compiler name
5502         * support/scripts/sdcc_mingw32: don't disable ucsim
5503
5504 2006-09-03 Borut Razem <borut.razem AT siol.net>
5505
5506         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
5507         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
5508
5509 2006-09-03 Raphael Neider <rneider AT web.de>
5510
5511         * src/pic/ralloc.c,
5512         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
5513           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
5514           fixes #1550049
5515
5516 2006-09-01 Borut Razem <borut.razem AT siol.net>
5517
5518         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
5519           to make ppc-osx happy
5520
5521 2006-08-31 Borut Razem <borut.razem AT siol.net>
5522
5523         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
5524         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
5525         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
5526         * support/regression/ports/ds390/spec.mk,
5527           support/regression/ports/mcs51/spec.mk,
5528           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
5529           To run regression tests in mingw environment:
5530           make DEV_NULL=NUL CC=gcc
5531
5532 2006-08-30 Borut Razem <borut.razem AT siol.net>
5533
5534         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
5535           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
5536           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
5537           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
5538           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
5539           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
5540           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
5541           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
5542           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
5543           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
5544           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
5545           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
5546           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
5547           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
5548           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
5549           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
5550           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
5551           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
5552           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
5553           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
5554           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
5555           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
5556           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
5557           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
5558           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
5559           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
5560           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
5561           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
5562           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
5563           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
5564           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
5565           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
5566           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
5567           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
5568           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
5569           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
5570           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
5571           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
5572           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
5573           ucsim WIN32 native port
5574
5575 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5576
5577         * doc/sdccman.lyx: added note on dynamic memory heap initialization
5578
5579 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5580
5581         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
5582         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
5583
5584 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
5585
5586         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
5587         * support/regression/tests/bug1546986.c: new, added
5588         * as/mcs51/.cvsignore,
5589         * debugger/mcs51/.cvsignore,
5590         * src/.cvsignore: deleted
5591
5592 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5593
5594         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
5595           definitions)
5596
5597 2006-08-20 Borut Razem <borut.razem AT siol.net>
5598
5599         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
5600           removed cl_listen_console::match(), cl_console::match(),
5601           restructured cl_commander::proc_input()
5602
5603 2006-08-16 Borut Razem <borut.razem AT siol.net>
5604
5605         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
5606           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
5607           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
5608
5609 2006-08-14 Borut Razem <borut.razem AT siol.net>
5610
5611         * support/regression/Makefile.in,
5612           support/regression/ports/pic14/gpsim.cmd,
5613           support/regression/ports/pic14/spec.mk,
5614           support/regression/ports/pic14/support.c:
5615           added pic14 regression test
5616
5617 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
5618
5619         * as/doc/asxhtm.html: documented changed ABS behaviour
5620         * as/doc/README: fixed some typos
5621
5622 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
5623
5624         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
5625           not defined on host
5626
5627 2006-08-12 Borut Razem <borut.razem AT siol.net>
5628
5629         * support/regression/fwk/include/testfwk.h,
5630           support/regression/fwk/lib/testfwk.c,
5631           support/regression/generate-cases.py,
5632           support/regression/Makefile.in:
5633           regression test framework does not depend on function pointers and
5634           variable arguments
5635
5636 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
5637
5638         * device/include/stddef.h: c temporary hack to fix bug 1518273
5639
5640 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5641
5642         * device/include/mcs51/cc2510fx.h: added
5643         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
5644           to projects.
5645
5646 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
5647
5648         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
5649         * as/z80/Makefile.in: added strcmpi.c
5650         * as/z80/z80adr.c: added upper case registers and lower case conditionals
5651         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
5652
5653 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
5654
5655         * device/lib/gbz80/asm_strings.s,
5656         * device/lib/gbz80/crt0_rle.s,
5657         * device/lib/gbz80/div.s,
5658         * device/lib/gbz80/mul.s,
5659         * device/lib/gbz80/shift.s,
5660         * device/lib/z80/asm_strings.s,
5661         * device/lib/z80/crt0_rle.s,
5662         * device/lib/z80/div.s,
5663         * device/lib/z80/mul.s,
5664         * device/lib/z80/shift.s: changed to all lower case menmonics except the
5665           flags which are all upper case
5666
5667 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
5668
5669         * as/z80/asm.h: made CASE_SENSITIVE 1
5670         * link/z80/aslink.h: made CASE_SENSITIVE 1
5671         * src/z80/gen.c (throughout): made all conditionals upper case
5672         * support/regression/tests/bug1503067.c: new
5673
5674 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
5675
5676         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
5677           (shiftIntoPair): added case 2 for PAIR_IY,
5678           (setupToPreserveCarry): replaced parameters with iCode and check if
5679            PAIR_DE is in use to fix bug 1399290,
5680           (genPlus, genMinus): updated call to setupToPreserveCarry
5681         * support/regression/tests/bug1399290.c: new
5682
5683 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
5684
5685         * device/lib/Makefile.in (Z80SOURCES): enabled float support
5686         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
5687         * src/ds390/gen.c (shiftRLong),
5688         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
5689         * src/mcs51/gen.c (sameReg): changed to sameByte,
5690           (xch_a_aopGet): new,
5691           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
5692            shiftRLong): fixed bug 1533966
5693         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
5694           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
5695         * support/regression/Makefile.in: disabled z80, enabled ucz80
5696         * support/regression/tests/float_trans.c: enabled test for z80 and host
5697         * support/regression/tests/shifts2.c: new, for testing bug 1533966
5698
5699 2006-08-01 Borut Razem <borut.razem AT siol.net>
5700
5701         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
5702           comparison is always false due to limited range of data type
5703           on PPC64 machine (openpower-linux1) where "char = unsigned char"
5704
5705 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
5706
5707         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
5708         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
5709         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
5710         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
5711
5712 2006-07-31 Borut Razem <borut.razem AT siol.net>
5713
5714         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
5715           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
5716           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
5717           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
5718           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
5719           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
5720           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
5721           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
5722           enable ucsim mingw compilation. Serial port is disabled,
5723           since it uses termios.h API, which is not available on native
5724           WIN32
5725
5726 2006-07-31 Borut Razem <borut.razem AT siol.net>
5727
5728         * Small Device C Compiler 2.6.0 released
5729         * support/scripts/sdcc.nsi: added FULL_DOC option
5730         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
5731
5732 2006-07-28 Borut Razem <borut.razem AT siol.net>
5733
5734         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
5735         * doc/INSTALL.txt: updated
5736
5737 2006-07-27 Borut Razem <borut.razem AT siol.net>
5738
5739         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
5740           device/lib/pic/libdev/Makefile.in: fixed bug
5741           [ 1438354 ] pic libsdcc: distclean doesn't work
5742         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
5743           device/lib/pic16/libio/Makefile.in: fixed bug
5744           [ 1438344 ] pic16 lib: clean doesn't work properly
5745         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
5746
5747 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
5748
5749         * device/lib/pic/libsdcc/fsdiv.c,
5750         * device/lib/pic/libsdcc/fsmul.c,
5751         * device/lib/pic16/libsdcc/float/fsdiv.c,
5752         * device/lib/pic16/libsdcc/float/fsmul.c,
5753         * device/lib/_fsdiv.c,
5754         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
5755         * support/regression/tests/bug1520966.c: added
5756         * doc/knownbugs.html: removed [ 1520966 ] from the list
5757
5758 2006-07-25 Borut Razem <borut.razem AT siol.net>
5759
5760         * configure.in, configure, sdccconf_in.h: fixed bug
5761           [ 1519095 ] regression test onebyte.c fails on ppc64 host
5762         * doc/knownbugs.html: removed [ 1519095 ] from the list
5763
5764 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
5765
5766         * doc/knownbugs.html: added, contains list of known bugs at release
5767         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
5768
5769 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
5770
5771         * device/include/mcs51/compiler.h: added SFRX for xdata based special
5772           function registers and corrected defaults with additional warning
5773         * device/lib/malloc.c: cosmetic changes
5774         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
5775         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
5776           (fillGaps): and used it
5777
5778 2006-07-20 Raphael Neider <rneider AT web.de>
5779
5780         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
5781           output unless SDCCPICDEBUG is set
5782         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
5783           output if SILENT is set
5784
5785 2006-07-11 Borut Razem <borut.razem AT siol.net>
5786
5787         * doc/README.txt: updated
5788
5789 2006-07-10 Borut Razem <borut.razem AT siol.net>
5790
5791         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
5792           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
5793           in WIN32 installation
5794         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
5795           release candidate 1
5796
5797 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
5798
5799         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
5800         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
5801
5802 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
5803
5804         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
5805
5806 2006-07-06 Borut Razem <borut.razem AT siol.net>
5807
5808         * support/regression/tests/bitfields.c:
5809           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
5810         * support/regression/tests/constantRange.c:
5811           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
5812
5813 2006-07-04 Borut Razem <borut.razem AT siol.net>
5814
5815         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
5816           src/port.mk,
5817           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5818           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5819           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5820           reverted changes from 2006-07-03
5821         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
5822         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
5823           added CPPFLAGS, used by the host port
5824
5825 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
5826
5827         * support/regression/valdiag/tests/switch.c,
5828         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
5829         * support/regression/tests/libmullong.c: fixed for host
5830         * support/regression/ports/host/spec.mk: disable all warnings for host,
5831         SDCC runs with --less-pedantic too
5832
5833 2006-07-03 Borut Razem <borut.razem AT siol.net>
5834
5835         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
5836           defined CPPFLAGS
5837         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
5838         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5839           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5840           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5841           include ../port.mk
5842         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
5843           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5844           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
5845           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
5846
5847 2006-07-02 Raphael Neider <rneider AT web.de>
5848
5849         * src/pic16/devices.inc,
5850         * device/include/pic16/pic18fregs.h,
5851         * device/include/pic16/pic18f4550.h,
5852         * device/lib/pic16/pics.all,
5853         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
5854
5855 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
5856
5857         * as/hc08/lkaomf51.c (OutputName),
5858         * as/mcs51/lkaomf51.c (OutputName),
5859         * as/z80/asmain.c (asmbl),
5860         * src/ds390/main.c (asmLineNodeFromLineNode),
5861         * src/hc08/ralloc.c (hc08_assignRegisters),
5862         * src/mcs51/main.c (asmLineNodeFromLineNode),
5863         * src/xa51/ralloc.c (checkRegMask),
5864         * src/xa51/gen.c (emitcode),
5865         * src/z80/gen.c (_emit2),
5866         * src/SDCCast.c (searchLitOp),
5867         * src/SDCCglobl.h,
5868         * support/packihx/packihx.c,
5869         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
5870         * src/ds390/gen.c (aopPutUsesAcc),
5871         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
5872         * support/regression/tests/libmullong.c (mullong_wrapper),
5873         * src/SDCCsymt.c (powof2),
5874         * src/SDCCast.c,
5875         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
5876         * src/SDCCsymt.h: added TYPE_TARGET_*
5877         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
5878         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
5879         SDCCast because 1) header problems 2) this is the right place
5880         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
5881         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
5882         prototype
5883
5884 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
5885
5886         * src/SDCCicode.h: removed buggy semicolon in unused macro
5887         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
5888         search for previous definiton of auto symbols too,
5889         (findPrevUse): fixed logic of emitWarnings
5890
5891 2006-06-26 Raphael Neider <rneider AT web.de>
5892
5893         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
5894           PCLATH and PCLATU on interrupts, potentially fixes #1505141
5895
5896 2006-06-25 Raphael Neider <rneider AT web.de>
5897
5898         * device/lib/pic/libm: NEW, added math library functions
5899         * device/lib/pic/libsdcc: NEW; added float support functions
5900         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
5901         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
5902           NEW, added math related headers
5903         * device/include/asm/pic/features.h: NEW
5904         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
5905           (popGet): allow larger offsets for AOP_PCODE,
5906           (genDataPointerSet): handle literals explicitly, more debug output,
5907           (genAssign): fixed for float using aopLiteral ;-)
5908         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
5909           GOTO initialisation routine
5910         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
5911           flag on registers, fixes #1469043 (local variables do not work)
5912         * src/pic/main.c (_pic14_do_link),
5913         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
5914           available
5915
5916 2006-06-25 Borut Razem <borut.razem AT siol.net>
5917
5918         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
5919           characters printed (not including the trailing '\0' used to end
5920           output to strings). Problem detected in regression test bug-927659.c.
5921           NOTE: printf() family functions should return int instead
5922           unsigned int!
5923         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
5924           specifier are printed as themselves
5925         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
5926           support flags, width and precision specifiers
5927
5928 2006-06-24 Borut Razem <borut.razem AT siol.net>
5929
5930         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
5931           to the list of sdcc tagrets not supporting bit type
5932         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
5933           testfor pic16 due to bug:
5934           [ 1511794 ] pic16: regression test bug-895992.c fails
5935
5936 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
5937
5938         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
5939         * src/SDCCglue.c (initPointer), fixed bug 1496419
5940         * support/regression/tests/bug1496419.c: new, added
5941
5942 2006-06-22 Borut Razem <borut.razem AT siol.net>
5943
5944         * support/regression/ports/pic16/support.c: use gpsim usart module from
5945           libgpsim_modules library
5946
5947 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5948
5949         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
5950         IP0H to IPH0.
5951
5952 2006-06-19 Raphael Neider <rneider AT web.de>
5953
5954         * src/pic/glue.h,src/pic16/glue.h: added prototypes
5955         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
5956           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
5957           (pic14printExterns,pic14printPublics,pic16printPublics,
5958           pic16_printExterns): use new functions to emit symbols
5959           (picglue,pic16glue): emit publics before emitting externs
5960         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
5961           locally defined functions to avoid bug #1443651
5962         * support/regression/tests/bug-716242.c: removed pic16 workaround
5963         * support/regression/ports/pic16/spec.mk: ignore errors during build
5964
5965 2006-06-19 Raphael Neider <rneider AT web.de>
5966
5967         * src/pic/glue.h: added pic14aopLiteral prototype
5968         * src/pic/glue.c (pic14aopLiteral): return unsigned int
5969         * src/pic/gen.c: removed stdint.h dependency
5970           (aopGet): use Safe_strdup()
5971           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
5972           (genDataPointerSet): use pic14aopLiteral()
5973         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
5974           for pic16; thanks to Bernhard and Maarten
5975
5976 2006-06-18 Borut Razem <borut.razem AT siol.net>
5977
5978         * support/regression/tests/structflexarray.c: flexible array members
5979           not supported by gcc < 3
5980         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
5981           GUI tool by default
5982         * src/pic/gen.c: don't include [p]strdin.h on solaris
5983         * support/Util/pstdint.h: addad svn attributes
5984         * support/regression/tests/constantRange.c,
5985           support/regression/tests/rotate.c: include inttypes.h instead
5986           stdint.h on solaris, addad svn attributes
5987
5988 2006-06-18 Raphael Neider <rneider AT web.de>
5989
5990         * src/SDCCsymt.c (initCSupport): change return type of divschar to
5991           int for PIC16
5992         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
5993           (pic16_genMinusBits): simplified sign-extension
5994           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
5995             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
5996             adjusted to correctly handle mixed-signed operands, disabled
5997             now unused multiplciation routines
5998         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
5999           (assignResultValue): added argument denoting the size of the result
6000             as returned by the function (fixes upcasts in assigning from
6001             function calls: char foo(); int i = foo();)
6002           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
6003             function result to assignResultValue
6004           (genMult): disabled inlined multiplication code
6005           (genDiv): augmented to also handle the modulus operator, fixed to
6006             handle mixed-signed operands correctly
6007           (genMod): simply call genDiv, disabled unused code
6008           (genAssign): fixed missing (sign-)extension on result
6009         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
6010             valid char operands, allow signed operands for native code, added
6011             division and modulo operator handling
6012         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
6013
6014         As a consequence, onebyte.c (if split into two files) and muldiv.c
6015         pass regression tests.
6016
6017 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6018
6019         * doc/Makefile.in: two runs of makeindex seem needed to get
6020         correct page references in the index of sdccman.pdf
6021         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
6022
6023 2006-06-17 Borut Razem <borut.razem AT siol.net>
6024
6025         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
6026
6027 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6028
6029         * doc/sdccman.lyx: updated, added (porting source code, debugging),
6030         mentioned ec2drv and paulmon
6031
6032 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
6033
6034         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
6035           consecutive abs areas
6036           (find_empty_space, allocate_space): added map to handle codemap or
6037            xdatamap,
6038           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
6039            absolute idata and xdata
6040         * as/mcs51/lkmem.c (summary2): updated legend
6041
6042 2006-06-16 Raphael Neider <rneider AT web.de>
6043
6044         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
6045
6046 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
6047
6048         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
6049           1208515
6050         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
6051
6052 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
6053
6054         * src/port.h (struct PORT): added field gp_tags, to hold the tag
6055         value of generic pointers,
6056         * src/avr/main.c,
6057           src/ds390/main.c,
6058           src/hc08/main.c,
6059           src/izt/i186.c,
6060           src/izt/tlcs900h.c,
6061           src/mcs51/main.c,
6062           src/pic/main.c,
6063           src/pic16/main.c,
6064           src/xa51/main.c,
6065           src/z80/main.c: PORT structure, added elements for gp_tags field,
6066         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
6067         fields in the PORT structure of each port,
6068         * src/SDCCast.c (decorateType): allow processing of generic pointers
6069         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
6070         S_FIXED symbols
6071
6072 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
6073
6074         * link/z80/lkgb.c,
6075         * link/z80/lkgg.c,
6076         * src/pic16/gen.c,
6077         * src/pic16/main.c,
6078         * src/pic16/pcode.c,
6079         * src/pic/main.c,
6080         * src/pic/pcoderegs.c,
6081         * src/SDCCicode.c,
6082         * src/SDCCmain.c,
6083         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
6084           bug 1504689 on minGW
6085
6086 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6087
6088         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
6089
6090 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
6091
6092         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
6093
6094 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
6095
6096         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
6097           for optimization
6098
6099 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
6100
6101         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
6102         to a char variable. Fixed bug #1504211
6103         * device/include/pic16/adc.h,
6104         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
6105         and fixed bug #1364390
6106
6107 2006-06-10 Borut Razem <borut.razem AT siol.net>
6108
6109         * CVSROOT: removed the CVS left-over
6110
6111 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
6112
6113         * as/hc08/asmain.c (asexit),
6114         * as/hc08/lkmain.c (lkexit),
6115         * as/mcs51/asmain.c (asexit),
6116         * as/mcs51/lkmain.c (lkexit),
6117         * src/SDCCglue.c (DEFSETFUNC),
6118         * src/SDCCmain.c (linkEdit, assemble),
6119         * support/librarian/sdcclib.c (AddRel),
6120           replaced unlink() by standard C remove()
6121         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
6122         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
6123           gatherImplicitVariables): new, added to fix bug 608752,
6124           (createFunction): added gatherImplicitVariables()
6125         * src/SDCCast.h: added createRMW prototype
6126         * src/SDCCsymt.h (struct symbol): added infertype
6127         * support/regression/tests/bug608752.c: new, added
6128
6129 2006-06-10 Raphael Neider <rneider AT web.de>
6130
6131         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
6132           multibyte dummy reads (fixes #1503234)
6133
6134 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
6135
6136         * device/include/mcs51/compiler.h: new, added header file to enable
6137           creating common sfr definition header files for different compilers
6138
6139 2006-06-05 Raphael Neider <rneider AT web.de>
6140
6141         * src/pic16/{pcode.h,genarith.c}:
6142           introduced pCodeOp combining any two pCodeOps (previously only
6143           two register operands could be combined), removed pcop2 from
6144           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
6145         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
6146         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
6147           rewritten to use new PO_TWO_OPS
6148         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
6149         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
6150           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
6151           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
6152           (pic16_get_op): embraced return arg to allow #define return(x),
6153             added new case for combined opcodes
6154           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
6155           (pic16_pCode2str,pic16_getRegFrompCodeOp,
6156            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
6157
6158 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
6159
6160         * src/SDCCval.c (checkConstantRange): added
6161         * src/SDCCval.h: added checkConstantRange
6162         * support/Util/SDCCerr.c,
6163         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
6164         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
6165         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
6166         * src/SDCCast.c (decorateType): added checkConstantRange,
6167         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
6168         can be emitted with the correct always true/false warning,
6169         added optimization for double '!';
6170         result of decorateType() must be assigned back to the tree, because
6171         decorateType() can change the tree
6172         * src/SDCCicode.c (geniCodeLogic),
6173         (geniCodeAssign): replaced new checkConstantRange, added warnings,
6174         (checkConstantRange): removed, it was only a fragment which never
6175         emitted a warning
6176         * src/SDCCsymt.c (computeType): fixed promotion for
6177         "-1 < (unsigned bit) b"
6178         * src/pic/ralloc.c (packRegsForAssign),
6179         * src/pic16/ralloc.c (packRegsForAssign),
6180         * src/hc08/ralloc.c (packRegsForAssign),
6181         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
6182         from mcs51
6183         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
6184         * support/regression/tests/constantRange.c: added
6185         * support/valdiag/tests/constantRange.c: added
6186         * support/valdiag/valdiag.py: added -DPORT_HOST=1
6187
6188 2006-06-02 Borut Razem <borut.razem AT siol.net>
6189
6190         * support/regression/ports/pic16/support.c: increase stack size
6191           to 255 bytes
6192         * support/regression/Makefile.in: sort tests by name so that the
6193           resutlts can be compared on different machines / platforms
6194
6195 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
6196
6197         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
6198         * src/ds390/gen.c (emitLabel): new, added,
6199           (genDjnz): fixed stack overflow bug,
6200           (throughout): cosmetic changes to sync with mcs51/gen.c,
6201           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
6202         * src/mcs51/gen.c (genEndFunction): small optimization,
6203           (throughout): cosmetic changes to sync with ds390/gen.c
6204
6205 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
6206
6207         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
6208           (_print_format): fixed printing pointers
6209         * src/mcs51/gen.c (emitLabel, movb): new, added,
6210           (genAssign): small optimization,
6211           (genDjnz): fixed stack overflow bug,
6212           (throughout): replaced sprintf with SNPRINTF,
6213           replaced mcs51_regWithIdx with REG_WITH_INDEX,
6214           replaced emitcode("mov", "b,...") with MOVB(...),
6215           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
6216           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
6217         * src/mcs51/peeph.def: added rules 140 and 264
6218         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
6219           so they may get optimized into registers
6220
6221 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
6222
6223         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
6224           immediately when encountered,
6225           (printUsage): always use stderr even on windows
6226
6227 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
6228
6229         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
6230         (processParms): fixed bug #1247551
6231         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
6232         parseCmdLine, main): print '--version' to stdout,
6233         print 'help' to stdout if --help is given,
6234         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
6235         arguments are given; fixed --help
6236
6237 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
6238
6239         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
6240         * support/regression/tests/bug-1493710.c: added
6241
6242 2006-05-27 Borut Razem <borut.razem AT siol.net>
6243
6244         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
6245           static instead auto
6246         * support/regression/ports/pic16/support.c: increase stack size
6247           from default 64 bytes to 128 bytes
6248         * support/regression/tests/staticinit.c,
6249           support/regression/tests/float.c: regression tests fully enabled
6250           for pic16 port by putting the initialized data arrays into the code
6251           section
6252         * support/regression/ports/pic16/spec.mk: don't link default libraries.
6253           This was changed by mistake in the previous version.
6254
6255 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
6256
6257         * src/pic16/gen.c (genFunction, genEndFunction): some
6258         beautifications, fixed bug with falsely restoring FSR2 in large
6259         stack model, thanks to Beau E. Cox for reporting the bug
6260
6261 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
6262
6263         * debugger/mcs51/break.c,
6264         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
6265           use %p to print pointers, made address variables unsigned
6266         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
6267         * debugger/mcs51/symtab.c (parseSymbol): must return something
6268         * src/mcs51/gen.c (aopForSym): small optimization,
6269            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
6270           (freeAsmop): added missing break,
6271           (aopPut): removed parameter bvolatile, determine it inside the function,
6272           (saveRegisters, unsaveRegisters): small optimization,
6273           (genIpush): removed pointless check,
6274           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
6275           replaced sprintf with SNPRINTF,
6276           replaced strcpy with strncpyz,
6277           updated aopPut calls,
6278           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
6279         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
6280
6281 2006-05-24 Borut Razem <borut.razem AT siol.net>
6282
6283         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
6284           modification of test for the pic16 port, put the array to the code
6285           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
6286
6287 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
6288
6289         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
6290         * support/Util/pstdint.h: added
6291
6292 2006-05-22 Borut Razem <borut.razem AT siol.net>
6293
6294         * src/regression/Makefile: removed bool2.c test, added -q linker option
6295         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
6296           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
6297           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
6298           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
6299           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
6300           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
6301           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
6302           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
6303           define SUPPORT_BIT_TYPES 0, removed unused bit variables
6304
6305 2006-05-22 Raphael Neider <rneider AT web.de>
6306
6307         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
6308           bug #1492360 (problematic due to generic pointers, see code)
6309
6310 2006-05-22 Borut Razem <borut.razem AT siol.net>
6311
6312         * support/regression/ports/pic16/specs.mk: removed stack size linker
6313           directive
6314         * support/regression/tests/array.c,
6315           support/regression/tests/bitopcse.c,
6316           support/regression/tests/bug-908454.c,
6317           support/regression/tests/malloc.c: modified for pic16 regression test
6318         * support/regression/tests/bitfields.c:
6319           pic16 - excluded bitfileds of size > 8
6320         * support/regression/tests/bp.c: pic16 - reduced data size
6321         * support/regression/tests/bug-221100.c: pic16 - reduced data size
6322         * support/regression/tests/bug-460010.c:
6323           pic16 - used the absolute address the fits in memory
6324         * support/regression/tests/bug-716242.c:
6325           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
6326         * support/regression/tests/float.c:
6327           pic16 - excluded - data size too big
6328         * support/regression/tests/onebyte.c:
6329           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
6330         * support/regression/tests/shifts.c:
6331           pic16 - function names probably have to differ in first X characters
6332           (gpasm limitation?)
6333         * support/regression/tests/staticinit.c:
6334           pic16 - excluded some tests due error: no target memory available for
6335           section ".idata"
6336
6337 2006-05-22 Borut Razem <borut.razem AT siol.net>
6338
6339         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
6340           second try. Thanks Stas Sergeev once more.
6341
6342 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
6343
6344         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
6345           (genLeftShift, genRightShift): fixed bug 1491627
6346         * src/hc08/peeph.def (rules 7, 8.x): added
6347         * support/regression/tests/shifts.c (ShiftLeftByParam,
6348           ShiftRightByParam, testShiftByParam): added to test variable shifting
6349
6350 2006-05-20 Raphael Neider <rneider AT web.de>
6351
6352         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
6353         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
6354           (allocReg): add only new registers to dynAllocRegs,
6355           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
6356             #1489055, #1445850, and probably #1483693
6357
6358 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
6359
6360         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
6361         bug in for-loop that didn't emit the last of CONFIG and ID registers
6362
6363 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
6364
6365         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
6366           with offset
6367         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
6368           1489016, 1434401 and 1490124
6369         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
6370           1489016, 1434401 and 1490124
6371
6372 2006-05-17 Borut Razem <borut.razem AT siol.net>
6373
6374         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
6375           thanks Stas Sergeev
6376
6377 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
6378
6379         * device/include/mcs51/P89c51RD2.h,
6380         * device/include/mcs51/P89LPC901.h,
6381         * device/include/mcs51/P89LPC922.h,
6382         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
6383
6384 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6385
6386         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
6387         to fix missing stack pragma in compiled binary object file,
6388
6389 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
6390
6391         * support/packihx/configure.in,
6392         * support/packihx/configure: removed warning, autoconf >= 2.5x can
6393         determine sizeof basic types even while cross compiling
6394
6395 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
6396
6397         * src/avr/gen.c (aopop),
6398         * src/ds390/gen.c (aopOp),
6399         * src/hc08/gen.c (aopOp),
6400         * src/mcs51/gen.c (aopop),
6401         * src/pic16/gen.c (pic16_aopOp),
6402         * src/pic/gen.c (aopOp),
6403         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
6404         if size of operand is smaller than spill location
6405
6406 2006-05-12 Borut Razem <borut.razem AT siol.net>
6407
6408         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
6409           have to have CR/LF line endings even if they are checked out on *nix
6410           or on WIN32 in cygwin binmode
6411
6412 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
6413
6414         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
6415         * device/include/ds80c390.h: added sfr16 definitions
6416         * src/ds390/gen.c,
6417         * src/ds390/gen.h,
6418         * src/ds390/main.c,
6419         * src/ds390/ralloc.c,
6420         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
6421           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
6422           bit returning functions
6423         * support/regression/tests/sfr16.c: enabled test on ds390
6424
6425 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6426
6427         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
6428         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
6429
6430 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
6431
6432         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
6433         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
6434           (cl_address_space constructor): removed expensive initialization,
6435           (cl_address_space::get_cell): extended for late initialization,
6436           (cl_address_space::*): use late initialization,
6437           (cl_address_decoder::activate): removed expensive initialization,
6438           This reduced regression test running time by 25%
6439
6440 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
6441
6442         * packihx/,
6443         * configure.in,
6444         * configure,
6445         * sdcc.dsw,
6446         * Makefile.bcc,
6447         * Makefile.in,
6448         * support/packihx/Makefile.in,
6449         * support/packihx/clean.mk,
6450         * support/packihx/Makefile.bcc,
6451         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
6452
6453 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6454
6455         * src/SDCCval.c (valNot): fix for regression test failure
6456           of not.c on big endian hosts
6457
6458 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
6459
6460         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
6461
6462 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6463
6464         * device/lib/mcs51/Makefile.in: changed string comparison operator
6465           to = for POSIX compliance; == is bash extension
6466
6467 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
6468
6469         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
6470           kosmonaut_pirx
6471
6472 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
6473
6474         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
6475         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
6476         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
6477         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
6478         bug report #1478657,
6479
6480 2006-05-05 Borut Razem <borut.razem AT siol.net>
6481
6482         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
6483           making the html
6484
6485 2006-05-02 Borut Razem <borut.razem AT siol.net>
6486
6487         * doc/Makefile.in: removed *.ind dependency since there is no rule to
6488           create *.ind, which made make to fail if invoked with -j 2
6489
6490 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
6491
6492         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
6493           Hubert Sack for patch 1479782
6494
6495 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
6496
6497         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
6498
6499 2006-05-01 Raphael Neider <rneider AT web.de>
6500
6501         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
6502           (create_pic): store only prefix-free device name,
6503           (init_pic): check for device names with "16" prefix,
6504           (list_valid_pics),
6505         * src/pic/device.h (struct PIC_device),
6506         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
6507             stored device name,
6508         * device/include/pic/pic12f{635,675,629,683}.h,
6509         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
6510         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
6511         * device/include/pic/pic16f505.h,
6512         * device/lib/pic/libdev/pic16f505.c: removed
6513         * device/include/pic/pic14devices.txt: added support for pic12f
6514             devices, removed unsupported non 16-bit devices
6515             [above changes provided by patch from Zik Saleeba]
6516         * src/pic/*, src/pic16/*, device/include/pic16/*,
6517           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
6518
6519 2006-05-01 Borut Razem <borut.razem AT siol.net>
6520
6521         * configure.in, configure, doc/Makefile.in:
6522           sync with nightly build makefile - latex, dvipdf and dvips
6523           not needed any more
6524
6525 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
6526
6527         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
6528         in the library source
6529
6530 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
6531
6532         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
6533
6534 2006-04-28 Raphael Neider <rneider AT web.de>
6535
6536         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
6537         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
6538           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
6539         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
6540
6541 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
6542
6543         * device/lib/pic/libdev/Makefile.in,
6544         * device/lib/hc08/Makefile.in,
6545         * device/lib/gbz80/Makefile.in,
6546         * device/lib/z80/Makefile.in,
6547         * device/lib/ds390/Makefile.in,
6548         * device/lib/ds400/Makefile.in: added srcdir to include search path,
6549         thanks to Borut for the bug report
6550         * configure.in,
6551         * configure: always create doc/Makefile independent from --enable-doc
6552         * Makefile.in: always install from directory doc independent from
6553         --enable-doc
6554         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
6555         removed
6556         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
6557         * doc/Makefile.in: install *.txt if present
6558         * device/include/Makefile.in (install): added installation of pic/*.inc
6559         and pic/*.txt files again, they were erroneously removed
6560
6561 2006-04-28 Raphael Neider <rneider AT web.de>
6562
6563         * src/pic/{gen.c,main.h,pcode.c},
6564         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
6565             concerning signedness with casts
6566
6567 2006-04-28 Raphael Neider <rneider AT web.de>
6568
6569         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
6570             definition of an interrupt handler,
6571         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
6572             interrupt handler stuff from picglue() to separate routine,
6573           (picglue): enabled definition of intr handlers in files w/o main()
6574
6575 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6576
6577         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
6578           compilation with MSVC 2005 Express Edition (VC8)
6579
6580 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
6581
6582         * device/lib/Makefile: fixed build of gbz80 lib
6583
6584 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6585
6586         * support/regression/tests/bug-460010.c,
6587         * support/regression/tests/bug-524691.c,
6588         * support/regression/tests/bug-716242.c: removed conditional defines
6589           that are already in testfwk.h
6590
6591 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
6592
6593         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
6594           (AccAXRsh1): added, shift right by 1,
6595           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
6596            AccAXLrl1
6597         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
6598
6599 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
6600
6601         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
6602         remove cast to same type
6603         * src/SDCCast.c (decorateType): fix for RFE 1475742,
6604         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
6605         * as/z80/Makefile,
6606         * link/z80/Makefile: removed, they have moved to
6607         Makefile.in files
6608         * configure,
6609         * configure.in: replaced duplicate message about ucsim by missing sdcpp
6610         * install-sh: fix bug #1204398 by setting umask 0022
6611         * device/lib/Makefile: separate build of z80 and gbz80 lib
6612
6613 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
6614
6615         Enabled VPATH feature: changed nearly all Makefiles (149 files).
6616         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
6617
6618         One basic decision: e.g. src/clean.mk includes further files. In order
6619         to make this work there are two solutions:
6620         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
6621           run configure on them. This way they can use
6622           'include $(srcdir)/port-clean.mk'
6623         - always include clean.mk by the Makefile at the same level. To avoid
6624           that `make clean` tries to include and build Makefile.dep the
6625           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
6626           implemented, because now even `make uninstall` doesn't create
6627           Makefile.in. clean.mk could be eliminated by pasting it in
6628           Makefile.in.
6629
6630         * debugger/mcs51/Makefile.in: build own objects from library sources
6631         (SLIB, SDCC) in current directory
6632
6633         * configure, configure.in: renamed --disable-device-lib-build in
6634         --disable-device-lib; added --enable-doc, the required tools are
6635         searched by configure; added result message; the toolchain for the
6636         belonging ports are now only built, if the port is enabled.
6637
6638         * support/regression/*: all output is written in directory gen, because
6639         the fwk and ports directories don't livet in the build tree using vpath
6640
6641         * doc/sdccman.lyx: renamed --disable-device-lib-build to
6642         --disable-device-lib, added --enable-doc, added section VPATH
6643
6644         * sim/ucsim/configure.in,
6645         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
6646         z80 are enabled by default
6647
6648 2006-04-24 Raphael Neider <rneider AT web.de>
6649
6650         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
6651             to config word, "pic14_"-prefixed some extern functions
6652           (pic14_emitConfigWord): emit __config directive(s) if assignment to
6653             config word has been found
6654         * src/pic/device.h: added prototypes
6655         * src/pic/pcode.c: added "pic14_"-prefix where needed
6656         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
6657             fixup
6658         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
6659             words,
6660           (pic14emitRegularMap): ignore config words,
6661           (pic14createInterruptVect): moved generating __config directives away
6662           (picglue): have __config directives emitted
6663
6664 2006-04-24 Borut Razem <borut.razem AT siol.net>
6665
6666         * doc/Makefile: sync with nightly build makefile
6667
6668 2006-04-24 Raphael Neider <rneider AT web.de>
6669
6670         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
6671             registers that have not been assigned proper liveranges,
6672             fixes #1469504 and #1474602,
6673           (pCodeRegOptimizeRegUsage): fixed typo in comment
6674
6675 2006-04-24 Borut Razem <borut.razem AT siol.net>
6676
6677         * device/examples/main8051.c: deleted - it was removed from CVS
6678           24.mar.2000 and after that modified 18.feb.2001, so it reappered
6679           after the transition to Subversion
6680         * src/SDCCalloc.h: deleted - it was removed  from CVS
6681           3.feb.2001 and after that modified 18.feb.2001, so it reappered
6682           after the transition to Subversion
6683         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
6684           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
6685           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
6686           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
6687
6688 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
6689
6690         * as/asx8051.dsp: added mcs51/strcmpi.h
6691         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
6692         * as/hc08/aslink.h: updated lnksect prototype
6693         * as/hc08/asm.h,
6694         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
6695         * as/hc08/asmain.c,
6696         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
6697           (newdot): handle A_ABS
6698         * as/hc08/asout.c,
6699         * as/mcs51/asout.c (outarea): output address
6700         * as/hc08/lkaomf51.c,
6701         * as/mcs51/lkaomf51.c: disabled unused array UsageType
6702         * as/hc08/m08pst.c,
6703         * as/mcs51/i51pst.c,
6704         * as/z80/z80pst.c: "ABS" is not A_OVR
6705         * as/hc08/lkarea.c (newarea): read a_addr,
6706           (lnkarea): added codemap array, sort absolute areas to the front,
6707            combine all GSINITx/GSFINAL,
6708           (find_empty_space, allocate_space): new functions,
6709           (lnksect): return next address, handle absolute sections
6710         * as/mcs51/lkarea.c (newarea): read a_addr,
6711           lnksect2 prototype changed,
6712           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
6713           (find_empty_space, allocate_space): new, factored out of lnksect2,
6714           (lnksect2): return next address, handle absolute sections
6715         * as/hc08/lkhead.c,
6716         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
6717         * as/hc08/lklibr.c (addfile, fndsym),
6718         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
6719           index out of range and detect both '\' and '/'
6720         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
6721         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
6722           regression tests (ds390 cannot return bool yet)
6723         * doc/sdccman.lyx: changed version number, document changed --no-peep,
6724           document critical interrupts on z80, document changed SDCC define
6725         * src/asm.c (_asxxxx_mapping): fixed .org directive,
6726           (_a390_mapping): added .org directive
6727         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
6728           (genMultOneByte): fixed warnings
6729         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
6730           ones
6731         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
6732         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
6733           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
6734         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
6735         * src/pic16/main.c: removed newReg prototype
6736         * src/pic16/pcode.c,
6737         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
6738           warnings
6739         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
6740           ones
6741         * src/pic16/ralloc.c
6742         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
6743           to fix warnings
6744         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
6745           from short to PIC_OPTYPE
6746         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
6747         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
6748           optype from short to PIC_OPTYPE
6749         * src/port.h: made int_size unsigned to fix warnings
6750         * src/SDCC.y: fixed warning on MSVC
6751         * src/SDCCicode.c (getArraySizePtr): return unsigned int
6752         * src/SDCCopt.c (convertToFcall): fixed warnings
6753         * src/SDCCsymt.h: removed double prototype for genSymName
6754         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
6755           offset int to fix warnings
6756
6757 2006-04-22 Borut Razem <borut.razem AT siol.net>
6758
6759         * doc/sdccman.lyx, */Makefile, */Makefile.in:
6760           references to CVS replaced with Subversion
6761
6762 2006-04-21 Borut Razem <borut.razem AT siol.net>
6763
6764         * doc/sdccman.lyx, */Makefile, */Makefile.in:
6765           references to CVS replaced with Subversion
6766
6767 2006-04-19 Borut Razem <borut.razem AT siol.net>
6768
6769         * src/version.awk: adapted for svn
6770         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
6771           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
6772           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
6773           /binutils-avr/etc/*.vi, *.jin: removed all properties
6774           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
6775
6776 2006-04-19 Borut Razem <borut.razem AT siol.net>
6777
6778         * CVS to Subversion migration completed
6779
6780 2006-04-18 Borut Razem <borut.razem AT siol.net>
6781
6782         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}/lib/pic/*.o,
6783           ${DEV_ROOT}/lib/src/pic/libdev/*.S, ${DEV_ROOT}/lib/src/pic/libdev/*.inc
6784
6785 2006-04-17 Borut Razem <borut.razem AT siol.net>
6786
6787         * device/include/Makefile.in: added pic/*.inc to the installation
6788
6789 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
6790
6791         * support/regression/collate-results.py: fixed output in case of
6792         a valdiag error
6793         * support/regression/generate-cases.py: fixed splitting of pathnames
6794         with dots
6795         * as/hc08/lklibr.c (addfile),
6796         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
6797
6798 2006-04-11 Raphael Neider <rneider AT web.de>
6799
6800         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
6801         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
6802         * src/pic16/pcode.c (assignValnums): fixed #1460578
6803
6804 2006-04-11 Raphael Neider <rneider AT web.de>
6805
6806         * device/lib/pic/libdev/*.c,
6807         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
6808           fixes #1468739, enables compilation in --std-c99 mode
6809         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
6810
6811 2006-04-11 Raphael Neider <rneider AT web.de>
6812
6813         * src/pic/device.c (find_device): removed debug output
6814           (list_valid_pics): enabled verbose listing of supported devices
6815         * device/include/stdbool.h: define bool as char for pic14/16 as well
6816
6817 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6818
6819         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
6820
6821 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6822
6823         * .version: bumped version to 2.5.6
6824         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
6825
6826 2006-04-06 Raphael Neider <rneider AT web.de>
6827
6828         * .version: bumped version to 2.5.6 (pic14 ABI changed)
6829         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
6830         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
6831           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
6832             pic14_constructAbsMap
6833           (pic14printPublics): declare absolute global symbols as global
6834           (pic14createInterruptVect),
6835         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
6836           (newReg): assume new registers unused, use correct name in
6837             hashtable (reg->name instead of name), more debugLog output
6838         * src/pic/device.h (PIC_device): added fields for verbose output
6839         * src/pic/device.c: moved device definition to pic14devices.txt,
6840             added routines for runtime parsing of pic14devices.txt,
6841             added support for second config word
6842         * src/pic/main.c (_process_pragma): removed #pragma maxram,
6843           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
6844           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
6845           (_pic14_parseOptions): moved pCodeInitRegisters here
6846           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
6847         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
6848           (pCodeInitRegisters): rewrapped comments, perpared new approach to
6849             handling the pseudo stack
6850         * device/lib/Makefile.in: ignore failures in objects-pic16,
6851         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
6852         * device/lib/pic/NEWS: document new dependency on picXXX.lib
6853         * device/lib/pic/Makefile.subdir,
6854         * device/lib/pic16/Makefile.subdir: improved clean rules
6855         * device/lib/pic/libdev/: NEW, pic14 device libraries
6856         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
6857         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
6858         * device/include/Makefile.in: create subdir and install pic14 headers
6859         * device/include/pic/p16f_common.inc: removed unused declarations
6860         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
6861             PICs from inc2h.pl v1.6,
6862             replaced BIT_AT macros with struct declarations
6863         * device/include/pic/pic14devices.txt: definition of supported devices,
6864             all above improvements contributed by Zik Saleeba, thanks
6865         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
6866         * support/scripts/sdcc.nsi: also install pic14 device libraries and
6867             headers
6868
6869 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6870
6871         * device/include/mcs51/c8051f410.h: added interrupt numbers,
6872         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
6873           thanks to Charles Olds
6874
6875 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6876
6877         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
6878
6879 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6880
6881         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
6882         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
6883         * support/regression/bug1464657.c: added, new test
6884
6885 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6886
6887         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
6888           version number
6889
6890 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6891
6892         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
6893           --no-peep and --peep-file <file> are used don't use default rules but
6894           do use the <file>
6895
6896 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6897
6898         * src/mcs51/gen.c (genCall): fixed bug 1457608
6899
6900 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6901
6902         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
6903         changes seem to cause (trigger?) problems with the build system.
6904
6905 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
6906
6907         * src/SDCCpeeph.c (operandsLiteral): new, added,
6908           (callFuncByName): inserted operandsLiteral
6909         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
6910
6911 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6912
6913         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
6914         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
6915
6916 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
6917
6918         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
6919           implemented patch 1120823 Thanks to Willy De la Court (normal
6920           interrupts need an interrupt number now if they are made critical),
6921           and enabled nesting of critical functions though not for gbz80
6922           (genCritical, genEndCritical): added functions
6923           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
6924         * src/z80/mappings.i: added "ei" to all mappings
6925
6926 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6927
6928         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
6929         submitted by the Debian SDCC maintainer Aurelien Jarno:
6930         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
6931         archive with gcc 4.1 on mips and wrote the patch"
6932
6933 2006-03-16 Raphael Neider <rneider AT web.de>
6934
6935         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
6936           the left operand is shorter than the result (c* = lit-c* + int),
6937           fixes bug #1450796
6938         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
6939           OP_SYMBOL
6940
6941 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6942
6943         * src/.version: increased version number to 2.5.5
6944         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
6945         linking is done manually in pic16 port's _linkEdit,
6946         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
6947         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
6948         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
6949         allocate asmop as AOP_ACC,
6950         (aopForRemat): added parameter 'bool result' in function declaration,
6951         (pic16_aopGet): return AOP_ACC when accessing WREG,
6952         (pic16_popGetTempReg): minor modification,
6953         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
6954         'pic16_allocWithIdx',
6955         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
6956         calling function in absolute addresses,
6957         (genAssign): take into account AOP_ACC asmop,
6958         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
6959         * src/pic16/pcoderegs.c: some debug functions and lines added,
6960         * src/pic16/ralloc.c (decodeRegType): added but commented out,
6961         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
6962         register too,
6963         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
6964         call to allocReg, not by manually allocating a new one,
6965         (pic16_assignRegisters): now before going through the register
6966         allocating functions mark all registers as free. This eliminates some
6967         side effects resulting from peephole parser done earlier in the backbone
6968
6969 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
6970
6971         * src/SDCCicode.c (geniCodeLogic),
6972         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
6973
6974 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
6975
6976         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
6977           (genSend): bugfix, do not allocate and free twice,
6978           (shiftRLong): handle partially overlapping aops
6979         * support/regression/tests/bitopcse.c: fixed warning redefined idata
6980
6981 2006-03-08 Borut Razem <borut.razem AT siol.net>
6982
6983         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
6984           for pic16
6985
6986 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
6987
6988         * support/regression/tests/bug1409955.c: new, added
6989         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
6990         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
6991           (aopForSym, aopOp): increment asmop.allocated if reused,
6992           (freeAsmop): decrement asmop.allocated and check for zero instead of
6993           using asmop.freed,
6994           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
6995           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
6996            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
6997            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
6998            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
6999            genSignedRightShift, genRightShift, genDataPointerGet,
7000            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
7001            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
7002             in reverse order from allocation,
7003           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
7004             added swappedLR to keep track
7005         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
7006           pdata & code for GCC, z80, gbz80 & hc08
7007         * support/regression/tests/zeropad.c: moved defines to testfwk.h
7008
7009 2006-03-08 Raphael Neider <rneider AT web.de>
7010
7011         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
7012
7013 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
7014
7015         * device/include/mcs51/c8051f410.h: new SiLabs mcu
7016         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
7017         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
7018
7019 2006-03-06 Borut Razem <borut.razem AT siol.net>
7020
7021         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
7022           made the linker quiet
7023
7024 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
7025
7026         * src/pic16/gen.c (genPcall): fixed bug #1443644
7027         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
7028         which dumps before the function entry point a data byte which represents
7029         the number of the local variables used by the specified function, added
7030         'xinst' for initial support for Extended Instruction Support,
7031         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
7032         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
7033         port->fun_prefix anymore (may change later),
7034         (genFunction, genEndFunction): do not store/restore local registers for
7035         _main (this should take care the --main-return command line option in
7036         the future),
7037         (genOr): removed some legacy pic-port instructions,
7038         * src/pic16/genarith.c (genAddLit): re-enabled old code because
7039         performing operations with SFR's causes data to be written more than
7040         once to each SFR. Perhaps SFRs should be handled in special cases...
7041         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
7042         pcode.h
7043         * src/pic16/main.c (_process_pragma): stack bound checking did not take
7044         into account for stack starting position,
7045         (struct OPTIONS pic16_optionsTable): added command line argument
7046         --extended or -y for Extended Instruction Support,
7047         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
7048         (deassignLRs): *** perhaps the most important change, old 'for' code
7049         (commented out for reference), didn't account for some registers which
7050         were left marked 'not free' after a pointer operation. The change
7051         reduces register usage a lot in some cases
7052
7053 2006-03-04 Borut Razem <borut.razem AT siol.net>
7054
7055         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
7056           _clean
7057         * support/regression/tests/bug-524697.c: decreased array size for
7058           mcs51 to fit into the internal RAM
7059         * support/regression/Makefile.in: a little bit more verbose
7060
7061 2006-03-03 Borut Razem <borut.razem AT siol.net>
7062
7063         * support/regression/fwk/lib/testfwk.c,
7064           support/regression/fwk/include/testfwk.h: introduced function
7065           _prints(), nonrecursive _printn(), call _initEmu() from main()
7066         * support/regression/ports/gbz80/support.asm,
7067           support/regression/ports/ucz80/support.asm,
7068           support/regression/ports/z80/support.asm,
7069           support/regression/ports/ds390/support.c,
7070           support/regression/ports/hc08/support.c,
7071           support/regression/ports/host/support.c,
7072           support/regression/ports/mcs51/support.c,
7073           support/regression/ports/xa51/support.c: added empty _initEmu()
7074           function
7075         * support/regression/ports/pic16/gpsim.cmd,
7076           support/regression/ports/pic16/spec.mk,
7077           support/regression/ports/pic16/support.c,
7078           support/regression/Makefile.in: added pic16 regression test
7079
7080 2006-03-01 Raphael Neider <rneider AT web.de>
7081
7082         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
7083           genConstPointerGet): use safe way of generating MOVFF to cover
7084             literals as well as registers, fixes bug #1440527
7085         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
7086             dereference
7087           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
7088             more correctly, fixes bug #1232186
7089           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
7090         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
7091             gplink guess the correct processor in more cases, applied patch
7092             from Till Riedel attached to and fixing bug #1436552
7093
7094 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7095
7096         * support/regression/tests/array.c: added, contains check for #1434401
7097         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
7098
7099 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
7100
7101         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
7102         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
7103         * device/include/mcs51/c8051f326.h,
7104         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
7105         * device/include/mcs51/c8051f000.h,
7106         * device/include/mcs51/c8051f018.h,
7107         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
7108           PCON_IDLE,PCON_STOP and added sfr16 definitions
7109
7110 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
7111
7112         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
7113           genGetWord): fixed bug 1409955
7114
7115 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
7116
7117         * device/include/hc08/mc68hc908gp32.h,
7118         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
7119
7120 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
7121
7122         * src/SDCCast.c (constExprValue): return NULL if not a value
7123         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
7124         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
7125         * support/regression/tests/bitfields.c: enabled signed bitfield for all
7126
7127 2006-02-13 Borut Razem <borut.razem AT siol.net>
7128
7129         * src/regression/ptrarg.c: added, fails due to bug #1430967
7130         * src/regression/Makefile: ptrarg.c added, ...
7131
7132 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
7133
7134         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
7135         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
7136
7137 2006-02-11 Borut Razem <borut.razem AT siol.net>
7138
7139         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
7140           print "Processor: xxx" message to stdout only if --verbose
7141
7142 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
7143
7144         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
7145         * support/regression/tests/bug1426356.c: added
7146         * support/regression/tests/bitfields.c: removed 2 tests
7147
7148 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
7149
7150         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
7151         * device/include/mcs51/c8051f330.h,
7152         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
7153           PCON_IDLE,PCON_STOP and added sfr16 definitions
7154         * device/lib/_divsint.c,
7155         * device/lib/_divuint.c,
7156         * device/lib/_divulong.c,
7157         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
7158           register bank bug for small stackauto
7159
7160 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
7161
7162         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
7163
7164 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
7165
7166         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
7167         * all.dsp: corrected several bin paths
7168         * device/include/mcs51/c8051f120.h,
7169         * device/include/mcs51/c8051f300.h,
7170         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
7171           to PCON_IDLE,PCON_STOP
7172         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
7173         * device/lib/printf_large.c (output_float): fixed bug 1388703
7174         * support/regression/tests/bug1057979.c: added test for bug 1388703
7175
7176 2006-02-08 Raphael Neider <rneider AT web.de>
7177
7178         * src/pic/pcode.c (pciTRIS): fixed typo,
7179           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
7180           (LinkFlow): fixed handling of flows that end in a call,
7181           (ReuseReg): perform safety check earlier
7182         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
7183             to work with flows at the beginning of a pBlock,
7184             fixes #1426557 (Symbol not previously defined),
7185           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
7186             usage information
7187           (RemoveUnusedRegisters): update register usage info
7188         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
7189             created, reuse existing ones instead
7190         * src/pic/gen.c (genPcall): fixed #1424719
7191
7192 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
7193
7194         * link/z80/lkmain.c,
7195         * link/z80/lklex.c,
7196         * link/z80/lkdata.c,
7197         * link/z80/aslink.h: fixed build on current cygwin:
7198         replaced getline() by lk_getline()
7199
7200 2006-02-01 Borut Razem <borut.razem AT siol.net>
7201
7202         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
7203           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
7204           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
7205           src/regression/bool1.c, src/regression/bool2.c,
7206           src/regression/bool3.c, src/regression/call1.c,
7207           src/regression/compare.c, src/regression/compare10.c,
7208           src/regression/compare2.c, src/regression/compare3.c,
7209           src/regression/compare4.c, src/regression/compare5.c,
7210           src/regression/compare6.c, src/regression/compare7.c,
7211           src/regression/compare8.c, src/regression/compare9.c,
7212           src/regression/configword.c, src/regression/for.c,
7213           src/regression/inline.c, src/regression/mult1.c,
7214           src/regression/nestfor.c, src/regression/or1.c,
7215           src/regression/pointer1.c, src/regression/ptrfunc.c,
7216           src/regression/rotate1.c, src/regression/rotate2.c,
7217           src/regression/rotate3.c, src/regression/rotate4.c,
7218           src/regression/rotate5.c, src/regression/rotate6.c,
7219           src/regression/rotate7.c, src/regression/string1.c,
7220           src/regression/struct1.c, src/regression/sub.c,
7221           src/regression/sub2.c, src/regression/switch1.c,
7222           src/regression/while.c, src/regression/xor.c,
7223           src/regression/create_stc, src/regression/simulate,
7224           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
7225           regression tests
7226         * src/regression/gpsim_assert.h: added
7227
7228 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
7229
7230         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
7231         ((void (code *) (void)) 0) ();
7232         * as/hc08/aslex.c,
7233         * as/hc08/aslink.h,
7234         * as/hc08/asm.h,
7235         * as/hc08/asmain.c,
7236         * as/hc08/lkdata.c,
7237         * as/hc08/lklex.c,
7238         * as/hc08/lkmain.c,
7239         * as/mcs51/aslex.c,
7240         * as/mcs51/aslink.h,
7241         * as/mcs51/asm.h,
7242         * as/mcs51/asmain.c,
7243         * as/mcs51/lkdata.c,
7244         * as/mcs51/lklex.c,
7245         * as/mcs51/lkmain.c,
7246         * as/z80/aslex.c,
7247         * as/z80/asm.h,
7248         * as/z80/asmain.c: fixed build on current cygwin:
7249         replaced getline() by as_getline()
7250
7251 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
7252
7253         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
7254         declarator in the symbol chain
7255         * src/SDCCsymt.h,
7256         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
7257         parameter list for function pointers
7258         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
7259         * support/regression/tests/bug-716242.c: added
7260
7261 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
7262
7263         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
7264         offset if possible
7265         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
7266
7267 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
7268
7269         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
7270         inifinitely recurseable, added static
7271         * support/regression/tests/bug-1408066.c: added
7272
7273 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
7274
7275         * src/SDCCicode.h,
7276         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
7277         renamed, added possibility to create "postLoopLbl"-labels
7278         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
7279         newiTempLoopHeaderLabel
7280         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
7281         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
7282         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
7283         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
7284         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
7285         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
7286         (basicInduction): fixed bug #136564, made static,
7287         (loopInduction): changed parameter of basicInduction, made static,
7288         (addPostLoopBlock): added
7289         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
7290         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
7291         findLoopEndSeq
7292         * support/regression/tests/bug-136564.c: added
7293         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
7294         --std-sdcc99 to LIBSDCCFLAGS
7295
7296 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
7297
7298         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
7299         while loop
7300         * support/regression/tests/bug-1406131.c: added
7301
7302 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
7303
7304         * src/SDCCast.c (decorateType): fix promotion of unary minus
7305         * src/SDCCsymt.c (computeType): beautified
7306         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
7307         (valUnaryPM, valComplement): fix sign and promotion,
7308         (valNot): ANSI: result type is int (SDCC: unsigned char)
7309         * support/regression/tests/uminus.c: speedup by removing superflous
7310         test case 'int'
7311         * support/regression/tests/onebyte.c: added promotion and signedness
7312         tests for unary minus
7313         * support/regressions/tests/bug-477927.c: disable warning about
7314         uninitialized variables
7315         * support/regression/tests/not.c: added
7316
7317 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
7318
7319         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
7320         * src/mcs51/gen.c (gen51Code): show final register usage after
7321         fillGaps in asm with --i-code-in-asm
7322         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
7323         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
7324         incUsed, rliveClear, adjustIChain): made static,
7325         (setFromRange): excluded because it's unused,
7326         (findPrevUseSym, markWholeLoop): added,
7327         (findPrevUse): rewritten; fixes bug 895992; now a complete search
7328         through all branches of predecessors enables sdcc to emit the warning
7329         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
7330         (rlivePoint): made static, added parameter emitWarnings which is only
7331         true during the first run out of two,
7332         (findRecursiveSucc, findRecursivePred): removed,
7333         (computeLiveRanges): made static, added parameter emitWarnings,
7334         (dumpIcRlive): added for debugging only
7335         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
7336         removed prototype of setFromRange()
7337         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
7338         in call of computeLiveRanges()
7339         * support/regression/tests/bug-895992.c: added
7340         * support/regression/tests/bug-971834.c: added
7341         * support/valdiag/tests/bug-895992.c: added
7342         * support/valdiag/tests/bug-971834.c: added
7343
7344 2005-12-18 Raphael Neider <rneider AT web.de>
7345
7346         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
7347           (genUnpackBits): improved code for direct operands,
7348           (genPackBits): improved code for literal assignment to bitfields
7349             and for direct destination operands (no FSR indirection),
7350             prevented redundant AND, fixes #1362800,
7351           (AccLsh): added parameter to disable masking of the result
7352         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
7353           skip instructions with side-effects (like incfsz),
7354           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
7355         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
7356         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
7357           fixes #1375263
7358
7359 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
7360
7361         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
7362         volatile variables as spill location
7363
7364 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
7365
7366         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
7367         replacing literals
7368         * support/regression/tests/bug-1376320.c: added
7369
7370 2005-12-08 Raphael Neider <rneider AT web.de>
7371
7372         * src/pic/device.c: renamed is_shared to pic14_is_shared
7373         * src/pic/gen.c (genIfx): re-enabled handling of sbits
7374         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
7375           (is_valid_identifier): added for above workaround
7376
7377 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
7378
7379         * device/lib/Makefile.in: fixed to enable port-specific-objects
7380         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
7381           char, thanks Hubert Sack
7382         * doc/sdccman.lyx: documented --xstack-loc,
7383           elaborated a bit more on interrupts and pitfalls,
7384           removed "setjmp/longjmp unsupported",
7385           documented some unsupported C99 features
7386         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
7387         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
7388           if, thanks Hubert Sack
7389         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
7390         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
7391           make make_library
7392         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
7393           regression tests can report resource usage (rfe 700441)
7394         * support/regression/collate-results.py: report resource usage
7395         * support/regression/ports/ds390/spec.mk,
7396         * support/regression/ports/hc08/spec.mk,
7397         * support/regression/ports/mcs51/spec.mk,
7398         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
7399         * support/regression/ports/ds390/uCsim.cmd,
7400         * support/regression/ports/hc08/uCsim.cmd,
7401         * support/regression/ports/mcs51/uCsim.cmd,
7402         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
7403         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
7404           library, use the default one
7405         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
7406           building the library
7407
7408 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
7409
7410         * config.dsp: added dependency on .version and configure_vc.awk
7411         * device/include/setjmp.h: updated for --stack-auto and --xstack
7412         * device/include/mcs51/at89c51snd1c.h: corrected line endings
7413         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
7414         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
7415         * device/lib/libsdcc.lib: added _setjmp
7416         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
7417           (decorateType): fixed bug 1372851,
7418           (optimizeGetHbit): fixed warning
7419         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
7420           array initialisation
7421         * support/regression/tests/bug1057979.c: added test for bug 1358192
7422         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
7423
7424 2005-12-03 Borut Razem <borut.razem AT siol.net>
7425
7426         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
7427           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
7428
7429 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
7430
7431         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
7432         createIval): implement symbol independant "flexible array member",
7433         (createIvalCharPtr): implemented flexible array initialisation with a
7434         string
7435         * src/SDCCsymt.c (copyStruct): removed,
7436         (getSize): fixed misleading comment,
7437         (getAllocSize): removed, the additional allocation size is now in
7438         sym->flexArrayLength,
7439         (checkStructFlexArray): new, syntax checks for flexible array members,
7440         (compStructSize): added syntax checks for "flexible array members"
7441         (copyStruct): removed,
7442         (copyLinkChain): removed inefficient fix for bug 770487
7443         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
7444         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
7445         symbol->flexArrayLength
7446         * src/SDCCerr.c,
7447         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
7448         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
7449         * support/regression/tests/structflexarray.c: added
7450         * support/valdiag/tests/structflexiblearray.c: added
7451
7452 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
7453
7454         * src/SDCCast.c (decorateType): fixed bug 1368489
7455         * support/Util/SDCCerr.c,
7456         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
7457
7458 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7459
7460         * device/include/mcs51/at89c51snd1c.h: added file submitted by
7461           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
7462
7463 2005-11-27 Borut Razem <borut.razem AT siol.net>
7464
7465         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
7466           support/cpp2/mkdeps.h: added command line option
7467           -obj-ext=<extension> to SDCPP to define object file externion, used
7468           for generation of make dependencies (-M)
7469         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
7470
7471 2005-11-26 Borut Razem <borut.razem AT siol.net>
7472
7473         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
7474           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
7475           added pic and pic16 libraries
7476
7477 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7478
7479         * device/include/float.h: Corrected typo in prototype of __fsgt
7480
7481 2005-11-25 Borut Razem <borut.razem AT siol.net>
7482
7483         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
7484           added creation of model-mcs51-stack-auto libraries
7485
7486 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
7487
7488         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
7489         and fields-list too
7490         * src/SDCCast.c (createIvalArray): removed obsolete comment
7491
7492 2005-11-24 Borut Razem <borut.razem AT siol.net>
7493
7494         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
7495           added missing device/lib/mcs51/crt*.asm sources
7496
7497 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
7498
7499         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
7500
7501 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
7502
7503         * device/lib/_fs2schar.c,
7504         * device/lib/_fs2sint.c,
7505         * device/lib/_fs2slong.c: optimized inline asm
7506
7507 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7508
7509         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
7510           Better handling of floats between -1.0 and 0.0.
7511
7512 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7513
7514         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
7515           (the missing "if"s prohibited removal of redundant labels)
7516
7517 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7518
7519         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
7520           Properly convert floats between -1.0 and 0.0 to long, int, and char
7521           types (max integer value of negative floats tends to zero).
7522         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
7523           Removed changes made so to work properly with floats between
7524           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
7525           and _fs2char.c
7526
7527 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
7528
7529         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
7530         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
7531         (genCast) cosmetic change
7532         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
7533         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
7534         from mcs51
7535         * support/regression/tests/bitfields (testSignedBitfields): added
7536
7537 2005-11-18 Borut Razem <borut.razem AT siol.net>
7538
7539         * sdcc/device/lib/Makefile.in: remove all unnecessary files
7540         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
7541           introduced SILENT option to make building of pic16 libraries less
7542
7543 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7544
7545         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
7546           Now they work properly with floats between -1.0 and 0.0
7547         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
7548
7549 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
7550
7551         * src/SDCCicode.c (printOperand): added missing else
7552
7553 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
7554
7555         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
7556         reformatted for better readability
7557         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
7558         signed bitfields
7559
7560 2005-11-17 Borut Razem <borut.razem AT siol.net>
7561
7562         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
7563           introduced SILENT option to make building of pic16 libraries less
7564           verbose - used for nightly snapshot build
7565         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
7566           available on Win32 platforms.
7567         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
7568           medium, large, pic and pic16
7569
7570 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7571
7572         * device/lib/printf_large.c: Temporary patch for bug 1358192:
7573           printf("%f"...) sets fraction to zero.
7574
7575 2005-11-16 Raphael Neider <rneider AT web.de>
7576
7577         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
7578           fixes #1357221
7579         * src/pic/gen.c (genIfx): implemented for CARRY bit
7580         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
7581           to generic pointers, fixes #1357332,
7582           (pic16_movLit2f): NEW,
7583           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
7584
7585 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
7586
7587         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
7588
7589 2005-11-11 Raphael Neider <rneider AT web.de>
7590
7591         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
7592         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
7593           compute pointer's type from operand,
7594           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
7595           improved single bit reads, fixes bug #1353379
7596
7597 2005-11-09 Borut Razem <borut.razem AT siol.net>
7598
7599         * support/scripts/sdcc.nsi: added lib/pic to the package
7600
7601 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
7602
7603         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
7604
7605 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
7606
7607         * support/regression/tests/bug1348008.c: added
7608         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
7609         * support/regression/tests/bug1337835.c: updated comment
7610
7611 2005-11-06 Borut Razem <borut.razem AT siol.net>
7612
7613         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
7614           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
7615           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
7616           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
7617           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
7618           dynamic construction of cl_error_class and derivates - 2.nd try
7619
7620 2005-11-05 Borut Razem <borut.razem AT siol.net>
7621
7622         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
7623           bug, which caused Bus Errors on sparc solaris
7624
7625 2005-11-04 Borut Razem <borut.razem AT siol.net>
7626
7627         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
7628           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
7629           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
7630           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
7631           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
7632           and derivates to resolve the initialization problem on OSX
7633
7634 2005-11-02 Borut Razem <borut.razem AT siol.net>
7635
7636         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
7637           corrected typo - #include <winsock2.h>
7638
7639 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
7640
7641         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
7642           (_asxxxx_mapping): added org directive for future enhancements
7643
7644 2005-11-01 Borut Razem <borut.razem AT siol.net>
7645
7646         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
7647           enabled sockets on WIN32
7648         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
7649
7650 2005-10-31 Borut Razem <borut.razem AT siol.net>
7651
7652         * support/regression/generate-cases.py: escape backslashes in {testcase}:
7653           WIN32 backslash path delimiters should be escaped when used in C strings
7654         * support/regression/tests/bitfields.c: exclude failing assertions for
7655           __CYGWIN32__ and __MINGW32__ hosts
7656
7657 2005-10-30 Borut Razem <borut.razem AT siol.net>
7658
7659         * src/SDCCutil.c: corrected double comparison typo
7660
7661 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
7662
7663         * device/lib/medium/Makefile: added for new memory model medium
7664         * device/include/asm/mcs51/features.h: updated for medium/pdata
7665         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
7666           added Multiply & Accumulate sbit's and MAC0_PAGE define
7667         * device/include/mcs51/c8051f300.h: added sfr16 definitions
7668         * device/include/mcs51/c8051f310.h: added sfr16 definitions
7669         * device/lib/_mullong.c: update for medium model
7670         * device/lib/incl.mk: added medium model
7671         * doc/sdccman.lyx: documented medium model
7672         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
7673         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
7674         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
7675         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
7676           (allocParms): set SCLS and OCLS to pdata for medium model
7677         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
7678           for pdata,
7679           (powof2): return <0 if not power of 2
7680         * src/avr/gen.c (genBitWise): use updated powof2
7681         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
7682           (shiftR2Left2Result): small optimization in setup, save acc when storing,
7683           (shiftLLeftOrResult): use B if necessary
7684         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
7685         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
7686         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
7687         * support/regression/Makefile.in: added test-mcs51-medium
7688         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
7689
7690 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
7691
7692         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
7693         specifier unsigned
7694         * device/lib/time.c (mktime): fixed bug 1334315
7695
7696 2005-10-28 Raphael Neider <rneider AT web.de>
7697
7698         * device/include/pic/p16f_common.inc: added common declarations
7699         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
7700
7701 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
7702
7703         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
7704           (aopPutUsesAcc): added to predict accumulator use,
7705           (assignResultValue): save acc if necessary,
7706           (genMinusDec): store result if indirectly addressed,
7707           (genDivOneByte):  save acc if necessary,
7708           (movLeft2Result): bugfix if left already in acc,
7709           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
7710             attention to accumulator use (esp. pdata),
7711           (genReceive): receive pdata correctly
7712         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
7713         * src/SDCCicode.h: added isOperandInPagedSpace prototype
7714
7715 2005-10-27 Raphael Neider <rneider AT web.de>
7716
7717         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
7718
7719 2005-10-27 Raphael Neider <rneider AT web.de>
7720
7721         * .version: changed version to 2.5.4
7722         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
7723         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
7724           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
7725             arithmetics support routines
7726         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
7727         * device/lib/Makefile.in: also create installdir for pic
7728
7729         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
7730           pic14 port as well
7731         * src/pic/device.c (dump_sfr): rewritten to delegate register
7732           placement to the linker (use `extern sym' rather than sym EQU addr),
7733           (validAddress): fixed to check last specified address
7734         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
7735           (popGetLit): truncate literal value to 8 bit,
7736           (popGet): moved assert to more appropriate place
7737           (popGetExternal): create pCode operand from and mark the according
7738             symbol as being `extern'
7739           (popGetAddr): added sanity check on immediate's offset, provide
7740             GPOINTER tag on demand
7741           (aopPut): fixed for immediates,
7742           (mov2w_op): move operand's address or contents to WREG (depending on
7743             operand type), safer variant of mov2w,
7744           (movwf,call_libraryfunc): NEW, handy abbreviations,
7745           (get_argument_pcop,get_return_val_pcop,pass_argument,
7746           get_returnvalue): interface for accessing function parameters and
7747             return values,
7748           (assignResultValuei,genRet): use new parameter/return value interface
7749           (pic14_getDataSize): back to old version handling generic pointers,
7750           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
7751             provided implementation and/or fixed old one,
7752           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
7753             calls, removed legacy 8051 reference code
7754           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
7755           (loadSignToC): NEW, move the operands sign bit to CARRY,
7756           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
7757             genRightShiftSigned, accepts negative shift counts,
7758           (setup_fsr): load FSR and adjust IRP (indirect memory access),
7759           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
7760             generic pointers, __data pointers and __code pointers,
7761           (genUnpackBits,genPackBits): rewritten to work with generic pointers
7762             and signed bitfields, limit bitfields to 8 bit,
7763           (genDataPointerGet): fixed number of bytes read,
7764           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
7765           (genPointerGet,genPointerSet): fixed handling of __code pointers,
7766             pointers to constant data are no longer assumed to point to __code
7767             space, removed invalid pointer types,
7768           (bitpatternFromVal): retrieve the PICs representation of an integer
7769             or float literal,
7770           (genDataPointerSet): fixed assigning to po_immediate operands,
7771           (genGenPointerSet): implemented as library call,
7772           (genIfx): fixed incorrect condition,
7773           (genAddrOf): limit generic pointers' addresses to 2 bytes,
7774             provide GPOINTER tag according to destination's storage class,
7775           (genCast): added code to handle casting to generic pointers, added
7776             sign-/zero extension of the result
7777           (aop_isLitLike,op_isLitLike): fixed handling of immediates
7778         * src/pic/gen.h: added macros to access IRP bit in STATUS register
7779         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
7780           extend the result
7781         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
7782           address/register resides in the shared banks
7783           (emitSymbolToFile): improved to handle global and `pinned' symbols,
7784             put all variables into separate sections (have the linker arrange
7785             them)
7786           (picglue): put init code and interrupt handlers in separate sections
7787         * src/pic/main.c: added port specific options table, modified to PORT
7788           structure to make GPOINTERs 3 byte, added pic14_options
7789           (_pic14_do_link): private linking routine (update paths to libraries,
7790             add libsdcc.lib by default)
7791         * src/pic/main.h: declare pic14_options
7792         * src/pic/pcode.c: fixed instructions i/o relations,
7793           (RegCond): reverted to correct version,
7794           (newpCodeOpLit): truncate literals to 8 bit,
7795           (genericPrint): added debug output,
7796           (getRegFromInstruction): fixed for various operand types, simplified
7797           (BuildFlow): fixed broken handling of isntructions with labels
7798           (LinkFlow): start at last instruction in flow (skip trailing comments),
7799             pass the flow on to the next instruction after CALL
7800           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
7801           (insertPCodeInstruction): fixed inserting after a skip instruction,
7802           (DoBankSelect): fixed for labeled instructions
7803           (OptimizepBlock): honor --nopeep switch
7804           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
7805         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
7806         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
7807           (pCodeOptime2pCodes): allow disabling this optimization via
7808             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
7809             but is still buggy), started implementation of a dataflow based
7810             pCode optimization (CSE + dead code elimination)
7811           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
7812         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
7813           names are independant of the stack location and therefore portable across
7814           devices
7815
7816 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
7817
7818         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
7819           (selectSpil): fixed bug 1337835 by not spilling bit variables
7820         * support/regression/tests/bug1337835.c: added test for this bug
7821         * src/mcs51/peeph.def: restart after rule 3.c,
7822           addded rules 263.x to optimize loading constants
7823
7824 2005-10-26 Raphael Neider <rneider AT web.de>
7825
7826         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
7827         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
7828           (genAssign): emit warning when casting literals to generic pointer
7829             type, also applies when taking the address of a fixed variable,
7830           (genCast): improved casting to generic pointers
7831         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
7832           extern variables, added verbose error message
7833         * device/include/pic16/{string.h,errno.h}: added #pragma library c
7834
7835 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
7836
7837         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
7838         carry must be complemented too
7839         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
7840         could be emitted by genMinus
7841         * src/SDCCval.c (constVal): fixed bug 1305065
7842
7843 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
7844
7845         * src/SDCCast.c (addCast): added promotion for bit variables
7846         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
7847         promotion casts + optimisation
7848         (optimizeGetWord): fix warning 'i' might be used uninitialized
7849         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
7850         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
7851
7852 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
7853
7854         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
7855         all chars are promoted to int; promotion should be handled in SDCCast.c
7856
7857 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7858
7859         * device/lib/_strcmp.c: Fixed bug 1326457
7860
7861 2005-10-11 Raphael Neider <rneider AT web.de>
7862
7863         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
7864         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
7865
7866 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
7867
7868         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
7869         * support/regression/tests/sfr16.c: added test for the sfr32 bug
7870
7871 2005-10-04 Raphael Neider <rneider AT web.de>
7872
7873         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
7874           device/lib/pic16/pics.all: added pic18f1320
7875         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
7876
7877 2005-09-30 Raphael Neider <rneider AT web.de>
7878
7879         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
7880         * src/pic16/devices.inc: NEW, provides device descriptions
7881         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
7882
7883 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
7884
7885         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
7886           GETHBIT
7887
7888 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
7889
7890         * doc/sdccman.lyx: updated Highest Order Bit documentation,
7891           documented Any Order Bit, Higher Order Byte and Higher Order Word
7892         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
7893         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
7894           (optimizeGetAbit): new, to get any bit, not only the high bit,
7895           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
7896           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
7897           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
7898           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
7899             RIGHT_OP: also try GETBYTE, GETWORD optimization,
7900             GETABIT, GETBYTE, GETWORD: decorate them,
7901           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
7902           (ast_print): added GETABIT, GETBYTE, GETWORD
7903         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
7904         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
7905           (geniCodeBinary): new generic binary icode,
7906           (ast2iCode): added GETABIT, GETBYTE, GETWORD
7907         * src/port.h: updated comment for PORT.hasExtBitOp
7908         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
7909           (genGetByte): new, to get a single byte,
7910           (genGetWord): new, to get a word from a long,
7911           (gen51Code): added GETABIT, GETBYTE, GETWORD
7912         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
7913
7914 2005-09-23 Raphael Neider <rneider AT web.de>
7915
7916         * configure.in, configure: have device/lib/pic configured
7917         * device/lib/Makefile.in: added model-pic14
7918         * device/lib/clean.mk: added pic/ to clean rule
7919         * device/lib/pic: added rudimentary pic14 library providing support
7920           functions for multiplication/division/generic pointer access
7921         * src/SDCCopt.c (convilong): mark support functions as extern
7922           for pic14 port as well
7923         * src/pic/gen.c (genMult): added assertions,
7924           (genpic14Code): emit warning on unhandled iCodes
7925         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
7926         * src/pic/pcode.c (pCodeOpCopy),
7927         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
7928           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
7929           SFR_REGISTER}), made safe for future extensions
7930         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
7931           instructions even if preceeded by SKIP instructions (also remove
7932           them); removed unused code
7933         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
7934           prevents leaving parts of the structure uninitialized after copying
7935
7936 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
7937
7938         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
7939           ago by me
7940         * support/regression/tests/addsub.c: added test for the bug
7941
7942 2005-09-21 Raphael Neider <rneider AT web.de>
7943
7944         * device/include/pic16/pic18f1220.h,
7945           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
7946         * device/lib/pic16/Makefile.rules: added missing opening paren
7947         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
7948           are provided in genutils.c,
7949           (genUminusFloat,genUminus,genCmpEq): added asserts on different
7950           operand/result sizes,
7951           (genCmp): assert on NULL pointers first, then check deref'ed values
7952         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
7953           result size
7954
7955 2005-09-18 Raphael Neider <rneider AT web.de>
7956
7957         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
7958           as these are now unused,
7959           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
7960         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
7961           local, avoids uninitialized pointer dereference on r->name
7962         * src/pic16/ralloc.c (newReg): fixed indentation
7963
7964 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
7965
7966         * src/SDCCval.c (constVal): fixed bug 730366
7967         * support/Util/SDCCerr.c,
7968         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
7969
7970 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
7971
7972         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
7973
7974 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
7975
7976         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
7977
7978 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7979
7980         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
7981           (hex2dec): made hex_digit unsigned char, removed ascii dependance
7982         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
7983           (hex2dec): made hex_digit unsigned char, removed ascii dependance
7984         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
7985         * packihx/packihx.c (hexDigit): made c unsigned char
7986         * as/mcs51/lklibr.c (fndsym),
7987         * link/z80/lkgb.c (gb),
7988         * link/z80/lklibr.c (fndsym),
7989         * link/z80/lkrloc.c (relr),
7990         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
7991         * src/SDCC.lex (checkCurrFile, process_pragma),
7992         * src/SDCCglue.c (spacesToUnderscores),
7993         * src/SDCCmain.c (setParseWithComma, processFile),
7994         * src/asm.c (tvsprintf, printCLine),
7995         * src/avr/gen.c (emitcode, aopPut),
7996         * src/ds390/gen.c (emitcode),
7997         * src/hc08/gen.c (emitcode, emitinline),
7998         * src/mcs51/gen.c (emitcode, genInline),
7999         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
8000           tokenizeLineNode),
8001         * src/pic/ralloc.c (debugLog),
8002         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
8003           tokenizeLineNode),
8004         * src/pic16/ralloc.c (debugLog),
8005         * src/z80/main.c (_process_pragma):
8006            made all ctype.h function calls safe
8007         * src/SDCCopt.c: include math.h for fabs
8008         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
8009           and used them throughout the code to make ctype.h function calls safe
8010         * src/ds390/main.c (asmLineNodeFromLineNode),
8011         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
8012         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
8013            unsigned char*
8014         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
8015           (newpCodeAsmDir): made ctype.h function calls safe
8016         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
8017           pic16_emitcode):  made lbp unsigned char*
8018         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
8019           (pic16_newpCodeAsmDir): made ctype.h function calls safe
8020         * src/xa51/gen.c (emitcode),
8021         * src/z80/gen.c (_emit2): made lbp unsigned char*
8022         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
8023            char*
8024
8025 2005-09-05 Raphael Neider <rneider AT web.de>
8026
8027         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
8028           access bank splitpoint
8029
8030 2005-09-05 Raphael Neider <rneider AT web.de>
8031
8032         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
8033
8034 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
8035
8036         * .version: changed to version 2.5.3
8037         * doc/sdccman.lyx: changed version to 2.5.3,
8038           documented --codeseg and --constseg and pragma codeseg and constseg,
8039           documented bit parameters (reentrant) and bit returning
8040         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
8041            currFunc->recvSize, but is this ok for all ports?
8042           (ast2iCode): result of ~ on unsigned char must be cast to int for
8043            bool to work
8044         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
8045           function pointers in bit space
8046         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
8047           (processFuncArgs): call port.reg_parm() with reentrancy info
8048         * src/port.h,
8049         * src/avr/main.c,
8050         * src/ds390/main.c,
8051         * src/hc08/main.c,
8052         * src/pic/main.c,
8053         * src/pic16/main.c,
8054         * src/xa51/main.c,
8055         * src/z80/main.c: port.reg_parm prototype extended with
8056           "bool reentrant" parameter
8057         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
8058           options.stackAuto for allocating bit register parameters
8059         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
8060           (genSend): set BitBankUsed if it is,
8061           (selectRegBank): factored out of genCall for use in genPcall,
8062           (genCall): removed redundant dtype assignmen, use selectRegBank,
8063           (genPcall): handle returning in Carry properly, save in F0 if needed,
8064           (genReceive): handle bit register parameters
8065         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
8066           (mcs51_assignRegisters): enable bit registers for all reentrant
8067            functions and don't set BitBankUsed unconditionally
8068         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
8069         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
8070         * support/regression/tests/funptrs.c: added tests for BOOL and for return
8071
8072 2005-08-27 Borut Razem <borut.razem AT siol.net>
8073
8074         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
8075         ppc-osx (Darwin) does not support -u option. It seems that it is
8076         supported only on Linux - GNU cp
8077
8078 2005-08-25 Borut Razem <borut.razem AT siol.net>
8079
8080         * sim/ucsim/gui.src/serio.src/Makefile.in,
8081           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
8082           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
8083           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
8084           install and strip, since the strip at /usr/ccs/bin should be used
8085           on solaris
8086
8087 2005-08-24 Borut Razem <borut.razem AT siol.net>
8088
8089         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
8090
8091 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
8092
8093         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
8094         ffffffffu
8095
8096 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
8097
8098         * as/mcs51/aslink.h: completed lkrloc.c prototypes
8099         * as/mcs51/lkmain.c (link_main): fixed warning
8100         * device/include/stdbool.h: ds390 has no advanced bit support yet
8101         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
8102         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
8103         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
8104           and updated their macros
8105         * src/SDCCval.c (constVal): updated comment for renamed b_long
8106
8107 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
8108
8109         * as/mcs51/asdata.c: changed ctype['['] to BINOP
8110         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
8111           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
8112           (oprio): set priority for '['
8113         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
8114            and adb_24_bit
8115         * as/mcs51/asm.h: added defines R_BIT and S_BIT
8116         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
8117         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
8118         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
8119           added overlayable BIT_BANK area
8120         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
8121           (summary2): explain 'T' in legenda
8122         * as/mcs51/lkrloc.c: replaced old K&R style,
8123           (relr): added R_BIT processing,
8124           (errmsg): added "Bit-addressable relocation error",
8125           (adb_bit): added for converting from byte- to bit-addressable space,
8126           (adb_24_bit): added for converting from byte- to bit-addressable space
8127         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
8128            used in reentrant functions now even as return value
8129         * device/lib/_gptrput.c (_gptrput): removed obsolete code
8130         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
8131           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
8132         * src/SDCCglobl.h: added indicator BitBankUsed
8133         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
8134            the bit registers b0-b7
8135         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
8136           (geniCodeCast): fixed bug 1263853,
8137           (geniCodeLogicAndOr): put result in bool or char,
8138           (geniCodeReceive): added parameter func for accessing the return type,
8139           (geniCodeFunctionBody): pass func to geniCodeReceive
8140         * src/SDCCmain.c: added indicator BitBankUsed
8141         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
8142         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
8143           (checkSClass): don't put automatic bool/bit on stack,
8144           (checkFunction): removed check on function cannot return bit
8145         * src/SDCCsymt.h: added newBoolLink prototype
8146         * src/mcs51/gen.c (rb1regs): added bit registers,
8147           (movc): created for assigning to carry,
8148           (pushReg, popReg): created for pushing registers,
8149           (sameRegs): check both AOP_REG and AOP_CRY types,
8150           (aopOp): handle bit registers,
8151           (aopPut): optimization no self-assign,
8152           (saveRegisters): push reg->base (bits) only once for bit registers,
8153            and use pushReg,
8154           (unsaveRegisters): pop reg->base only once and use popReg,
8155           (assignResultValue): added parameter func and return in carry for bits,
8156           (genIpush): optimization no reload in A if not changed,
8157           (genSend): bit parameters in reentrant functions are passed in bit
8158            registers by first assigning to bits in B, then save registers and
8159            copy B to bits,
8160           (genCall): handle returning in Carry properly, save it in F0 if needed,
8161           (genPcall): updated assignResultValue call, this is not safe yet for bit
8162            returning function !!!
8163           (genFunction): don't generate equ's for bit registers and use pushReg,
8164           (genEndFunction): take care of bit returning functions and use popReg,
8165           (genRet): return bit in Carry,
8166           (genIfx): optimize bit registers and other directly addressable bits,
8167           (genReceive): updated assignResultValue call
8168         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
8169           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
8170            registers when using stack-auto
8171         * src/mcs51/ralloc.c (_G): added allBitregs,
8172           (regs8051): added the bit registers,
8173           (createStackSpil): use macro IS_BIT,
8174           (getRegBit): added to allocate a bit register, else spill,
8175           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
8176           (updateRegUsage): factored out to ease stepping while debugging,
8177           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
8178            also allocate bit registers,
8179           (fillGaps): handle bit registers,
8180           (findAllBitregs): added to create bit vector with all bit registers,
8181           (mcs51_allBitregs): returns this bit vector,
8182           (mcs51_assignRegisters): when using stack-auto use bit registers for
8183            passing parameters and creating local variables
8184         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
8185
8186 2005-08-22 Borut Razem <borut.razem AT siol.net>
8187
8188         * device/lib/Makefile.in: replaced find option -or with -o
8189           to make it run on solaris
8190
8191 2005-08-22 Raphael Neider <rneider AT web.de>
8192
8193         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
8194           fixes #1265442 (crash on Solaris)
8195
8196 2005-08-20 Borut Razem <borut.razem AT siol.net>
8197
8198         * configure, configure.in: added tests for libsocket and libnsl libraries,
8199           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
8200           from support/regression/Makefile.in
8201         * support/regression/Makefile.in: added
8202         * device/lib/pic16/Makefile.common.in: force make to use bash shell
8203         * sim/ucsim/libtool: regenerated on sparc-solaris
8204         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
8205           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
8206           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
8207           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
8208           sparc-solaris, which doesn't use GNU ld linker
8209         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
8210         * as/Makefile: find on sparc-solaris does not support -maxdepth option
8211
8212 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
8213
8214         * src/mcs51/peeph.def: updated comments
8215
8216 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8217
8218         * device/lib/_gptrget.c,
8219         * device/lib/_gptrput.c: slightly shorter
8220         * doc/sdccman.lyx: incremented version
8221         * src/mcs51/peeph.def: moved peephole comments to the line of first
8222           change to better keep line correlation, reanimated 186.e
8223         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
8224
8225 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
8226
8227         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
8228           David Saxton with quotes around file name.
8229
8230 2005-08-15 Borut Razem <borut.razem AT siol.net>
8231
8232         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
8233           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
8234           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
8235           make tests run on x86_64 platform
8236
8237 2005-08-13 Raphael Neider <rneider AT web.de>
8238
8239         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
8240           as it might be executed DURING a build (parallel make is wonderful)
8241
8242 2005-08-13 Raphael Neider <rneider AT web.de>
8243
8244         * device/lib/Makefile.in (port-specific-objects-pic16):
8245           revert to cp $(PORT)/bin/*.* $(PORTDIR)
8246         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
8247           dependency
8248         * device/lib/pic16/Makefile.rules: build subdirs before creating
8249           the library, removed builddir rule, create $(builddir) early in
8250           recurse rule, use empty recurse rule for leaf directories
8251         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
8252           mkdir errors (race condition), removed duplicate suffix "hex"
8253           from clean rules
8254         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
8255         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
8256           prevents mkdir -p from aborting on Alpha
8257
8258 2005-08-12 Raphael Neider <rneider AT web.de>
8259
8260         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
8261           db-statements in order to allow for arrays of pointers in code
8262           sections to be placed without interspersed 0-padding, fixes
8263           bug #1256215
8264         * (emitStatistics): fixed division by zero for pic18f1220
8265         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
8266           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
8267         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
8268         * (pic16_pCodeConstString): keep track of already emitted string
8269           literals to prevent "duplicate definitions of symbol _str_NR"
8270         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
8271           debug message
8272         * device/lib/Makefile.in: ignore failing PIC16 library builds
8273         * device/lib/pic16/Makefile: do not build if gputils are missing
8274         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
8275
8276 2005-08-10 Raphael Neider <rneider AT web.de>
8277
8278         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
8279           my last commit)
8280
8281 2005-08-10 Raphael Neider <rneider AT web.de>
8282
8283         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
8284           Rokas' patch to add the new fixed point type "__fixed16x16"
8285         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
8286           functions for __fixed16x16 arithmetics
8287         * device/lib/pic16: reimplemented the build system to support
8288           a separate build directory, better handling of libio (create
8289           the library in a separate subdir for each architecture) and
8290           easier configuration (centralized in Makefile.common)
8291
8292 2005-08-07 Raphael Neider <rneider AT web.de>
8293
8294         * src/pic16/gen.c (genrshTwo): fixed sign extension
8295         * src/pic16/device.c: added pic18f2320, 4220 and 4320
8296         * device/include/pic16/pic18f2220.h: changed some bit definitions,
8297           added T0CONbits
8298         * device/include/pic16/pic18f4220.h: NEW, header for
8299           pic18f4220 and pic18f4320
8300         * device/include/pic16/pic18fregs.h: added new devices,
8301           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
8302         * device/include/pic16/signal.h: resolved name clashes
8303           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
8304           to also allow testing for interrupt enable bits, added
8305           comments on how to use the macros
8306         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
8307         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
8308           register definitions for the devices
8309         * device/lib/pic16/pics.all: added new devices
8310         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
8311           allocated memory
8312         * device/lib/pic16/libc/stdlib/memfree: do not count
8313           the block header as free memory
8314         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
8315           simplified and added missing end-of-blocklist-marker
8316           (reported by Peter Onion, fixes #1252814)
8317         * (_mergeHeapBlock): fixed loop condition
8318         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
8319           len==0, restructured code
8320         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
8321           up a bit, reduced bitfield accesses, prevent endless loops
8322           in case of heap corruption
8323         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
8324           "unreferenced arguments/must return a value" warnings
8325         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
8326           replaced BAUDREG with SPBRG
8327         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
8328           device/lib/pic16/debug/gstack/gstack.c: replaced
8329           _naked, _asm, _endasm with __naked, __asm, __endasm
8330
8331 2005-08-05 Raphael Neider <rneider AT web.de>
8332
8333         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
8334           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
8335
8336 2005-08-05 Borut Razem <borut.razem AT siol.net>
8337
8338         * device/lib/Makefile.in: added missing ';'
8339         * configure: removed ^M characters
8340
8341 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8342
8343         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
8344           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
8345           License
8346
8347 2005-08-04 Borut Razem <borut.razem AT siol.net>
8348
8349         * configure.in: pic16 libraries build 2nd try - enable running
8350           configure in device/lib/pic16
8351         * configure: regenerated from configure.in
8352         * device/lib/Makefile.in: create $(PORT)/bin directory
8353
8354 2005-08-03 Raphael Neider <rneider AT web.de>
8355
8356         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
8357           to get/set values via pointers
8358         * (genUnpackBits,genPackBits): changed detection of
8359           ptr->bitfield vs. sym.bitfield, fixed access via generic
8360           pointers, removed dead (wrong) code for multibyte bitfields
8361         * (genNearPointerGet, genGenPointerGet): removed useless code,
8362           fixed bitfield detection, fixes #1250594
8363         * (genNearPointerSet): removed useless code
8364         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
8365           and introduced macro pic16_emitpcode that conditionally emits
8366           the origin of the following pCode (useful for debugging SDCC)
8367         * src/pic16/pcode.c: changed (and disabled) some debug outputs
8368         * (createDefmap): fixed handling of LFSR for --optimize-df
8369
8370 2005-08-02 Borut Razem <borut.razem AT siol.net>
8371
8372         * device/lib/Makefile.in: pic16 libraries build enabled since
8373           gputils-0.13.2 are now localy installed at sourceforge's compile farm
8374
8375 2005-08-02 Raphael Neider <rneider AT web.de>
8376
8377         * src/pic16/gen.c (genPackBits): removed deprecated warning
8378         * (genGenPointerSet): fixed bitfield detection
8379
8380 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8381
8382         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
8383
8384 2005-07-31 Raphael Neider <rneider AT web.de>
8385
8386         * device/lib/pic16/libdev/pic18f458.c,
8387           device/include/pic16/pic18f458.h: added missing T0CONbits
8388
8389 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
8390
8391         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
8392
8393 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
8394
8395         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
8396
8397 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8398
8399         * device/include/mcs51/at89c51ed2.h: added.
8400
8401 2005-07-23 Raphael Neider <rneider AT web.de>
8402
8403         * src/pic/gen.h: added emitpcode macro for debugging
8404         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
8405           and replace by macro adding debug information on demand
8406         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
8407         * (gencjne): tried to fix; replaced with correct (slower) code
8408         * (gen{Unp,P}ackBits): fixed single bit access
8409         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
8410         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
8411           previous instruction
8412         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
8413           register has to be handled with care (forbidding movement
8414           of assignments/uses, removing assignments completely, ...)
8415         * (pCodeOptime2pCodes): make use of regIsSpecial
8416         * added lots of debugging output (commented out)
8417         * src/pic/rallloc.c (deassignLRs): prevent operand registers
8418           from being reused as result UNLESS it is known to work
8419
8420 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
8421
8422         * support/Util/dbuf.h: include <stddef.h> for size_t
8423         * .version: changed to version 2.5.2
8424
8425 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8426
8427         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
8428
8429 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8430
8431         * src/hc08/gen.c (genMinus): fixed bug #1241835,
8432           (genModOneByte): removed needless psha/pula
8433
8434 2005-07-22 Raphael Neider <rneider AT web.de>
8435
8436         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
8437           have PIC14 handled like PIC16, fixes broken pic14 linker calls
8438         * src/pic/gen.c (resolveIfx): do not "invent" labels
8439         * (genSkipc): changed to positive logic
8440         * (genSkipCond): removed as no longer needed
8441         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
8442           backport from PIC16
8443         * (genLeftShift): check operands are in different registers
8444         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
8445           INCF does not update CARRY...
8446         * src/pic/main.c: fixed _linkCmd
8447         * src/pic/pcode.c (unlinkpCode): added inactive code
8448         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
8449           alive (do not assign result and operand overlapping registers)
8450
8451 2005-07-22 Raphael Neider <rneider AT web.de>
8452
8453         * src/pic/device.c (dump_sfr): replaced register declaration with
8454           call to emitSymbolToFile() to avoid duplicate symbols
8455         * (assignRelocatableRegisters): do not declare external symbols
8456         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
8457           right (take size of type, not etype)
8458         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
8459         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
8460         * (packRegsForAccUse): disabled assignment of WREG as
8461           the result reg to prevent occurence of just fixed #1235003,
8462           fixes #1242954
8463         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
8464           symbols (avoids duplicate symbols in .asm file)
8465         * (pic14emitRegularMap): use emitSymbolToFile()
8466         * src/pic/gen.c (aopOp): fixed spillLocation handling
8467         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
8468         * (genDataPointerSet): removed unneccessary variables/output
8469
8470 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
8471
8472         * as/mcs51/lkarea.c: enlarged codemap for banked memory
8473         * device/lib/mcs51/crtbank.asm: added # to 0x0F
8474
8475 2005-07-21 Raphael Neider <rneider AT web.de>
8476
8477         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
8478           architecture cannot handle them efficiently, fixes bug #1235003
8479         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
8480           check for empty sets before using them (fixes bug #1232190)
8481
8482 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
8483
8484         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
8485           (lnksect2): generate warnings for memory overlap
8486         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
8487           constseg to set the name of these segments so you can instruct the linker
8488           to place them in banks
8489         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
8490         * src/SDCCglobl.h: added MODEL_HUGE to enum,
8491           added code_seg and const_seg to options
8492         * src/SDCCglue.c (emitMaps): use options.const_seg,
8493           (createInterruptVect): put interrupt vectors in segment HOME,
8494           (glue): put HOME before static segment and put the main glue in HOME,
8495           (glue): use options.code_seg
8496         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
8497         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
8498           these segments so you can instruct the linker to place them in banks
8499           (linkEdit): use code_loc for HOME segment which should be the first
8500           segment in code memory now
8501         * src/SDCCmem.c: fixed more stuff like bug 1238386
8502         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
8503           (changePointer): don't change function pointers to code pointers for
8504           banked functions,
8505           (compareType): added exceptional check for banked function pointers
8506         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
8507         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
8508           after static in code memory
8509         * src/mcs51/gen.c: added aopLiteralLong prototype,
8510           (aopForSym): use getSize for functions,
8511           (genCall): generate banked calls over one trampoline __sdcc_banked_call
8512           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
8513           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
8514           the segment,
8515           (genPcall): use call for literal function pointers and generate banked
8516           calls over the one trampoline so there's only one place for the user to
8517           modify according to his/hers hardware,
8518           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
8519           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
8520         * src/mcs51/main.c: added keyword banked,
8521           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
8522         * support/Util/SDCCerr.c,
8523         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
8524           needed for passing the bank and address to the trampoline
8525         * device/lib/mcs51/crtbank.asm: added for bankswitching
8526         * device/lib/mcs51/Makefile: added crtbank
8527
8528 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8529
8530         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
8531           for fields at offset 0 of a struct or union as reported
8532           on 2005-07-07 in the developer mailing list.
8533
8534 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
8535
8536         * src/SDCCmem.c: fixed bug 1238386
8537
8538 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8539
8540         * src/mcs51/peeph.def: added labelrefcounting for peepholes
8541           (patch #1144962), added peephole 300, enabled 259.x
8542         * doc/sdccman.lyx: removed screenshot and provided link instead
8543
8544 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8545
8546         * doc/sdccman.lyx: added section about debugging with ddd
8547         * doc/figures/ddd_example.eps: screenshot of debugging session
8548
8549 2005-07-04 Raphael Neider <rneider AT web.de>
8550
8551         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
8552           like CODE pointers, fixes #1115683
8553         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
8554           call, fixes bugs #1232211, #1228110,
8555           fixed wrong casts to pCodeFlow from pCodeInstructions
8556
8557 2005-07-04 Raphael Neider <rneider AT web.de>
8558
8559         * src/pic/gen.c (popGet): changed assert to allow for
8560           bit operands
8561         * (popGetAddr): changed signature to provide
8562           an additional index, patched all call sites
8563         * (genCmpEq): handle literal-like operands correctly
8564         * (genAddrOf): added sanity checks on __code/__data pointers
8565         * (genAssign): added handling of symbols from __code section
8566         * (gencjne): do not generate code for comparisons whose result
8567           is neither stored nor used, fixes bug #1171114
8568         * (AccLsh, AccRsh): operate on operand instead of WREG
8569         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
8570           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
8571           by known count
8572         * rewrote complete shift-by-literal logic, commented unused
8573           functions out
8574         * (genConstPointerGet): get multiple bytes (if result size > 1),
8575           fixed handling of non-immediate addresses
8576         * (genPointerGet): handle CODE pointers like CONST pointers
8577         * (genpic14Code): insert C-SRC lines as Cource-pCodes
8578         * ({aop,op}_isLitLike): NEW, single place to decide whether an
8579           operand is to be treated as a literal or not
8580         * (mov2w,genPcall,genCmpEq),
8581           src/pic/genarith.c: use aop_isLitLike() to decide between
8582           literal/register contents
8583         * (addSign): added missing offset
8584         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
8585           only emit comment in debug-mode,
8586           use {aop,op}_isLitLike throughout the file
8587         * src/pic/glue.c: fix initializers for pointers (work in progress)
8588         * src/pic/pcode.c (get_op): honor index on _const symbols
8589         * ({reset,dump}pCodeStatistics): NEW, estimate code size
8590         * (dumppBlock): added pCode size estimation
8591         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
8592           check for IS_SYMOP before OP_SYMBOL'ing
8593         * fixed indentation, compacted switch-statements
8594         * (allocReg): find free register and allocate it instead of
8595           allocating new registers all the time
8596         * (deassignLRs): prevent POINTER_GET's from being assigned the same
8597           registers as its operands (necessary only for multibyte GETs)
8598
8599 2005-07-01 Raphael Neider <rneider AT web.de>
8600
8601         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
8602           debugging .asm-output macros FENTRY + FEXIT
8603         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
8604           way... I wonder...
8605         * (emitpComment): NEW, printf to pCode
8606         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
8607           offset handling
8608         * (popGetAddr): NEW, variant of popGet to access an immediates
8609           high(er) bytes instead of the n'th byte of memory they reference,
8610           replaced popGet with popGetAddr where neccessary
8611         * (genDataPointerGet): reactivated and fixed implementation
8612         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
8613           accesses
8614         * (genDataPointerSet): fixed multibyte assignments
8615         * (genpic14Code): fixed --i-code-in-asm handling
8616         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
8617         * (genPlus): fixed index-out-of-bounds error
8618         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
8619         * src/pic/ralloc.c: added debugging output macro FENTRY2
8620         * (spillThis): fixed indentation, enbraced for-body for clarity
8621         * (rematStr): commented out as now unused
8622         * (regTypeNum): commented out special spill case (overwrites
8623           arbitrary values)
8624         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
8625
8626 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
8627
8628         * doc/sdccman.lyx: documented sfr16/sfr32,
8629           added example for using storage class with function pointers
8630         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
8631
8632 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
8633
8634         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
8635         * device/lib/_itoa.c,
8636         * device/lib/_ltoa.c: optimized codesize
8637         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
8638           but don't know how to suppress the double warning.
8639         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
8640         * support/Util/SDCCerr.c,
8641         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
8642
8643 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
8644
8645         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
8646           fixed old K&R prototypes
8647         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
8648         * device/lib/_gptrget.c,
8649         * device/lib/_gptrgetc.c,
8650         * device/lib/_gptrput.c: changed versions for new memory indicator values,
8651           also new versions for small generic pointers and banked generic pointers
8652         * src/port.h: added const_name
8653         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
8654         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
8655         * src/SDCCcse.c (findPrevIc): check all associative operators
8656         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
8657         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
8658         * src/SDCCmem.c: updated comments,
8659           set far-space to 0 for pdata, results in optimized code
8660         * src/SDCCmem.h: added macro CONST_NAME
8661         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
8662           moving the info into the highest bits, see also gptrget/gptrput
8663         * src/src.dsp: added sdcc.ico to project files
8664         * src/avr/gen.c (genCast): fixed bug 0x%d
8665         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
8666         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
8667           relation between ptr_type and DCL_TYPE,
8668           (genCast): fixed bug 0x%d
8669         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
8670           (CODE)" for const_name
8671         * src/hc08/gen.c (genCast): fixed bug 0x%d
8672         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
8673           (hc08_port): added "CONST (CODE)" for const_name
8674         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
8675           (aopForRemat, adjustArithmeticResult): disconnected direct relation
8676           between ptr_type and DCL_TYPE,
8677           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
8678           operand* and took AOP() inside function so sfr-ness can be checked,
8679           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
8680           new prototype,
8681           (genFunction, genEndFunction): optimized stack setup,
8682           (genMinus): optimized for literals with ending zeroes (in bytes),
8683           (genCast): fixed bug 0x%d
8684         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
8685           (mcs51_port): added "CONST (CODE)" for const_name
8686         * src/mcs51/peeph.def: made rule 226 more generic
8687         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
8688         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
8689         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
8690         * src/z80/main.c (z80_port): added NULL for const_name,
8691           (gbz80_port): added NULL for const_name
8692         * support/regression/tests/bug663539.c,
8693         * support/regression/tests/sfr16.c: new tests
8694
8695 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8696
8697         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
8698
8699 2005-06-24 Raphael Neider <rneider AT web.de>
8700
8701         * device/lib/pic16/libdev/pic18f[68][567]20.c:
8702           corrected typos...
8703         * device/include/pic16/signal.h: added USBIF
8704           and SIG_USB
8705
8706 2005-06-24 Raphael Neider <rneider AT web.de>
8707
8708         * device/lib/pic16/libdev/pic18f2455.c,
8709           device/include/pic16/pic18f2455.h: NEW
8710         * device/include/pic16/pic18fregs.h,
8711           device/lib/pic16/pics.all,
8712           src/pic16/device.c: added 18f2455
8713         * device/lib/pic16/libdev/pic18f[68][567]20.c,
8714           device/include/pic16/{pic18f[68][567].h,usart.h}:
8715           replaced MULTIPLE_USARTS define with more relaible
8716           compatibility sfrs (for USART access)
8717
8718 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
8719
8720         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
8721           and the output asm file line is printed on two lines.
8722
8723 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8724
8725         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
8726           BGT, BLE, BHI, and BLS instructions
8727         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
8728           genCmpEq): removed
8729         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
8730           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
8731           fixes bug #1216342
8732         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
8733
8734 2005-06-15 Raphael Neider <rneider AT web.de>
8735
8736         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
8737         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
8738         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
8739           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
8740           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
8741
8742 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8743
8744         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
8745           Marcel Telka in bug #1215704
8746
8747 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
8748
8749         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
8750           located in shared memory bank.
8751
8752 2005-05-31 Raphael Neider <rneider AT web.de>
8753
8754         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
8755           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
8756           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
8757
8758 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
8759
8760         * device/lib/_strncpy.c: fixed the fix
8761
8762 2005-05-26 Raphael Neider <rneider AT web.de>
8763
8764         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
8765           initializers with \0, bug #1208187
8766         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
8767           intializers with \0, bug #1208187
8768
8769 2005-05-26 Raphael Neider <rneider AT web.de>
8770
8771         * src/pic16/glue.c (pic16_printIvalChar): fixed string
8772           initializers with \0, bug #1208187
8773         * src/pic16/main.c (_process_pragma): added sanity checks
8774           for stack position and size, emit warnings when appropriate
8775
8776 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
8777
8778         * device/lib/_strncpy.c: fixed not filling with \0
8779
8780 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8781
8782         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
8783           createFunction),
8784         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
8785           compound_statement),
8786         * src/SDCCsymt.h,
8787         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
8788
8789 2005-05-24 Raphael Neider <rneider AT web.de>
8790
8791         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
8792
8793 2005-05-24 Raphael Neider <rneider AT web.de>
8794
8795         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
8796           TRISE definitions, closes bug #1162453
8797
8798 2005-05-22 Raphael Neider <rneider AT web.de>
8799
8800         * src/pic16/main.c (_process_pragma): check for missing
8801           arguments to pragmas code and udata
8802         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
8803           consistency fixes to match other headers (thanks to Jim Paris)
8804         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
8805
8806 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
8807
8808         * src/SDCCicode.c (isOperandEqual): fixed missing ;
8809
8810 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
8811
8812         * support/regression/tests/bug1198642.c: new test
8813         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
8814         * src/SDCCcse.c (findPrevIc): added comment, please have a look
8815         * support/scripts/resource.h,
8816         * support/scripts/resource.rc,
8817         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
8818         * support/scripts/sdcc.ico: added 32x32 icon
8819
8820 2005-05-18 Raphael Neider <rneider AT web.de>
8821
8822         * device/lib/pic16/libdev/pic18f*.c,
8823         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
8824           keywords to "__sfr" and "__at (X)"
8825         * device/include/pic16/pic18fregs.h: added pic18f4520
8826         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
8827           #1203088 (MPLAB compatibility)
8828
8829 2005-05-17 Raphael Neider <rneider AT web.de>
8830
8831         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
8832         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
8833         * device/lib/pic16/pics.all: added new devices
8834         * src/pic16/device.c: added support for pic18f4520
8835
8836 2005-05-16 Raphael Neider <rneider AT web.de>
8837         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
8838         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
8839         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
8840           convenience function for bit access
8841
8842 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
8843
8844         * device/lib/printf_large.c: fixed bug 1193299
8845         * support/regression/tests/bug1057979.c: added test %3.3s
8846
8847 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8848
8849         * device/include/mcs51/8051.h,
8850         * device/include/mcs51/8052.h: made parseable with lint
8851         * device/include/mcs51/lint.h: added include file for (sp)lint
8852         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
8853         * doc/cdbfileformat.lyx,
8854         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
8855
8856 2005-05-14 Raphael Neider <rneider AT web.de>
8857
8858         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
8859         * device/lib/pic16/libc/stdlib/itoa.c (new)
8860         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
8861         * device/lib/pic16/libio/Makefile: exclude subdir according to
8862           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
8863         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
8864         * src/pic16/gen.c (genFunction): prevent annoying warning
8865         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
8866           nameclashes on BeOS
8867         * support/cpp2/cppmain.c (cpp_output_string): new
8868         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
8869           fixes bug 1116802
8870
8871 2005-05-13 Borut Razem <borut.razem AT siol.net>
8872
8873         * src/SDCCmain.c (linkEdit): fixed bug 1195202
8874
8875 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8876
8877         * .version: changed to version 2.5.1; back to bleeding edge development
8878
8879 2005-05-11 Borut Razem <borut.razem AT siol.net>
8880
8881         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
8882           generate PDF version 1.3 documents
8883
8884 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8885
8886         * .version: changed to version 2.5.0
8887
8888 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8889
8890         * doc/sdccman.lyx: updated weblinks, index and smaller updates
8891
8892 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8893
8894         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
8895         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
8896         well as many smaller updates.
8897         * .version: changed to version 2.5.0-pre1
8898
8899 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8900
8901         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
8902
8903 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
8904
8905         * support/regression/tests/bug1185672.c: added
8906         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
8907           bug 1185672
8908         * src/mcs51/gen.c (genCall): added comments, made it look safer
8909         * src/mcs51/gen.c (genEndFunction): simplified
8910
8911 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
8912
8913         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
8914
8915 2005-04-14 Borut Razem <borut.razem AT siol.net>
8916
8917         * fixed bug 1045046 - SIGSEGV with really simple code?:
8918           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
8919           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
8920
8921 2005-04-14 Borut Razem <borut.razem AT siol.net>
8922
8923         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
8924           src/pic16/device.h: temporarily disabled experimental #inline pragma
8925           for 2.5.0 release
8926
8927 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
8928
8929         * device/include/z80/stdio.h,
8930         * device/include/z80/string.h: removed these highly incomplete files so
8931           SDCC can use the default ones in device/include/
8932
8933 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8934
8935         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
8936         gcc warning.
8937         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
8938         fix sdcpp warnings.
8939
8940 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8941
8942         * device/include/malloc.h: removed redundant __reentrant prototypes
8943         * device/lib/_mullong.c: added working xstack variant in asm (C version
8944           doesn't pass regression tests)
8945         * device/lib/bpx.c: used __data and made bpx char for mcs51
8946         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
8947           (createFunction): fixed bug with xstackPtr
8948         * src/SDCCcse.c: corrected comments
8949         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
8950           (killDeadCode, eBBlockFromiCode): removed unused code
8951         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
8952           corrected comments
8953         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
8954           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
8955           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
8956           (genModOneByte): fixed warning in MSVC
8957         * src/mcs51/main.c (): added comments
8958         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
8959
8960 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8961
8962         * src/SDCCmain.c (linkEdit): oops, changed one line too many
8963
8964 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
8965
8966         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
8967
8968 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
8969
8970         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
8971         characters arrays of larger size than the declared one.
8972
8973 2005-04-10 Borut Razem <borut.razem AT siol.net>
8974
8975         * src/pic/gen.c (genInline),
8976           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
8977           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
8978           (findNextInstruction), (findPrevInstruction),
8979           (findInstructionUsingLabel),
8980           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
8981         * src/pic/pcode.c (findLabel): added missing '\n'
8982         * src/src.dsp: added SDCCdwarf2.c to the project
8983
8984 2005-04-09 Borut Razem <borut.razem AT siol.net>
8985
8986         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
8987
8988 2005-04-08 Raphael Neider <rneider AT web.de>
8989
8990         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
8991           into the chain after a given one) and mergeDefmapSymbols (combine
8992           defmap entries for each symbol per pcode)
8993         * (createDefmap): have defmap entries merged in the end
8994         * (defmapReplaceSymRef): split defmap entries covering two accesses to
8995           a symbol before replacing one access type's symbol, merge symbols in
8996           the end (replacement symbol might already have an entry)
8997         * (assignValnums): keep reference to written WREG intact
8998
8999 2005-04-08 Raphael Neider <rneider AT web.de>
9000
9001         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
9002           Alpha)
9003
9004 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
9005
9006         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
9007         bytes
9008
9009 2005-04-07 Raphael Neider <rneider AT web.de>
9010
9011         * device/include/pic16/usart.h: added compatibility defines for
9012           devices with more than one USART
9013         * device/include/pic16/pic18f[68][567]20.h: activated above defines
9014
9015 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
9016
9017         * device/lib/Makefile.in: updated for port specific include
9018
9019 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
9020
9021         * support/regression/ports/mcs51/spec.mk: added mcs51 include
9022
9023 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
9024
9025         * device/include/8051.h,
9026         * device/include/8052.h,
9027         * device/include/at89S8252.h,
9028         * device/include/at89c55.h,
9029         * device/include/at89x051.h,
9030         * device/include/at89x51.h,
9031         * device/include/at89x52.h,
9032         * device/include/mcs51reg.h,
9033         * device/include/reg51.h,
9034         * device/include/reg764.h,
9035         * device/include/regc515c.h,
9036         * device/include/sab80515.h: (re)moved these 12 files
9037         * device/include/mcs51/8051.h,
9038         * device/include/mcs51/8052.h,
9039         * device/include/mcs51/at89S8252.h,
9040         * device/include/mcs51/at89c55.h,
9041         * device/include/mcs51/at89x051.h,
9042         * device/include/mcs51/at89x51.h,
9043         * device/include/mcs51/at89x52.h,
9044         * device/include/mcs51/mcs51reg.h,
9045         * device/include/mcs51/reg51.h,
9046         * device/include/mcs51/reg764.h,
9047         * device/include/mcs51/regc515c.h,
9048         * device/include/mcs51/sab80515.h: and added them here
9049
9050 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
9051
9052         * device/include/stdarg.h: changed SDCC specific keywords to double
9053           underlined form.
9054         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
9055           mcs51 and ds390.
9056         * device/include/hc08/mc68hc908gp32.h,
9057         * device/include/hc08/mc68hc908jb8.h,
9058         * device/include/hc08/mc68hc908jkjl.h,
9059         * device/include/hc08/mc68hc908qy.h: fixed comments
9060         * device/include/mcs51/README: updated
9061         * device/include/mcs51/c8051f120.h: added PINRSF
9062         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
9063         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
9064           amidst code. Also inline is not supported.
9065
9066 2005-04-06 Raphael Neider <rneider AT web.de>
9067
9068         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
9069         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
9070           callers stack/frame pointers
9071
9072 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
9073
9074         * device/include/pic16/usart.h: added, missing in previous commit,
9075         * device/include/pic16/adc.h: fixed typo,
9076         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
9077         commit,
9078         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
9079         <p18fxxx.inc>
9080         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
9081         uninitialized because a bug appears with gplink
9082         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
9083         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
9084         complains for unrecognised option
9085
9086 2005-04-05 Raphael Neider <rneider AT web.de>
9087
9088         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
9089           structs as well (using memcpy)
9090         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
9091           on ISRs (GOTO has no label)
9092         * src/pic16/device.h: added OF_OPTIMIZE_DF
9093         * src/pic16/main.c: added compiler switch --optimize-df to enable the
9094           new data flow analysis/optimization
9095         * src/pic16/pcode.c: added (prototypes for and implementation of)
9096           dataflow analysis functions, fixed pCodeInstructions' inCond and
9097           outCond values, made RCALL a branch instruction
9098         * (pic16_unlinkpCode): keep C line if possible
9099         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
9100           C line moved if possible
9101         * (pic16_getRegFrompCodeOp): NEW, improved version of...
9102         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
9103           to use new pic16_getRegFrompCodeOp (works for more SFRs)
9104         * (pic16_BuildFlow): fixed skip instructions with label (did not start
9105           new flow)
9106         * (pic16_getJumptabpCode): NEW, needed in...
9107         * (LinkFlow): fixed handling of jumptables, calls and conditional
9108           branches
9109         * (pic16_InsertCommentAfter): NEW
9110         * (pic16_pCodeReplace): made verbose and flow preserving
9111         * (AnalyzeFlow): added call to data flow analysis
9112         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
9113         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
9114         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
9115
9116 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9117
9118         * src/SDCCast.c (decorateType): fixed bug #1105626
9119
9120 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
9121
9122         * device/include/asm/pic16/features.h,
9123         * pic18f*.h headers,
9124         * device/include/pic16/adc.h,
9125         * device/include/pic16/delay.h,
9126         * device/include/pic16/i2c.h,
9127         * device/include/pic16/malloc.h,
9128         * device/include/pic16/stdio.h,
9129         * device/include/pic16/stdlib.h,
9130         * device/include/pic16/string.h,
9131         * device/lib/pic16/libc/stdio/printf_tiny.c,
9132         * device/lib/pic16/libc/stdio/printf_small.c,
9133         * device/lib/pic16/libc/stdio/strmgpsim.c,
9134         * device/lib/pic16/libc/stdio/strmmssp.c,
9135         * device/lib/pic16/libc/stdio/strmusart.c,
9136         * device/lib/pic16/libc/stdio/vfprintf.c,
9137         * device/lib/pic16/libc/stdlib/ltoa.c,
9138         * device/lib/pic16/libc/stdlib/putchar.c,
9139         * device/lib/pic16/libc/stdlib/x_ftoa.c,
9140         * device/lib/pic16/libc/stdlib/memchrpgm.c,
9141         * device/lib/pic16/libc/stdlib/memchrram.c,
9142         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
9143         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
9144         * device/lib/pic16/libio/adc/adcbusy.c,
9145         * device/lib/pic16/libio/adc/adcread.c,
9146         * device/lib/pic16/libio/adc/adcsetch.c,
9147         * device/lib/pic16/libio/usart/ubaud.c,
9148         * device/lib/pic16/libio/usart/ubusy.c,
9149         * device/lib/pic16/libio/usart/udrdy.c,
9150         * device/lib/pic16/libio/usart/uopen.c,
9151         * device/lib/pic16/libio/usart/uputc.c,
9152         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
9153         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
9154         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
9155         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
9156         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
9157         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
9158         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
9159         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
9160         specific keywords to double underlined form,
9161         * device/lib/pic16/libc/Makefile.rules,
9162         * device/lib/pic16/libsdcc/Makefile.rules,
9163         * device/lib/pic16/libm/Makefile,
9164         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
9165         to compile with C standard set in Makefile.common
9166         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
9167         rand.c and crc.c in compilation process,
9168         * device/lib/pic16/libsdcc/int/divuint.c,
9169         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
9170         `c' from signed to unsigned,
9171         * device/lib/pic16/startup/crt0.c,
9172         * device/lib/pic16/startup/crt0i.c,
9173         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
9174         keywords to double underlined form, bug fixes in _do_cinit function
9175         which prevented the correct initialization of the .idata segment,
9176         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
9177         core to enter a infinite loop
9178         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
9179
9180 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9181
9182         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
9183
9184 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9185
9186         * device/include/Makefile.in: add support for hc08 subdirectory
9187         * device/include/hc08/: new subdirectory
9188         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
9189         Lucas Loizaga, thanks!
9190         * device/include/hc08/mc68hc908qy.h,
9191         * device/include/hc08/mc68hc908gp32.h,
9192         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
9193         their own directory. Changed internal macro names to use the compiler
9194         reserved namespace. Changed SDCC specific keywords to double
9195         underlined form.
9196         * device/include/math.h,
9197         * device/include/malloc.h,
9198         * device/include/stdarg.h,
9199         * device/include/stdbool.h
9200         * device/include/string.h,
9201         * device/include/tinibios.h,
9202         * device/include/ds400rom.h,
9203         * device/include/8051.h,
9204         * device/include/8052.h,
9205         * device/include/80c51xa.h,
9206         * device/include/at89c55.h,
9207         * device/include/at89S8252.h,
9208         * device/include/at89x51.h,
9209         * device/include/at89x52.h,
9210         * device/include/ds80c390.h,
9211         * device/include/reg764.h,
9212         * device/include/regc515c.h,
9213         * device/include/sab80515.h,
9214         * device/include/mcs51/c8051f000.h,
9215         * device/include/mcs51/c8051f018.h,
9216         * device/include/mcs51/c8051f020.h,
9217         * device/include/mcs51/c8051f040.h,
9218         * device/include/mcs51/c8051f060.h,
9219         * device/include/mcs51/c8051f120.h,
9220         * device/include/mcs51/c8051f300.h,
9221         * device/include/mcs51/c8051f310.h,
9222         * device/include/mcs51/c8051f320.h,
9223         * device/include/mcs51/c8051f330.h,
9224         * device/include/mcs51/c8051f350.h,
9225         * device/include/z180.h: Changed SDCC specific keywords to double
9226         underlined form.
9227
9228 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
9229
9230         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
9231         18F4455,
9232         * (pic16_assignConfigWordValue): disable testing of configuration
9233         register value with config mask,
9234         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
9235         function with port->fun_prefix,
9236         * (genFunction): when generating a naked interrupt function never
9237         create an absolute segment placed in interrupt vector address, place
9238         the actual interrupt function at IVA instead, when an interrupt
9239         function is generated with unspecified interrupt then do not create
9240         the absolute section,
9241         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
9242         code for generating a call to generic pointer get/put function with
9243         a call to function pic16_callGenericPointer(),
9244         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
9245         the call to the generic pointer get/put functions with prefixing the
9246         function name with port->fun_prefix,
9247         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
9248         * src/pic16/main.c (_process_pragma): prefix function with
9249         port->fun_prefix,
9250         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
9251         calling assembler, old 18Fxxxx macro is deprecated,
9252         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
9253         PC_ASMDIR in while condition,
9254         * (findInstruction): add PC_ASMDIR in while condition,
9255         * (buildCallTree): prefix main with port->fun_prefix,
9256         * (pic16_pCode2str): fixed bug that didn't emit the memory access
9257         identifier for variable with banked access in instructions BTFSS,
9258         BTFSC, BCF, BSF, BTG
9259         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
9260         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
9261         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
9262         perform optimization when enviroment variable NO_REG_OPT is set,
9263         * (insideLRBlock): NEW, return 1 if register is inside an
9264         INF_LOCALREGS block,
9265         * (RemoveRegFromLRBlock): remove a register that is completely
9266         eliminated by register optimization, but it is still left in local
9267         register store/restore in/from stack block,
9268         * (Remove2pcodes): after removing register, check to see if it
9269         should be removed from local register store/restore in/from stack
9270         block,
9271         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
9272         DUMMY_READ_VOLATILE,
9273
9274         * device/include/pic16/adc.h: minor prototype modifications and
9275         update,
9276         * device/include/pic16/malloc.h: added GPL notice various
9277         modifications,
9278         * device/include/pic16/stdint.h: NEW, standard header for ints
9279         * device/include/pic16/delay.h: NEW, header for delay functions,
9280         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
9281         delay1mtcy,
9282         * device/include/pic16/signal.h: NEW, header providing helper macros
9283         for implementing signal handlers,
9284         * device/include/pic16/stdio.h: added prototypes for functions,
9285         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
9286         prototypes for stdin and stdout, added macro PUTCHAR to
9287         automatically implement putchar function prototype,
9288         * device/include/pic16/usart.h: modified and updated USART library,
9289         * device/lib/pic16/libio/adc/,
9290         * device/lib/pic16/libio/i2c: some modifications to improve library
9291         performance,
9292         * device/lib/pic16/libc/stdio/: modifications for the new printf*
9293         family of functions,
9294         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
9295         family of functions and other sources,
9296         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
9297         of the PIC18Fxx[28] devices,
9298         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
9299         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
9300         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
9301         _do_cinit function, because the previous failed when local variables
9302         where not placed in the same memory bank,
9303         * device/lib/pic16/libsdcc/char/: various modifications to improve
9304         library performance,
9305         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
9306         information on the new functions of the c library and more...
9307
9308 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9309
9310         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
9311
9312 2005-03-26 Raphael Neider <rneider AT web.de>
9313
9314         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
9315           if condition == CARRY)
9316         * (genCmp): adapted to new genSkipc semantics
9317         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
9318           on rIfx (genCmp was broken)
9319
9320 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9321
9322         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
9323         * src/z80/main.c (_keywords[]),
9324         * src/SDCCglobal.h (struct options),
9325         * src/SDCC.y,
9326         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
9327         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
9328         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
9329         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
9330         always available in leading double underscore form. The C99 support is
9331         mostly missing, but it's a start.
9332         * support/regression/tests/bug-227710.c: fixed nonconforming use of
9333         reserved identifier "__data".
9334
9335 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
9336
9337         * src/mcs51/peeph.def: fixed bug 1170013
9338
9339 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
9340
9341         * device/include/mcs51reg.h: fixed bug 842007
9342
9343 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9344
9345         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
9346         last time.
9347
9348 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9349
9350         * src/port.h (struct PORT),
9351         * src/avr/ralloc.c (avr_assignRegisters),
9352         * src/avr/main.c,
9353         * src/ds390/ralloc.c (ds390_assignRegisters),
9354         * src/ds390/main.c,
9355         * src/hc08/ralloc.c (hc08_assignRegisters),
9356         * src/hc08/main.c,
9357         * src/mcs51/ralloc.c (mcs51_assignRegisters),
9358         * src/mcs51/main.c,
9359         * src/pic/ralloc.c (pic14_assignRegisters),
9360         * src/pic/main.c,
9361         * src/pic16/ralloc.c (pic16_assignRegisters),
9362         * src/pic16/main.c,
9363         * src/xa51/ralloc.c (xa51_assignRegisters),
9364         * src/xa51/main.c,
9365         * src/z80/ralloc.c (z80_assignRegisters),
9366         * src/z80/ralloc.h,
9367         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
9368         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
9369         * src/SDCCcse.h,
9370         * src/SDCCdflow.c (computeDataFlow),
9371         * src/SDCCdflow.h,
9372         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
9373         * src/SDCCloop.h,
9374         * src/SDCCcflow.c (*),
9375         * src/SDCCcflow.h,
9376         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
9377         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
9378         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
9379         immedDom() returning wrong block; probably fixes bug #1160833)
9380
9381 2005-03-20 Borut Razem <borut.razem AT siol.net>
9382
9383         * support/scripts/inc2h.pl: WIN32 port
9384
9385 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
9386
9387         * device/lib/makefile.in: added abs.c and labs.c
9388
9389 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
9390
9391         * device/include/stdint.h: added
9392         * device/lib/abs.c: added
9393         * device/lib/labs.c: added
9394         * device/include/stdlib.h: added abs() and labs() prototypes
9395         * device/lib/libsdcc.lib: added abs and labs
9396         * device/include/float.h,
9397         * device/lib/_fsmul.c,
9398         * device/lib/printf_fast.c,
9399         * device/lib/printf_tiny.c: updated comments
9400
9401 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9402
9403         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
9404         bug #1164313
9405
9406 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9407
9408         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
9409         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
9410
9411 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
9412
9413         * device/lib/printf_large.c: removed inline assembly for portability and
9414           readability. Use printf_fast if speed or size are more important.
9415         * src/pic16/gen.c: removed conditions around use of DEBUGpc
9416         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
9417
9418 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
9419
9420         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
9421         prevent compiler warning
9422
9423 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
9424
9425         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
9426         moved to level 0 and declared as static. Also they are explicit
9427         placed in access bank. This was necessery because some times they
9428         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
9429         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
9430         optimizations. Currently only compare to unsigned char is implemented,
9431         * src/pic16/gen.c: added fReturnIdx array,
9432         * (struct resolvedIfx) is moved to gen.h and made public,
9433         * (struct _G): added sregsAlloc and sregsAllocSet fields,
9434         * (aopForSym): added an optimization to directly store in stack of
9435         the operand of a SEND iCode,
9436         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
9437         but as registers instead (AOP_REG) using the fReturnIdx array,
9438         * (pic16_freeAsmop): remove the freed register from the
9439         _G.sregsAlloc field,
9440         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
9441         a compare of 'WREG',
9442         * (pic16_popGetTempRegCond): changed function prototype, now
9443         function takes also a bitVector argument v which holds the current
9444         set of registers that are allocated for stack access by aopForSym,
9445         registers allocated in aopForSym for accessing stack symbols are not
9446         any more part of the functions usedRegs field,
9447         * (genCall): some times aopOp is called for a stack variable to be
9448         send, aopForSym might perform the push, if this is true make sure
9449         that genCall doesn't push the variable twice by testing _G.resDirect,
9450         * (genFunction): changed testing for unspecified interrupt number
9451         from 256 to INTNO_UNSPEC,
9452         * modified selection scheme of frame pointer generation. Previously
9453         if function did use local registers a frame pointer was generated,
9454         now a frame pointer is generated only if function has arguments
9455         (that need PLUSW2 register access), or has stack arguments, or the
9456         compiler is not instructed to omit the frame pointer,
9457         * (genEndFunction): before restoring local registers that were saved
9458         in the function preamble, also restore the registers that *might*
9459         have been allocated for stack access,
9460         * (genRet): removed some old comments,
9461         * (genCmp, the active (RN's) version): added a call to the
9462         pic16_genCmp_special function to perform the compare with a more
9463         robust and optimized way,
9464         * (genInline): a feature has been added in inline code generation,
9465         which allows a wildcard variable substitution when writing inline
9466         assembly. Code is incomplete and experimental therefore undocumented,
9467         * (genCast): changed order of aopOp for result and right to allow
9468         aopForSym to directly load the result if possible,
9469         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
9470         perform an optimized compare on some selected special occasions,
9471         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
9472         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
9473         generate an IVT any more,
9474         * src/pic16/main.c (pic16_optionsTable): added command line option
9475         --optimize-cmp,
9476         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
9477         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
9478         macros,
9479         * src/pic16/NOTES: Raphael Neider added in list of active developers
9480         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
9481         jumptable_end to prevent bug #,
9482         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
9483         inCond and outCond fields,
9484         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
9485         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
9486         turn off register spilling,
9487         * (packRegsForOneUse): synced with other ports' versions although it
9488         is not used currently,
9489         * (pic16_packRegisters): added an optimization while reading
9490         structure bitfields, some registers may be saved (malloc code is
9491         decreased by 80 bytes)
9492
9493 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
9494
9495         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
9496         left is a bitfield, if yes, then don't optimize assignment. Perhaps
9497         this can be optimized more?
9498
9499 2005-03-10 Raphael Neider <rneider AT web.de>
9500
9501         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
9502           genNearPointerGet): (hopefully) fixed access to bitfields via
9503           pointers (p->bitN = x; and x = p->bitN; failed)
9504
9505 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
9506
9507         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
9508
9509 2005-03-09 Raphael Neider <rneider AT web.de>
9510
9511         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
9512
9513 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
9514
9515         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
9516         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
9517           (regTypeNum): set REG_BIT type if necessary
9518         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
9519         * support/regression/tests/critical.c: check bug 1144613
9520
9521 2005-03-02 Raphael Neider <rneider AT web.de>
9522
9523         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
9524
9525 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9526
9527         * src/avr/ralloc.c (serialRegAssign),
9528         * src/ds390/ralloc.c (serialRegAssign),
9529         * src/hc08/ralloc.c (serialRegAssign),
9530         * src/mcs51/ralloc.c (serialRegAssign),
9531         * src/pic/ralloc.c (serialRegAssign),
9532         * src/pic16/ralloc.c (serialRegAssign),
9533         * src/xa51/ralloc.c (serialRegAssign),
9534         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
9535
9536 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
9537
9538         * src/SDCCast.c (decorateType): fixed bug 1124787
9539
9540 2005-02-20 Hubert Sack <sack AT digiplan.de>
9541         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9542
9543         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
9544         patch #1121755
9545
9546 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9547
9548         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
9549         to keep the correct label reference count when adding/removing references
9550         to labels. A peephole file using this is appended to patch #1144962.
9551
9552 2005-02-14 Raphael Neider <rneider AT web.de>
9553
9554         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
9555         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
9556         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
9557           retrievals of result operand's value on assignment
9558
9559 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
9560
9561         * device/include/pic16/string.h: modified prototype for memccpy()
9562         to memccpy(void *, void *, char, size_t)
9563         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
9564         check whether to omit frame pointer or not,
9565         * (genInline): convert all occurences of "\n" to LF in inline
9566         assembler blocks, this helps formatting the inline text,
9567         * (pic16_loadFSR0): modified prototype,
9568         * (genNearPointerGet, genNearPointerSet): reorganization of code,
9569         removed some 8051 legacy code,
9570         * (genPackBits): enabled handling bitfields exceeding one byte in size,
9571         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
9572         before allocating temporary registers in functions,
9573
9574 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
9575
9576         * support/regression/tests/bitvars.c: corrected the "fix"
9577
9578 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
9579
9580         * support/regression/tests/bitvars.c,
9581         * support/regression/tests/bitwise.c,
9582         * support/regression/tests/rotate.c: "fixed" problems on Alpha
9583
9584 2005-02-10 Raphael Neider <rneider AT web.de>
9585
9586         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
9587           different size for Alpha
9588         * src/pic16/gen.c (genCmpEq) : improved compare with 0
9589
9590 2005-02-09 Raphael Neider <rneider AT web.de>
9591
9592         * src/SDCC.lex(doPragma) : save and restore warning options as well
9593           (also added new stack plus clone- and copyAndFreeSDCCERRG())
9594         * have #pragma less_pedantic set the errorlevel to WARNING
9595           (fixes #1117001)
9596         * (cloneOptimize) : fixed wrong malloc's size
9597         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
9598           facilitate correct handling of #pragma (save|restore)
9599
9600 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
9601
9602         * src/mcs51/gen.c: removed non-standard C nameless struct/union
9603
9604 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
9605
9606         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
9607
9608 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
9609
9610         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
9611
9612 2005-02-02 Raphael Neider <rneider AT web.de>
9613
9614         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
9615         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
9616         * (pic16_storeForReturn): fixed to allow returning function pointers
9617         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
9618         * device/include/pic16/{stddef.h,stdbool.h}: added
9619
9620 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
9621
9622         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
9623
9624 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
9625
9626         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
9627         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
9628          appeared to be required
9629
9630 2005-01-31 Borut Razem <borut.razem AT siol.net>
9631
9632         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
9633           include/mcs51 and include/z80 directories to the package
9634
9635 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9636
9637         * src/hc08/gen.c (genFunction): fixed bug #1112752
9638
9639 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9640
9641         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
9642
9643 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9644
9645         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
9646
9647 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
9648
9649         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
9650
9651 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
9652
9653         * device/include/c8051fxxx.h: removed these 6 files
9654         * device/include/mcs51/c8051fxxx.h: added these 11 new files
9655
9656 2005-01-26 Raphael Neider <rneider AT web.de>
9657
9658         * src/pic16/gen.c (genAssign): fixed assignment from longs
9659           in codespace (were cut to three bytes)
9660         * (genDummyRead): implemented (except for CODESPACE...),
9661           fixed bug #1108575
9662         * src/pic16/glue.c (emitStatistics): beautified
9663         * device/lib/pic16/libm/Makefile: added include path
9664
9665 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9666
9667         * src/z80/gen.c (aopPut): fixed bug #1103902
9668
9669 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9670
9671         * device/lib/expf.c: fixed bug #1095792
9672
9673 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
9674
9675         * device/lib/pic16/libm: added Math library sources
9676
9677 2005-01-24 Raphael Neider <rneider AT web.de>
9678
9679         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
9680           to enable upcast to pCodeOpReg2 (there is no type tag to
9681           differenciate the two and pic16_popGet2p cast into PCOR2)
9682         * src/pic16/main.c (_process_pragma): fixed another malloc bug
9683           (sizeof(sectNames) changed to sizeof(sectName))
9684           Both patches fix segfaults under MinGW.
9685
9686 2005-01-23 Raphael Neider <rneider AT web.de>
9687
9688         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
9689           Safe_[mc]?alloc()'ed variables
9690         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
9691           of (byte sized) temporaries (assign them to WREG for now)
9692         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
9693           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
9694           this might fix SIGSEGVs on MinGW...
9695         * src/SDCCopt.c (killDeadCode): restored original behaviour
9696           (volatile operands might get thrown away though)
9697
9698 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
9699
9700         * src/pic16/gen.c: fixed bug #1106975,
9701         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
9702         pointer update, INTCON is saved, global interrupts are disabled and
9703         restored after updateing TOS.
9704         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
9705         * added function attribute 'shadowregs' to take advantage of shadow
9706         registers,
9707         * added function attribute 'wparam' as an alternative to the wparam
9708         pragma,
9709         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
9710         user declares a non-ISR function as 'shadowregs',
9711         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
9712
9713 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
9714
9715         * .version: bumped version number to 2.4.8
9716         * device/lib/pic16/pics.all: list of PIC18F devices supported by
9717         pic16 port,
9718         * device/lib/pic16/libio/i2c/: I2C module support library,
9719         * device/include/pic16/i2c.h: I2C support library header,
9720         * device/lib/pic16/libc/stdio/: standard IO support sources,
9721         * (printf_small.c): printf_small() source, supports float print,
9722         * (printf_tiny.c): printf_tiny() source, does not support floats,
9723         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
9724         enable global optimizations for entire library source, other
9725         Makefiles in the source tree are also modified to reflect this,
9726         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
9727         function,
9728         * doc/sdccman.lyx: updated to reflect new changes,
9729         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
9730         sym->onStack if-case,
9731         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
9732         sbit, idata, _idata, xdata, _xdata,
9733         * added pragma library, to link an external library, (see doc),
9734         * removed command line options, --pomit-config-words, --pomit-ivt,
9735         --pleave-reset-vector,
9736         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
9737         when calling assembler to reflect memory model used, also define
9738         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
9739         reflect stack model used,
9740         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
9741         on stack return NULL,
9742
9743 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
9744
9745         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
9746           of the operands is volatile. Fixes #1020220
9747
9748 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
9749
9750         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
9751         * (OptimizeRegUsage): make sure that there is really no other flow where
9752           the first pCode is used
9753
9754 2005-01-22 Raphael Neider <rneider AT web.de>
9755
9756         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
9757           to fix #1106967 (pCode->seq are not set up correctly)
9758
9759 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9760
9761         * src/SDCCglue.c (glue): make sure code area is declared before the
9762         static initialization area.
9763
9764 2005-01-21 Raphael Neider <rneider AT web.de>
9765
9766         * device/lib/Makefile.in: fixed test for pic16 install dir
9767         * device/lib/pic16/*/Makefile*: modified compile flags to enable
9768           optimizations
9769         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
9770           added --optimize-goto compiler switch and pragma wparam documentation
9771         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
9772         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
9773           and PRODH closing bug #1071770 (peephole optimizer)
9774
9775 2005-01-19 Raphael Neider <rneider AT web.de>
9776
9777         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
9778           cmdLine buffers (used when calling sdcpp...) are large enough
9779           (MAX_PATH=256 truncates arguments leading to system halts when
9780           used in MinGW...)
9781         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
9782         * (genUminus): rewritten to for efficiency
9783         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
9784           used uninitialized in some cases)
9785         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
9786           copy the third byte from the int -- now assumes 0x80 (data memory)
9787         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
9788           operands (genAddLit expects the iCode's operands to swapped as
9789           well), fixed leftover bytes (crashed for short left operands)
9790         * (pic16_genMinusDec): performance improvements, removed false
9791           PIC14 emitSKPNCs
9792         * (pic16_genMinus): fixed to cope with differently sized operands
9793         * src/pic16/glue.c (pic16_glue): added new banksel optimization
9794           for --obanksel > 1
9795         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
9796         * src/pic16/graph.[ch]: implementation of directed graphs, used by
9797           new banksel optimization
9798         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
9799           analysis for temporary registers (segfaults...)
9800         * src/pic16/peeph.def: added rule
9801
9802 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
9803
9804         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
9805         which converts a float number to its ASCII representation
9806         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
9807         functions to convert the fractional and integer part of a float to ASCII,
9808         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
9809         realloc.c): added _MALLOC_SPEC to explicit place variables in data
9810         ram
9811         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
9812         _STATMEM macros,
9813         * device/include/pic16/adc.h: added GPL info,
9814         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
9815         a pCodeOp as tested operand,
9816         * (genNearPointerGet): optimized bit testing, does not use
9817         intermediate register for bit value, test directly instead with
9818         BTFSS, BTFSC, works only for single bits,
9819         * (genpic16Code): dump the name of the iCode in the asm,
9820         * src/pic16/ralloc.c (decodeOp): removed static declaration and
9821         renamed to pic16_decodeOp,
9822         * (serialRegAssign): do not allocate a temporary register for iCode
9823         sequences that test a single bit for 1/0
9824
9825 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
9826
9827         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
9828         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
9829         access stack and frame pointers. They are initially assigned to
9830         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
9831         accessing SFRs. Updated all occurences of modification of stack or
9832         frame pointer in gen.c and pcode.c,
9833         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
9834         assigning of a literal value to pointers,
9835         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
9836         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
9837         selected
9838
9839 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
9840
9841         * doc/sdccman.lyx: update documentation about stack pragma, added
9842         some info for stack memory models
9843
9844 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9845
9846         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
9847
9848 2005-01-08 Raphael Neider <rneider AT web.de>
9849
9850         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
9851           udata sections to fix bug #1097823
9852
9853 2005-01-05 Raphael Neider <rneider AT web.de>
9854
9855         * src/pic16/gen.c (genGenericShift): added handling of differently
9856           sized left operand and result
9857
9858 2005-01-04 Raphael Neider <rneider AT web.de>
9859
9860         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
9861         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
9862           to hold the condition bit)
9863         * added new version of genCmp (old code available via #define)
9864         * added new version of genShiftLeft/genShiftRight in a generic
9865           way, now supports shifting by negative values
9866         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
9867           shiftCount (expected by genGenericShift)
9868         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
9869         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
9870           dump
9871         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
9872           is an invalid literal too...)
9873
9874 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
9875
9876         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
9877         from Raphael Neider,
9878         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
9879         for 8-bit literals. This fixes some literal operands which are sign
9880         extended to 16-bits ints when instruction needs only 8-bits.
9881
9882 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
9883
9884         * device/lib/logf.c: added mcs51 assembly version
9885         * device/lib/expf.c: added mcs51 assembly version
9886         * device/lib/_logexpf.c: new shared asm code for expf and logf
9887         * device/include/math.h: add defines for assembly math library
9888         * device/lib/Makefile.in: build new _logexpf.c
9889         * device/lib/libfloat.lib: use new _logexpf.c
9890
9891 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9892
9893         * src/pic/device.c
9894         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
9895           device types which have less than 0x7f registers.
9896
9897 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9898
9899         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
9900
9901 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9902
9903         * device/lib/printf_fast.c: only build on supported arch.
9904         * device/lib/printf_tiny.c: only build on supported arch.
9905         * device/lib/printf_fast_f.c: only build if asm float lib
9906         * device/lib/_fsget1arg.c: only build if asm float lib
9907         * device/lib/_fsget2args.c: only build if asm float lib
9908         * device/lib/_fsnormalize.c: only build if asm float lib
9909         * device/lib/_fsreturnval.c: only build if asm float lib
9910         * device/lib/_fsrshift.c: only build if asm float lib
9911         * device/lib/_fsswapargs.c: only build if asm float lib
9912         * device/include/stdio.h: don't provide print_fast,
9913           print_fast_f, print_tiny prototypes if --xstack used
9914
9915 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
9916
9917         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
9918         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
9919           to the SOURCES
9920
9921 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9922
9923         * device/lib/printf_fast_f.c: same as printf_fast, but
9924           with floating point enabled
9925         * device/lib/printf_fast.c: minor tweaks
9926         * device/include/stdio.h: add printf_fast_f
9927
9928 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9929
9930         * src/SDCCmain.c: make --float-reent default for mcs51
9931         * device/lib/_fsadd.c: added mcs51 assembly version
9932         * device/lib/_fssub.c: added mcs51 assembly version
9933         * device/lib/_fsmul.c: added mcs51 assembly version
9934         * device/lib/_fsdiv.c: added mcs51 assembly version
9935         * device/lib/_fseq.c: added mcs51 assembly version
9936         * device/lib/_fsneq.c: added mcs51 assembly version
9937         * device/lib/_fsgt.c: added mcs51 assembly version
9938         * device/lib/_fslt.c: added mcs51 assembly version
9939         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
9940         * device/lib/Makefile.in: add _fscmp to build
9941         * device/lib/libfloat.lib: add _fscmp to build
9942
9943 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9944
9945         * device/lib/_fs2slong.c: added mcs51 assembly version
9946         * device/lib/_fs2sint.c: added mcs51 assembly version
9947         * device/lib/_fs2schar.c: added mcs51 assembly version
9948         * device/lib/_fs2ulong.c: added mcs51 assembly version
9949         * device/lib/_fs2uint.c: added mcs51 assembly version
9950         * device/lib/_fs2uchar.c: added mcs51 assembly version
9951         * device/lib/_slong2fs.c: added mcs51 assembly version
9952         * device/lib/_sint2fs.c: added mcs51 assembly version
9953         * device/lib/_schar2fs.c: added mcs51 assembly version
9954         * device/lib/_ulong2fs.c: added mcs51 assembly version
9955         * device/lib/_uint2fs.c: added mcs51 assembly version
9956         * device/lib/_uchar2fs.c: added mcs51 assembly version
9957         * device/include/float.h: added #define to select asm vs c
9958
9959 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
9960
9961         * device/lib/printf_fast.c: improvements to float output
9962         * device/include/float.h: add defines for assembly float library
9963         * device/lib/_fsget1arg.c: receive 1 float arg
9964         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
9965         * device/lib/_fsnormalize.c: normalize a float
9966         * device/lib/_fsreturnval.c: return float, various helper routines
9967         * device/lib/_fsrshift.c: right shift a float's mantissa
9968         * device/lib/_fsswapargs.c: swap 2 floats
9969         * device/lib/Makefile.in: build these 6 new files for mcs51
9970         * device/lib/libfloat.lib: add these 6 files to the library
9971
9972 2004-12-26 Borut Razem <borut.razem AT siol.net>
9973
9974         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
9975           built by gcc 3.4.2
9976
9977 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
9978
9979         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
9980           and fully reentrant and register bank neutral.
9981         * device/lib/printf_fast.c: added float (not enabled by default),
9982           added compact/slower integer (also not enabled by default),
9983           improved size/speed of fast integer code, other minor changes
9984         * device/include/stdio.h, device/lib/Makefile.in,
9985           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
9986
9987 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
9988
9989         * src/pic16/pcode.c: declaring variables other than at the start of a
9990           block is not supported in C by VC6.
9991
9992 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
9993
9994         * applied a previous patch from Raphael Neider that wasn't included
9995         in the previous commits, which fixes infinite loops within jumptable
9996         improvements,
9997         * made some fixes that previous patches introduced
9998
9999 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
10000
10001         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
10002         that fixes an issue with AOP_PCODE asmop's offset,
10003         * (pic16_popCopyReg): update instance field too,
10004         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
10005         function of pic port,
10006         * (genCmp, genAnd, genAssign),
10007         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
10008
10009 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
10010
10011         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
10012         variables initial values to idata section,
10013         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
10014         variables in some functions. This utilizes parmBytes field of iCode
10015         structure to hold the offset of the variable in stack. (might be
10016         able to use the stack field too?)
10017         * applied patch from Raphael Neider # ### , # ###
10018         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
10019         variable initial values in idata section,
10020         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
10021         for static variables with initial value
10022         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
10023         applied fix in while loop from Raphael Neider.
10024
10025 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
10026
10027         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
10028         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
10029         * src/ds390/ralloc.c (serialRegAssign): spill bits
10030         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
10031         * support/Util/SDCCerr.c,
10032         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
10033         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
10034         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
10035
10036 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
10037
10038         * device/include/sdcc-lib.h: inserted LGPL, added includes
10039           asm/ds390/features.h and asm/mcs51/features.h
10040         * device/include/asm/default/features.h,
10041         * device/include/asm/gbz80/features.h,
10042         * device/include/asm/z80/features.h: added empty _AUTOMEM
10043           and _STATMEM
10044         * device/include/asm/ds390/features.h,
10045         * device/include/asm/mcs51/features.h: added files with defines for
10046           _AUTOMEM and _STATMEM indicating automatic and static storage class
10047         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
10048         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
10049         * src/SDCCicode.c (geniCodeCast),
10050         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
10051         * src/SDCCloop.c (loopInduction): removed unused variable lr
10052         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
10053           to convertToFcall to include char modulo (RFE 1065037), added check
10054           if left operand is unsigned and use abs of literal value
10055         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
10056           as it doesn't work after conversion from peephole.def to peephole.rul
10057         * src/mcs51/gen.c (toBoolean): added check for size,
10058           (genModOneByte): optimized code for signed char modulo a literal
10059           power of 2 (thanks to Hubert Sack),
10060           (genRRC): removed unnecessary "clr c",
10061           (genRLC): replaced "add a,acc" with cheaper "rlc a"
10062         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
10063           jump optimization,
10064           swapped rules 256.c and 256.d,
10065           extended 256.d by using new multiple checks (thanks Erik),
10066           added rules 256.e and 256.f,
10067           updated rule 261.a and 261.b to new generated code
10068         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
10069
10070 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10071
10072         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
10073           induction related bugs, including first part of bug #1074377
10074
10075 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
10076
10077         * applied patch from bug-report #1076292,
10078         * applied patches for genAnd and Goto-optimizations for Raphael
10079         Neider,
10080         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
10081         dump a less iCode information,
10082         * src/pic16/device.h (pic16_options_t): added field debgen,
10083         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
10084         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
10085         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
10086         puclic,
10087         * (various functions): added macros FENTRY and FENTRY2 to functions,
10088         to emit function prologue,
10089         * (various functions): fixed indentation,
10090         * (genNearPointerGet): fixed loading of FSR0,
10091         * (genPackBits): applied patch from Raphael Neider to fix updating
10092         of FSR0 and touching only the modified bits,
10093         * src/pic16/genarith.c (various functions): added macros FENTRY to
10094         emit function prologue in comments,
10095         * src/pic16/pcode.h: added functions debugf2, debugf3,
10096         * src/pic16/ralloc.c: partial fix for packForPush caused
10097         segmentation fault,
10098
10099 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10100
10101         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
10102           <stsp AT users.sourceforge.net> with reversed byte order
10103         * support/regression/tests/rotate.c: added (ds390 skips some tests)
10104
10105 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10106
10107         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
10108           bug #1074377
10109         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
10110         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
10111
10112 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
10113
10114         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
10115
10116 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10117
10118         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
10119           conditions,
10120           (setFromConditionArgs): friendly operand parser for peephole rules,
10121           (operandBaseName, operandsNotRelated): new peephole condition
10122           "operandsNotRelated" -- similar to "operandsNotSame", but takes
10123           architecture specific register naming into account, handles n-way
10124           comparisons, and supports quoted literals
10125         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
10126
10127 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10128
10129         * src/mcs51/peeph.def: fixed bug #1076940
10130
10131 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
10132
10133         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
10134
10135 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10136
10137         Adding support for replacing ljmps with sjmps in jumptables
10138         generated for switch statements. For now you need to set the
10139         environment variable SDCC_SJMP_JUMPTABLE to enable this.
10140         Now 4 algorithms for mcs51 jumptable generation are used:
10141         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
10142         addresses loaded pc-relative for up to 112 cases and stack-pushing
10143         target addresses loaded with offset from dptr for up to 256 cases.
10144
10145         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
10146         * src/mcs51/main.c: adapted constants for switch table generation
10147         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
10148
10149 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
10150
10151         * device/lib/printf_large.c (_print_format): fixed bug 1073386
10152         * support/regression/tests/bug1057979.c: added test for bug 1073386
10153
10154 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
10155
10156         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
10157         compilers
10158
10159 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
10160
10161         * src/pic16/device.h,
10162         * src/pic16/genarith.c,
10163         * src/pic16/glue.c,
10164         * src/pic16/main.c,
10165         * src/pic16/pcode.c: applied patches #1068154 and #1070213
10166
10167 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
10168
10169         Large cummulative patch for pic16 port.
10170         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
10171         to call when a stack overflow occurs,
10172         * (malloc.h): added CVS Id tag,
10173         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
10174         variable,
10175         * added libc directory. The current version of LibC contains string
10176         functions, ctype functions and macros and some functions of the
10177         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
10178         be extensively tested in the future. Standard disclaimer here.
10179         Library is not automatically build yet. But one can build it by
10180         invoking 'make' inside the libc directory.
10181         * added ADC library under libio. Preliminary version yet.
10182
10183         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
10184         * src/pic16/gen.c (aopForRemat): asmop size is filled by
10185         aopForRemat() now and not by pic16_aopOp(),
10186         * (pic16_popGetTempReg): removed warning messgae when allocating
10187         temporary registers, its a buggy feature and will be removed,
10188         * (pic16_popGet): set register instance field in AOP_CRY,
10189         * (pic16_outBitC): fixed for results in size greater than 1,
10190         * (genUminusFloat): fixed for pic16, ported code from mcs51,
10191         * (pic16_storeForReturn): optimized return of 0,
10192         * (genCmp): experimental code for new genCmp which uses PIC18's
10193         special compare&skip instructions. Initial tests fail some times
10194         with variables grater than 1 byte in size, so new code is disabled,
10195         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
10196         a single bit,
10197         * (genCast): began a fix to optimize the casting of a bit to another
10198         bit, now assigning a bitfield to another bitfield will fail, sorry,
10199         * src/pic16/main.c: disabled the use of lr-support feature,
10200         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
10201         * added some function prototypes, added function _debugf prototype,
10202         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
10203         bits with offset (case PO_GPR_BIT),
10204         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
10205         command line,
10206         * (isBankInstruction): modified to return 0 for no banking instruction,
10207         and 1 for banking instruction,
10208         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
10209         caused stop processing pCodes after a inline assembly block,
10210         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
10211         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
10212         registers when it shouldn't,
10213         * src/pic16/ralloc.c (allocReg): add preliminary support for
10214         supporting a limited set of temporary registers,
10215
10216 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10217
10218         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
10219           genDataPointerSet): ensure assignments always copy in MSB to LSB
10220           order,
10221           (loadRegFromAop): recognize CLRH optimization,
10222           (genFunction): optimize RECEIVE iCodes in reentrant functions
10223
10224 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10225
10226         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
10227           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
10228           selected.
10229         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
10230         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
10231           contiguous with data
10232
10233 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10234
10235         * device/lib/_gptrget.c (_gptrget),
10236         * device/lib/_gptrgetc.c (_gptrgetc),
10237         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
10238           instead of sjmp to ret
10239         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
10240           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
10241
10242 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
10243
10244         * .version: bumped version to 2.4.7
10245         * device/lib/_gptrget.c (_gptrget): is now _naked
10246         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
10247         * device/lib/_gptrput.c (_gptrput): is now _naked
10248         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
10249           (createFunction): fixed xstack
10250         * src/SDCCglue.c (emitMaps): set allocation required for bit area
10251         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
10252           or bit either,
10253           (geniCodeCritical): store original interrupt state in an iTemp bit
10254           var unless stack-auto
10255         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
10256         * src/SDCCmain.c (setIncludePath): added include/target to search path
10257         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
10258         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
10259           prototype,
10260           (processFuncArgs): put bit vars in bit area
10261         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
10262           unsaveRBank): fixed xstack,
10263           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
10264           (genFunction, genEndFunction): fixed xstack,
10265           (genAssign): optimization don't walk backwards through mem
10266         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
10267         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
10268         * support/regression/Makefile: also make library (for stack-auto) when
10269           making "all" and added "test-mcs51-xstack-auto"
10270         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
10271         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
10272         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
10273         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
10274         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
10275           make-library by MAKE_LIBRARY
10276         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
10277           regression tests for xstack
10278         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
10279         * support/regression/tests/critical.c: test for critical on mcs51
10280
10281 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10282
10283         * support/regression/ports/ucz80/spec.mk: use include and lib files from
10284           built version of sdcc instead of installed version
10285
10286 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
10287
10288         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
10289         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
10290           vprintf.c now
10291         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
10292         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
10293           WARNING: remove device/lib/build/z80/printf.o by hand when
10294           updating from previous build!
10295         * device/lib/z80/printf.c: updated comment
10296         * support/regression/tests/bug1057979.c: test all ports now
10297         * support/regression/tests/bug1065458.c: file added
10298
10299 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10300
10301         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
10302           *_start and *_end symbols for static functions
10303
10304 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
10305
10306         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
10307           and search crt0.o in all library paths,
10308           (setIncludePath): proper handling of --nostdinc,
10309           (setLibPath): proper handling of --nostdlib
10310         * support/regression/Makefile,
10311         * support/regression/ports/ds390/spec.mk,
10312         * support/regression/ports/gbz80/spec.mk,
10313         * support/regression/ports/hc08/spec.mk,
10314         * support/regression/ports/mcs51/spec.mk,
10315         * support/regression/ports/mcs51-large/spec.mk,
10316         * support/regression/ports/mcs51-stack-auto/spec.mk,
10317         * support/regression/ports/z80/spec.mk: use include and lib files from
10318           built version of sdcc instead of installed version
10319         * doc/sdccman.lyx: fixed typo in --nostdinc
10320
10321 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
10322
10323         * src/pic/pcode.c,
10324         * src/pic/device.c,
10325         * src/pic/ralloc.c,
10326         * src/pic/gen.c : added support to generate code for struct bit fields.
10327
10328 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
10329
10330         * as/xa51/xa_version.h,
10331         * device/include/errno.h,
10332         * device/include/regc515c.h,
10333         * device/lib/_itoa.c,
10334         * device/lib/_ltoa.c,
10335         * device/lib/ser_ir_cts_rts.c,
10336         * sim/ucsim/xa.src/glob.cc,
10337         * sim/ucsim/xa.src/inst_gen.cc,
10338         * sim/ucsim/xa.src/xa_bit.cc,
10339         * sim/ucsim/xa.src/xa_sfr.cc,
10340         * sim/ucsim/z80.src/inst_dd.cc,
10341         * sim/ucsim/z80.src/inst_fdcb.cc,
10342         * support/scripts/keil2sdcc.pl,
10343         * src/pic16/pic16.dsp,
10344         * src/pic16/pic16a.dsp: corrected cvs line endings
10345         * device/lib/printf_large.c: fixed bug 1057979
10346         * src/pic16/gen.c: fixed non-C standard code
10347         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
10348         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
10349         * support/regression/ports/mcs51/support.c: reload T1 asap
10350         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
10351           pdata use and clear idata startup behaviour
10352         * support/regression/tests/bug1057979.c: added
10353
10354 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
10355
10356         * device/examples/ds390/ow390/ad26.h,
10357         * device/examples/ds390/ow390/cnt1d.h,
10358         * device/examples/ds390/ow390/crcutil.c,
10359         * device/examples/ds390/ow390/ownet.h,
10360         * device/examples/ds390/ow390/owsesu.c,
10361         * device/examples/ds390/ow390/swt12.h,
10362         * device/examples/ds390/ow390/swtoper.c,
10363         * device/examples/ds390/ow390/temp10.h,
10364         * device/examples/ds390/ow390/thermodl.c,
10365         * device/examples/ds390/tinitalk/tinitalk.dsp,
10366         * device/examples/ds390/tinitalk/tinitalk.dsw,
10367         * device/examples/mcs51/clock/hw.h,
10368         * device/examples/mcs51/simple2/go.bat,
10369         * device/examples/serialcomm/windows/serial.h,
10370         * device/examples/xa51/dummy.c,
10371         * device/examples/xa51/hello.c,
10372         * device/include/80c51xa.h,
10373         * device/include/at89x051.h: corrected cvs line endings
10374
10375 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
10376
10377         * src/pic16/main.c (options): added command line --gstack, to trace
10378         stack over/under flows,
10379         * added pragma 'wparam' to allow passing first byte of function
10380         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
10381         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
10382         call to __gstack_test function and sets up the symbol as extern,
10383         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
10384         * popaop): added call to pic16_testStackOverflow,
10385         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
10386         wparamList list,
10387         * (genCall, genPcall): now all parameters are passed via stack
10388         except in functions that are pass to wparam pragma in which WREG is
10389         used too,
10390         * (genPcall): REENTRANT flag is checked to see if variable prototype
10391         contains reentrant keyword, don't call a non-reentrant function, via
10392         a reentrant function pointer or vice versa, functions are never
10393         passed via WREG,
10394         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
10395         D.Winkler,
10396         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
10397         SIGSEGV when accessing a NULL register stucture,
10398         * (pic16_printGPointerType): modified to handle UPPER modifier for
10399         function initializers, changed prototype of function to simpler one,
10400         * (pic16_printIvalFuncPtr): check to see if function is already
10401         added in externs list,
10402         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
10403         optimized a move from W to SFR with a move to the same register
10404         later after a CALL,
10405         * device/lib/pic16/debug: NEW directory, contains debug features
10406         which are enabled when linking with libdebug.lib, currently command
10407         line option --gstack enables stack pointer tracing for over/under
10408         flow, corresponding sources are in debug/gstack
10409
10410 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
10411
10412         * doc/sdccman.lyx: updated SDCC version,
10413         * (PIC16 port): update list of command line options,
10414         * src/pic16/device.h (structure pic16_options_t): added field gstack
10415         to enable stack overflow tracing on push/pops,
10416         * src/pic16/device.c (statistics structure): added statistics
10417         structure,
10418         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
10419         pic16_dump_int_registers): increase statistics counters for each
10420         * variable which is encountered
10421         * (pic16_dump_usection): emit each .udata variable to its own udata
10422         section,
10423         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
10424         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
10425         parameters via stack, otherwise use old scheme,
10426         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
10427         assembler output file,
10428         * src/pic16/main.c: added command line options --gstack to enable
10429         push/pop tracing for stack overflow,
10430         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
10431         instructions): added size of each instruction,
10432         * (pic16_countInstruction): estimate size of instructions in
10433         the_pFile list, inline assembly blocks are not counted,
10434         * (pic16_FixRegisterBanking): trace previous register usage, when
10435         banksel optimizations is greater than 0, don't emit a redudant
10436         banksel directive,
10437
10438 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
10439
10440         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
10441         * src/pic16/ralloc.c : applied same fix for pic16.
10442         * src/pic/gen.c : tidied it up a little.
10443
10444 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10445
10446         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
10447         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
10448
10449 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10450
10451         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
10452
10453 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10454
10455         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
10456         non-reentrant function __modsint in the interrupt function (thus
10457         corrupting math operations during serial I/O)
10458         * device/lib/ser_ir.c: as above, changed buffersize
10459         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
10460         256.c,d for zeroing
10461         * doc/Makefile: added option -t for rsync
10462
10463 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10464
10465         * src/SDCCast.h (struct ast),
10466         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
10467
10468 2004-10-20 Borut Razem <borut.razem AT siol.net>
10469
10470         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
10471         package
10472
10473 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
10474
10475         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
10476         makefile targets,
10477         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
10478         support functions to replace long sequences of MOVFF's from access
10479         bank registers to stack and vice versa,
10480         * src/pic16/device.h: added new field opt_flags, where optimization
10481         flags can be set to enable certain features,
10482         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
10483         * pBlock, (genFunction, genEndFunction): surroung loop for
10484         saving/loading used registers in stack with PC_INFO pCodes,
10485         INF_LREGS. Code in between can then be optimized by pCode optimizer
10486         to support function calls,
10487         * (genDataPointerSet): fixed bug which loaded float fields in
10488         structures with corrupt data,
10489         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
10490         in a standard way debug info on stderr. Feature used for developing
10491         and debugging only,
10492         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
10493         obsolete chunks of code,
10494         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
10495         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
10496         * pic16/src/pcode.c (pic16_newpCodeInfo,
10497         * (pic16_newpCodeOpLocalRegs),
10498         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
10499         feature,
10500         * (pic16_pCodeConstString): printing of the initial value of a
10501         symbol as a comment is inhibited since parsing was already done by
10502         copyStr and output is corrupt,
10503         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
10504
10505 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10506
10507         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
10508
10509 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
10510
10511         * as/mcs51/lkarea.c: removed old K&R style,
10512           (lnksect): changed check on boundary error,
10513           (lnksect2): changed check on boundary error,
10514           (lnksect2): extend XSTK to end of page if size = 1
10515         * as/mcs51/lkmain.c: removed old K&R style,
10516           (Areas51): create l_IRAM symbol
10517         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
10518         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
10519           model-mcs51-stack-auto, added model-mcs51-xstack-auto
10520         * device/lib/_mullong.c: added version to be compiled with xstack
10521         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
10522         * device/lib/mcs51/crtxclear.asm: clear pdata as well
10523         * device/lib/mcs51/crtxstack.asm: fixed comment
10524         * src/SDCCglue.c: maxInterrupts defaults to 0,
10525           (emitMaps): added pdata,
10526           (createInterruptVect): (re)moved default,
10527           (glue): added pdata,
10528           (glue): moved __start__xstack to XSTK with default size 1
10529         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
10530           and options.float_rent when options.stackAuto is set,
10531           (linkEdit): only write XDATA_NAME if provided on command line
10532         * src/SDCCmem.h,
10533         * src/SDCCmem.c: added pdata
10534         * src/port.h: added pdata_name to PORT
10535         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
10536           (saveRegisters, unsaveRegisters): removed usage of B,
10537           (genMinus): fixed accumulator clash,
10538           (genJumpTab): added comment, this needs another look
10539         * src/mcs51/gen.c: added check for "B in use" paranoia,
10540           added pushB() and popB()
10541         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
10542           chance
10543         * src/avr/main.c,
10544         * src/ds390/main.c,
10545         * src/hc08/main.c,
10546         * src/mcs51/main.c,
10547         * src/pic/main.c,
10548         * src/pic16/main.c,
10549         * src/xa51/main.c,
10550         * src/z80/main.c: (reset_regparms) made void parameter explicit and
10551           added PSEG (PAG,XDATA) or NULL to port specifier
10552         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
10553         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
10554           (_mcs51_genInitStartup): removed __start__xstack equ,
10555           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
10556         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
10557         * src/z80/gen.c (_rleAppend): fixed warnings
10558         * support/regression/tests/zeropad.c: added pdata test
10559         * .version: bumped to 2.4.6
10560
10561 2004-10-17 Borut Razem <borut.razem AT siol.net>
10562
10563         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
10564         as a part of nightly build
10565
10566 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
10567
10568         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
10569         WREG holds the first byte function parameters,
10570         * (aopForSym): take special case for symbols which are in FARSPACE
10571         but in CODESPACE too,
10572         * (assignResultValue): modified to take into account _G.useWreg,
10573         * (genCall): don't use wreg for parameter passing when function is
10574         declared as reentrant, too, added optimization INCF to stack
10575         pointer when stack parameter count is 1,
10576         * (genFunction, genEndFunction): refurnished and fixed to not using
10577         wreg for passing parameters when function has varargs or is
10578         reentrant, fixed bug with symbol name compare for generating
10579         functions in absolute address,
10580         * (pic16_storeForReturn): refurnished,
10581         * (genCmp): began writing a new version of the function, not ready
10582         yet, therefore it is disabled,
10583         * (genAssign): do not read code memory when assigning a function to
10584         a pointer function,
10585         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
10586         array of characters, not pointer,
10587         * (pic16initialComments): in debug mode emit an .ident directive for
10588         the assembler,
10589         * (_process_pragma): emit a new warning type (internal to pic16)
10590         when setting stack to default length, emit a similar warning when
10591         placing a function at absolute address and address is not word aligned
10592         * (_pic16_parseOptions): added 'return TRUE' statement,
10593         * (_pic16_linkEdit): if compiling a source, then add the source's
10594         file object, first in the list of objects to link,
10595
10596 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
10597
10598         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
10599         * src/pic/main.c : removed VC warning.
10600         * src/pic/gen.c : changed comment.
10601
10602 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
10603
10604         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
10605         reference to a deprecated symbol _GPTRREG was causing failure to
10606         link. Thanks G. M. Gallant for the info.
10607
10608 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
10609
10610         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
10611         comments for Bugs item #954788.
10612
10613 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
10614
10615         * src/pic16/device.c (pic16_dump_gsection,
10616         * pic16_groupRegistersInSection): handle symbols declared to be in
10617         access bank differently,
10618         * src/pic16/gen.c (struct _G): added field resDirect,
10619         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
10620         send values read from stack directly to result and don't allocate
10621         temporary values,
10622         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
10623         same registers,
10624         * (pic16_sameRegsOfs): NEW,
10625         * (freeAsmop): if _G.resDirect is set then do not mark registers as
10626         free because they were not allocated from temporary pool,
10627         * pic16_popRegFromString): workaround to fix a problem with
10628         allocating variables twice or never,
10629         * (genGenPointerGet): using PRODL instead of FSR0H,
10630         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
10631         instead of FSR0H,
10632         * (genAssign): take advantage of the _G.resDirect flag,
10633         * (genCast): around line 11844, use mov2f instead of directly
10634         MOVFF'ing between operands to account for literal values,
10635         * src/pic16/genutils.c: some new debug functions for gpsim have been
10636         added,
10637         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
10638         float with integer part only,
10639         * src/pic16/main.c (_process_pragma): handle pragma udata access to
10640         place variables in access bank
10641         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
10642         updated sources to reflect recent changes in gen.c
10643
10644 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
10645
10646         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
10647         sources that searched for headers in installation path, now the
10648         device/include/pic16 is used,
10649         * src/pic16/glue.c (pic16glue),
10650         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
10651         .line directives if not in debug mode, this suppresses assembler's
10652         warnings for ignored directives
10653
10654 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
10655
10656         * src/port.h: made reset_regparms prototype void parameter explicit.
10657         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
10658         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
10659         * doc/sdccman.lyx: documented warning disabling and how to use
10660           printf_large to make it print floats.
10661         * device/include/stdbool.h: NEW
10662         * device/lib/_atof.c,
10663         * device/lib/_divuint.c,
10664         * device/lib/_divulong.c,
10665         * device/lib/expf.c,
10666         * device/lib/printf_large.c,
10667         * device/lib/sincosf.c,
10668         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
10669         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
10670           a completely reentrant lib.
10671
10672 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
10673
10674         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
10675         * device/include/pic16/stdio.h: fixed bug with colon
10676
10677 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
10678
10679         * device/include/pic16/stdio.h,
10680         * device/include/pic16/stdlib.h,
10681         * device/include/pic16/math.h: NEW
10682         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
10683         declared as _naked to reduce overhead
10684         * device/lib/Makefile.in (target port-specific-objects-pic16):
10685         changed * to *.* so to ignore the CVS directory,
10686         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
10687         stacked variables back in stack,
10688         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
10689         corruption
10690
10691 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
10692
10693         * .version: bumped version number to 2.4.5
10694         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
10695         * support/Util/SDCCerr.c (messages structure): added entry for
10696         W_POSSBUG2
10697
10698         Large cumulative patch for pic16 port and libraries.
10699         * device/include/pic16/sdcc-lib.h,
10700         * device/include/pic16/stdarg.h,
10701         * device/include/asm/pic16/features.h,
10702         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
10703         * device/include/pic16/float.h: changes reentrant keyword with
10704         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
10705         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
10706         updated target build-libraries to include objects from gptr,
10707         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
10708         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
10709         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
10710         all function headings,
10711         * src/SDCCmain.c: added global parameter userIncDirsSet,
10712         * (parseCmdLine): when option -I is encountered add directory to
10713         userIncDirsSet too,
10714         * src/version.awk: added space between control and long,
10715         * src/pic16/NOTES: added some notes for the port,
10716         * src/pic16/gen.c: added prototype for mov2fp function,
10717         * (fReturnpic16[]): properly named return value registers,
10718         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
10719         * (aopForSym): added code to handle symbols with onStack flag set,
10720         symbols onStack are allocated PTRSIZE bytes,
10721         * (aopFreeAsmop): handles special case where asmops are stack objects,
10722         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
10723         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
10724         added argument lock to trace flaws in allocating temporary registers
10725         when developing port,
10726         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
10727         * (pic16_popRegFromString): reenabled allocating a direct register
10728         from string,
10729         * (assignResultValue): various beautifications,
10730         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
10731         referenced function argument,
10732         * (genIpush): reenabled to allow stacked arguments, handles only
10733         ic->parmPush iCodes,
10734         * (genCall, genPcall): major changes to allow for variable argument
10735         functions, fixed a bug with falsely restoring stack pointer after
10736         returning from call,
10737         * (genFunction): pending code for critical function,
10738         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
10739         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
10740         * (genNearPointerGet): fixed bug with indirect reading, was always
10741         reading from INDF0
10742         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
10743         pointers,
10744         * (genAddrOf): rewrote code to take address of a stacked function parameter
10745         * (genCast): fixed casting to generic pointer type,
10746         * src/pic16/gen.h: added AOP_STA,
10747         * (struct asmop): added field stk,
10748         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
10749         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
10750         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
10751         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
10752         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
10753         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
10754         generic pointers,
10755         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
10756         and library paths,
10757         * (pic16_port structure): generic pointer size is set to 3,
10758         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
10759         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
10760         compiler warning,
10761         * src/pic16/ralloc.c (allocReg): prevent allocating register when
10762         operand is an iTemp,
10763
10764 2004-09-24 Martin Helmling <mh AT octo-soft.de>
10765
10766         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
10767         * debugger/mcs51/simi.c: addapt new syntax of s51
10768
10769 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
10770
10771         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
10772         * src/pic16/pcode.c: commented out some calls to free() in order to
10773         fix bug #989576,
10774
10775 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10776
10777         * src/SDCCicode.h,
10778         * src/SDCCicode.c (isiCodeInFunctionCall),
10779         * src/avr/ralloc.c (selectSpil),
10780         * src/pic/ralloc.c (selectSpil),
10781         * src/pic16/ralloc.c (selectSpil),
10782         * src/ds390/ralloc.c (selectSpil),
10783         * src/hc08/ralloc.c (selectSpil),
10784         * src/xa51/ralloc.c (selectSpil),
10785         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
10786         stack in the middle of a function call sequence (fixes bug #1020268)
10787         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
10788         costs associated with the minimum switch case.
10789
10790 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10791
10792         * src/SDCC.lex: fixed bug #1030549
10793
10794 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10795
10796         * src/SDCCcse.h (struct cseDef),
10797         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
10798         over a function call if the CSE is derived from a symbol whose
10799         address has been taken (fixes bug #1029883)
10800         * support/regression/tests/bug-1029883: a new regression test for
10801         this bug
10802
10803 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10804
10805         * src/hc08/gen.c (emitinline): fixed bug #1029778
10806         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
10807         to a cast object is no longer a syntax error ("fixes" bug #1030006,
10808         and starts toward RFE #905167)
10809
10810 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
10811
10812         * src/pic16/gen.c (mov2f): New function to move an operand to
10813         another without considering if it is a literal or a register,
10814         * (pic16_sameRegs): don't check if they are both AOP_REG,
10815         * (AccRsh): removed andmask=0 lines,
10816         * (genLeftShift): duplicated to be improved in future versions,
10817         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
10818         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
10819         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
10820         * (pic16initMnemonics): added initialization for POC_INFSNZW,
10821         * (insertBankSwitch): fixed inserting banksel directives algorithm
10822         for instructions that follow a skip instruction, this fixes a report
10823         for broken subtraction code generation,
10824         * src/pic16/ralloc.c (deassignLRs): do not free register if current
10825         iCode is a left op, just in case result and right share the same
10826         registers
10827
10828 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10829
10830         * src/hc08/main.c,
10831         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
10832         preservation of HX
10833         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
10834         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
10835         on 2004-09-12; it was buggy
10836
10837 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
10838
10839         * src/SDCCsymt.h: removed RESULT_CHECK
10840         * src/SDCCast.c,
10841         * src/SDCCglue.c,
10842         * src/SDCCval.c,
10843         * src/pic/glue.c,
10844         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
10845
10846 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
10847
10848         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
10849         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
10850         configuration values no more rejected by compiler, they are assigned
10851         to configuration registers with a warning message instead,
10852         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
10853         the for-loop so last conf register is emitted too,
10854         * (_pic16_initPaths): link library libsdcc.lib by default,
10855         * (_hasNativeMulFor): modified test for multiplication according to
10856         Raphael Neider's remarks. Integer multiplication is also done with
10857         support functions,
10858         * device/include/pic16/pic18fregs.h: corrected type error in while
10859         testing and including 18f6720 header file
10860
10861 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
10862
10863         * src/pic16/device.h (pic16_options): removed field use_crt,
10864         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
10865         until an optimization to handle single bits is added,
10866         * (pic16_loadFSR0): moved before genUnpackBits,
10867         * (genAnd): some white lines removed,
10868         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
10869         leave_reset flags in pic16_options when using crt modules,
10870
10871 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
10872
10873         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
10874           for bugs 898889 & 979599. Also used some safer print instructions.
10875
10876 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
10877
10878         * src/pic16/device.h (pic16_options_t): added field use_crt,
10879         crt_name, no_crt,
10880         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
10881         catch a probable future bug,
10882         * src/pic16/gen.c: aopIdx function commented out,
10883         * (genAssign): commented out old code which used aopIdx,
10884         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
10885         code, added if conditionals to take into account the --use-crt
10886         command line options,
10887         * src/pic16/main.c (pic16_optionsTable): added new command line
10888         options, --use-crt= and --no-crt,
10889         * (_pic16_linkEdit): now the proper crt object is added in the
10890         linker command line except than when --no-crt is specified,
10891         * src/pic16/pcode.c,
10892         * src/pic16/pcode.h: added some structures and functions for a new
10893         optimization scheme to compansate for instruction overhead between
10894         same iCodes, this scheme is currently under development and is not
10895         working in any way,
10896         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
10897         to && operator,
10898         * device/lib/pic16/startup/crt0i.c,
10899         * device/lib/pic16/startup/crt0iz.c: added global char variable
10900         __uflags to force the generation of an idata section
10901
10902 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
10903
10904         * doc/Makefile,
10905         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
10906         * doc/sdccman.lyx: updated sdcc version to 2.4.4
10907
10908 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10909
10910         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
10911         Frieder) and clarified the default code optimization mode
10912
10913 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10914
10915         * src/SDCC.lex (doPragma, process_pragma),
10916         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
10917         "opt_code_size", and "opt_code_balanced"
10918         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
10919         regrouped options by category, added support for category headers
10920         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
10921         and "--opt-code-size"
10922         * doc/sdccman.lyx: documented these new options and pragmas
10923         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
10924         preference into account
10925
10926 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10927
10928         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
10929           geniCodePreDec): Fixed bug 904237 by generating a warning
10930         * src/SDCCerr.h,
10931         * src/SDCCerr.c: added warning W_SIZEOF_VOID
10932
10933 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
10934
10935         * src/pic/device.c : When no max ram set validate full memory range.
10936         * src/pic/pcode.c,
10937         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
10938
10939 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10940
10941         * device/lib/_gptrget.c,
10942         * device/lib/_gptrput.c: updated comment
10943         * device/lib/calloc.c,
10944         * device/lib/free.c,
10945         * device/lib/malloc.c,
10946         * device/lib/realloc.c: added LGPL, made them reentrant-safe
10947         * src/SDCCcse.c (cseBBlock),
10948         * src/SDCCicode.c (printOperand, geniCodeArray),
10949         * src/SDCCicode.h (struct operand): fixed bug 868103
10950         * support/regression/tests/bug-868103.c: added
10951         * src/SDCCast.c (searchLitOp),
10952         * src/SDCCcse.h (struct cseDef),
10953         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
10954         * src/SDCCicode.h (struct operand),
10955         * src/SDCCsymt.h (struct sym_link),
10956         * src/avr/gen.c (hasInc),
10957         * src/ds390/gen.c (hasInc),
10958         * src/hc08/gen.c (genPlusIncr, hasInc),
10959         * src/mcs51/gen.c (hasInc),
10960         * src/pic16/glue.c (pic16_printIvalChar),
10961         * src/pic16/ralloc.c (regWithIdx),
10962         * src/xa51/gen.c (hasInc) : removed warnings
10963         * src/SDCCast.c (createBlock): added comment ???
10964         * src/hc08/ralloc.c: updated comments
10965
10966 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10967
10968         * doc/sdccman.lyx: updated section on switch statements, added
10969         section about semaphore locking
10970         * doc/Makefile: added option -info for latex2html
10971         * device/lib/_gptrget.c,
10972         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
10973
10974 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10975
10976         * src/pic/device.h,
10977         * src/pic/device.c,
10978         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
10979          maxram is less than 0x100.
10980
10981 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10982
10983         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
10984
10985 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10986
10987         * src/port.h,
10988         * src/mcs51/main.c,
10989         * src/ds390/main.c,
10990         * src/z80/main.c,
10991         * src/hc08/main.c,
10992         * src/pic/main.c,
10993         * src/pic16/main.c,
10994         * src/avr/main.c,
10995         * src/xa51/main.c
10996         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
10997         a jump table is the best form for a switch statement, including
10998         automatic insertion of missing cases to make the case range
10999         continuous. Developed in collaboration with Frieder Ferlemann.
11000
11001 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11002
11003         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
11004         accumulator result if it needs sign extension
11005
11006 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
11007
11008         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
11009
11010 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
11011
11012         * device/lib/gbz80/printf.c,
11013         * device/lib/z80/printf.c: removed define for NULL
11014
11015 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
11016
11017         * as/xa51/xa_link.c,
11018         * device/examples/ds390/ow390/ad26.c,
11019         * device/examples/ds390/ow390/cnt1d.c,
11020         * device/examples/ds390/ow390/counter.c,
11021         * device/examples/ds390/ow390/ds2480.h,
11022         * device/examples/ds390/ow390/ds2480ut.c,
11023         * device/examples/ds390/ow390/findtype.c,
11024         * device/examples/ds390/ow390/gethumd.c,
11025         * device/examples/ds390/ow390/owllu.c,
11026         * device/examples/ds390/ow390/ownetu.c,
11027         * device/examples/ds390/ow390/swt12.c,
11028         * device/examples/ds390/ow390/swtloop.c,
11029         * device/examples/ds390/ow390/temp.c,
11030         * device/examples/ds390/ow390/temp10.c,
11031         * device/examples/ds390/ow390/thermo21.c,
11032         * device/examples/ds390/ow390/tinilnk.c,
11033         * device/examples/ds390/ow390/tstfind.c,
11034         * device/examples/serialcomm/windows/serial.cpp,
11035         * device/examples/serialcomm/windows/test_serialcomm.cpp,
11036         * device/include/reg51.h: fixed line endings for cvs
11037
11038 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11039
11040         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
11041         packRegsForAccUse, packRegisters): new accumulator register
11042         packing algorithm
11043         * support/regression/ports/hc08/support.c (_putchar): suppress
11044         warning of unused variable
11045         * src/SDCCicode.c: added SWAP entry to codeTable
11046
11047 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
11048
11049         * device/lib/sprintf.c: forgot to add this file before previous commit
11050
11051 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
11052
11053         * src/pic16/gen.c (genPackBits): added operand right in function
11054         parameters, load result directly if p_type is POINTER (that is
11055         called by genNearPointerSet)
11056         * (genUnPackBits): added operand left in function parameters,
11057         * (genNearPointerGet, genNearPointerSet): prevent the loading of
11058         FSR0 if accessing bitfields,
11059
11060 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
11061
11062         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
11063           _print_format; updated printf, sprintf, vsprintf
11064         * device/include/asm/default/features.h: corrected comment/define
11065         * device/lib/Makefile.in: added sprintf.c
11066         * device/lib/libsdcc.lib: added sprintf module
11067         * device/lib/printf_large.c,
11068         * device/lib/vprintf.c,
11069         * device/lib/sprintf.c: totally refactored printf_large and vprintf
11070           into these 3 files
11071         * support/regression/Makefile: changed ALL_PORTS into a usefull default
11072         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
11073         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
11074           hc08 test
11075         * support/regression/tests/zeropad.c: define idata as data for hc08
11076
11077 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11078
11079         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
11080         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
11081         labels are referenced at least once (even if a reference is not found)
11082         * src/hc08/gen.c (emitcode): set isComment flag for comments
11083         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
11084         loads), rules 6a..6b (optimize jumps to return)
11085
11086 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11087
11088         * device/lib/acosf.c (acosf),
11089         * device/lib/asinf.c (asinf),
11090         * device/lib/atanf.c (atanf),
11091         * device/lib/ceilf.c (ceilf),
11092         * device/lib/cosf.c (cosf),
11093         * device/lib/coshf.c (coshf),
11094         * device/lib/cotf.c (cotf),
11095         * device/lib/fabsf.c (fabsf),
11096         * device/lib/floorf.c (floorf),
11097         * device/lib/log10f.c (log10f),
11098         * device/lib/logf.c (logf),
11099         * device/lib/sinf.c (sinf),
11100         * device/lib/sinhf.c (sinhf),
11101         * device/lib/sqrtf.c (sqrtf),
11102         * device/lib/tanf.c (tanf),
11103         * device/lib/tanhf.c (tanhf),
11104         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
11105         replaced all instances of "reentrant" in the library functions
11106         defined in math.h with this macro.
11107         * support/regression/tests/float_trans.c: reenabled test for hc08
11108
11109 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
11110
11111         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
11112         erroneously deleted
11113
11114 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11115
11116         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
11117         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
11118         multi-byte volatile operands are used
11119         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
11120         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
11121         initialization to area GSINIT0 so that it would always precede
11122         any static initializers in GSINIT
11123         * support/regression/tests/zeropad.c: fixed idata define for hc08
11124         * support/regression/tests/bug-927659.c,
11125         * support/regression/tests/float_trans.c: disabled tests for hc08
11126         pending missing library routines
11127         * .version: increased version number to 2.4.4 - hc08 port now passes
11128         regression tests
11129
11130
11131 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
11132
11133         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
11134         * Makefile.common.in,
11135         * as/Makefile,
11136         * as/hc08/Makefile.in,
11137         * as/mcs51/Makefile.in,
11138         * as/z80/Makefile.in,
11139         * debugger/mcs51/Makefile.in,
11140         * device/include/Makefile.in,
11141         * device/lib/Makefile.in,
11142         * doc/Makefile,
11143         * link/Makefile,
11144         * link/z80/Makefile.in,
11145         * packihx/Makefile.in,
11146         * sim/ucsim/main_in.mk,
11147         * sim/ucsim/avr.src/Makefile.in,
11148         * sim/ucsim/doc/Makefile.in,
11149         * sim/ucsim/gui.src/serio.src/Makefile.in,
11150         * sim/ucsim/hc08.src/Makefile.in,
11151         * sim/ucsim/s51.src/Makefile.in,
11152         * sim/ucsim/xa.src/Makefile.in,
11153         * sim/ucsim/z80.src/Makefile.in,
11154         * src/Makefile.in,
11155         * support/cpp2/Makefile.in,
11156         * support/librarian/Makefile,
11157         * support/makebin/Makefile: added DESTDIR to the install path proposed
11158         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
11159         * doc/sdccman.lyx: added DESTDIR documentation
11160
11161 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
11162
11163         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
11164         instruction for interrupt handlers, use fast returns when returning
11165         from high priority interrupts
11166
11167 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11168
11169         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
11170         code generation
11171         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
11172         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
11173         bugs, ported much of Bernhard's code from mcs51
11174         * src/mcs51/gen.c (genSend),
11175         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
11176         than one when calling a reentrant function
11177         * device/lib/_mullong.c: defined an alternate struct layout for big
11178         endian ports (hc08)
11179
11180 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11181
11182         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
11183         test
11184
11185 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11186
11187         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
11188         are sane and complete before asking the port its prefered parameter
11189         passing method (fixes bug #1017633)
11190         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
11191         and _ret3
11192
11193 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11194
11195         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
11196         problem in bitfields >= 8 bits.
11197
11198 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
11199
11200         * src/SDCCsymt.c: undid changes that were not meant to be committed
11201
11202 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
11203
11204         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
11205
11206 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
11207
11208         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
11209           copied and wrong bit got inverted
11210
11211 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11212
11213         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
11214         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
11215         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
11216         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
11217         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
11218         assignments to bitfields at known addresses
11219         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
11220         reads from bitfields at known addresses
11221         * src/hc08/ralloc.c (packRegisters),
11222         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
11223         genhc08Code): optimize pointer get values used as conditionals
11224         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
11225         and branch
11226
11227 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11228
11229         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
11230         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
11231         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
11232         as conditionals
11233
11234 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11235
11236         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
11237
11238 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11239
11240         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
11241         related problems
11242
11243 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
11244
11245         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
11246
11247 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11248
11249         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
11250         mcs51 port
11251
11252 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
11253
11254         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
11255
11256 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11257
11258         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
11259         cases use more compact code.
11260
11261 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
11262
11263         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
11264
11265 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11266
11267         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
11268
11269 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11270
11271         * src/SDCCsymt.h,
11272         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
11273         parameter of changePointer() from symbol* to sym_link*
11274         * src/SDCCast.c (decorateType): call changePointer() for CAST op
11275         * src/SDCCsymt.c (compareType): void* type is castable to other
11276         pointers, but not necesarily an exact match.
11277         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
11278         is no longer blindly treated as an exact match.
11279         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
11280
11281 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
11282
11283         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
11284
11285 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
11286
11287         * src/pic/gen.c,
11288         * src/pic/pcode.c,
11289         * src/pic/ralloc.h,
11290         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
11291
11292 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
11293
11294         * src/pic/device.c,
11295         * src/pic/device.h,
11296         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
11297
11298 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11299
11300         * src/mcs51/gen.c (emitcode): fixed bug #992819
11301
11302 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
11303
11304         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
11305           there's no need to make it worse
11306
11307 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11308
11309         * src/mcs51/ralloc.c (deassignLR),
11310         * src/ds390/ralloc.c (deassignLR),
11311         * src/hc08/ralloc.c (deassignLR),
11312         * src/z80/ralloc.c (deassignLR),
11313         * src/pic/ralloc.c (deassignLR),
11314         * src/pic16/ralloc.c (deassignLR),
11315         * src/avr/ralloc.c (deassignLR),
11316         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
11317         rlivePoint): fixed another part of bug #971834
11318
11319 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11320
11321         * src/z80/main.c: enabled "critical" keyword
11322         * src/z80/mappings.i,
11323         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
11324         functions (fixes bug #979646)
11325         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
11326
11327 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11328
11329         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
11330           such as c:\mydir.
11331
11332 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
11333
11334         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
11335           doesn't disable too much optimizations
11336
11337 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
11338
11339         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
11340
11341 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
11342
11343         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
11344
11345 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
11346
11347         * src/pic/gen.c tidied up tabs
11348         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
11349         * src/pic/main.c tidied up tabs
11350         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
11351         * src/pic/pcoderegs.c tidied up tabs
11352         * src/pic/ralloc.c tidied up tabs
11353
11354 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
11355
11356         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
11357         to S_FIXED for pic16 port and when symbol is not in level 0,
11358         allocate for S_REGISTER storage class and pic16 port, too,
11359         * src/pic16/device.h: prototype for checkSym,
11360         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
11361         * (pic16_assignConfigWordValue): test the value and the mask to
11362         validate that the value is suitable for the configuration word,
11363         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
11364         collect extern declared symbols, don't emit symbol twice, check
11365         first if symbol is in publics set first,
11366         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
11367         * added command line '--fstack' which enables an experimental
11368         feature for stack access, too buggy to be used yet...
11369         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
11370         * (pic16_allocDirReg): when register has storage class S_REGISTER
11371         allocate in pic16_dynAccessRegs,
11372         * device/include/pic16/pic18f????.h: modified configuration word
11373         naming convention, words started as CONFIG0H but should be CONFIG1H
11374
11375 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
11376
11377         * device/include/mcs51reg.h: fixed bug 970993
11378
11379 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
11380
11381         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
11382         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
11383         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
11384         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
11385         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
11386         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
11387           error/warning numbers,
11388           added function setWarningDisabled()
11389         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
11390         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
11391           _memcmp.c _memmove.c calloc.c realloc.c free.c
11392         * support/regression/tests/malloc.c: added tests for new functionality
11393         * support/regression/tests/zeropad.c: added tests for truncated initializers
11394           and initialized char arrays starting with '\x0'
11395         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
11396
11397 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
11398
11399         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
11400
11401 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11402
11403         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
11404         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
11405         peephole 177.e. Thanks to anonymous
11406
11407 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
11408
11409         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
11410         function isn't used in the source but referenced as a
11411         variable initializer then declare it as extern in .asm file
11412
11413 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
11414
11415         * .version: increased version number to 2.4.3
11416
11417         Adding version extension according to ChangeLog CVS revision
11418         * src/Makefile.in (target all): added dependency 'version.h'
11419         * (rule version.h): added rule to create version.h from ChangeLog,
11420         * (rule dep): added dependency version.h,
11421         * src/version.awk: AWK script to create version.h
11422         * src/SDCCdwarf2.c (dwWriteModule),
11423         * src/SDCCglue.c (initialComments),
11424         * src/SDCCmain.c (printVersionInfo): modified to write after
11425         version string the version extension number,
11426         * src/SDCCutil.c: included "version.h"
11427         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
11428         number,
11429         * src/SDCCutil.h: added prototype for getBuildNumber
11430
11431         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
11432         includeDirsSet, too,
11433         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
11434         const char [] is found in function prototype...
11435
11436         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
11437         moving to WREG with source is already in WREG,
11438         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
11439         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
11440         * (aopForSym): stack'ed symbols are partially supported, added
11441         if-clause to support symbols in FARSPACE,
11442         * (sameRegs): added test for AOP_ACC to see if registers are same,
11443         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
11444         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
11445         * (pic16_popRegFromString): will not allocate a new register if it
11446         doesn't find one by name, bug may have introduced...
11447         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
11448         * (genIpush): revived to use pic16 port's stack,
11449         * (genAddrOf): added incomplete case for stack'ed operand,
11450         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
11451         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
11452         can handle multibyte operands,
11453         * src/pic16/glue.c (pic16_printIval*): some debug info added,
11454         * (pic16initialComments): added message for MPLAB compatibility
11455         mode enabled,
11456         * src/pic16/main.h: prototype for pic16_mplab_comp,
11457         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
11458         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
11459         * (_pic16_linkEdit): NEW, handles link stage, transferred here
11460         because of increased complexity of procedure,
11461         * (_process_pragma): stack pragma changed to format 'stack pos len',
11462         emit symbol '_stack_end' to conform with gplink,
11463         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
11464         to search for register,
11465         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
11466         PO_GPR_REGISTER,
11467         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
11468         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
11469         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
11470         case for PO_GPR_REGISTER,
11471         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
11472         dies, the new era is ahead !...
11473         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
11474         pic16_dynInternalRegs,
11475         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
11476         * (pic16_allocDirReg): minor optimizations and bug fixes,
11477         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
11478
11479         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
11480         load stack and frame pointer with address of 'stack_end' symbol
11481
11482 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
11483
11484         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
11485         without source code but only variable initializers
11486
11487 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
11488
11489         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
11490         external are not declared as extern to reduce overhead while linking
11491
11492 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
11493
11494         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
11495
11496 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
11497
11498         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
11499           Yee Keat for the patch
11500         * src/SDCCast.c (decorateType): fixed bug #979599
11501         * src/ds390/gen.h: removed local fReturnSizeDS390
11502         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
11503         * src/ds390/gen.c (genAnd, genOr, genXor),
11504         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
11505
11506 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
11507
11508         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
11509         add relFilesSet to $3, manipulate $2 to handle linking of object
11510         files without source files in command line,
11511         * device/include/pic16 (all headers): added ID location macros,
11512         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
11513         entries for ID location bytes,
11514         * (pic16_assignIdByteValue): NEW,
11515         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
11516         added field dumpcalltree to pic16_options_t,
11517         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
11518         is used instead of pic16_Gstack_base_addr, check if (ifx) before
11519         emitting rFalseIfx label after check_carry label,
11520         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
11521         pic16_emitDIRegs), NEW
11522         * (pic16glue): dump .calltree file when option --calltree found,
11523         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
11524         * (_pic16_genAssemblerPreamble): emit ID locations after
11525         configuration registers,
11526         * (pic16_linkCmd): modifications of the link command,
11527         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
11528         * (pic16_pCodeInitRegisters): don't init stack registers,
11529         * (pic16_findPrevInstruction): fixed bug,
11530         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
11531         bug with immediate registers,
11532         * (buildCallTree): traces stack push and pop,
11533         * (pct2): dump also stack usage for each function,
11534         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
11535         * (pic16_allocDirReg): various modifications,
11536         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
11537         fixed to 1,
11538
11539 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
11540
11541         * src/pic16/pcode.c: removed buggy double colon
11542
11543 2004-07-01 Borut Razem <borut.razem AT siol.net>
11544
11545         * support/scripts/sdcc.nsi: added include/pic16 to setup
11546
11547 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
11548
11549         * device/lib/Makefile.in: fixed bug in target objects-pic16,
11550         * device/lib/pic16/Makefile: prefixed with dash (-) command under
11551         target 'clean',
11552         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
11553         specific command line arguments. Also added sample lkr script
11554         for placing a variable at a specific memory bank.
11555         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
11556         at a specific memory bank,
11557         * (pic16_dump_isection): fixed bug which caused string literals to
11558         be omitted when dumping idata section,
11559         * (pic16_groupRegistersInSection): added code to handle registers
11560         in specific memory banks,
11561         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
11562         public, all references are renamed too,
11563         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
11564         AOP_DPTR2,
11565         * (pic16_storeForReturn): added case to handle when dest is WREG,
11566         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
11567         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
11568         pic16_rel_udata, check to see if that register is marked as being
11569         a member of a specific memory bank,
11570         * (pic16_printIvalCharPtr): added code to add string literals either
11571         to code or the idata sections,
11572         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
11573         also accept the 'udata' pragma,
11574         * src/pic16/main.h: new structure types sectName and sectSym
11575         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
11576         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
11577         * (pic16_findPrevInstruction): fixed, it returned nothing,
11578         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
11579         instruction combinations,
11580         * (pic16_FixRegisterBanking): heavily reorganised,
11581         * (pic16_AnalyzeBanking): if generating banksel directives is
11582         disabled, then don't call FixRegisterBanking at all,
11583         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
11584         completely removed,
11585         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
11586
11587 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
11588
11589         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
11590         Phuah Yee Keat <yk.phuah AT nestac.com>
11591
11592 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
11593
11594         * src/pic16/glue.c (pic16createInterruptVect): function now emits
11595         correctly the IVT even if it is relocated to some other location
11596
11597 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
11598
11599         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
11600         * device/include/pic16/pic18f2220.h: NEW,
11601         * device/lib/pic16/libdev/pic18f2220.c: NEW,
11602         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
11603         * src/pic16/device.c (struct Pics16): added info for 18f2220,
11604         * src/pic16/device.h (struct pic16_options): added ivt_loc and
11605         nodefaultlibs, ivt_loc is the location of the interrupt vector
11606         table, and nodefaultlibs signs that default libraries should not be
11607         linked in link stage,
11608         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
11609         according to --ivt-loc argument,
11610         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
11611         when pragma stack is found,
11612
11613 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11614
11615         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
11616         256 (range check), 257 (do while), 258.a-f (bit banging
11617         f.e. on 3-wire SPI bus)
11618
11619 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11620
11621         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
11622         variables used exclusively within a loop
11623
11624 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
11625
11626         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
11627
11628 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11629
11630         * src/SDCClrange.c (computeClash): fixed bug #971834
11631
11632 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11633
11634         * src/mcs51/gen.c (genCmp): fixed bug #975903
11635         * src/hc08/gen.c (operandsEqu),
11636         * src/ds390/gen.c (operandsEqu),
11637         * src/z80/gen.c (operandsEqu),
11638         * src/pic/gen.c (operandsEqu),
11639         * src/pic16/gen.c (operandsEqu),
11640         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
11641         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
11642
11643 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11644
11645         * src/SDCCcse.c (cseBBlock): fixed bug #966963
11646
11647 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
11648
11649         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
11650         default case in switch statement,
11651         * glue.c (pic16_initPointer): expr is initialised via decoarteType
11652         to eliminate problem with initialisation of pointers, but problem
11653         still exists,
11654         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
11655         * (emitStaticSegment): removed various lines emitting debug info,
11656         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
11657         added processor registers for utilizing EEPROM,
11658         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
11659         configurable and set 8
11660
11661 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
11662
11663         * .version: increased version number to 2.4.2,
11664
11665         Cumulative patch for pic16 port
11666         * src/pic16/device.c: changed scheme to dump initial values for
11667         variables in idata segment, all print_idata* functions were removed,
11668         now the pic16_printIval* will be called,
11669         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
11670         * _pic16_printPointerType, pic16_printPointerType,
11671         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
11672         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
11673         NEW, similar to the respective functions in SDCCglue.c,
11674         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
11675         way, emitting hex bytes,
11676         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
11677
11678 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11679
11680         * src/avr/ralloc.c (serialRegAssign),
11681         * src/xa51/ralloc.c (serialRegAssign),
11682         * src/pic/ralloc.c (serialRegAssign),
11683         * src/pic16/ralloc.c (serialRegAssign),
11684         * src/hc08/ralloc.c (serialRegAssign),
11685         * src/z80/ralloc.c (serialRegAssign),
11686         * src/ds390/ralloc.c (serialRegAssign),
11687         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
11688
11689 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11690
11691         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
11692         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
11693
11694 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
11695
11696         Cumulative patch for pic16 port:
11697         * src/pic16/device.h (typedef PIC16_device) modified fields for
11698         defining microcontrollers,
11699         * src/pic16/device.c: added new info for all devices in Pics16 array,
11700         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
11701         to be optimised out by the pCode optimiser,
11702         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
11703         specially, bug reported by G.M. Gallant,
11704         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
11705         as force'd so that cannot be optimised out by pCode optimiser,
11706         * src/pic16/pcode.c,
11707         * src/pic16/pcodepeeph.c,
11708         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
11709         they are disabled by default, but can be enabled explicit with
11710         command argument --denable-peeps, for testing,
11711         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
11712         --pomit-ivt in COMPILE_FLAGS
11713
11714 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
11715
11716         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
11717           compilation on MSVC
11718
11719 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
11720
11721         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
11722
11723 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11724
11725         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
11726         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
11727
11728 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
11729
11730         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
11731         would only assign 0x300001 register.
11732
11733 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
11734
11735         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
11736         in COMPILE_FLAGS. Thanks to G. Gallant for report.
11737
11738 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11739
11740         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
11741         for ds80c400
11742         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
11743         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
11744         added peephole 254 (left shift), 255 (jump table)
11745
11746 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
11747
11748         * device/lib/Makefile.in: removed comment line with model-pic16,
11749         * (target port-specific-objects-pic16): the libraries and objects
11750         are copied to the build directory form the device/lib/pic16/bin
11751         directory
11752
11753         Cumulative patch concerning pic16 port:
11754         * library directory has been re-organized,
11755         * added support for PIC18F1220,
11756         * added headers and library sources for chips 18f1220,18f6520,
11757         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
11758
11759         * configuration registers setting has changed, now each supported
11760         device has a complete description of the registers it uses,
11761         * all initialisations are moved to idata sections, these section
11762         can be absolute or relocatable,
11763         * fixed initialisation of codespace variables,
11764         * fixed warning about PCLATU and gpsim,
11765         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
11766         * (genAssign): use table reads when assigning from variables in codespace,
11767         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
11768         char/int variables placed in codespace,
11769         * (pic16_emitConfigRegs): NEW, emits a list with configuration
11770         registers set in .asm file, no need for --pomit-config-words anymore,
11771         * (pic16glue): some 8051 legacy segments are commented out
11772         (to be removed completely),
11773         * added support for alternative assembler and linker with --asm=
11774         and --link= command line arguments,
11775         * peepholes are disabled automatically in the port, no need to
11776         specify on command line,
11777         * port supports natively char/int/long multiplication, but converts
11778         all divisions to support functions,
11779         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
11780         to the file set in variable $2,
11781         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
11782         strings in ASCII format and not in hex,
11783         * ralloc.c (serialRegAssign): added a triplet of conditional calls
11784         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
11785         allocate proper register if iCodes aren't temporary,
11786
11787 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
11788
11789         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
11790
11791 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
11792
11793         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
11794         is commented out
11795
11796 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11797
11798         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
11799         computed address is reused
11800         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
11801         multi-byte bitfields
11802
11803 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11804
11805         * src/z80/gen.c: (genArrayInit): must check for pointers too
11806
11807 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11808
11809         * support/regression/tests/zeropad.c: never meant to commit the
11810           nestedstruct test: removed, added check for GCC version
11811
11812 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
11813
11814         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
11815         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
11816         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
11817           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
11818           bugs 928906 and 954082 half-empty initializers
11819         * src/SDCCsymt.h,
11820         * src/SDCCsymt.c (getAllocSize): added for above fix
11821         * src/z80/gen.c (genArrayInit): fixed bug 741044
11822         * support/regression/tests/zeropad.c: added tests
11823
11824 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
11825
11826         * src/pic16/device.c (pic16_dump_section): corrected bug which
11827         caused some symbols of the libraries to be misplaced
11828
11829 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11830
11831         * src/pic16/glue.c,
11832         * src/pic16/ralloc.h,
11833         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
11834         to fix conflict with pic port
11835
11836 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11837
11838         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
11839         externs configuration variables,
11840         * src/pic16/ralloc.h,
11841         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
11842         prototype in header, commented out some debug messages
11843
11844 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
11845
11846         * src/pic16/glue.c,
11847         * src/pic16/main.c,
11848         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
11849         for gpasm COFF object generation. Thanks to D. Hawkins for
11850         his patch info
11851
11852 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11853
11854         * src/ds390/main.c,
11855         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
11856         Brock for spotting this)
11857         * src/ds390/gen.c (genEndFunction),
11858         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
11859         interrupt handler and critical. Disable push/pop optimizations when
11860         peephole optimizations disabled.
11861
11862 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11863
11864         Updated pic16 library sources and headers.
11865         * device/lib/pic16/pic18f*/ ,
11866         * device/include/pic16/*.h: modified to handle structured SFR
11867         definitions
11868
11869 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11870
11871         * src/port.h (PORT structure): added hook initPaths, now each
11872         port can declare its own default search paths,
11873         which can been seen with the --print-search-dirs option,
11874         see pic16 port for example,
11875         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
11876         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
11877         * (doPrintSearchDirs): NEW, replaces in a central manner the
11878         printing of search dirs which was split in set*Paths functions,
11879         * (main): added call to port->initPaths and doPrintSearchDirs,
11880         * src/avr/main.c,
11881         * src/ds390/main.c,
11882         * src/hc08/main.c,
11883         * src/izt/i186.c,
11884         * src/izt/tlcs900h.c,
11885         * src/mcs51/main.c,
11886         * src/pic/main.c,
11887         * src/pic16/main.c: modified port structures to reflect addition of
11888         initPaths hook,
11889
11890         * src/pic16/device.c (regCompare): registers are finally sorted by name,
11891         * (pic16_dump_section): for registers in same address reserve memory once,
11892         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
11893         to no_banksel,
11894         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
11895         result is greater in size than right or left,
11896         * (pic16_genUMult8X8_8): there are some cases where the result can
11897         be 16 bits size, so handle these,
11898         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
11899         * (pic16_outBitC): modified to emit pcodes,
11900         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
11901         or not,
11902         * (genDivOneByte): implemented algorithm to divide 8-bits,
11903         * (genCmp): uncommented goto, but issues still exist,
11904         * (genAnd): fixed a bug with variables >8bits,
11905         * (genPackBits): optimization added that uses BCF/BSF to change a
11906         single bit,
11907         * (genAssign): fixed bug when assigning floating point literals,
11908         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
11909         __sdcc_gsinit_startup label,
11910         * src/pic16/main.c (_pic16_init): removed search directory
11911         initialisations,
11912         * (_pic16_initPaths): NEW, used to initialise search directories,
11913         * (_hasNativeMulFor): support functions for all except char/int
11914         multiplication, and char division,
11915         * (PIC16_port struct): modified entry for native mul support,
11916         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
11917         no_banksel option,
11918         * (buildCallTree): call to register_usage is ifdef'ed out,
11919
11920 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11921
11922         * device/include/string.h: applied Stas Sergeev's patch to make this
11923         header file compatible with the preprocessor -Wundef option
11924         * src/SDCCmain.c (main): abort compilation if preprocessor reports
11925         failure (fixes bug #941458)
11926
11927 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11928
11929         * src/SDCCopt.c (killDeadCode): fixed bug #907733
11930         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
11931         that the variable, not the function, should be static
11932         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
11933         to be consistent with non-literal case
11934
11935 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11936
11937         * src/SDCCast.c (isConformingBody): fixed bug #949967
11938         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
11939         convilong): fixed bug #952086
11940
11941 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11942
11943         * src/SDCCmem.c (allocVariables): fixed bug #955321
11944
11945 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11946
11947         * src/hc08/main.c (_hc08_genAssemblerEnd),
11948         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
11949         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
11950         completely eliminated the use of a temporary file
11951         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
11952         when more than one file linked
11953         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
11954
11955 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11956
11957         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
11958         which fixes bug #543481
11959         * support/regression/tests/bug-751703.c: fixed comments left from a
11960         cut and paste error
11961         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
11962         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
11963         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
11964         scopes
11965         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
11966         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
11967         are now changed to underscores in moduleName
11968
11969 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11970
11971         * as/mcs51/lkmem.c: better fix for bug #954173
11972
11973 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
11974         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11975
11976         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
11977         * device/include/c8051f000.h,
11978         * device/include/c8051f120.h,
11979         * device/include/c8051f300.h,
11980         * device/include/c8051f310.h,
11981         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
11982         PWM16) and detab'ed
11983
11984 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11985
11986         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
11987         and mailing lists, doc'ed --no-peep-comments, removed reference
11988         to knoppix (newest version has no LyX/LaTeX), other minor changes
11989         * src/SDCCglue.c (glue): save 2 bytes stack space with
11990         option --main-return. The ljmp could probably be avoided too
11991
11992 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11993
11994         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
11995
11996 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11997
11998         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
11999         * src/SDCCopt.c (isLocalWithoutDef),
12000         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
12001         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
12002         (credit to Maarten Brock for patch #949363, on which this is based)
12003         * support/regression/tests/bug-751703.c: some test cases of extern used
12004         within inner scopes.
12005
12006 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12007
12008         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
12009         SPEC_STRUCT
12010         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
12011         struct definitions
12012         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
12013         dwWriteLabel): fix to create valid debugger symbols even when
12014         the module name has non-alphanumeric symbols in it
12015         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
12016         when a variable's allocation has been optimized away
12017
12018
12019 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12020
12021         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
12022         * src/hc08/main.c,
12023         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
12024         * src/mcs51/main.c,
12025         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
12026         * src/ds390/main.c,
12027         * src/z80/gen.c (z80_emitDebuggerSymbol),
12028         * src/z80/main.c,
12029         * src/pic/gen.c (pic14_emitDebuggerSymbol),
12030         * src/pic/main.c,
12031         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
12032         * src/pic16/main.c,
12033         * src/avr/gen.c (avr_emitDebuggerSymbol),
12034         * src/avr/main.c,
12035         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
12036         * src/xa51/main.c,
12037         * src/SDCCdebug.c (emitDebuggerSymbol),
12038         * src/SDCCdebug.h,
12039         * src/port.h: added a debugger struct to the port struct. Added a
12040         callback for defining debugger symbols
12041
12042         * src/SDCCast.c (createLabel),
12043         * src/SDCC.y (labeled_statement): mark all compiler generated labels
12044         with isitmp = 1
12045         * src/SDCCicode.h,
12046         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
12047         iCode back to the ast for the function
12048
12049         * src/hc08/ralloc.c (hc08_assignRegisters),
12050         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
12051         unneeded fields from the regs struct.
12052         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
12053         pushReg() & pullReg() functions instead of emitcode()
12054
12055         * src/hc08/gen.c (genLabel, genhc08Code),
12056         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
12057
12058         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
12059         debugger hooks
12060
12061         * src/hc08/gen.c (genEndFunction, genhc08Code),
12062         * src/hc08/gen.h,
12063         * src/mcs51/gen.c (genEndFunction, gen51Code),
12064         * src/mcs51/gen.h,
12065         * src/ds390/gen.c (genEndFunction, gen390Code),
12066         * src/ds390/gen.h,
12067         * src/z80/gen.c (genEndFunction, genZ80Code),
12068         * src/z80/gen.h,
12069         * src/z80/z80.h,
12070         * src/pic/gen.c (genEndFunction, genpic14Code),
12071         * src/pic/gen.h,
12072         * src/pic16/gen.c (genEndFunction, genpic16Code),
12073         * src/pic16/gen.h,
12074         * src/avr/gen.c (genEndFunction, genAVRCode),
12075         * src/avr/gen.h,
12076         * src/xa51/gen.c (genEndFunction, genXA51Code),
12077         * src/xa51/gen.h,
12078         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
12079         specific code to cdbFile.c and out of the backend code generators
12080
12081         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
12082         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
12083         starting address is now 0
12084
12085         * as/hc08/asm.h,
12086         * as/hc08/m08pst.c,
12087         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
12088         assembler directive for DWARF support
12089         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
12090
12091         * src/src.dsp,
12092         * src/Makefile.in,
12093         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
12094
12095 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12096
12097         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
12098         and inappropriate peephole optimization in jump tables
12099
12100 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12101
12102         * as/hc08/m08pst.c,
12103         * src/SDCCglue.c: sdccopt works for the hc08 port now
12104
12105 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
12106
12107         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
12108
12109 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12110
12111         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
12112
12113 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12114
12115         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
12116         rules
12117         * src/SDCCmain.c,
12118         * src/SDCCglobl.h,
12119         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
12120         comments from the peephole optimizer replacement rules
12121         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
12122         symbols
12123         * src/SDCCcse.c (updateSpillLocation),
12124         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
12125         equivalents
12126         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
12127         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
12128         objects far pointers
12129
12130 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12131
12132         * src/SDCCsymt.h: a missing part of my last change
12133         * src/pic/ralloc.c (regTypeNum),
12134         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
12135
12136 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12137
12138         * src/SDCCicode.h,
12139         * src/SDCCicode.c (aggrToPtrDclType),
12140         * src/SDCCptropt.h,
12141         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
12142         ptrPseudoSymConvert),
12143         * src/pic/ralloc.c (regTypeNum),
12144         * src/pic16/ralloc.c (regTypeNum),
12145         * src/hc08/ralloc.c (regTypeNum),
12146         * src/ds390/ralloc.c (regTypeNum),
12147         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
12148         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
12149
12150 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12151
12152         * link/z80/lkmain.c (afile),
12153         * as/hc08/lkmain.c (afile),
12154         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
12155         prevent a pointer problem when a filename has no directory and
12156         no extension specified.
12157
12158 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12159
12160         * link/z80/lkmain.c (afile): allow periods in directory names
12161         * link/z80/lkmain.c (afile),
12162         * as/mcs51/lkmain.c (afile),
12163         * as/hc08/lkmain.c (afile): allow linker script file to have an
12164         extension other than ".lnk"
12165         * link/z80/lklex.c (getfid),
12166         * link/z80/lkmain.c (parse),
12167         * as/mcs51/lklex.c (getfid),
12168         * as/mcs51/lkmain.c (parse),
12169         * as/hc08/lklex.c (getfid),
12170         * as/hc08/lkmain.c (parse): Support comments in the linker script
12171         file on lines by themselves and after filenames
12172
12173 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12174
12175         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
12176
12177 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12178
12179         * src/z80/peeph-z80.def: removed some peephole rules that don't
12180         work with multibyte arithmetic (fixed bug #937126)
12181         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
12182         to registers and not global variables
12183         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
12184         geniCodePreInc, geniCodePostDec, geniCodePreDec,
12185         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
12186         checking for assignments not internally generated (fixed bug #931895)
12187         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
12188         structure member (fixed bug #930072)
12189
12190 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12191
12192         * src/SDCCmain.c (linkEdit),
12193         * src/hc08/main.c (_hc08_parseOptions),
12194         * as/hc08/Makefile.in,
12195         * as/hc08/aslink.h,
12196         * as/hc08/asm.h,
12197         * as/hc08/m08pst.c,
12198         * as/hc08/lkrloc.c (relr, rele),
12199         * as/hc08/lkarea.c (lnkarea)
12200         * as/hc08/lkmain.c (afile, parse),
12201         * as/hc08/lkelf.c: support for ELF output
12202         * as/hc08/lks19.c (s19),
12203         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
12204
12205 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12206
12207         * as/mcs51/lkihx.c: Fixed bug #899105.
12208
12209 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12210
12211         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
12212         .dsp files from Unix to DOS.
12213
12214 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12215
12216         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
12217         function pointers; we have been compliant for several months now.
12218         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
12219         change that was accidently commented out
12220         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
12221         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
12222         bug #922319
12223
12224 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12225
12226         * src/hc08/gen.c: output of all of the internal debugging information
12227         is now controlled by the D() macro; it is disabled by default
12228
12229 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12230
12231         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
12232         harder to keep the same registers during a CAST iCode
12233         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
12234         long via int can be done in a single cast, if the signedness is
12235         correct.
12236         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
12237         putchar() in tinibios.c in ds390's library
12238
12239 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
12240
12241         * src/SDCCast.c (decorateType): fixed bug #898889,
12242         cast result of a literal complement too
12243         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
12244         fixed check for bitfields
12245
12246 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
12247
12248         * src/SDCCicode.c (geniCodeLogic): made it static,
12249         (geniCodeLogicAndOr): added in order to fix bug #905492,
12250         (ast2iCode): fixed bug #905492
12251         * support/regression/tests/bug-905492.c: added
12252         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
12253         (processParms): fixed bug #927659: don't copy parms, this will clear
12254         decorated flag
12255         * support/regression/tests/bug-927659.c: added
12256
12257 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
12258
12259         * src/SDCCast.c (addCast): don't cast float to char
12260         * device/lib/libsdcc.lib: added _memmove
12261
12262 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
12263
12264         * device/lib/large/Makefile: fixed parallel execution by
12265         replacing `make` by `$(MAKE)`
12266
12267 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12268
12269         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
12270         offsets (fixes bug #923936)
12271
12272 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
12273
12274         * device/lib/small/Makefile: fixed parallel execution by
12275         replacing `make` by `$(MAKE)`
12276
12277 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
12278
12279         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
12280
12281 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
12282
12283         * src/pic/gen.c (genCpl): multi-byte complements were not working.
12284         * src/regression/Makefile: Regression test was not running.
12285
12286 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
12287
12288         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
12289         complement if possible
12290         * src/SDCCval.c (valComplement),
12291         * src/SDCCicode.c (operandOperation): fixed complement of literal
12292         * support/regression/tests/onebyte.c (testComplement): added
12293
12294 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
12295
12296         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
12297         return an optimized tree; actually replace actParm with the new tree
12298         * src/SDCCast.h: added some parantheses to remove side effects
12299         * support/regression/tests/bug-920866.c
12300
12301 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
12302         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
12303         Bit operands were not being handled properly in the pic14 port.
12304         (now src/regression/add.c passes again).
12305
12306 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12307
12308         * src/SDCC.y (labeled_statement): case and default no longer require
12309         a following statement (RFE #893037)
12310
12311 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12312
12313         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
12314         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
12315         disabled (fixes bug #916294)
12316         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
12317         "mov a,acc"; patch provided by Lenny Story
12318         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
12319
12320 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12321
12322         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
12323         functions
12324         * src/ds390/gen.c (genFunction, genEndFunction),
12325         * src/ds390/ralloc.c (ds390_assignRegisters),
12326         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
12327         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
12328         pushed if there are parameters passed on the stack. Also, a cleaner
12329         way to decide if r0/r1 should be pushed/popped. (Together they fix
12330         bug #918693)
12331
12332 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12333
12334         * doc/sdccman.lyx,
12335         * device/lib/mcs51/crtpagesfr.asm,
12336         * device/lib/mcs51/crtxinit.asm,
12337         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
12338         to avoid confusion with Si Lab's SFRPAGE register.
12339
12340 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12341
12342         * src/SDCCglue.c (emitMaps): allow public sfr variables
12343         * src/SDCCglue.c (initialComments): include compiler build date
12344         with compiler version and put the timestamp of the generated
12345         assembly file on a serperate line to be less confusing.
12346         * src/port.h: added genInitStartup hook
12347         * src/avr/main.c,
12348         * src/ds390/main.c,
12349         * src/hc08/main.c,
12350         * src/pic/main.c,
12351         * src/pic16/main.c,
12352         * src/xa51/main.c,
12353         * src/z80/main.c: genInitStartup initialize as NULL (default to
12354         historical behaviour)
12355         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
12356         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
12357         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
12358         library instead of hard coding it into the compiler.
12359         * support/regression/ports/mcs51-stack-auto/spec.mk,
12360         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
12361         * device/lib/mcs51/Makefile,
12362         * device/lib/small/Makefile,
12363         * device/lib/large/Makefile,
12364         * device/lib/mcs51/crtpagesfr.asm,
12365         * device/lib/mcs51/crtstart.asm,
12366         * device/lib/mcs51/crtxclear.asm,
12367         * device/lib/mcs51/crtxinit.asm,
12368         * device/lib/mcs51/crtclear.asm,
12369         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
12370         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
12371         and into user configurable files.
12372         * device/lib/clean.mk: clean mcs51 directory too
12373         * support/regression/tests/longlit.c: added static to T1 declaration
12374         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
12375         accesses in the initialization code
12376
12377 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12378
12379         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
12380         OSCTRIMVAL as noted in bug #916008
12381
12382 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12383
12384         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
12385         in loops with multiple exits (reported as incorrect registers
12386         used by Martin Helmling in Sdcc-user list)
12387
12388 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12389
12390         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
12391         made ds390 register extensions look less like error messages
12392
12393 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12394
12395         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
12396         reported by Adam Wozniak in Sdcc-user list
12397
12398 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
12399
12400         * src/SDCCast.c (decorateType): fixed with bug and promotion in
12401         arithmetic optimizations, added debug output
12402
12403 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
12404
12405         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
12406         * sdcc.spec: updated and split sdcc into 3 rpms
12407         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
12408         needed for literals of LEFT_OP and '+'
12409         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
12410         introduced RESULT_TYPE_NOPROM
12411         (geniCodeMultiply): fixed logic for decision if mul is optimized to
12412         left shift
12413         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
12414         limited promotion to int only for '*'
12415         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
12416
12417 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
12418
12419         * src/pic16/gen.c (genSkip),
12420         (genc16bit2lit), (gencjneshort): commented out
12421         (is_LitOp): new helper function, checks operand type
12422         (genCmpEq): rewritten
12423
12424 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
12425
12426         * support/regression/tests/bug-908454.c: added
12427
12428 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
12429
12430         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
12431         * src/SDCCicode.c (usualBinaryConversions): op needs int type
12432         (geniCodeCast): cosmetic, don't preserve bit storage class
12433         (geniCodeLeftShift): added promotion
12434         (geniCodeLogic): fixed regression
12435         * src/SDCCsymt.c (computeTypeOr): accept bits too
12436         (compareType): 2nd part of fix for bug #908454, needed for bitfields
12437
12438 2004-03-07  Borut Razem <borut.razem AT siol.net>
12439
12440         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
12441
12442 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
12443
12444         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
12445         version of pic16_genPackRegisters which does not check if ic is a
12446         CAST operator,
12447         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
12448         function cause string1.c regression test fails
12449
12450 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
12451
12452         * sim/ucsim/configure.in,
12453         * sim/ucsim/configure,
12454         * sim/ucsim/doc/Makefile.in: use docdir
12455         * src/SDCC.y: fixed sbit atrributes
12456         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
12457         * src/SDCCast.c (decorateType): |^& need special promotion handling
12458         * src/SDCCast.h,
12459         * src/SDCCsymt.h: moved definition of RESULT_TYPE
12460         * src/SDCCsymt.h (computeType),
12461         * src/SDCCicode.c: computeType() needs op
12462         * src/SDCCsymt.c (checkTypeSanity),
12463         * doc/sddman.lyx: "plain" bitfields are unsigned
12464         * src/SDCCsymt.c (computeTypeOr): added
12465         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
12466         |^& ops
12467         * src/SDCCval.c (val*): computeType() needs op
12468         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
12469         * support/regression/tests/onebyte.c: added tests for |^&
12470
12471 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
12472
12473         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
12474         for writing icode into asm output.
12475
12476 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
12477
12478         * src/pic16/device.c: added some debug lines enabled
12479         with macro DEBUG_CHECK,
12480         * src/pic16/genarith.c: more debug in genPlus,
12481         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
12482         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
12483         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
12484         * (aopForSym): onStack symbols are re-placed in data memspace,
12485         and onStack flag is cleared,
12486         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
12487         copy temporary pcodeop,
12488         * (genPcall): added warning for not updating PCLATU,
12489         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
12490         always true for pic16 port,
12491         * (genMultOneWord): NEW, supports integer multiplication,
12492         * (genMult): modified to call genMultOneWord,
12493         * (ifxForOp): added warning when return NULL,
12494         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
12495         flag is set before call to operandFromSymbol for implicit
12496         added structures,
12497         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
12498         options.intlong_rent are set by default,
12499         * (_hasNativeMulFor): modified to allow port generation of integer
12500         multiplication,
12501         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
12502         set regtype to REG_SFR for all registers, restricting seting the
12503         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
12504
12505 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12506
12507         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
12508         more than 500 times in the regression tests
12509
12510 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12511
12512         * support/Util/SDCCerr.h,
12513         * support/Util/SDCCerr.c,
12514         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
12515         enumerator_list),
12516         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
12517         for symbol conflicts.
12518         * support/valdiags/tests/enum.c,
12519         * support/valdiags/tests/tentdecl.c,
12520         * support/valdiags/tests/struct.c: expect possible error messages
12521         referring to original symbol definitions.
12522         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
12523         * src/SDCCsymt.h,
12524         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
12525
12526 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
12527
12528         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
12529
12530 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
12531
12532         * src/pic16/ralloc.c (newReg): fixed bug #908929
12533
12534 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12535
12536         * src/ds390/gen.c: added missing #include "main.h"
12537
12538 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
12539
12540         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
12541         checking if symbol is already in set,
12542         * src/pic16/device.h: prototype for checkAddSym,
12543         * src/pic16/gen.c: (_G): added entry interruptvector,
12544         * (assignResultValue): removed some commented out lines,
12545         * (genFunction): check for ISR via sym->type, absolute section for
12546         interrupt code is created via a new pBlock, the goto instruction is
12547         placed now correctly at the interrupt vector position, changed all
12548         references from ivec to _G.interruptvector,
12549         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
12550         is the interrupt is a high priority one, same for return from ISR,
12551         * src/pic16/glue.c: changed all calls of addSetHead for publics and
12552         externs to calls of checkAddSym,
12553         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
12554         pic16_pcode_verbose flag is set,
12555         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
12556         * src/pic16/pcoderegs.c: message about how many registers are saved
12557         will only be emitted if pic16_pcode_verbose flag is set,
12558
12559 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12560
12561         * src/ds390/ralloc.h,
12562         * src/ds390/ralloc.c (ds390_regWithIdx),
12563         * src/ds390/gen.c (emitcode),
12564         * src/ds390/main.h,
12565         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
12566         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
12567         ds390operandCompare, getRegsRead, getRegsWritten,
12568         initializeAsmLineNode): customized instruction size calculation for
12569         ds390, started basis for some register optimizations
12570         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
12571         corresponding assembly output
12572         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
12573         missing push/pop of r0/r1. Optimized push/pops
12574
12575 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12576
12577         * src/mcs51/main.c (instructionSize): fixed ACALL size
12578         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
12579
12580 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
12581
12582         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
12583         the sorting of rlist with NULL elements
12584         * (print_idataType, print_idata): NEW to create idata sections
12585         * src/pic16/device.h: idataSymSet new variable
12586         * src/pic16/gen.c (genFunction): fixed some bugs in string
12587         comparing, improved the absolute section creation for ISRs,
12588         added FSR0L/FSR0H in registers that are saved in an ISR,
12589         * (genInline): fixed the processing of inline snippets,
12590         now they undergo no process by the peephole optimizer
12591         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
12592         are placed in idataSymSet,
12593         * (pic16emitStaticSeg): extern symbols are added in externs,
12594         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
12595         switching when aboslute variables are placed in access bank memory
12596         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
12597         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
12598         commented out with #if,
12599         * (pic16_packRegisters): reintroduce the check for CAST because some
12600         symbols are not correctly handled,
12601         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
12602         pCodeInstruction instead of pCode,
12603         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
12604         pCodeAsmDir definition,
12605         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
12606         directive, then the argument directive is emitted without the leading
12607         tab, hack for inline labels which must be in the first column,
12608         * (compareLabel,pic16_findNextInstruction),
12609         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
12610         * (insertBankSwitch): modified for the new pCodeAsmDir,
12611
12612 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12613         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
12614
12615         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
12616         instance,
12617         * (pushSide): commented out with #if,
12618         * (assignResultValue): fixed some typos in saving
12619         registers,
12620         * (genPcall): FIXED and sync'ed with genCall,
12621         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
12622         * (genNearPointerGet): fixed to handle some more cases,
12623         implementation scheme via table reads,
12624         * (genConstPointerGet): modified to access code memory correct,
12625         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
12626         and improved to handle some cases
12627         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
12628         instead of "RETLW" for init data
12629         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
12630         not IN_DIRSPACE, work around to reduce bank switching when aboslute
12631         variables are placed in access bank memory (<0x80 and >=0xf80),
12632         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
12633         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
12634         TBLWT_POSTDEC,TBLWT_PREINC
12635         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
12636         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
12637         directives
12638         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
12639         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
12640         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
12641         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
12642
12643 2004-02-29  Borut Razem <borut.razem AT siol.net>
12644
12645         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
12646         support/Util/findme.h, support/Util/system.h: enhance binary relative
12647         search for lib and include by using findProgramPath()
12648
12649 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12650
12651         * src/SDCCpeeph.h,
12652         * src/SDCCpeeph.c (pcDistance),
12653         * src/port.h,
12654         * src/mcs51/ralloc.h,
12655         * src/mcs51/ralloc.c (mcs51_regWithIdx),
12656         * src/mcs51/main.h,
12657         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
12658         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
12659         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
12660         size calculation port specific, started basis for some register
12661         optimizations
12662         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
12663         missing push/pop of r0/r1. Optimized push/pops
12664         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
12665         * device/lib/_modsint.c (_modsint),
12666         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
12667         and stack version so regression tests pass
12668
12669 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
12670
12671         * src/Makefile.in (dep): include SLIBOBJS in dependency check
12672         * src/SDCCast.c (decorateType): catch another small optimization
12673         with '?' operator
12674         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
12675         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
12676         modified to finally use computeType() all over SDCC,
12677         see Feature Request #877103
12678         * src/SDCCval.h: cosmetic
12679         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
12680         valCompare(); regression tested in muldiv.c
12681         * support/regression/tests/muldiv.c (testMod): mod sign follows
12682         dividend only
12683
12684 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
12685
12686         * src/SDCCast.c (decorateType): fixed bug #902362
12687         * doc/INSTALL.txt: fixed install instructions for win32
12688
12689 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
12690
12691         * device/include/Makefile.in (install): fixed by replacing spaces
12692         by tabs
12693         * doc/README.txt,
12694         * doc/INSTALL.txt: updated for release
12695         * doc/sdccman.lyx: added warning for --xstack being buggy
12696
12697 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
12698
12699         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
12700         to eliminate build warnings.
12701         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
12702
12703 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
12704            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12705
12706         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
12707         removed -penable-stack, added comment for stack pragma, added
12708         warning for not initializing the stack/frame registers, removed
12709         comment at interrupts section
12710
12711         Stack is made permanent, there is no ability to disable stack usage.
12712         * src/pic16/device.h,
12713         * src/pic16/device.c: removed all references to USE_STACK macro,
12714         * src/pic16/device.c (pic16_dump_section): when no elements in
12715         rlist, free rlist before return,
12716         * (pic16_dump_int_registers): NEW, internal registers are a new set
12717         of general purpose registers reused by each function,
12718         * (checkAddReg): returns 1 if registers is added to set,
12719         * (pic16_groupRegistersInSection): when a registers is of type
12720         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
12721         * src/pic16/device.h: memRange and Assigned Memory are deleted,
12722         SRCASECMP macro is moved here from device.c
12723         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
12724         PO_PCLATU, PO_PRODL, PO_PRODH,
12725         * (pic16_pCodeOpType, genMinus,
12726         changed compares to "a" register, with AOP_ACC,
12727         * (pic16_genPlus): fixed some bugs and indented properly,
12728         * (pic16_addSign): changed size to size+offset in the MOVWF
12729         instruction,
12730         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
12731         multiply 8-bit operand by literal, result is 8-bit,
12732         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
12733         multiply 2 8-bit operand, result is 8-bit,
12734         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
12735         genUMult8X*_16,
12736         * src/pic16/gen.c: changed accUse to contain WREG only,
12737         * (pic16_emitcomment): renamed to pic16_emitpcomment,
12738         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
12739         true, do not use immediate addressing any more unless sym is a
12740         pointer in codespace,
12741         * (aopForRemat): do not use immediate addressing when symbol not in
12742         codespace and when symbol's address is requested,
12743         * (aopOp): for-loop in if(sym->accUse) is modified for the new
12744         accUse size (= 1),
12745         * (aopGet): added case for AOP_ACC and don't return "accumulator
12746         bug" but WREG instead,
12747         * (popGetTempReg): pushes contents of temporary register in stack,
12748         * (popReleaseTempReg): pops contents of temporary register from
12749         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
12750         * (pic16_popGet): separated case AOP_ACC to return register WREG
12751         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
12752         or PO_IMMEDIATE and initializes their instance/offset appropriately,
12753         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
12754         the use of immediate pointers to certain cases only.
12755
12756         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
12757         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
12758         * (assignResultValue, genCall, genRet): modified to use the new
12759         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
12760         genPcall is still broken,
12761         * (genFunction): added code to create 'A' type pBlocks when
12762         interrupt functions are generated, code not extensively tested yet,
12763         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
12764         * (genEndFunction): modified so ISRs pop stored registers from stack,
12765         * (genMultOneByte): cleanup,
12766         * (AccRsh): added flag andmask, to and result with appropriate mask,
12767         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
12768         * (genDataPointerGet): fixed and reenabled its use,
12769         * (genNearDataPointerGet): bugs fixed,
12770         * (genDataPointerSet): bugs fixed,
12771         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
12772         pic16_DumpSymbol, pic16_DumpOp,
12773         * src/pic16/genutils.h: function prototypes for the above functions,
12774         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
12775         pointers,
12776         * (pic16emitRegularMap): many many many improvements, but needs a
12777         major cleanup,
12778         * src/pic16/main.c: enable_stack in pic16_options is removed,
12779         * (_pic16_parseOptions): removed command line options -penable-stack,
12780         * (_process_pragma): emit stack symbol only when stack pragma is
12781         processed,
12782         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
12783         redirected to FSR0L/FSR0H pair,
12784         * (pic16_get_op, pic16_get_op2): modifications and improvements,
12785         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
12786         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
12787         for immediates,
12788         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
12789         * (dumpPicOptype): NEW,
12790         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
12791         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
12792         with movff instruction,
12793         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
12794         added pic16_int_regs, some packRegsFor* functions are commented out,
12795         because produce errors,
12796         * src/pic16/NOTES: minor modifications
12797
12798 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12799
12800         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
12801         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
12802         --pack-iram.
12803         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
12804         * as/mcs51/lkaomf51.c: fixed bug #895763
12805
12806 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
12807
12808         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
12809
12810 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12811
12812         * doc/sdccman.lyx: added details about the HC08 storage classes and
12813         interrupts, fixed the register usage info for z80 & gbz80
12814
12815 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
12816
12817         * doc/sdccman.lyx: added more pic16 port documentation
12818         * device/include/pic16/: added header pic18fregs.h
12819
12820 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
12821
12822         * doc/sdccman.lyx: added Vangelis' contribution
12823
12824 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12825
12826         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
12827         extend to the next CALL or PCALL, not just to the next CALL.
12828
12829 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
12830
12831         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
12832
12833 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12834
12835         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
12836         bug #895752 and a better fix for bug #716790
12837
12838 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12839
12840         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
12841
12842 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12843
12844         * doc/sdccman.lyx: minor changes, minor changed
12845
12846 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
12847
12848         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
12849         which can't handle SDCC_NEWONEBYTEOPS,
12850         (geniCodeMultiply): removed conversion from mult to shift for pic14
12851         and pic16
12852
12853 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12854
12855         * src/hc08/gen.h,
12856         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
12857         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
12858         thus fixing bug #895406
12859
12860 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
12861
12862         * device/lib/_modsint.c,
12863         * device/lib/_modslong.c: sign follows divisor only
12864         * src/hc08/gen.c (genMultOneByte): if result size is 1,
12865         signs or signedness can be ignored
12866         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
12867         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
12868         added optimization for IFX,
12869         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
12870         arguments;
12871         reenabled optimization for IFX, which was removed on 2004-01-11
12872         * src/SDCCast.h: added return type IFX
12873         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
12874         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
12875         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
12876         SDCC_OLDONEBYTEOPS selects the old behaviour
12877         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
12878         changed again and commented promotion rule
12879         * src/SDCCval.c (valDiv): promotion no longer necessary
12880         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
12881         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
12882         rewritten
12883         * support/regression/tests/onebyte.c: added
12884
12885 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
12886
12887         * gen.c (genInline): reverted to old code for assemnling inline
12888         code because of bug reported James Chadd
12889
12890 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
12891
12892         * ralloc.h: missing declarations from previous patch,
12893         seems that patch for ralloc.h was never applied, fixed
12894
12895 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12896            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
12897
12898         * pcode.c,
12899         * pcode.h,
12900         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
12901         indirect addressing. Marked FSR0 as deprecated
12902         * gen.c (pointerCode): commented out, not needed now
12903         (pic16_popGet2p): new MOVFF helper function
12904         (genGenPointerGet),
12905         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
12906         (shiftRLong): removed duplicate debugging info
12907
12908 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12909
12910         * src/ds390/gen.c (genNearPointerGet),
12911         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
12912         optimization with bits, but not bitfields.
12913         * src/ds390/ralloc.c (packRegisters),
12914         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
12915
12916 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
12917
12918         * src/SDCCcse.c (algebraicOpts): copy operands before modification
12919
12920 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12921
12922         * src/SDCCsymt.h,
12923         * src/SDCCicode.c (operandFromSymbol),
12924         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
12925         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
12926         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
12927         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
12928         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
12929         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
12930         bug #892038
12931         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
12932         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
12933         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
12934         * src/SDCCsymt.c (newSymbol),
12935         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
12936         enumerator_list),
12937         * src/SDCCval.h,
12938         * src/SDCCval.c (newiList): fixed bug #885705
12939
12940 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12941
12942         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
12943         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
12944
12945 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12946
12947         * device/include/c8051f120.h,
12948         * device/include/c8051f300.h,
12949         * device/include/c8051f310.h: added/updated header files for Silicon
12950         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
12951         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
12952         in new section Submitting patches
12953
12954 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12955
12956         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
12957         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12958         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12959         genGenPointerSet),
12960         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
12961         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12962         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12963         genGenPointerSet),
12964         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
12965         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12966         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12967         genGenPointerSet),
12968         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
12969         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12970         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12971         genGenPointerSet): fixed bug #892400
12972         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
12973         to eliminate build warnings.
12974         * src/SDCCast.c (processParms),
12975         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
12976         fixed bug 751859
12977         * support/valdiag/valdiag.py: added GCC to the list of defines active
12978         when compiling with gcc
12979
12980 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12981
12982         * support/Util/SDCCerr.h,
12983         * support/Util/SDCCerr.c,
12984         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
12985         with an incomplete type (fixed bug #883734)
12986         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
12987
12988 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12989
12990         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
12991
12992 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12993
12994         * src/SDCCast.c (decorateType),
12995         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
12996         function pointer implementation
12997         * support/regression/tests/funptrs.c: added tests to verify both forms
12998         of function pointers work correctly. Added tests to verify parameters
12999         are passed in the correct order.
13000
13001 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
13002
13003         * device.c (regCompare): registers are sorted by ascending
13004         address and increasing size,
13005         * main.c (_pic16_finaliseOptions): removed the declaration
13006         of compiler macro MCU. Now a macro of the format pic18fxxxx
13007         will be defined from the command line
13008
13009 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
13010             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
13011
13012         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
13013         PCOP_RLCF was overwritten!
13014         * gen.c (genSkip): commented out calls to pic16_emitcode,
13015         * (genCmpEQ): fixed "long" compares, only high word did get compared,
13016         * (genlshTwo),
13017         * (genRRC): added debugging info,
13018         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
13019         overwritten while shifting,
13020         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
13021         overwritten while shifting,
13022         * (AccLsh),
13023         * (AccRsh),
13024         * (shiftLLeftOrResult),
13025         * (shiftRLeftOrResult),
13026         * (shiftRLong),
13027         * (shiftLLong): Implemented with pic16_emitpcode
13028         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
13029         * (genLeftShift): Fixed bug, operand for shift by variable always
13030         was "and"ed with 0x0f,
13031         * (genLeftShiftLiteral),
13032         * (genrshTwo),
13033         * (genRightShiftLiteral): added debugging info,
13034         * (genrshFour): added comment,
13035         * (genRightShift): determined signedness from operand "left"
13036         instead of "result"
13037
13038 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13039
13040         * src/SDCCicode.c (geniCodeParms),
13041         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
13042         function pointers, fixed function pointer bugs #861242 and #861896
13043
13044 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13045
13046         * device/include/c8051f000.h,
13047         * device/include/c8051f120.h,
13048         * device/include/c8051f300.h: added header files for Silicon
13049         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
13050
13051 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
13052
13053         * src/SDCCast.c (processParams): added new type flow and restructured
13054         (gatherAutoInit): added new type flow
13055         (addCast): cosmetic changes
13056         (getLeftResultType): added new type flow for array indices, patch
13057         provided by Stas, see FR #877103
13058         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
13059         array index patch by Stas
13060         * src/SDCCast.h: added prototype getResultTypeFromType()
13061         * src/SDCCval.h,
13062         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
13063         * src/pic/glue.c (pic14emitStaticSeg),
13064         * src/pic16/glue.c (pic16emitStaticSeg),
13065         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
13066         for initialization of symbols
13067         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
13068         * support/Util/SDCCerr.h:
13069         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
13070         * .version: bumped version number to 2.3.8
13071         * device/include/Makefile.in (install),
13072         * doc/Makefile (install): changed to 'rm `find ...`' construct to
13073         avoid warnings
13074
13075 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
13076
13077         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
13078         Slade Rich fixed an optimization bug
13079         * src/pic/pcodepeep.c,
13080         * src/pic/pcoderegs.c
13081         * doc/Makefile (install): added test for directory
13082
13083 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13084
13085         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
13086         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
13087         * src/pic/ralloc.c (getRegPtr, getRegGpr),
13088         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
13089         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
13090         * as/mcs51/asexpr.c (term),
13091         * as/hc08/asexpr.c (term): fixed bug #887146
13092
13093 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13094
13095         * src/z80/gen.c (genMult): handle single byte result product
13096         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
13097         DUMMY_READ_VOLATILE (fixed bug #886367)
13098
13099 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
13100
13101         * support/regression/tests/libmullong.c: fixed logic, on little endian
13102         hosts we ended without a mullong_wrapper()
13103
13104 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13105
13106         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
13107         virus/worm forged address usage.
13108
13109 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
13110
13111         Fixed promotion, it should be done on AST level:
13112         * src/SDCCast.c (addCast): added promotion to int
13113         (decorateType): updated call to upCast()
13114         * src/SDCCicode.c (geniCodeLeftShift): removed call to
13115         usualUnaryConversions()
13116
13117 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
13118
13119         * support/regression/tests/literalop.c (mulWrapper): Added a
13120         wrapper to remove integer overflow warnings.
13121
13122         * support/regression/tests/float_trans.c: Made work on host.
13123
13124         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
13125         location of sz80.
13126
13127         * support/regression/generate-cases.py (main): Changed from inline
13128         to a main method.
13129
13130         * doc/Makefile (install): Changed to depth first to get rid of
13131         missing directory install warning.
13132
13133         * as/Makefile (install-doc): Made work on Mac.
13134
13135 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
13136
13137         * src/SDCCast.c: added an additional type flow in decorateType() of
13138         opposite direction, see feature request #860006; it's enabled at runtime
13139         by setting the environment variable SDCC_NEWTYPEFLOW
13140         * src/SDCCast.h: changed prototype of decorateType()
13141         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
13142         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
13143         'char' to 'int' can be omitted, if both operands are 'unsigned char';
13144         see feature request #877103
13145         * src/SDCCval.c: updated call of decorateType()
13146         (valBitwise): fixed bug #882876
13147         (valMinus): added promotion
13148         (valLogicAndOr): result is unsigned
13149         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
13150         * src/SDCCsymt.c (computeType),
13151         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
13152         must not cause an unsigned operation
13153         * src/pic/glue (pic14emitRegularMap),
13154         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
13155
13156 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
13157
13158         * src/pic/pcode.c (PCodeID): commented out left over debug code
13159
13160 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
13161
13162         * support/valdiag/tests/overflow.c: added shift tests
13163         * src/pic/device.c,
13164         * src/pic/gen.c,
13165         * src/pic/gen.h,
13166         * src/pic/glue.c,
13167         * src/pic/main.c,
13168         * src/pic/pcode.c,
13169         * src/pic/pcode.h,
13170         * src/pic/pcodepeep.c,
13171         * src/pic/pcoderegs.c,
13172         * src/pic/ralloc.c,
13173         * src/pic/ralloc.h: applied patch from Slade Rich;
13174         added support for multiple code pages and multiple RAM banks on the
13175         PIC 14 port. The ASM files now no longer simply assume all the
13176         code / RAM are in the same page / bank. This means the linker can
13177         safely allocate code/RAM of separate ASM files to different pages/banks.
13178         * doc/sdccman.lyx: added Slade's tips
13179         * src/mcs51/peeph.def: fixed bug #880768
13180
13181 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13182
13183         * src/hc08/ralloc.c (rematStr): fixed bug #879282
13184         * src/SDCCast.c (decorateType): fixed bug #880197
13185
13186 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
13187
13188         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
13189         getopt.h.
13190
13191         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
13192         strtof is not part of C89 and isn't included with Mac OS X.
13193
13194 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13195
13196         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
13197         shiftL2Left2Result): fixed bug #879326
13198         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
13199         (genMultOneByte): fixed bug in signed vs unsigned multiplication
13200         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
13201         address fetch for clr instruction
13202         * device/lib/hc08/_mulint.c: created optimized assembly version
13203         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
13204
13205 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
13206
13207         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
13208         proposed in FR #877103
13209
13210 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
13211
13212         * src/SDCCval.c (cheapestVal): added missing checks
13213         * src/SDCCicode.c (usualBinaryConversions): fixed condition
13214         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
13215
13216 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
13217
13218         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
13219         equal operands
13220
13221 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
13222
13223         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
13224         loaded with the linker search paths (-L arguments) and the libraries
13225         to be linked with the current source (-l arguments). Changes
13226         currently will affect only the pic16 port.
13227         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
13228         include path the port specific paths and port specific libraries,
13229         * gplink command now contains the $3 argument,
13230         * src/pic16/device.h,
13231         * src/pic16/device.c,: structure PIC_device is made public and
13232         renamed to PIC16_device, the same for variable Pics which is renamed
13233         to Pics16. Updated all references to them.
13234         * src/pic16/glue.c (pic16glue): corrected bug with code
13235         initialization which bypassed the variable initializations block.
13236
13237         * device/lib/pic16/Makefile.rules: removed --penable-stack from
13238         COMPILE_FLAGS and added the --nostdinc option
13239
13240 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13241
13242         * device/include/mc68hc908jb8.h: Register defs for another member
13243         of the hc08 family. Contributed by Bjorn Bringert - thanks!
13244
13245 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
13246
13247         Documenting changes from previous commits.
13248         * configure.in (version 1.56),
13249         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
13250         when generating output files to configure the pic16 library,
13251         but now I've commented it out, since gputils aren't installed in the
13252         SF compile farm, so library won't compile
13253
13254         * device/lib/Makefile.in (version 1.56): initially I've added in
13255         target 'all' the prerequestive 'model-pic16' so it compiled the
13256         pic16 library, but now I've commented it out for the same reasons
13257         above,
13258         * added targets 'model-pic16' and 'objects-pic16' to compile the
13259         library
13260         * added target 'port-specific-objects-pic16' to handle the
13261         generated libraries and copy them into the build/ directory
13262         * added target 'clean-intermediate-pic16' to clean intermediate
13263         files into pic16 directory
13264         * in target 'installdirs' added line to create directory pic16 in
13265         the installation path
13266
13267         * device/include/Makefile.in (version 1.11): in target 'install'
13268         added lines to copy all header files to installation path,
13269         * in target 'installdirs' added line create directory for pic16
13270         headers in the installation path
13271
13272 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
13273
13274         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
13275          a function call
13276
13277 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
13278
13279         * configure,
13280         * device/lib/configure.in,
13281         * device/lib/configure: fixed for autoconf 2.57
13282
13283 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13284
13285         * src/z80/main.c (_parseOptions): fixed the portmode= command line
13286         option so that it actually works. Made it specific to the z80, since
13287         the gbz80 doesn't have these kinds of I/O ports.
13288
13289 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13290
13291         * device/include/z180.h,
13292         * device/lib/_memcpy.c,
13293         * device/lib/_memmove.c,
13294         * device/lib/_mulint.c,
13295         * device/lib/ser_ir.c,
13296         * device/lib/ser_ir_cts_rts.c,
13297         * device/lib/_strcmp.c,
13298         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
13299         * src/z80/main.c (_process_pragma): add support for pragmas bank and
13300         portmode; added deprecation warning for bank= and protmode= forms.
13301         Also, guard against buffer overflow.
13302         * src/z80/gen.c (aopGet): generate better code for sfr banked read
13303
13304 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13305
13306         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
13307         changed interrupt vector table generation to only emit declared vectors.
13308         * device/include/Makefile.in: added missing backslash
13309         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
13310
13311 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
13312
13313         Mainly changes to support compilation of the device libraries
13314         * src/pic16/device.c: stack is allocated via symbol and not
13315         via literal number. The symbol is placed in the corresponding
13316         position of the data ram
13317         * (pic16_dump_section): relocatable and absolute uninitialized
13318         data are now emitted in sorted order to reduce section naming,
13319         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
13320         weren't marked as being in the access bank,
13321
13322 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
13323
13324         Added portion of GNU PIC Library under the directory
13325         device/include/pic16 and device/lib/pic16. These files
13326         contain the declarations of SFRs for the PIC18Fxx2 devices.
13327         The directory is initialized via configure from toplevel.
13328
13329 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
13330
13331         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
13332         the spilllocations to be compared correctly
13333
13334 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
13335
13336         * src/SDCCast.c (decorateType): fixed bug introduced today
13337
13338 2004-01-12  Borut Razem <borut.razem AT siol.net>
13339
13340         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
13341         doc/sdccman.lyx: upper case pragmas are deprecated
13342
13343 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
13344
13345         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
13346         in simpler and even better code
13347
13348 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
13349
13350         * src/SDCCicode.c (operandOperation): fixed bug #874819
13351         * src/SDCCast.c (decorateType): fixed
13352         char foo (unsigned long ul) { return ul > 0; }
13353
13354 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13355
13356         * doc/sdccman.lyx: Moved and added some sections, small changes
13357         all over. Telling LaTeX to be less strict with word spacing
13358         to better keep the right margin. Changed some notes about
13359         maintainance of the ports in section 3.2.1 - is it OK like this?
13360
13361 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
13362
13363         SDCC source changes:
13364         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
13365         convilong): modified to inform the pic16 port that builtin functions
13366         are external
13367
13368         PIC16 PORT specific changes:
13369         * src/pic16/device.c pic16_dump_equates() added,
13370         processor registers declared internally by the port are emitted in
13371         the translation as equates,
13372         * src/pic16/gen.c: inline code is passed unprocessed to the
13373         translation,
13374         * (pic16_popGetLit2): fnuction modified to take second operand as
13375         pCodeOp pointer and not as literal,
13376         * (popRegFromIdx): prefixed with pic16_,
13377         * (pic16_popCombine2): modified to receive already allocated pCode
13378         operands,
13379         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
13380         * (genFunction): initializes local stack frame and pushes on stack
13381         all the registers used by this function,
13382         * (genEndFunction): restores all registers from stack and restores
13383         stack frame,
13384         * src/pic16/glue.c (pic16emitRegularMap): various changes and
13385         improvements,
13386         * (pic16glue): changed the program startup sequence,
13387         * added new dbName code 'A' for functions placed in absolute section
13388         * src/pic16/main.c: added function attribute _naked,
13389         * added pragma 'code' to place a fnuction at an absolute address,
13390         * added command line arguments --debug-ralloc and --pcode-verbose,
13391         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
13392         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
13393         * (pic16_newpCodeOpLit2): modified to take the second operand as
13394         pCodeOp pointer,
13395         * (pic16_printpBlock): modified to emit each function in a separate
13396         section,
13397         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
13398         UPPER for immediate operands,
13399         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
13400         instruction,
13401         * src/pic16/peeph.def: all peepholes with movff are commented out,
13402         because there is a problem in the pcode peep optimizer,
13403         * src/pic16/ralloc.c: the register allocator can now reuse local
13404         function symbols for another function. This saves register usage.
13405         * src/pic16/ralloc.h: added flag isLocal in structure regs,
13406
13407         Added file src/pic16/NOTES with information about program writing on
13408         the current port version.
13409
13410 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13411
13412         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
13413         and peephole 252 (array access)
13414
13415 2004-01-09  Borut Razem <borut.razem AT siol.net>
13416
13417         * src/SDCCmain.c : fixed #872250: -l command line defined library
13418           files are scanned before standard library files
13419
13420 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13421
13422         * src/SDCCast.c (decorateType): fixed bug #874046
13423
13424 2004-01-09  Borut Razem <borut.razem AT siol.net>
13425
13426         * support/scripts/sdcc.nsi: remove previous installation
13427
13428 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13429
13430         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
13431         bytes for last interrupt vector (mcs51)
13432         * sdcc.spec: fixed typo
13433
13434 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13435
13436         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
13437         gen51Code): more efficient parameter receive for --model-large
13438         ("bug" #845294)
13439
13440 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13441
13442         * src/ds390/main.c,
13443         * src/z80/main.c: added missed needLinkerScript flags (more than
13444         one port structure defined in these file)
13445         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
13446         bug #795325
13447
13448 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
13449
13450         * src/SDCCmain.c: removed various references to DEFAULT_PORT
13451         * src/port.h: added flag needLinkerScript in port->linker
13452         structure to inform whether to create a .lnk file or not,
13453         * src/avr/main.c,
13454         * src/ds390/main.c,
13455         * src/hc08/main.c,
13456         * src/mcs51/main.c,
13457         * src/pic/main.c,
13458         * src/pic16/main.c,
13459         * src/xa51/main.c,
13460         * src/z80/main.c: changed appropriately to configure
13461         needLinkerScript flag
13462         * src/pic/gen.c,
13463         * src/pic16/gen.c (genAddrOf): fixed bug #863624
13464         * src/pic/glue.c: added variable udata_section_name to
13465         override default uninitialized data segment definition for
13466         devices only with SHAREBANK memory (reported from Erik Epetrich)
13467         * (pic14emitOverlay): modified to emit a commented overlay segment
13468         directive when no overlay data exist
13469         * (picglue): modified to emit uninitialized data segment
13470         according to udata_section_name
13471         * src/pic/main.c (_pic14_parseOptions): added command line
13472         options --udata-section-name=[name] to override default
13473         udata definition name
13474         * modified _linkCmd and _asmCmd to include compiler passed
13475         arguments via -W option
13476         * src/pic16/main.c: added $l in _asmCmd, changed extension for
13477         object file from '.rel' to '.o' in port->linker structure,
13478         changed size of fptr from 2 to 3 in port structure
13479
13480 2004-01-07  Borut Razem <borut.razem AT siol.net>
13481
13482         * support/scripts/sdcc.nsi: update PATH
13483         * support/scripts/sdcc.ico: craeted
13484
13485 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
13486
13487         * device/include/Makefile.in: fix install
13488         * doc/Makefile: fix install
13489
13490 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13491
13492         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
13493         in bug #860505
13494         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
13495         how the function variable allocation summary is displayed; also
13496         include information about variables allocated to the overlay
13497         segment
13498
13499 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13500
13501         * as/mcs51/lkmain.c: Help about -Y option
13502         * as/mcs51/lkarea.c: Fixed gcc warnings
13503
13504 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
13505
13506         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
13507         fixed warning
13508         * support/valdiag/tests/overflow.c: added
13509         * src/SDCCast.c (decorateType),
13510         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
13511         LEFT_OP (left shift)
13512
13513 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13514
13515         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
13516         (default behaviour).
13517
13518 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13519
13520         A python script to validate compiler diagnostic messages. It can be
13521         used to verify that sdcc complains about bad c source code and
13522         gives a good location of the error.
13523         * support/valdiag/Makefile,
13524         * support/valdiag/valdiag.py,
13525         * support/valdiag/tests/*
13526
13527 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13528
13529         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
13530         * src/SDCCsymt.c (newEnumType),
13531         * src/SDCCsymt.h
13532         * support/Util/SDCCerr.c,
13533         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
13534         enum related bugs.
13535         * support/regression/tests/enum.c: added test for enum values that
13536         require at least 2 bytes of storage.
13537
13538 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
13539
13540         * src/common.h: added ifndef/define/endif macros
13541         around the header file.
13542         Bug reported from Jesus Calvino-Fraga
13543
13544 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
13545
13546         * sdcc.spec: updated
13547         * device/include/Makefile.in: don't install CVS directories
13548         * device/lib/Makefile.in: added removal of CVS directories after install
13549         * doc/Makefile: fixed install, added local_icons
13550         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
13551         * src/mcs51/gen.c (genRightShift): fixed bug #870788
13552         * src/ds390/gen.c (genRightShift): fixed bug #870788
13553         * src/SDCCast.c (decorateType): fixed bug #870781
13554
13555 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
13556
13557         PIC16 port related changes:
13558         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
13559         added variable stackPos,
13560
13561         * gen.c: genCall, assignResultValue: added support for
13562         pushing/retrieving function parameters to/from stack,
13563         genFunction,genEndFunction: setup stack frame for the
13564         generated function,
13565         genAddrOf: will be changed according to bug 863624
13566
13567         * added files genutils.c and genutils.h which contain gen*
13568         debugged and optimised functions extracted from gen.c
13569
13570         * glue.c: added variable 'externs' which holds extern symbols,
13571         pic16emitRegularMap: is modified to properly handle relocatable
13572          symbols under the new scheme,
13573         pic16createInterruptVect: is modified
13574         pic16printPublics: is modified to emit 'global' assembler directives,
13575         added pic16_printExterns to print extern symbols,
13576         pic16glue: initializes stack/frame pointer in the beginning of
13577         the assembly output. Temporary hack, will be corrected later,
13578         because gplink yet does not support stack and SDCC does not
13579         yet support a type of crt0.o object to create the final binary.
13580
13581         * Removed many lines that contain 8051 legacy code.
13582         * The code is finally placed under a 'code' directive.
13583         * Added port specific options.
13584
13585         * _process_pragma: simplified since now we do not need *special*
13586         include file to define SFR registers. But a separate header
13587         will be needed. This will be developed later.
13588         * _pic16_parseOptions: added, parses port specific options:
13589         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
13590         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
13591         --preplace-udata-with=
13592
13593         * _pic16_setDefaultOptions: modified to initialize section names,
13594         but hack is temporarly out of order since it needs improvement.
13595         * _pic16_genAssemblerPreamble: configuration words are emitted by
13596         their address instead of their name. This part is incomplete and
13597         supports only the 18Fxx2 devices. Other devices will emit an error
13598         during assembly since they do not contain the same set of config
13599         registers
13600         * _pic16_genIVT: is modified,
13601
13602         * pcode.c: added definitions for some hardware registers that are needed
13603         for stack support
13604         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
13605         All PCI entries are updated. Now LFSR is supported.
13606         * Removed pic16_pciTRIS is mentioned by mdubuc in source
13607         * added pic16_newpCodeOpLit2 to support instructions with
13608         two literal arguments
13609         * pic16_pCode2str: corrected code that emits assembler instructions
13610         with two literal operands and those that have an access bit modifier
13611         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
13612         this fixes a bug which caused some labels to be lost, when an
13613         assembler directive was added, i.e. banksel,
13614         * pic16_FixRegisterBanking: improved logic that causes the insertion
13615         of bank switching,
13616         * InlineFunction: functions that are called once, are not any more
13617         inlined. This can be a port option in the future,
13618
13619         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
13620
13621         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
13622         hold the corresponding uninitialized symbols,
13623         * pic16_allocProcessorRegister: registers have explicit marked the
13624         accessBank field,
13625         * pic16_allocInternalRegister: registers are explicit marked as
13626         not used,
13627         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
13628         processing list, so bit registers were lost,
13629         *
13630
13631         * ralloc.h: added field 'accessBank' and original symbol operand
13632         in register definition,
13633         * removed the field isMapped from register definition,
13634
13635         ** Several functions have been removed from various sources:
13636         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
13637         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
13638         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
13639         pic16_assignRelocatableRegisters
13640
13641         ** others have been introduced:
13642         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
13643         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
13644
13645 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
13646
13647         * support/scripts/inc2h.pl: changed definition of BIT_AT
13648         to emit 'sbit at' instead of 'bit at'. This was a request.
13649
13650         PIC16 port related preliminary changes:
13651         * gen.c: prefixed function popRegFromString with
13652         pic16_ and all references to it corrected
13653         * pcode.c: all pic16_pc_* hardware registers prefixed
13654         with underscore (_),
13655         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
13656         * ralloc.c: newReg(): when register is REG_SFR then
13657         set address to rIdx,
13658         pic16_allocProcessorRegister(): marks register wasUsed=0
13659         pic16_writeUsedRegs(): added a call to assign processor
13660         registers via pic16_assignFixedRegisters
13661
13662 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13663
13664         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
13665         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
13666         variables in unused register banks.  Also the SSEG is placed
13667         wherever there is enough space for it, and IDATA can be anywhere
13668         in internal RAM.  For now compile using -Wl-Y[stack_size].
13669         The mem file is different for this option as well, since it
13670         makes no sense of talking about DSEG lenght.
13671
13672 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
13673
13674         * src/SDCClrange.c: fixed bug 869095 that caused segfault
13675         in certain cases, e.g. when ROM assignment, patch provided
13676         from Albert den Haan.
13677
13678 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
13679
13680         Many signedness and type propagation fixes:
13681         * src/SDCCicode.c: made geniCodeCast() static
13682         replaced SPEC_ by IS_ (cosmetic)
13683         (operandOperation): fixed div and mod operation
13684         (usualBinaryConversions): added support for promotion of char
13685         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
13686         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
13687         (geniCodeAdd): an array index will stay unsigned, even if promoted
13688         from char to int
13689         (geniCodeArray): ditto
13690         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
13691         * src/SDCCsymt.c (computeType): added more support for char;
13692         promotion of char is selectable by promoteCharToInt, fixed signedness
13693         for all cases
13694         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
13695         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
13696         * src/SDCCval (val*): replaced signedness calculation by
13697         computeType()
13698         rearranged if-branches (cosmetic)
13699         (valShift): added warning W_SHIFT_CHANGED
13700         (valCompare): fixed problem with different types
13701         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
13702         * support/regression/tests/literalop.c: added many cases
13703         * support/regression/tests/ast_constant_folding.c: changed finally to
13704         'unsigned int'
13705         * .version: new year, new version: 2.3.7
13706         * src/SDCCmain.c (main): applied patch #866468
13707         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
13708         provided by Scott Bronson
13709         * doc/sdccman.lyx: updated documentation for sdcdb
13710         updated and added chapter tips
13711
13712 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13713
13714         * src/SDCCsymt.h: missing from yesterday's commits
13715
13716 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13717
13718         * src/SDCC.y (struct_or_union_specifier),
13719         * support/Util/SDCCerr.c,
13720         * support/Util/SDCCerr.h: verify that struct & union tags are used
13721         as declared.
13722
13723 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13724
13725         * src/SDCCglobl.h: missing from yesterday's commits
13726
13727 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13728
13729         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
13730         sft_attributes, struct_declaration, parameter_declaration,
13731         type_name, start_block, declaration_list),
13732         * src/SDCC.lex (check_type): support redefinition of typedef names
13733
13734 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13735
13736         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
13737         aligned xdata arrays. Erik helped me with the if clause.
13738
13739 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13740
13741         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
13742         warning
13743
13744 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13745
13746         * src/SDCCast.h,
13747         * src/SDCCast.c (newAst_),
13748         * src/SDCCicode.h,
13749         * src/SDCCicode.c (ast2iCode, newiCode),
13750         * src/SDCCglobl.h,
13751         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
13752         expr, statement, expression_statement, selection_statement,
13753         iteration_statement, expr_opt, jump_statement): foundation for tracking
13754         sequence points
13755         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
13756         point code too)
13757
13758 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13759
13760         * support/Util/SDCCerr.c,
13761         * src/SDCCast.h,
13762         * src/SDCCast.c (createCase, createDefault, decorateType),
13763         * src/SDCClabel.c (labelUnreach),
13764         * src/SDCC.y (labeled_statement, jump_statement): More improvements
13765         to error messages.
13766         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
13767         (with thanks to Stas Sergeev)
13768         * device/include/time.h,
13769         * device/lib/time.c (CheckTime): suppress unreachable code warning
13770
13771 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13772
13773         * src/SDCCast.c (createIvalCharPtr),
13774         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
13775         bug #753752)
13776         * support/regression/tests/nullstring.c: tests for these two bugs
13777
13778 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13779
13780         * support/Util/SDCCerr.h,
13781         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
13782         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
13783         about storage class and 'at' used inside struct or union
13784         * src/SDCCBBlock.c (iCodeFromeBBlock),
13785         * src/SDCCcse.c (ifxOptimize),
13786         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
13787         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
13788         printIval, emitStaticSeg, emitOverlay),
13789         * src/SDCClabel.c (deleteIfx),
13790         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
13791         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
13792         gatherAutoInit, processParms),
13793         * support/Util/SDCCerr.h,
13794         * support/Util/SDCCerr.c (werrorfl): Support for better error location
13795         reporting for post-parse errors.
13796
13797 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13798
13799         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
13800         implicit casts via union; they don't work on big endian systems
13801         (possible fix for bug #861138)
13802
13803 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13804
13805         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
13806         * src/mcs51/main.c: fixed the fix for bug #737001
13807
13808 2003-12-15  Borut Razem <borut.razem AT siol.net>
13809
13810         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
13811
13812 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13813
13814         * support/makebin/makebin.c: put output in binary mode
13815
13816 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13817
13818         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
13819         xdata and data memory on startup. Set the environment variable
13820         SDCC_NOGENRAMCLEAR to disable this.
13821         * src/mcs51/peephole.def,
13822         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
13823         (allows non-interrupt and interrupt code to safely compete for a resource
13824         without the non-interrupt code having to disable interrupts)
13825
13826 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13827
13828         * src/SDCCicode.c (geniCodeAdd),
13829         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
13830         with valFromType if type might be a pointer and host is big endian).
13831         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
13832         types, not just integer types.
13833         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
13834         multiply defined with mismatching "at" address.
13835
13836 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13837
13838         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
13839         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
13840         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
13841         with embedded nulls (fixed bug #753752)
13842
13843 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13844
13845         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
13846         Apparently this did not see much testing (endless loop)
13847
13848 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13849
13850         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
13851
13852 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13853
13854         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
13855         gracefully handle NULL memmap pointers
13856
13857 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13858
13859         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
13860         instead of deleting the iCode when an operand is volatile
13861         * src/z80/gen.c (genDummyRead),
13862         * src/mcs51/gen.c (genDummyRead),
13863         * src/ds390/gen.c (genDummyRead),
13864         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
13865         not just IC_RIGHT
13866         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
13867         * src/SDCC.y: fixed bug #850420
13868
13869 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13870
13871         Applied z80 i/o port patch from Peter Townson and fixed some operators
13872         to better handle operands in A register.
13873         * device/include/z180.h
13874         * src/SDCC.y
13875         * src/SDCCglue.c
13876         * src/z80/gen.c
13877         * src/z80/gen.h
13878         * src/z80/main.c
13879         * src/z80/peeph-z80.def
13880         * src/z80/peeph.def
13881         * src/z80/z80.h
13882
13883 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13884
13885         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
13886
13887 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13888
13889         * device/lib/hc08/_mullong.c: Removed extra #endif
13890
13891 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13892
13893         * sim/ucsim/hc08.src/inst.cc,
13894         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
13895         carries from x to h
13896         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
13897         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
13898         * device/include/stdarg.h: fixed varargs for hc08
13899         * device/lib/Makefile.in,
13900         * device/lib/hc08/Makefile,
13901         * device/lib/hc08/_mulint.c,
13902         * device/lib/hc08/_mullong.c: fixed some endian problems
13903
13904 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13905
13906         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
13907         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
13908         * device/lib/_gptrget.c,
13909         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
13910
13911 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13912
13913         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
13914         * src/SDCCast.c (astErrors): fixed bug #846007
13915         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
13916
13917 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13918
13919         * src/SDCCast.c (decorateType): disabled a transformation I added in
13920         revision 1.188 (access to fields of a structure at an absolute address);
13921         it breaks with bitfields, extern declarations, and gcse analysis.
13922         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
13923         could be assigned through a pointer, so don't complain.
13924         * src/SDCCast.c (astErrors),
13925         * src/SDCCast.h,
13926         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
13927
13928 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
13929
13930         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
13931         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
13932         output of __config directives, since gpasm now supports them
13933         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
13934         pre-processor macro, i.e. -DMCU=p18f452
13935         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
13936         and modified to handle 'cast' icode similarly to '=' icode
13937         * src/pic16/device.h (typedef struct PIC_device): added field
13938         'extMIface' to indicate that chip has external memory interface
13939         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
13940         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
13941         18F8720
13942
13943 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13944
13945         * src/SDCC.y (pointer): fixed bug #846006
13946         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
13947         * src/SDCCast.c (decorateType): fixed bug #846009
13948         * src/ds390/peeph.def,
13949         * src/ds390/gen.c (genAnd, genOr),
13950         * src/mcs51/peeph.def,
13951         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
13952
13953 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13954
13955         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
13956         * src/SDCCdflow.c
13957         * src/SDCCcse.c
13958         * src/SDCCcse.h
13959         * src/SDCCBBlock.h
13960         * src/SDCCBBlock.c
13961
13962 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
13963
13964         fixed bug #845089
13965         * src/SDCCbitv.h,
13966         * src/SDCCbitv.c: added function to free a bitvector
13967         * src/SDCClrange.h,
13968         * src/SDCClrange.c: added function to recompute the liveranges
13969         * src/avr/ralloc.c,
13970         * src/ds390/ralloc.c,
13971         * src/hc08/ralloc.c,
13972         * src/mcs51/ralloc.c,
13973         * src/pic/ralloc.c,
13974         * src/pic16/ralloc.c,
13975         * src/xa51/ralloc.c,
13976         * src/z80/ralloc.c: recompute the liveranges after register packing
13977
13978 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
13979
13980         * src/SDCCloop.c (newInduction): fixed bug #845630
13981
13982 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13983
13984         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
13985         inadvertantly left behind from my 2003-11-12 change
13986
13987 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13988
13989         Updated headers I neglected to commit yesterday.
13990         * src/SDCClrange.h,
13991         * src/SDCCicode.h
13992
13993 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13994
13995         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
13996         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
13997         * src/SDCCopt.c (eBBlockFromiCode),
13998         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
13999         the creation of the key hash table from the sequencing so it can be used
14000         earlier (for some GCSE bug fixes still pending)
14001
14002 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14003
14004         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
14005         * support/regression/tests/addsub.c: testing genPlus shortcut
14006
14007 2003-11-15  Borut Razem <borut.razem AT siol.net>
14008
14009         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
14010
14011 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14012
14013         * src/SDCCcse.c (cseBBlock): fixed bug #527779
14014         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
14015         ordering is immaterial.
14016         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
14017
14018 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14019
14020         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
14021         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
14022         (SIGSEV) of bug #840381
14023         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
14024         unlink new file before rename if new and old filenames are the same)
14025
14026 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14027
14028         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
14029         uninitialized variables) for the mcs51. Set environment variable
14030         SDCC_GENRAMCLEAR to test.
14031         xdata initialization slightly shorter
14032
14033 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14034
14035         * src/SDCCsymt.h,
14036         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
14037         #838241 & 780691 (basicly the same bug)
14038         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
14039         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
14040
14041 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
14042
14043         * src/SDCCmain.c (linkEdit): "fix" #834252
14044
14045 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14046
14047         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
14048         * src/SDCCast.h,
14049         * src/SDCC.y: fixed bug #819403
14050
14051 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14052
14053         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
14054         the reentrant attribute.
14055         * src/hc08/gen.c (genPackBits): added missing stack readjustment
14056         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
14057         simulation
14058         * src/SDCCast.c (decorateType): fixed bug with storage class not being
14059         updated during pointer dereference; f.e. ~(((char *)1)*) was being
14060         erroneously reduced to a literal.
14061         * src/hc08/ralloc.c (packRegisters, rematStr),
14062         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
14063         some cases
14064
14065 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14066
14067         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
14068         * doc/sdccman.lyx: changed from 'article' to 'book'
14069         * doc/Makefile: readded test_suite_spec and cdbfileformat
14070
14071 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
14072
14073         * device/include/stdlib.h: include malloc.h to comply with ANSI
14074         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
14075
14076 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14077
14078         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
14079         * doc/clean.mk: also remove *.out files
14080         * doc/sdccman.lyx: some additions, larger top/bottom margins
14081
14082 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14083
14084         * src/SDCC.y: fixed bug #837365
14085         * support/regression/tests/bitopcse.c
14086         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
14087         a symbol (might be valop instead)
14088         * device/lib/Makefile.in: added errno.c to HC08SOURCES
14089         * device/lib/clean.mk: added hc08 to the cleaning list
14090
14091 2003-11-04  Borut Razem <borut.razem AT siol.net>
14092
14093         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
14094           made 2003-11-04
14095         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
14096           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
14097           malloc is declared in standard stdlib.h
14098
14099 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14100
14101         * device/lib/hc08/Makefile: need to clean .rel not .o files
14102         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
14103
14104 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14105
14106         * src/port.h,
14107         * src/hc08/main.c,
14108         * src/mcs51/main.c,
14109         * src/ds390/main.c,
14110         * src/z80/main.c,
14111         * src/avr/main.c,
14112         * src/pic/main.c,
14113         * src/pic16/main.c,
14114         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
14115         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
14116         tests (which uses the port's oclsExpense function)
14117         * src/SDCC.y,
14118         * src/SDCCast.c,
14119         * src/SDCCicode.c,
14120         * src/hc08/gen.c,
14121         * src/ds390/gen.c,
14122         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
14123
14124 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14125
14126         * src/SDCCcse.c (ifxOptimize),
14127         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
14128         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
14129         deleting the IFX iCode.
14130         * src/hc08/ralloc.c: reduced unneeded slocs
14131         * src/hc08/gen.c: fixed bug in asmopToBoolean
14132
14133 2003-11-04  Borut Razem <borut.razem AT siol.net>
14134
14135         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
14136           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
14137           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
14138           transferred to configure
14139
14140 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
14141
14142         Use headers defined in the C[++] standards:
14143         * sim/ucsim/gui.src/serio.src/fileio.cc
14144         * sim/ucsim/gui.src/serio.src/frontend.cc
14145         * sim/ucsim/gui.src/serio.src/main.cc
14146         * sim/ucsim/gui.src/serio.src/posix_signal.cc
14147         * support/Util/NewAlloc.c
14148         * as/hc08/lklibr.c
14149         * as/mcs51/lklibr.c
14150         * as/z80/aslist.c
14151         * as/z80/assym.c
14152
14153 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14154
14155         * Added MSVC projects for hc08 assembler and linker:
14156         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
14157         /as/hc08/link_hc08.dsp
14158
14159 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
14160
14161         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
14162
14163 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
14164
14165         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
14166
14167 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14168
14169         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
14170
14171 2003-10-31  Borut Razem <borut.razem AT siol.net>
14172
14173         * support/cpp2/cpplib.h,
14174           support/cpp2/cpplib.c,
14175           support/cpp2/cpplex.c,
14176           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
14177           to switch _asm block preprocessing on / off. Default is
14178           #pragma preproc_asm +
14179
14180 2003-10-31  Borut Razem <borut.razem AT siol.net>
14181
14182         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
14183           when outputting comment blocks (when executed with -C option) and
14184           _asm (SDCPP specific) blocks
14185
14186 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14187
14188         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
14189
14190 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
14191
14192         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
14193
14194 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
14195
14196         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
14197         * src/SDCCast.c (decorateType): fixed bug #832664
14198
14199 2003-10-31  Borut Razem <borut.razem AT siol.net>
14200
14201         * support/cpp2/cpplex.c: fixed for SDCPP:
14202           comments(when executed with -C option) and _asm blocks
14203           were included even if they where in skipped #if block.
14204           Applied solution from GCC cpp 3.3.2
14205
14206 2003-10-31  Borut Razem <borut.razem AT siol.net>
14207
14208         * src/SDCC.lex: sdcc now understands both formats:
14209           '# <line_number> <file_name>' and
14210           '#line <line_number> <file_name>'
14211         * support/cpp2/cppmain.c: sdcpp now generates the standard
14212           '# <line_number> <file_name>' instead of former
14213           '#line <line_number> <file_name>'
14214
14215 2003-10-30  Borut Razem <borut.razem AT siol.net>
14216
14217         * support/cpp2/cpphash.h,
14218         * support/cpp2/cpplib.h
14219         * support/cpp2/cpplex.c,
14220         * support/cpp2/cppmain.c,
14221         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
14222
14223 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14224
14225         Fixed a number of problems revealed by bug #827883.
14226         * src/SDCCloop.c (loopInvariants): Spill location of the
14227         result operand should be recomputed if extracted from
14228         a loop. Also, don't extract assignments of an iTemp
14229         from a literal.
14230         * src/SDCCast.c (isConformingBody): loop reversal should
14231         not occur if the control variable is involved with a
14232         relational operator.
14233
14234 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
14235
14236         * .version: bumped to 2.3.6 to reflect the big improvements
14237         made by Erik and Klaus. Thanks!
14238
14239 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
14240
14241         Replaced the livrange code.
14242         * src/SDCClrange.c: added new LR code
14243         * src/SDCCloop.c,
14244         * src/SDCCBBlock.h: removed remainig parts from old LR code
14245         * src/ds390/ralloc.c,
14246         * src/ds390/gen.c: minor fixes to make it work with new code
14247
14248 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14249
14250         * as/hc08/asm.h,
14251         * as/hc08/lkrloc.c,
14252         * src/hc08/gen.c,
14253         * src/hc08/ralloc.c: Fix various warnings related to the hc08
14254         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
14255         (tweaked fix for bug #818696)
14256
14257 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14258
14259         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
14260
14261 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14262
14263         * src/SDCCmain.c,
14264         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
14265         * src/mcs51/gen.c (gencjneshort),
14266         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
14267         more efficient (per Scott Bronson's suggestion)
14268
14269 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14270
14271         Extended the semantics of the critical keyword to include
14272         individual statements. See RFE #827755 and #799831
14273         * src/SDCC.y
14274         * src/SDCCicode.c
14275         * src/SDCCopt.c
14276         * src/SDCCast.c
14277         * support/Util/SDCCerr.c
14278         * support/Util/SDCCerr.h
14279         * src/mcs51/gen.c
14280         * src/ds390/gen.c
14281         * src/hc08/gen.c
14282
14283 2003-10-19  Borut Razem <borut.razem AT siol.net>
14284
14285         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
14286
14287 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14288
14289         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
14290         Fixed bug #818696
14291         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
14292         and predecrement operand is displayed
14293
14294 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
14295
14296         * src/SDCCval.c (valMinus): fixed bug #826041
14297
14298 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14299
14300         Some hc08 related updates that I missed earlier
14301         * sim/ucsim/stypes.h
14302         * support/regression/ports/hc08/spec.mk
14303
14304 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14305
14306         New target "hc08" for the Motorola 68hc08 family of micros
14307
14308         * configure
14309         * configure.in
14310         * Makefile
14311         * src/hc08/*
14312         * src/SDCCmain.c
14313         * src/port.h
14314         * sim/ucsim/hc08.src/*
14315         * sim/ucsim/configure.in
14316         * src/ucsim/configure
14317         * sim/ucsim/packages_in.mk
14318         * as/hc08/*
14319         * as/Makefile
14320         * device/include/mc68hc908qy.h
14321         * device/lib/hc08/*
14322         * device/lib/Makefile.in
14323         * support/regression/ports/hc08/*
14324         * support/regression/Makefile
14325
14326 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14327
14328         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
14329         regression test
14330         * src/ds390/gen.c (genCast): fixed bug #821957
14331
14332 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
14333
14334         * device/lib/logf.c: "fixed" overlay bug
14335         * support/regression/ports/host/spec.mk: added m library
14336         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
14337         * support/regression/tests/float_trans: added (for Eric)
14338
14339 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
14340
14341         * src/mcs51/gen.c (genCpl): fixed bug
14342         http://sf.net/mailarchive/message.php?msg_id=6263915
14343
14344 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
14345
14346         * src/SDCCast.c (decorateType): added extended constant folding
14347         * src/SDCCsymt.c (computeType): cleanup
14348         * src/SDCCval.c (valShift): minor optimization
14349         * support/regression/tests/ast_constant_folding.c: added
14350
14351 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14352
14353         * src/SDCCmain.c: removed some unintended changes
14354
14355 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14356
14357         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
14358         * src/z80/gen.c: fixed part of bug #817589
14359         * src/SDCCsymt.c (checkFunction): fixed bug #817895
14360
14361 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
14362
14363         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
14364         * src/SDCCcflow.c
14365         * src/SDCCcse.c
14366         * src/SDCCdflow.c
14367         * src/SDCClabel.c
14368         * src/SDCClrange.c
14369         * src/SDCCmem.c
14370         * src/SDCCopt.c
14371         * src/SDCCpeeph.c
14372         * src/SDCCset.c
14373         * src/avr/ralloc.c
14374         * src/ds390/ralloc.c
14375         * src/izt/ralloc.c
14376         * src/mcs51/ralloc.c
14377         * src/pic/ralloc.c
14378         * src/pic16/ralloc.c
14379         * src/xa51/ralloc.c
14380         * src/z80/ralloc.c
14381         * src/z80/gen.c: removed unused label "release:"
14382
14383 2003-10-06  Borut Razem <borut.razem AT siol.net>
14384
14385         * src/SDCC.lex: removed definition of unused variables
14386           save_optimize and save_options
14387
14388 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
14389
14390         * clean.mk: removed '=' in "-maxdepth=1"
14391         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
14392         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
14393
14394 2003-10-06  Borut Razem <borut.razem AT siol.net>
14395
14396         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
14397           my_unput() replaced by unput()
14398
14399 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
14400
14401         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
14402         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
14403         type-punned pointer will break strict-aliasing rules"
14404         Old LR behaviour is again default; Klaus' LR can be choosen by
14405         defining the environment variable LRKLAUS
14406         * src/SDCCBBlock.h
14407         * src/SDCCloop.c
14408         * src/SDCClrange.c
14409         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
14410         * clean.mk: fixed removal of files in bin/CVS/
14411         * device/lib/clean.mk: fixed removal of directories small and large
14412         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
14413         * src/SDCCicode.c,
14414         * src/SDCCval.c: removed superflous test for pedantic
14415
14416 2003-10-05  Borut Razem <borut.razem AT siol.net>
14417
14418         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
14419           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
14420           message "unmatched #pragma SAVE and #pragma RESTORE"
14421
14422 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14423
14424         * doc/sdccman.lyx: various additions and updates (interrupts, inline
14425           assembly, critical functions, atomic, nojtbound)
14426
14427 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
14428
14429         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
14430         * src/SDCCBBlock.h
14431         * src/SDCCloop.c
14432         * src/SDCCloop.h
14433         * src/SDCClrange.c
14434
14435 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14436
14437         * src/z80/gen.h,
14438         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14439         * src/mcs51/gen.h
14440         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14441         * src/ds390/gen.h
14442         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14443         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
14444         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
14445
14446 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14447
14448         * src/z80/gen.c (genRet): fixed bug #524753
14449         * src/z80/gen.c (genCast): fixed internal error on cast from
14450         pointer to long
14451         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
14452         fix for bug #477835 to the z80
14453         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
14454         for tracking iCodes in the peephole optimizer for z80
14455
14456 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14457
14458         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
14459         the other part of bug #814548
14460         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
14461
14462 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
14463
14464         * src/SDCCcse.c: fixed part of bug #814548
14465
14466 2003-09-28  Borut Razem <borut.razem AT siol.net>
14467
14468         * src/asm.c: rewrite of printILine() to use temporary file instead
14469           a pipe
14470         * src/xa51/main.c: commented out declaration of int rewinds
14471
14472 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14473
14474         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
14475
14476 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14477
14478         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
14479         * src/asm.c (printILine): Fixed bug #811015
14480
14481 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14482
14483         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
14484         freeing.
14485
14486 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14487
14488         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
14489         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
14490         to correctly handle general case of AOP_PAIRPTR
14491         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
14492
14493 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14494
14495         * src/mcs51/ralloc.c (fillGaps),
14496         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
14497         register positioning bug)
14498
14499 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
14500
14501         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
14502
14503 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14504
14505         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
14506         genCodePointerGet, genGenPointerGet, genFarPointerSet,
14507         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
14508         (ralloc doesn't intentionally do this now, but perhaps later)
14509         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
14510         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
14511         register positioning bugs (Fixed bug #762602 and #795325)
14512         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
14513         (Fixed bug #808779)
14514         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
14515         lines that --i-code-in-asm generates
14516
14517 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14518
14519         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
14520         trying to fclose a FILE* that was already closed.
14521
14522 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14523
14524         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
14525         of const struct should be treated as if const themselves)
14526
14527 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
14528
14529         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
14530
14531 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14532
14533         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
14534         Unix (/n) and DOS (/r/n) line terminations.
14535
14536 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14537
14538         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
14539         bug #613775
14540
14541 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14542
14543         * src/mcs51/gen.c (genFunction, genEndFunction),
14544         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
14545         and restore of EA so that stack offsets to parameters are
14546         correct when using both critical and reentrant/stack-auto.
14547         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
14548         size (can be triggered in error if sloc is shared between
14549         different sized objects)
14550         * device/include/float.h: fixed macros to explicitly use
14551         unsigned long where needed
14552
14553 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
14554
14555         Feature req. 799831: added code to allow nesting of critical functions
14556         * src/mcs51/gen.c (genFunction, genEndFunction)
14557         * src/ds390/gen.c (genFunction, genEndFunction)
14558
14559 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14560
14561         * src/SDCCsymt.c (sclsFromPtr),
14562         * src/SDCCsymt.h,
14563         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
14564         support for standard C idiom of memory mapped variables; for
14565         example, *((xdata int*)0x1234) = 1 is now internally equivalent
14566         to xdata int at 0x1234 tempvar = 1.
14567         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
14568         provided by Akiya ISHIDA
14569
14570 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
14571
14572         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
14573         * src/SDCCval.c (constVal): added reduction from int to char
14574         * src/SDCCval.c (valMult, valDiv): fixed sign handling
14575         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
14576         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
14577         to ignore the sign
14578         * support/regression/tests/shifts.c: fixed
14579
14580 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14581
14582         * src/z80/gen.c (genXor): Fixed bug #805445
14583
14584 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14585
14586         Fixed bug #621531 (const & volatile confusion in the type chain).
14587         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
14588         refer to the const or volatile state of the pointer itself.
14589
14590         * src/SDCCast.c
14591         * src/SDCCglue.c
14592         * src/SDCCicode.c
14593         * src/SDCCsymt.c
14594         * src/SDCCval.c
14595         * src/SDCC.y
14596         * src/SDCCsymt.h
14597         * src/pic/gen.c
14598         * src/pic/ralloc.c
14599         * src/pic16/gen.c
14600         * src/pic16/ralloc.c
14601         * support/regression/tests/const.c
14602
14603 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14604
14605         When checking for duplicated modules, use absolute paths
14606         instead of relative paths.  Files changed:
14607
14608         * as/mcs51/lklib.c
14609         * link/z80/lklib.c
14610
14611 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14612
14613         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
14614
14615 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14616
14617         * device/include/string.h: added size_t typedef, changed
14618         prototypes to use size_t, eliminated separate reentrant and
14619         non-reentrant declarations, added _memmove declaration
14620         * device/lib/_memcpy.c: changed to use size_t instead of int,
14621         changed /4 to >>2 to avoid division library call
14622         * device/lib/_memcmp.c,
14623         * device/lib/_memset.c,
14624         * device/lib/_strncat.c,
14625         * device/lib/_strncpy.c,
14626         * device/lib/_strncmp.c: changed to use size_t instead of int
14627         * device/lib/_memmove.c: new file (fixed bug #772294)
14628         * device/lib/Makefile.in: added _memmove.c
14629         * device/lib/z80/asm_strings.s: fixed bug #772290
14630         * support/regression/tests/bitfields.c: attempt to fix host assertion
14631         failure on amd64-unknown-linux2.2
14632
14633 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14634
14635         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
14636         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
14637         * as/z80/asmain.c (main): fixed bug #801766
14638
14639 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
14640
14641         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
14642         compilers
14643
14644 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14645
14646         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
14647         reported in bug #800609
14648
14649 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
14650
14651         * Top header beautifications in src/pic16 directory:
14652           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
14653           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
14654           pcoderegs.h, ralloc.c, ralloc.h
14655         * main.c: added top header and GPL license notice
14656         * pcode.c: fixed the if-conditional warning
14657
14658 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
14659
14660         * device/lib/_mullong.c: replaced int by short for gcc
14661
14662 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14663
14664         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
14665         and JUMPTABLE iCodes properly now (worked by accident before)
14666         * src/mcs51/gen.c (leftRightUseAcc),
14667         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
14668         iCode properly now. Use getSize instead of nRegs since a & b
14669         aren't part of the nRegs tally.
14670
14671 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
14672
14673         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
14674         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
14675           before instructions that use the _STATUS register
14676
14677 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
14678
14679         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
14680         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
14681         fetching of the pointer
14682         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
14683         copied from genNearPointerSet()
14684         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
14685         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
14686         If they pop r0/r1 they must be called in the opposite order than aopOp().
14687         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
14688         (resp. --stack-auto), prepared for --xstack
14689
14690 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14691
14692         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
14693
14694 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
14695
14696         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
14697         these ports have their own __sdcc_external_start()
14698
14699 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
14700
14701         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
14702         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
14703         type for bits was changed. It resulted in bit variables becoming
14704         global, which is not permitted in PIC 14 assembly output.
14705
14706 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14707
14708         * doc/sdccman.lyx: various additions and updates. Rearranged sections
14709
14710 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14711
14712         Z80 and MCS51 linkers complaint if a public symbol is defined
14713         in more than one library module:
14714
14715         * as/mcs51/lklib.c
14716         * link/z80/lklib.c
14717         * as/mcs51/Makefile.in
14718
14719 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14720
14721         A few small changes that speed up the peephole optimizer.
14722
14723         * src/SDCCpeeph.c
14724
14725 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14726
14727         Try to make the peephole optimizer smarter by maintaining
14728         an association between the assembly source code and the
14729         iCodes that originated them. Put this information to use
14730         with a new peephole rule condition "notVolatile" so that
14731         the rules can be aggressive yet still safe.
14732
14733         * src/SDCCpeeph.c
14734         * src/SDCCpeeph.h
14735         * src/mcs51/gen.c
14736         * src/mcs51/peeph.def
14737
14738 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14739
14740         Fixed bug #741761
14741
14742         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
14743         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
14744         if the left or right operand symbols have the accuse flag set.
14745
14746 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14747
14748         Changed the type of the result of the ! (NOT) operator to char;
14749         previously it returned the same type as the source. This allows
14750         us to eliminate all the genFloatNot functions (all of its target
14751         implementations were very buggy) since !float can use the same
14752         code as !long now.
14753
14754         * src/SDCCicode.c (ast2iCode): ! returns char
14755         * src/mcs51/gen.c (genNot, genNotFloat),
14756         * src/ds390/gen.c (genNot, genNotFloat),
14757         * src/z80/gen.c (genNot, genNotFloat),
14758         * src/pic/gen.c (genNot, genNotFloat),
14759         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
14760
14761 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
14762
14763         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
14764         1. Interrupt would not compile properly. Ensure PCLATH register is saved
14765            during interrupts. Ensure WSAVE is located at a shared bank address.
14766         2. Fixed page selection in some places
14767         3. Fixed BTFSS/C to where necessary use registers directly and not simply
14768            the registers name strings.
14769         4. Fixed "signed / unsigned compare" compiler warnings.
14770         5. The PIC port manages its own allocation of the general purpose
14771            registers, but makes no attempt to reuse them. As a result when
14772            compiling it soon runs out of general purpose registers. Some
14773            additional code was added to the files pcode.c and device.c to walk
14774            through the function call tree and rename the registers so that they
14775            get reused.
14776
14777         * src/pic/device.c
14778         * src/pic/gen.c
14779         * src/pic/glue.c
14780         * src/pic/pcode.c
14781         * src/pic/pcode.h
14782         * src/pic/ralloc.c
14783         * src/pic/ralloc.h
14784         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
14785         genPlus() & genMinus() when the result is the same as left or right
14786
14787 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14788
14789         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
14790
14791 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14792
14793         Made bitfield a distinct type from bit so that bitfields
14794         convert as per ANSI C and bits retain their traditional
14795         boolean style behaviour. Implemented bitfield support in
14796         the z80 port.
14797
14798         * src/SDCCsymt.h,
14799         * src/SDCCsymt.c,
14800         * src/SDCCast.c,
14801         * src/cdbFile.c,
14802         * src/mcs51/gen.c,
14803         * src/ds390/gen.c: bit v bitfield split
14804         * src/z80/gen.c: New support for bitfields
14805         * support/regression/tests/bitfields.c: reenabled z80,
14806         added more tests
14807
14808 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14809
14810         Rules 246.x, 247.x relate to bitfields, the others speed up
14811         access to xdata mapped I/O devices.
14812
14813         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
14814
14815 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14816
14817         Cleaned up genPackBits and genUnpackBits and added two helper
14818         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
14819         for literal assignments in genPackBits (thanks to Frieder for
14820         reminding me).
14821
14822         * src/mcs51/gen.c
14823         * src/ds390/gen.c
14824
14825 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14826
14827         Fixed bug #748310 (pointer to function type mishandled when the
14828         function name is omitted). Also fixed a SIGSEGV when a function
14829         attribute (reentrant, etc) is used on a non-function or on a
14830         function but misplaced before the parameter list.
14831
14832         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
14833         bug #748310
14834         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
14835         * support/Util/SDCCerr.h,
14836         * support/Util/SDCCerr.c: Added func attr misuse error msg
14837
14838 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
14839
14840         Fixed bug #787649 by anonymous
14841         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
14842         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
14843
14844 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14845
14846         Fixed numerous bitfield problems.
14847
14848         * src/SDCC.y: More bitfield related error checking
14849         * src/SDCCsymt.h,
14850         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
14851         * support/Util/SDCCerr.h,
14852         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
14853         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14854         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14855         * support/regression/tests/bitfields.c: tests added
14856
14857 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14858
14859         Made the constant following the "interrupt" keyword optional. If
14860         omitted, the function will not automatically be given an entry
14861         in the interrupt vector table (similar to #pragma NOIV, but
14862         less syntacticly kludgy). The interrupt number is also now
14863         range checked. Also fixed a bug in the high order bit example
14864         in the manual.
14865
14866         * src/SDCC.y
14867         * src/SDCCmem.c
14868         * src/SDCCglue.c
14869         * src/SDCCsymt.h
14870         * support/Util/SDCCerr.c
14871         * support/Util/SDCCerr.h
14872         * doc/sdccman.lyx
14873
14874 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
14875
14876         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
14877         * src/SDCCicode.c (operandOperation): rewritten some ops
14878         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
14879         * src/SDCCsymt.c (computeType): literals are handled the same way as any
14880         other type
14881         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
14882         be re-activated by defining REDUCE_LITERALS)
14883         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
14884         unsigned, but are signed by default
14885         * src/SDCCval.c (constVal): rearranged
14886         * src/SDCCval.c (valMod): preliminary fix
14887         * src/SDCCval.c (valCastLiteral): use TYPE_* types
14888         * support/regression/literalop.c: added, work in progress
14889
14890 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14891
14892         Generate warnings for useless declarations like "char data;"
14893         that don't do what new users expect.
14894
14895         * src/SDCC.y
14896         * support/Util/SDCCerr.h
14897         * support/Util/SDCCerr.c
14898
14899 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
14900
14901         * src/SDCCval.c (valMult): fix overflow detection of negative int
14902
14903 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14904
14905         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
14906
14907         Changes to support big endian targets:
14908
14909         * src/ports.h
14910         * src/SDCCglue.c
14911         * src/avr/main.c
14912         * src/ds390/main.c
14913         * src/izt/i186.c
14914         * src/mcs51/main.c
14915         * src/pic/main.c
14916         * src/pic16/main.c
14917         * src/xa51/main.c
14918         * src/z80/main.c
14919
14920 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
14921
14922         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
14923         * device/lib/time.c: fixed warning "integer overflow in expression"
14924
14925 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
14926
14927         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
14928         * src/SDCCval.c (constVal): changed default to signed; hex and octal
14929         constants are unsigned; added recognition of "u" flag for unsigned
14930         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
14931         * src/SDCCval.c (valDiv, valMod): fixed signdness
14932         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
14933         signedness of modulo, left and right shift
14934         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
14935         * support/Util/SDCCerr.h: added warning W_INT_OVL
14936         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
14937         * src/SDCCast.c (ast_print): improved output of constants
14938
14939 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14940
14941         Fixed some warnings when building with MSVC:
14942
14943         * as/mcs51/asdata.c
14944         * as/z80/asdata.c
14945         * as/mcs51/asm.h
14946         * as/z80/asm.h
14947         * link/z80/aslink.h
14948         * link/z80/lkdata.c
14949         * link/z80/lkeval.c
14950         * link/z80/lkgb.c
14951         * link/z80/lkihx.c
14952         * link/z80/lks19.c
14953         * link/z80/lksym.c
14954         * support/cpp2/cpplib.c
14955         * src/ds390/gen.c
14956         * src/mcs51/gen.c
14957
14958 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
14959
14960         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
14961
14962 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14963
14964         * support/librarian/clean.mk: Do not remove Makefile.
14965         * support/librarian/Makefile: added.
14966
14967 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14968
14969         Added librarian to MSVC build:
14970         * all.dsp
14971         * sdcc.dsw
14972         * support/librarian/librarian.dsp
14973
14974         'configure' not needed for librarian, removed:
14975         * support/librarian/configure
14976         * support/librarian/configure.in
14977         * support/librarian/config_in.h
14978         * support/librarian/Makefile.in
14979
14980         Hopefully these ones built the librarian and the rest of sdcc properly:
14981         * Makefile
14982         * Makefile.common.in
14983
14984         Messed up 'configure', so revert to previous version:
14985         * configure
14986         * configure.in
14987
14988 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
14989
14990         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
14991         there, while the mantissa of a double is "only" 53 bits wide.
14992
14993 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14994
14995         Adding sdcclib to the build.  MSVC project coming soon.
14996         Files added/changed:
14997
14998         * support/librarian/clean.mk
14999         * support/librarian/configure
15000         * support/librarian/configure.in
15001         * support/librarian/config_in.h
15002         * support/librarian/Makefile.bcc
15003         * support/librarian/Makefile.in
15004         * support/librarian/sdcclib.c
15005         * Makefile.bcc
15006         * Makefile
15007         * Makefile.common.in
15008         * configure
15009         * configure.in
15010
15011 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15012
15013         Linker now complaints if linked modules have conflicting options, for
15014         example, one compiled using --model-large and another one compiled with
15015         --model-small.  The following files were modified:
15016
15017         * as/mcs51/asdata.c
15018         * as/mcs51/aslink.h
15019         * as/mcs51/asm.h
15020         * as/mcs51/asmain.c
15021         * as/mcs51/asout.c
15022         * as/mcs51/i51pst.c
15023         * as/mcs51/lkdata.c
15024         * as/mcs51/lklibr.c
15025         * as/mcs51/lkmain.c
15026         * as/z80/asdata.c
15027         * as/z80/asm.h
15028         * as/z80/asmain.c
15029         * as/z80/asout.c
15030         * as/z80/z80pst.c
15031         * link/z80/aslink.h
15032         * link/z80/lkdata.c
15033         * link/z80/lklibr.c
15034         * link/z80/lkmain.c
15035         * src/SDCCglue.c
15036
15037 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15038
15039         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
15040         as/mcs51/lklibr.c: Generate a warning when a library is not found.
15041
15042 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
15043
15044         * src/z80/mappings.i: fix _mul[us][int,long] entries
15045
15046 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15047
15048         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
15049
15050 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
15051
15052         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
15053         * support/regression/tests/bitopcse.c: added
15054         fixed warning:
15055         * src/avr/gen.c:
15056         * src/pic/gen.c:
15057         * src/pic16/gen.c:
15058         * src/z80/gen.c:
15059         * src/xa51/gen.c:
15060
15061 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15062
15063         added support for new library format to z80, gbz80 linkers:
15064         *link/z80/aslink.h
15065         *link/z80/lklex.c
15066         *link/z80/lklib.c
15067         *link/z80/lklist.c
15068
15069 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
15070
15071         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
15072         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
15073
15074 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
15075
15076         added DUMMY_READ_VOLATILE:
15077         * src/SDCC.y:
15078         * src/avr/gen.c:
15079         * src/xa51/gen.c:
15080         * src/z80/gen.c:
15081         * src/pic/gen.c:
15082         * src/pic16/gen.c:
15083         * src/mcs51/gen.c:
15084         * src/ds390/gen.c:
15085         * src/SDCCcse.c (algebraicOpts): many improvements
15086         * src/SDCCcse.h: removed algebraicOpts()
15087         * src/SDCCicode.c (picDummyRead): added
15088
15089 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15090
15091         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
15092         "Insufficient space in data memory".
15093
15094 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
15095
15096         * src/mcs51/gen.c: fixed bug #771358
15097         * src/z80/gen.c: fixed bug #759087
15098
15099 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
15100
15101         * src/pic16/glue.c: minor cleanup by Vangelis
15102
15103 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15104
15105         * device/include/regc515c.h: fixed #758477
15106         * device/lib/_gptrget.c: saving some cycles in generic pointer get
15107         * device/lib/_gptrput.c: saved a few bytes
15108         * my tab spacing is 8, yours too?)
15109         * device/lib/_ser.c: process RX bytes earlier than TX bytes
15110         * device/lib/serial.c: process RX bytes earlier than TX bytes
15111         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
15112
15113 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
15114
15115         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
15116
15117 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15118
15119         * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
15120
15121 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
15122
15123         * device/lib/Makefile.in: bad fix, reverted to 1.43
15124
15125 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
15126
15127         * device/lib/Makefile.in: added missing z80 object files
15128
15129 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
15130
15131         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
15132         pic16 progress by Vangelis:
15133         * src/SDCCglobl.h:
15134         * src/SDCCmain.c:
15135         * src/pic/Makefile:
15136         * src/pic:
15137         * pic/Makefile:
15138         * pic16/device.c:
15139         * pic16/device.h:
15140         * pic16/gen.c:
15141         * pic16/gen.h:
15142         * pic16/genarith.c:
15143         * pic16/glue.c:
15144         * pic16/main.c:
15145         * pic16/pcode.c:
15146         * pic16/pcode.h:
15147         * pic16/pcodepeep.c:
15148         * pic16/peeph.def:
15149
15150 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15151
15152         * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
15153
15154 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15155
15156         * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
15157         added gbz80 build to MSVC project.
15158         * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
15159         link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
15160         from 8051 stuff and setup so it links using a .lnk file.
15161
15162 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15163
15164         * support/librarian/sdcclib.c: sdcc librarian.
15165         * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
15166         with sdcclib.
15167
15168 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15169
15170         * as/mcs51/lkmain.c: properly handle extensions in function afile.
15171
15172 2003-07-02  Borut Razem <borut.razem AT siol.net>
15173
15174         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
15175         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
15176         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
15177         src/xa51/main.c, src/z80/main.c:
15178         virtualization of glue() function: each port has it's own glue function,
15179         which is accessed by do_glue function pointer in PORT.general structure
15180
15181 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
15182
15183         * DS800C400 fun, improved ROM interface and tinibios.
15184
15185 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
15186
15187         * More support for DS80C400. Now includes beginning of interface to ROM.
15188
15189 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
15190
15191         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
15192
15193 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15194
15195         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
15196
15197 2003-06-19  Borut Razem <borut.razem AT siol.net>
15198
15199         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
15200
15201 2003-06-19  Borut Razem <borut.razem AT siol.net>
15202
15203         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
15204         fixed Z80 port - crt0.o: cannot open.
15205
15206 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
15207
15208         * support/Util/MySystem.c (merge_command): revert bad fix
15209
15210 2003-06-18  Borut Razem <borut.razem AT siol.net>
15211
15212         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
15213
15214 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15215
15216         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
15217         option --use-stdout sends errors to stdout instead of stderr.
15218
15219 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
15220
15221         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
15222
15223 2003-06-15  Borut Razem <borut.razem AT siol.net>
15224
15225         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
15226         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
15227         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
15228         fixed width array of pointers replaced with sets;
15229         multiple include and lib paths ared transferred to preprocessor and linker
15230         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
15231         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
15232         fixed width array of pointers
15233         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
15234         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
15235         fixupPath(), getPathDifference()
15236         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
15237         fixed width array of pointers
15238
15239 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
15240
15241         * src/pic16/ralloc.c: fix warnings
15242         * src/pic16/pcode.c: fix warning
15243
15244 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
15245
15246          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
15247         know all the details, but essentially this set of changes enable
15248         the pic16 port to generate movff instructions and generate assembler
15249         directives,
15250         * src/SDCCmain.c:
15251         * src/pic16/gen.c:
15252         * src/pic16/glue.c:
15253         * src/pic16/pcode.c:
15254         * src/pic16/device.c:
15255         * src/pic16/main.c:
15256         * src/pic16/pcode.h:
15257         * src/pic16/pcoderegs.c:
15258         * src/pic16/ralloc.c:
15259         * src/pic16/ralloc.h:
15260
15261 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15262
15263         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
15264         added option --vc, so sdcc errors and warnings are compatible with
15265         Microsoft Visual Studio.
15266
15267 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15268
15269         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
15270           device/lib/libfloat.lib: added atof function.
15271
15272 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
15273
15274         * doc/sdccman.lyx: updated to Lyx 1.3
15275         * doc/cdbfileformat.lyx: updated to Lyx 1.3
15276         * doc/test_suite_spec.lyx: updated to Lyx 1.3
15277         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
15278
15279 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
15280
15281         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
15282
15283 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15284
15285         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
15286           additions to the "related tools/documentation" section
15287
15288 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
15289
15290         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
15291
15292 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
15293
15294         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
15295         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
15296
15297 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
15298
15299         * doc/sdccman.lyx: fix double dash and other minor things
15300         * doc/Makefile: fix double dash
15301
15302 2003-05-28  Karl Bongers(patches from Martin Helmling)
15303         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
15304           condition and ignore commands.
15305
15306 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15307
15308         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
15309           is in parts still quite out of date, I did changes as far as I felt makes sense
15310           for a non-native english speaker.
15311           Please feel free to add to the manual or to correct my changes.
15312         * doc/Makefile: undid touching the date of intermediate tex files.
15313
15314 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15315
15316         * doc/sdccman.lyx: Manual has an index now
15317
15318 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
15319
15320         Finalize muluint/mulsint and mululong/mulslong merging:
15321         * device/lib/_mulint.c
15322         * device/lib/_mullong.c
15323         * device/lib/gbz80/mul.s
15324         * device/lib/gbz80/stubs.s
15325         * device/lib/z80/mul.s
15326         * device/lib/z80/stubs.s
15327         * src/SDCCsymt.c (initCSupport)
15328
15329 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15330
15331         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
15332         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
15333           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
15334           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
15335           instead of /Zm500.
15336
15337 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15338
15339         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
15340           the regression tests I'm not brave enough to enable 245.b, 245.c
15341         * doc/sdccman.lyx: added latex preamble for hyperref package.
15342           Using pdflatex this will give you a hyperlinked pdf file with
15343           bookmarks. (prepend '%' before /usepackage if this breaks something)
15344
15345 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15346
15347          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
15348
15349 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
15350
15351         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
15352
15353 2003-05-21    <johan AT balder>
15354
15355         * src/SDCCglue.c (printIval): fixed bug #739934
15356
15357 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
15358
15359         Applied patch from bug 737905 (renamed yylineo to mylineno):
15360         * src/altlex.c
15361         * src/SDCCast.c
15362         * src/SDCglobl.h
15363         * src/SDCC.lex
15364         * src/SDCCsymt.c
15365         * src/SDCCval.c
15366         * src/pic16/pcode.c: Cleaned warnings
15367         * src/pic16/pcodeflow.c: Cleaned warnings
15368         * src/pic16/pcoderegs.c: Cleaned warnings
15369
15370 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
15371
15372         * src/pic16/pcode.c: Cleaned warnings
15373         * src/pic16/pcodepeep.c: Cleaned warnings
15374         * src/pic16/ralloc.c: Cleaned warnings
15375
15376 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
15377
15378         * doc/sdccman.lyx: fixed bug 739745
15379         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
15380
15381 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
15382
15383         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
15384         it can be defined with CFLAGS when running configure
15385         * src/SDCCmain.c: fixed compiling + linking with object files
15386
15387 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
15388
15389         * configure.in: configure for pic16 port,
15390             added --disable-pic16-port
15391         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
15392         * src/SDCCmain.c: linkOptions is changed to set *,
15393             added if/endif conditional macros to remove options help
15394             messages from optionsTable when a port is not configured, added
15395             support for the PIc16 port in the ports table, when executing
15396             the compiler with no port specified on command line, a default
15397             port is selected with the new macro DEFAULT_PORT which is
15398             defined in port.h, in setDefaultOptions() linkOptions is removed
15399             from initialization assignment, since now it is a set,
15400             parseCmdLine uses setParseWithComma for linkOptions, in
15401             linkEdit() linkOptions are accessed with new function indexSet()
15402             which returns the i'th item of a set variable. See SDCCset.c, in
15403             linkEdit() when calling buildCmdLine(), added linkOptions as
15404             last argument. Now users can pass arguments to gplink via the
15405             -Wl option, main() uses pic16glue() to glue up pic16 programs
15406         * src/SDCCpeeph.c: various changes to support pic16
15407         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
15408             return the i'th item of the set
15409         * src/SDCCset.h: added function prototype for indexSet()
15410         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
15411         * src/clean.mk: added pic16 in CLEANALLPORTS variable
15412         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
15413             added macro DEFAULT_PORT
15414         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
15415         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
15416             generated
15417         * src/pic16/glue.c: commented out some error producing lines
15418         * src/pic16/main.c: __config directives are commented out to stop
15419             gpasm complaining and test the linkage with gplink, _linkCmd and
15420             _asmCmd changed to be more gplink and gpasm friendly
15421         * src/pic16/peeph.def: peep rule 3 is commented out, since it
15422             produced an error when parsed, peep rule 12 is added to utilize
15423             movff, but it is commented out since the pCode does not support
15424             yet a command with 2 address arguments
15425
15426 2003-05-18    <johan AT balder>
15427
15428         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
15429         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
15430 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
15431
15432         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
15433         Added feature to script commands from file.
15434
15435 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
15436
15437         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
15438         * src/SDCCutil.c: include ctype.h for win32
15439
15440 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
15441
15442         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
15443
15444 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
15445
15446         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
15447         Fixed so you can set breakpoints prior to run, run does not stop
15448         on entry now.  Add tbreak.  Other enhancements and fixes for use
15449         with ddd.
15450
15451 2003-05-12  Borut Razem <borut.razem AT siol.net>
15452
15453         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
15454
15455 2003-05-11  Borut Razem <borut.razem AT siol.net>
15456
15457         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
15458         the path of bin directory, so that PATH is the only env. variable, which has to be set
15459         in case of standard installation.
15460         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
15461         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
15462         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
15463
15464 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
15465
15466         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
15467         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
15468         temp files are in the port dir; clean the gen/test directory when
15469         generating new test.c
15470         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
15471         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
15472         * support/regression/tests/zeropad.c: added
15473
15474 2003-05-09    <johan AT balder>
15475
15476         * src/SDCCglue.c: fixed bug #597940
15477
15478 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
15479
15480         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
15481         cache sfr, optimize next,step, fix off by one sourceline,
15482         support ddd list function.
15483         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
15484
15485 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
15486
15487         * support/regression/HTMLgen.py: added compare_s2f()
15488         * support/regression/Makefile: redo 1.27
15489         * support/regression/generate-cases.py: redo 1.5
15490
15491 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
15492
15493         * support/regression/tests/float.c: workaround 33 bit hex constant
15494         * support/regression/tests/simplefloat.c: fix division for host
15495
15496 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
15497
15498         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
15499         that tame's the PIC's over-aggressive optimizer.
15500
15501 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15502
15503          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
15504          support for MSVC.
15505
15506 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
15507
15508         Initial support for DS80C400. "Hello world" runs on TINIm400
15509         (with polled I/O).
15510
15511 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
15512
15513          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
15514          * Some notes on ddd usage added in debugger/README
15515          Martin Helmling adding more features and fixes for ddd GUI debugger.
15516          Code added for nexti, stepi, up, down, and other adjustments.
15517
15518 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
15519
15520         * src/pic/pCodepeep.c non-wildcard asmops are now handled
15521         * src/pic/peeph.def Added two rules to optimize carry manipulation
15522         * src/pic/* removed debug printfs
15523
15524 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
15525
15526         * debugger/mcs51/cmd.c: added header newalloc.h
15527
15528 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
15529
15530         * as/Makefile: new EXEEXT
15531         * as/z80/Makefile: remove trailing slash of BUILDIR
15532         * as/z80/clean.mk: new EXEEXT
15533         * Makefile.common.in: add to CFLAGS (and others), don't replace it
15534         * support/cpp2/Makefile.in: new EXEEXT
15535         * src/pic/glue.c (pic14emitRegularMap): fixed warning
15536
15537 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
15538
15539         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
15540         EXEEXT was introduced to fix all related problems with targets
15541         "clean", "install" and "uninstall"; a couple of further flaws
15542         especially with "clean" have been fixed too
15543         * as/mcs51/Makefile.in
15544         * as/mcs51/clean.mk
15545         * as/z80/Makefile
15546         * Makefile
15547         * clean.mk
15548         * debugger/mcs51/Makefile.in
15549         * debugger/mcs51/clean.mk
15550         * link/z80/Makefile
15551         * link/z80/Makefile.in
15552         * link/z80/clean.mk
15553         * link/Makefile
15554         * packihx/Makefile.in
15555         * packihx/clean.mk
15556         * sim/ucsim/Makefile
15557         * sim/ucsim/clean.mk
15558         * sim/ucsim/avr.src/Makefile.in
15559         * sim/ucsim/avr.src/clean.mk
15560         * sim/ucsim/s51.src/Makefile.in
15561         * sim/ucsim/s51.src/clean.mk
15562         * sim/ucsim/xa.src/Makefile.in
15563         * sim/ucsim/xa.src/clean.mk
15564         * sim/ucsim/z80.src/Makefile.in
15565         * sim/ucsim/z80.src/clean.mk
15566         * sim/ucsim/main_in.mk
15567         * sim/ucsim/packages_in.mk
15568         * sim/ucsim/gui.src/Makefile.in
15569         * sim/ucsim/gui.src/serio.src/Makefile.in
15570         * sim/ucsim/gui.src/serio.src/clean.mk
15571         * src/Makefile.in
15572         * src/clean.mk
15573         * support/cpp2/Makefile.in
15574         * support/cpp2/clean.mk
15575         * support/makebin/Makefile
15576         * support/makebin/clean.mk
15577         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
15578         * doc/sdccman.lyx: --program-suffix no longer needed
15579
15580 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
15581
15582          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
15583          Martin Helmling added support for ddd GUI debugger.
15584          Code added to display assembly, set variables, and other commands
15585          to interface to ddd.
15586
15587 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
15588
15589         * as/Makefile: fix target clean
15590         * as/clean.mk: fix target clean
15591         * as/z80/clean.mk: fix target clean
15592
15593 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
15594
15595         * Makefile.common.in: added  AT EXEEXT AT
15596         * configure.in: removed all mingw32 stuff
15597         * configure: rebuilt from configure.in
15598         * doc/sdccman.lyx: updated section "installation"
15599         * support/scripts/sdcc_mingw32: adapted to configure
15600         * support/scripts/sdcc_cygwin_mingw32: added
15601
15602 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
15603
15604         * src/pic Added object file support for the PIC port
15605         * src/pic Applied patch from Craig Franklin (this started the object file support)
15606         * src/regression Updated the PIC regression tests for object files
15607
15608 2003-04-20  Borut Razem <borut.razem AT siol.net>
15609
15610         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
15611           lklex.c: In function `getfid':
15612           lklex.c:203: warning: array subscript has type `char'
15613         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
15614           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
15615         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
15616           stack handling macros
15617
15618 2003-04-19  Borut Razem <borut.razem AT siol.net>
15619
15620         * "handling space characters in file path" task:
15621         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
15622         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
15623         * support/Util/MySystem.h: make it self-sufficient
15624         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
15625           src/z80/main.c, sdcc/as/mcs51/lklex.c:
15626           handling space characters in file path
15627         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
15628           (it will be used by assemblers, which have their own includes, e.g. gpasm)
15629         * support/Util/MySystem.c: handling space characters in executable's path
15630
15631 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
15632
15633         * as/z80/Makefile: fix permanent rebuild of z80
15634         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
15635         * support/regression/tests/bitfields.c: added Johan's bitfields.c
15636
15637 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
15638
15639         * src/SDCCopt.c: add special case optimization to replace modulo by
15640           a power of two with a bitwise AND.
15641
15642 2003-04-18    <johan AT balder>
15643
15644         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
15645
15646 2003-04-17    <johan AT balder>
15647
15648         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
15649         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
15650
15651 2003-04-13  Borut Razem <borut.razem AT siol.net>
15652
15653         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
15654         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
15655           fixed mingw problem in adl_NORMALIZE_PATH
15656
15657 2003-04-12  Borut Razem <borut.razem AT siol.net>
15658
15659         * fixed "#pragma SAVE/RESTORE can not be nested":
15660         * src/SDCC.lex: reworked pragma handling functions
15661         * sdcc/src/SDCCglobl.h: reworked stack handling macros
15662         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
15663
15664 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
15665
15666         * src/SDCCutil.c (pathEquivalent): defined but not used
15667         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
15668         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
15669         * configure: rebuilt from configure.in
15670         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
15671         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
15672         * device/include/Makefile.in: replace sdcc_datadir
15673         * device/lib/Makefile.in: replace sdcc_datadir
15674         * Makefile.common.in: add LDFLAGS from configure
15675         * packihx/Makefile.in: use LDFLAGS
15676         * src/Makefile.in: use LDFLAGS
15677         * support/cpp2/Makefile.in: add LDFLAGS from configure
15678         * support/makebin/Makefile: use LDFLAGS
15679         * .version: bumped version number to 2.3.5
15680
15681 2003-04-12  Borut Razem <borut.razem AT siol.net>
15682
15683         * completed "different paths" task:
15684         * src/SDCCmacro.c: fixed bug in handling quotes
15685         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
15686         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
15687
15688 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
15689
15690         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
15691
15692 2003-04-11 kevin Vigor <kevin AT vigor.nu>
15693
15694         * ds390/gen.c ds390/peeph.def: fix bug 706781
15695
15696 2003-04-11  Borut Razem <borut.razem AT siol.net>
15697
15698         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
15699
15700 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
15701
15702         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
15703         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
15704          set - this bit used to not be set...).
15705         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
15706           bad code in PIC Port
15707         * src/regression/and2.c added to test bug 609268
15708         * src/regression/Makefile added and2.c to regression test
15709
15710
15711 2003-04-08    <johan AT CP255758-A>
15712
15713         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
15714         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
15715         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
15716
15717 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
15718
15719         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
15720         fix bug #487815
15721         * support/cpp2/Makefile.in: fix bug #487815
15722         * configure: rebuilt from configure.in
15723         * Makefile.common.in: docdir changed, new path suffixes
15724         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15725         * sdcc_vc_in.h: reflect changes from sdccconf.h
15726         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
15727         * src/SDCCutil.h: remove BINDIR hack
15728         * doc/sdccman.lyx: update new path hierarchy
15729
15730 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15731
15732         * src/SDCCpeeph.c: added okToRemoveSLOC test
15733
15734 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15735
15736         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
15737
15738 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15739
15740         * src/SDCCpeeph.c: added labelIsReturnOnly test
15741         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
15742
15743 2003-04-05    <johan AT balder>
15744
15745         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
15746         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
15747         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
15748         * src/SDCCast.c: fixed a warning
15749         * src/SDCCast.h: fixed a warning
15750         * src/SDCCicode.c (operandFromAst): fixed a warning
15751
15752 2003-04-04    <johan AT balder>
15753
15754         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
15755         * src/SDCCast.c (decorateType): fixed bug #715076
15756         * src/SDCC.y: fixed bug #702907
15757
15758 2003-04-03    <johan AT balder>
15759
15760         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
15761         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
15762         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
15763         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
15764         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
15765
15766 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
15767
15768         * _decdptr.c: fix return values
15769         * _gptrget.c: fix return values
15770         * _gptrgetc.c: fix return values
15771         * _gptrput.c: fix return values
15772         * _mulint.c: fix return values
15773         * as/z80/Makefile: fix 'make -j' problem
15774
15775 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
15776
15777         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
15778         * configure.in: big cleanup, updated to autoconf 2.5x
15779         * configure: rebuilt from configure.in
15780         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15781         * sdcc_vc_in.h: reflect changes from sdccconf.h
15782         * doc/Makefile: fixed a flaw in "make install"
15783
15784 2003-04-02    <johan AT balder>
15785
15786         * src/ds390/gen.c (genCmp): no comments
15787         * src/mcs51/gen.c (genCmp): no comments
15788         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
15789         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
15790
15791 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
15792
15793         * support/regression/generate-cases.py: place generated file in given sub directory
15794         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
15795         * support/regression/Makefile: improvements for 'make -j';
15796         side effect: it's simpler and faster now
15797
15798 2003-03-31  Borut Razem <borut.razem AT siol.net>
15799
15800         * src/z80/main.c: link-{port} and as-{port} defined without path
15801         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
15802
15803 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
15804
15805         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
15806
15807 2003-03-30  Borut Razem <borut.razem AT siol.net>
15808
15809         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
15810           changed type of list parameter to set
15811         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
15812         * src/port.h: changed type of do_assemble() parameter to set
15813         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
15814           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
15815           definition of "cppoutfilename" macro with NULL value in preProcess()
15816         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
15817         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
15818         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
15819           replaced with set *binPathSet
15820         * shash_add() deallocates the item, if allready exsists, before adding the new one
15821         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
15822
15823 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
15824
15825         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
15826           a nested for loop bug in the PIC port
15827         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
15828           for loops
15829
15830 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
15831
15832         * support/Util/dbuf.h: remove C++ stuff to make it portable
15833
15834 2003-03-28  Borut Razem <borut.razem AT siol.net>
15835
15836         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
15837           literal strings in stringLiteral()
15838         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
15839         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
15840           to the project
15841
15842 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
15843
15844         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
15845
15846 2003-03-26    <johan AT balder>
15847
15848         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
15849         * src/ds390/gen.c (saveRegisters): catched symbol abuse
15850         * src/SDCCast.c (decorateType): fixed " -v < 3"
15851
15852 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
15853
15854         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
15855         Added Lenny Story's debug infrastructure changes:
15856         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
15857         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
15858         * src/cdbFile.c: added
15859         * src/SDCCdebug.c: added
15860         * src/SDCCdebug.h: added
15861         * src/SDCCast.c (createFunction)
15862         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
15863         * src/SDCCmain.c (parseCmdLine, main)
15864         * src/SDCCmem.c (redoStackOffsets)
15865         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
15866         * src/SDCCsymt.h
15867         * src/common.h
15868         * src/avr/gen.c (genAVRCode)
15869         * src/ds390/gen.c (gen390Code)
15870         * src/mcs51/gen.c (gen51Code)
15871         * src/pic/gen.c (genpic14Code)
15872         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
15873         * src/xa51/gen.c (genXA51Code)
15874         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
15875
15876 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15877
15878         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
15879         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
15880
15881 2003-03-22    <johan AT balder>
15882
15883         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
15884
15885 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
15886
15887         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
15888         * doc/cdbfileformat.lyx: added, written by Lenny Story
15889         * doc/Makefile: added cdbfileformat.lyx
15890         * doc/clean.mk: added cdbfileformat.lyx
15891
15892 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
15893
15894         * src/mcs51/peeph.def: fix bug #705773
15895
15896 2003-03-20    <johan AT balder>
15897
15898         An sfr/sbit can have an "at #" AND an initializer
15899         * src/SDCCsymt.c (checkSClass):
15900         * src/SDCCmem.c (allocGlobal):
15901         * src/SDCCmem.c (allocLocal):
15902         * src/SDCCast.c (createBlock):
15903
15904 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
15905
15906         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
15907
15908 2003-03-16    <johan AT balder>
15909
15910         Undid the hackup of const and volatile, the problem is much bigger
15911         * src/SDCC.y:1.65
15912         * src/SDCCast.c:1.171
15913         * src/SDCCglue.c:1.138
15914         * src/SDCCicode.c:1.146
15915         * src/SDCCsymt.c:1.150
15916         * src/SDCCval.c:1.65
15917
15918 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
15919
15920         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
15921         * src/ds390/gen.c (genAddrOf): fixed bug #704087
15922
15923 2003-03-13    <johan AT balder>
15924
15925         Hackup const and volatile modifiers in type chains a bit:
15926         * src/SDCC.y:1.63
15927         * src/SDCCast.c:1.169
15928         * src/SDCCglue.c:1.136
15929         * src/SDCCicode.c:1.143
15930         * src/SDCCsymt.c1.146
15931         * src/SDCCsymt.h1.59
15932         * src/SDCCval.c:1.63
15933
15934 2003-03-12    <johan AT balder>
15935
15936         * src/SDCCBBlock.h: more LRH debugging junk
15937         * src/SDCCcflow.h: more LRH debugging junk
15938         * src/SDCCloop.c: more LRH debugging junk
15939         * src/SDCC.y (struct_declaration): fixed bug #697590
15940         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
15941         * src/ds390/gen.c (aopForRemat): fixed bug #700031
15942         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
15943
15944 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15945         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
15946         test function names must now match exactly).
15947         * src/SDCCcse.c: added special case in findCheaperOp to allow
15948         extending a short integer. Makes less awful code for bug 700121 test case.
15949
15950 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15951
15952         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
15953         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
15954
15955 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15956
15957         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
15958         actually called (operandsNotEqual() was called for all
15959         operandsNotEqualX tests).
15960
15961 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15962
15963         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
15964         with shorter literals. Fixes bug 700121.
15965
15966 2003-03-11    <johan AT balder>
15967
15968         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
15969
15970 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
15971
15972         * src/SDCCloop.c (mergeRegions): an evil beast is dead
15973         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
15974
15975 2003-03-10  Borut Razem <borut.razem AT siol.net>
15976
15977         * src/SDCCmain.c: pipe preprocessor's output
15978         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
15979         * sdcc_vc_in.h: define pclose as _pclose for WIN32
15980         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
15981         which closes all pipes in pipeSet set
15982         * src/SDCCset.c: free deleted item in function deleteSetItem()
15983         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
15984         moved from z80 to src subproject
15985         * .version: increased version number to 2.3.4
15986
15987 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
15988
15989         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
15990         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
15991         * support/regression/ports/xa51/spec.mk: fix typo
15992
15993 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
15994
15995         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
15996
15997 2003-03-09  Borut Razem <borut.razem AT siol.net>
15998
15999         * src/SDCCmain.c: pipe preprocessor's output
16000         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
16001         * sdcc_vc_in.h: define pclose as _pclose for WIN32
16002         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
16003         which closes all pipes in pipeSet set
16004         * src/SDCCset.c: free deleted item in function deleteSetItem()
16005         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
16006         moved from z80 to src subproject
16007
16008 2003-03-09  Borut Razem <borut.razem AT siol.net>
16009
16010         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
16011         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
16012         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
16013         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
16014         * src/SDCCglobl.h: unification of WIN32 native definitions
16015
16016 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
16017
16018         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
16019
16020 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
16021
16022         * src/configure.in:   check for endianess (even while cross-compiling)
16023         * src/configure:      check for endianess (even while cross-compiling)
16024         * src/configure_in.h: check for endianess (even while cross-compiling)
16025         * src/avr/gen.c:        remove old endianess stuff
16026         * src/mcs51/gen.c:      remove old endianess stuff
16027         * src/ds390/gen.c:      remove old endianess stuff
16028         * src/pic/gen.c:        remove old endianess stuff
16029         * src/pic/genarith.c:   remove old endianess stuff
16030         * src/pic/glue.c:       fix endianess check
16031         * src/pic16/gen.c:      remove old endianess stuff
16032         * src/pic16/genarith.c: remove old endianess stuff
16033         * src/pic16/glue.c:     fix endianess check
16034         * src/xa51/gen.c:       remove old endianess stuff
16035         * src/z80/gen.c:        fix endianess check
16036         * src/SDCCglue.c:       fix endianess check
16037         * src/ds390/peeph.def: fix bug 700036
16038
16039 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
16040
16041         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
16042         * src/configure: find appropriate data-types on host for SDCC's int and long
16043         * src/configure.in: find appropriate data-types on host for SDCC's int and long
16044         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
16045         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
16046
16047 2003-03-07    <johan AT balder>
16048
16049         Just a big NOOP:
16050                 some minor cleanups before the big shot
16051                 OP_DEFS and OP_USES now use Kevin's protection
16052                 new option --nolabelopt
16053
16054         * src/SDCCBBlock.c:
16055         * src/SDCCast.c,:
16056         * src/SDCCcflow.c:
16057         * src/SDCCcse.c:
16058         * src/SDCCicode.c:
16059         * src/SDCCicode.h:
16060         * src/SDCClabel.c:
16061         * src/SDCCloop.c:
16062         * src/SDCCmain.c:
16063         * src/ds390/ralloc.c:
16064         * src/mcs51/ralloc.c:
16065         * src/pic/ralloc.c:
16066         * src/xa51/ralloc.c:
16067         * src/z80/ralloc.c:
16068
16069 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
16070
16071         * src/pic/pcode.c (get_op): fix 64 bit warnings
16072         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
16073         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
16074         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
16075         * support/regression/tests/malloc.c: fix 64 bit warnings
16076
16077 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
16078
16079         * src/mcs51/gen.c (genMinus): fixed bug 696436
16080
16081 2003-03-02  Borut Razem <borut.razem AT siol.net>
16082
16083         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
16084
16085 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
16086
16087         * configure.in: test for mkstemp
16088         * sdccconf_in.h: add HAVE_MKSTEMP
16089
16090 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
16091
16092         * device/include/ctype.h: removed warning while using --stack-auto
16093         * device/include/malloc.h: removed warning while using --stack-auto
16094         * device/include/string.h: removed warning while using --stack-auto
16095
16096 2003-02-23  Borut Razem <borut.razem AT siol.net>
16097
16098         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
16099         because NDEBUG is defined (see man assert)
16100         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
16101
16102 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
16103
16104         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
16105         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
16106
16107 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
16108
16109         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
16110         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
16111
16112 2003-02-18    <johan AT balder>
16113
16114         * as/mcs51/asmain.c (asmbl): module can start with a digit
16115         * as/z80/asmain.c (asmbl): module can start with a digit
16116
16117 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
16118
16119         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
16120         * src/asm.c: fix pipe() for Mingw32
16121
16122 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
16123
16124         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
16125         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
16126         make -V work again; --c1mode reads now from stdin
16127         * doc/sdccman.lyx: added --c1mode
16128         * support/Util/SDCCerr.c: new messages for c1 mode
16129         * support/Util/SDCCerr.h: new messages for c1 mode
16130         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
16131
16132 2003-02-15    <johan AT balder>
16133
16134         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
16135
16136 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
16137
16138         * doc/sdccman.lyx: Environment variables, -o and other minor things
16139
16140 2003-02-14    <johan AT balder>
16141
16142         * src/xa51/main.c: before anyone really tries to use it :)
16143
16144         * Install doc's in share/sdcc/doc
16145         * removed some obsolete files
16146         * Do a proper make distclean and uninstall
16147         M Makefile.common.in
16148         R sdccbuild.sh
16149         M as/Makefile
16150         M device/include/Makefile.in
16151         M device/lib/Makefile.in
16152         M doc/sdccman.lyx
16153         M link/Makefile
16154         M sim/ucsim/doc/Makefile.in
16155         M src/clean.mk
16156         R src/avr/peeph.rul
16157         R src/xa51/peeph.rul
16158         M support/cpp2/Makefile.in
16159         M support/makebin/Makefile
16160
16161
16162 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
16163
16164         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
16165
16166 2003-02-10  Borut Razem <borut.razem AT siol.net>
16167
16168         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
16169         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
16170         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
16171         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
16172         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
16173         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
16174         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
16175         src/z80/Makefile.bcc: Borland Makefile cleanup
16176         * as/z80/Makefile.bcc: Added Borland Makefile
16177         * support/cpp2/borland.h: Removed
16178
16179 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
16180
16181         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
16182         * src/SDCC.lex: new pragma NOIV
16183         * src/SDCCglobl.h: new pragma NOIV
16184         * src/SDCCmem.c: new pragma NOIV
16185
16186 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
16187
16188         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
16189
16190 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
16191
16192         * src/SDCCmain.c: signal handling is switched off by --debug
16193         * doc/Makefile: small fix for install; use clean.mk again
16194         * doc/clean.mk: clean *.pdf and *.html too
16195
16196 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
16197
16198         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
16199         * device/lib/printfl.c: fix a ds390 bug by making it portable
16200         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
16201         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
16202         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
16203         * debugger/mcs51/cmd.c: converted multi-line string literals
16204         * sim/ucsim/globals.cc: converted multi-line string literals
16205         * src/SDCCmain.c: introduced signal handler to remove temp files
16206         * doc/Makefile: small tweaks, implement clean
16207         * doc: removed generated files
16208
16209 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16210
16211         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
16212         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
16213         Address Record is not correctly generated for DS390."
16214
16215 2003-02-02  Borut Razem <borut.razem AT siol.net>
16216
16217         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
16218         * as/mcs51/asm.h: fixed compilation with Borland C
16219         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
16220         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
16221         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
16222         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
16223         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
16224         src/z80/Makefile.bcc: delete $(LIB) only if exist
16225         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
16226
16227 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
16228
16229         * device/include/malloc.h: introduced NULL
16230         * device/include/string.h: introduced NULL
16231         * device/include/stdlib.h: introduced NULL
16232         * device/lib/_memcpy.c: removed NULL
16233         * device/lib/_strcat.c: removed NULL
16234         * device/lib/_strchr.c: removed NULL
16235         * device/lib/_strcmp.c: removed NULL
16236         * device/lib/_strcpy.c: removed NULL
16237         * device/lib/_strcspn.c: removed NULL
16238         * device/lib/_strlen.c: removed NULL
16239         * device/lib/_strncat.c: removed NULL
16240         * device/lib/_strncmp.c: removed NULL
16241         * device/lib/_strncpy.c: removed NULL
16242         * device/lib/_strpbrk.c: removed NULL
16243         * device/lib/_strrchr.c: removed NULL
16244         * device/lib/_strspn.c: removed NULL
16245         * device/lib/_strstr.c: removed NULL
16246         * device/lib/_strtok.c: removed NULL
16247         * device/lib/malloc.c: removed NULL, include own header
16248
16249 2003-02-02    <johan AT balder>
16250
16251         * 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
16252         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
16253         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
16254         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
16255         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
16256         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
16257
16258 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16259
16260         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
16261         area 'DATA'"
16262
16263 2003-02-01    <johan AT balder>
16264
16265         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
16266
16267 2003-01-31    <johan AT CP255758-A>
16268
16269         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
16270
16271 2003-01-30    <johan AT balder>
16272
16273         * src/SDCCBBlock.c: automatic bug detection
16274         * src/SDCCicode.c: automatic bug detection
16275
16276 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16277
16278         * src/SDCCglobl.h:   now --xram-size 0 works
16279         * src/SDCCmain.c:    now --xram-size 0 works
16280
16281 2003-01-29    <johan AT balder>
16282
16283         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
16284
16285 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16286
16287         * as/mcs51/aslink.h: Added options --xram-size and --code-size
16288         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
16289         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
16290         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
16291         * src/SDCCglobl.h:   Added options --xram-size and --code-size
16292         * src/SDCCmain.c:    Added options --xram-size and --code-size
16293
16294 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
16295
16296         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
16297         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
16298
16299 2003-01-27    <johan AT balder>
16300
16301         * src/SDCC.y: fixed bug #613764
16302
16303 2003-01-26    <johan AT balder>
16304
16305         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
16306         * src/SDCCsymt.h: fixed bug #673374
16307         * src/SDCCglue.c: fixed bug #661910
16308         * src/SDCCast.c: fixed bug #458099 and 673374
16309
16310 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
16311
16312         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
16313         * as/mcs51/strcmpi.h: added
16314         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
16315         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
16316         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
16317         * as/mcs51/assym.c: strcmpi -> as_strcmpi
16318         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
16319         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
16320         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
16321         * as/mcs51/Makefile.aslink: new module strcmpi
16322         * as/mcs51/Makefile.asx8051: new module strcmpi
16323         * as/mcs51/Makefil.bcc: new module strcmpi
16324         * as/mcs51/Makefile.in: new module strcmpi
16325         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
16326
16327 2003-01-26    <johan AT balder>
16328
16329         * src/SDCCglue.c: reverted back to 1.124
16330         * src/SDCCast.c: reverted back to 1.156
16331         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
16332
16333 2003-01-25    <johan AT balder>
16334
16335         * src/SDCCglue.c: A better fix for bug #661910
16336         * src/SDCCast.c: A better fix for bug #661910
16337         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
16338
16339 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
16340
16341         * src/Makefile.in: remove spawn.o
16342         * src/SDCCmain.c: remove spawn.h
16343         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
16344         * src/spawn.c: removed
16345         * src/spawn.h: removed
16346         * support/regression/ports/ds390/spec.mk: link with -r
16347
16348 2003-01-24    <johan AT CP255758-A>
16349
16350         * src/ds390/gen.c (aopOp): fixed bug #667458
16351         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
16352         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
16353         (createIvalCharPtr): an ival doesn't always have a storage class anymore
16354
16355 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
16356
16357         * src/mcs51/peeph.def: better assembler identation by Frieder
16358         * src/mcs51/gen.c: better assembler identation by Frieder
16359
16360 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
16361
16362         * as/z80/string.h: removed for gcc 3.2
16363         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
16364         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
16365
16366 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
16367
16368         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
16369         * src/SDCCpeeph.c (replaceRule): fix bug #663503
16370         * support/regression/Makefile: separate temp files for ports
16371         * support/regression/generate-cases.py: separate temp files for ports
16372         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
16373         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
16374
16375 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
16376
16377         * moved tinitalk to device/examples/ds390
16378
16379 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
16380
16381         * as/mcs51/lkmem.c: rflag is for DS390
16382         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
16383         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
16384                          (linkEdit): move mem- and map-files the same way as ihx-files
16385         * src/z80/main.c (_setDefaultOptions): removed --generic
16386         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
16387         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
16388         * src/pic/glue.c (picglue): --c1mode works again
16389         * src/pic16/glue.c (pic16glue): --c1mode works again
16390         * src/asm.c (printCLine): fix #660034
16391
16392 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
16393
16394         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
16395         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
16396         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
16397         * as/mcs51/lkmem (summary): better fix for sp problem
16398         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
16399         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
16400         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
16401                                               remove --stack-after-data
16402
16403 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
16404
16405         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
16406         * src/SDCCutil.c (join): ugly bug: missing '\0'
16407         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
16408
16409 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
16410
16411         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
16412         * src/port.h: typo
16413         * src/pic/main.c (_asmCmd): gpasm supports -o
16414         * src/z80/main.c: more general macros
16415         * device/lib/Makefile.in: remove intermediate files
16416
16417 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
16418
16419         * .version: Bumped version number to 2.3.3
16420         * src/SDCCBBlock.c: new option -o
16421         * src/SDCCglobl.h: new option -o
16422         * src/SDCCglue.c: new option -o
16423         * src/SDCCmain.c: new option -o
16424         * src/asm.c: new option -o
16425         * src/ds390/main.c: new option -o
16426         * src/pic/glue.c: new option -o
16427         * src/pic/pcode.c: new option -o
16428         * src/pic/ralloc.c: new option -o
16429         * src/pic16/glue.c: new option -o
16430         * src/pic16/pcode.c: new option -o
16431         * src/pic16/ralloc.c: new option -o
16432         * src/z80/main.c: new option -o
16433         * device/lib/Makefile.in: use -o
16434         * support/regression/ports/ds390/spec.mk: use -o
16435         * support/regression/ports/gbz80/spec.mk: use -o
16436         * support/regression/ports/mcs51/spec.mk: use -o
16437         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
16438         * support/regression/ports/z80/spec.mk: use -o
16439         * support/regression/ports/ucz80/spec.mk: use -o
16440         * support/regression/ports/xa51/spec.mk: use -o
16441         * support/regression/fwk/lib/timeout.c: fix usage string
16442
16443 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
16444         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
16445
16446 2003-01-07    <johan AT balder>
16447
16448         * src/SDCCast.c (decorateType): fixed bug #600035
16449
16450 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
16451         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
16452         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
16453         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
16454         * src/pic/pcode.c: outcommented unused variable to remove warnings
16455         * src/pic/ralloc.c: outcommented unused variable to remove warnings
16456
16457 2003-01-06    <karl AT turbobit.com>
16458         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
16459         regression tests.
16460
16461 2003-01-06    <johan AT balder>
16462
16463         * src/SDCCicode.c: fixed array add
16464
16465 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
16466         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
16467         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
16468
16469 2003-01-04    <johan AT balder>
16470
16471         * src/SDCCval.c (getNelements): fixed the initialized array of structures
16472
16473 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16474         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
16475
16476 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
16477         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
16478         * support/regression/tests/bug-524697.c: fit mem usage into 8032
16479
16480 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
16481         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
16482
16483 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
16484         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
16485
16486 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
16487         * src/mcs51/main.c: removed {bindir}{sep} from aslink
16488
16489 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16490
16491         * in /sdcc/as/mcs51/ changed these files in order to create an
16492         aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
16493         lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
16494         following files to include the previous two files: aslink.dsp,
16495         Makefile.aslink, Makefile.bcc, and Makefile.in.
16496
16497         * Changed /sdcc/src/SDCCmain.c so it creates files with extension
16498         .adb instead of .cdb
16499
16500 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16501
16502         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
16503         value from option --iram-size.
16504
16505 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16506
16507         * /sdcc/as/mcs51/lklist.c: added boundary check before using
16508         dram[] array.
16509
16510 2002-09-18    <wiml AT hhhh.org>
16511
16512         * SDCClrange.h: exposed setFromRange() and setToRange()
16513         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
16514           packRegsForAccUse() (bug 542397)
16515         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
16516           multiple times and emitting the fetch operations more than once
16517           added aopGetUsesAcc() function to allow binary operators to
16518           fetch their operands in the correct order; made genMinus() emit
16519           compact code for X = LITERAL - Y
16520
16521 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16522         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
16523         sprintf() in line 1267.
16524
16525 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16526         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
16527         like ports.
16528
16529 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16530         Changes to aslink (All the changes are marked with 'JCF'):
16531
16532         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
16533         summary().
16534
16535         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
16536         area BSEG.  Also moves, if possible, the DATA area down into the internal
16537         ram so more space is available.
16538
16539         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
16540         sflag.
16541
16542         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
16543         not bytes.  Function summary() which creates a memory usage summary
16544         file with extension .mem.  Reports of overlaping stack and small stack
16545         size.  If the space for the stack is less than 16 bytes aslink trows a
16546         warning.
16547
16548         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
16549         the 8051.  Option 'y' for memory summary output file.
16550
16551         Changes to sdcc (All the changes are marked with 'JCF'):
16552
16553         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
16554
16555         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
16556         overlaying area for it (uses RegBankUsed[4]).
16557
16558         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
16559         bank zero as used by default.  By default aslink locates the stack
16560         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
16561         the creation of the .mem file.  Delegates the allocation of data area
16562         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
16563         the begining of the stack area to aslink.
16564
16565         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
16566         glue() in SDCCglue.c creates an area for it.
16567
16568 2002-09-03  Borut Razem <borut.razem AT siol.net>
16569         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
16570         sdcc/src/pic/glue.c:
16571         introduced atexit() handler for teporay files removal in case of
16572         errors, assertions, ...
16573
16574 2002-08-29  Borut Razem <borut.razem AT siol.net>
16575         * sdcc/support/cpp2/auto-host_vc_in.h:
16576         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
16577         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
16578         Maybe there is a similar problem with BORLANDC? It should be checked!
16579
16580         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
16581         corrected improper use of assert: the assignment to clr variable was done inside the assert.
16582         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
16583         was not executed, and the compiler (cl) launched a warning:
16584         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
16585
16586 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
16587         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
16588
16589 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
16590         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
16591
16592         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
16593           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
16594           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
16595           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
16596           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
16597           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
16598           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
16599         - added Release configuration in VS projects
16600         - review of compiler an linker options
16601         - VC .exe files are generated in bin_vc directory, not to interfere
16602           with binaries generated from other projects (cygwin, mingw, bcc ...)
16603
16604         * sdcc/src/yacc.dsp: added
16605
16606         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
16607         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
16608         and insert the version number definitions from .version
16609
16610         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
16611
16612         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
16613         added - genarate auto-host.h using auto-host_vc_in.h as template
16614
16615         * sdcc/sdcc_vc.h,
16616         removed from CVS, generated automatically
16617
16618 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
16619         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
16620
16621 2002-08-11  Borut Razem <borut.razem AT siol.net>
16622         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
16623
16624 2002-08-10  Borut Razem <borut.razem AT siol.net>
16625         * src/SDCCmain.c (main):
16626         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
16627         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
16628         The consequence was that some temporary files were not removed.
16629
16630         * src/SDCCglue.c:
16631         unification of code in functions tempfilename() and tempfile():
16632         function tempnam() is defined in Visual Studio 6.0 and .NET
16633
16634         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
16635
16636         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
16637           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
16638         - removed compiler command line option /WX: Treats all warnings as errors
16639         - update a list of source files, included into the project
16640
16641         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
16642           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
16643         changed project type to Generic Project so that can be correcly converted to VS.NET project
16644
16645         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
16646
16647         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
16648
16649         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
16650
16651         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
16652         added return 0 statements after assert() to make compiler happy
16653
16654         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
16655         added newline in the def file to keep MSC compiler satisfied
16656
16657         * sdcc/src/z80/gen.c:
16658         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
16659           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
16660         - solved MSC error in function aopDump()
16661
16662         * sdcc_vc.h: define PREFIX as "\\sdcc"
16663
16664 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
16665         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
16666
16667 2002-06-22  Scott Dattalo <scott AT dattalo.com>
16668         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
16669         - Rewrote the register banking algorithm.
16670         - Added pCode live-range analysis to registers (for now, only non-used and
16671         singly-used registers optimized away)
16672
16673         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
16674
16675         * 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.
16676
16677 2002-05-10  Scott Dattalo <scott AT dattalo.com>
16678         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
16679
16680 2002-04-22  Michael Hope  <michaelh AT vroom>
16681
16682         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
16683
16684         * configure.in (DD_COPT): Added include support required for gbdk.
16685
16686         * .version: Bumped version number just to increase it.
16687
16688         * src/SDCCmain.c: Added -nostdinc to the default options.
16689
16690 2002-04-15  Michael Hope  <michaelh AT vroom>
16691
16692         * device/lib/z80/printf.c (sprintf): Added.
16693
16694         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
16695
16696         * src/z80/peeph.def: Added transpose redundent load rule.
16697
16698         * src/z80/main.c: Added force callee saves for jaune.
16699
16700         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
16701
16702         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
16703
16704 2002-03-28  Johan Knol  <johan AT balder>
16705
16706         * src/SDCCval.c: fixed bug #532436
16707
16708 2002-03-14  Scott Dattalo <scott AT dattalo.com>
16709         * /src/port.h:
16710         Added "char *Processor" field to the port structure.
16711
16712         * /src/SDCCmain.c:
16713         Added -p option. Allows port dependent processor to be specified.
16714
16715         * all ports:
16716         Initialized the new field char *Processor field to NULL in all ports
16717
16718         * /src/pic/*:
16719         Compiler generated registers for interrupt context saving
16720         were not getting allocated.
16721
16722 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
16723
16724         * /src/SDCCast.c:
16725         Fixed left shift. Will promote the left side of a left shift
16726         if a) left shifting more than size of operand or b) when assigned
16727         to something size > size of left side
16728
16729 2002-03-14  Scott Dattalo <scott AT dattalo.com>
16730         * src/pic/*
16731         tons of changes. Register allocation has been
16732         rewritten. Added customization for the various PICs. Flow
16733         analysis is restructured. ...
16734
16735         * src/pic/device.h:
16736         Added
16737
16738         * src/pic/device.c:
16739         Added. device.c is a PIC port hack to accomodate variations
16740         in PIC devices.
16741
16742 2002-03-13  Michael Hope  <michaelh AT vroom>
16743
16744         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
16745
16746 2002-03-04  johanknol  <johanknol AT manik>
16747
16748         * /src/SDCCval.c: fixed
16749
16750         const unsigned char arr[][2] = { { 0, 1 } };
16751         t18.c:1: error: Initializer element is not constant
16752
16753 2002-03-04  bela  <bela AT manik>
16754
16755         * /device/include/mcs51reg.h:
16756         ds89c420 register definition update
16757
16758 2002-03-03    <johan AT FRIJA>
16759
16760         * support/Util/SDCCerr.c: did something, but don't no why anymore
16761
16762         * support/regression/tests/bug-524691.c: made it a little less shy
16763
16764         * src/SDCCast.c (decorateType): fixed bug #524697
16765
16766         * src/SDCCast.c: made some lineno improvements
16767
16768         * src/SDCCval.c (getNelements): changed warning to error
16769
16770         * src/SDCCglue.c (printIvalArray): changed warning to error
16771
16772         * src/SDCCicode.c: fixed a warning for mingw
16773
16774         * src/SDCCast.c (decorateType): fixed the << promotion for ops
16775
16776         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
16777
16778 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
16779
16780         * src/ds390/peeph.def:
16781         Added some more peephole rules
16782
16783         * src/ds390/gen.c: Various fixes & enhancements
16784
16785         * src/SDCClrange.c, src/SDCClrange.h:
16786         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
16787
16788         * src/ds390/ralloc.c:
16789         various fixes & enhancements (ds390) specific
16790
16791         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
16792         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
16793         from rallocs.
16794
16795         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
16796
16797 2002-03-02    <johan AT FRIJA>
16798
16799         * src/SDCCast.c (decorateType): fixed bug #524708
16800
16801         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
16802
16803         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
16804
16805 2002-03-01  Michael Hope  <michaelh AT vroom>
16806
16807         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
16808
16809         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
16810
16811 2002-03-01    <johan AT FRIJA>
16812
16813         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
16814
16815         * src/SDCCast.c (decorateType): fixed bug #524209
16816
16817         * src/SDCCval.c (valNot): fixed bug #524195
16818
16819 2002-02-26    <johan AT balder>
16820
16821         * src/xa51/gen.c: fixed a warning
16822
16823         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
16824
16825         * src/SDCCast.c (decorateType): fixed bug #522534
16826
16827 2002-02-23    <johan AT balder>
16828
16829         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
16830
16831 2002-02-22    <johan AT balder>
16832
16833         * src/SDCCast.c: fixed bug #514865
16834
16835         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
16836
16837 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
16838
16839         * sdcc/src/SDCCloop.c:
16840         Previous fix was not good. basic blocks that have "break" or "return" are
16841         not really partof a loop , but live ranges used in these blocks should
16842         be live thru the entire loop, so set partOfLoop but don't add them to
16843         loop region
16844
16845 2002-02-21    <johan AT FRIJA>
16846
16847         * src/SDCCcse.c: fixed bug #514308
16848
16849 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
16850
16851         * src/SDCCloop.c:
16852         Fixed BUG #519583. If a conditional block ended in a return/break
16853         statement inside a loop, it was not being considered part of the loop.
16854
16855         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
16856
16857 2002-02-10  Karl Bongers <karl AT turbobit.com>
16858
16859         * debugger/*:
16860         Fixed up SDCDB debugger somewhat.  Updated debugger/README
16861         with lots of comments and notes.
16862
16863         * device/examples/test2.c:
16864         Fix bug, "red" variable not being initialized(compiler complained).
16865
16866         * device/examples/Makefile, examples/test3.c:
16867         Add Makefile in device/examples folder, compiles test3.c
16868         for use as a multiple module SDCDB test case.
16869
16870         * sim/ucsim/cmd.src/cmdset.cc:
16871         Took out debug printfs in ucsim "next" command.
16872
16873         * sim/ucsim/xa.src:
16874         Karl and Johan start ucsim XA support.  Most dissassembly working,
16875         about 75% emulation done(plenty of work remaining).
16876
16877         * sim/ucsim/z80.src:
16878         Add Z80 support to ucsim, add test-ucz80 regression test,
16879         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
16880         Notice z80 compiler fails on examples/test3.c/crc code.
16881
16882 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
16883
16884         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
16885         Added support for --parms-in-bank1
16886
16887         * src/ds390/peeph.def:
16888         added a few more peephole optimzations
16889
16890         * src/ds390/main.c:
16891         1) added __builtin_inp & __builtin_outp used to read in data of given length
16892            from a memory mapped port
16893         2) added __builtin_memcmp
16894         3) added __builtin_swapw swap bytes of a short
16895
16896         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
16897         1) handle multiple send & receives from register bank1
16898         2) ralloc can now allocate DPTR1 to some liveRanges
16899
16900         * src/SDCCsymt.c, src/SDCCsymt.h:
16901         changes to handle multiple sends & receives
16902
16903         * src/SDCCptropt.h:
16904         added some pointer arithmetic optimization
16905
16906         * src/SDCCptropt.c:
16907         added some pointer arithmetic optimizations but not stable yet so not
16908         called from anywhere (will get this working shortly)
16909
16910         * src/SDCCopt.c: fixed for multiple sends & receives
16911
16912         * src/SDCCmain.c:
16913         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
16914         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
16915            set preprocessor defines (depending on options)
16916
16917         * src/SDCCicode.c, src/SDCCicode.h:
16918         changes made to handle multiple sends & receives
16919
16920         * src/SDCCglobl.h:
16921         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
16922
16923         * src/SDCCcse.c, src/SDCCcse.h:
16924         added function findbackward def (to be used in upcoming optimization)
16925
16926         * src/SDCCcflow.c, src/SDCCcflow.h:
16927         added function returnAtEnd - to determine if a basic block terminates with
16928         a RETURN iCode
16929
16930         * src/SDCCast.c, src/SDCCast.h:
16931         added option parms-in-bank1
16932
16933         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
16934         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
16935         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
16936         adjusted for --parms-in-bank1 option
16937
16938         * device/include/string.h:
16939         donot redefine "reentrant" keyword
16940
16941         * device/include/ds80c390.h: Added some more SFRs
16942
16943 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
16944
16945         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
16946
16947 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
16948
16949         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
16950
16951 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
16952
16953         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
16954
16955 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
16956
16957         * Added --xram-movc option
16958
16959 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
16960
16961         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
16962
16963 2002-01-11  Johan Knol
16964
16965         * Added math lib of Jesus Calvino-Fraga
16966
16967 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
16968
16969         * src/SDCCmain.c (processFile): fix processing of ../../src.c
16970         * support/regression/Makefile: new target test-mcs51-stack-auto
16971         * support/regression/ports/mcs51-stack-auto/spec.mk: added
16972
16973 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
16974
16975         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
16976
16977 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
16978
16979         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
16980
16981 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
16982
16983         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
16984
16985         * src/SDCCglue.h: add definition for printIvalChar()
16986
16987 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
16988
16989         * src/SDCCast.c: fix #498138 by Johan
16990
16991         * src/SDCCglue.c: fix #498138 by Johan
16992
16993 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
16994
16995         * support/regression/Makefile: fix clean
16996
16997         * support/regression/ports/ds390/support.c: fix transmission of last character
16998
16999 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
17000
17001         * /sdcc/src/ds390/gen.c:
17002         a) improved computing address of stack variable
17003         b) took out some #if 0 code
17004         c) improved parmBytes adjustment
17005         d) improved genPlusIncr & genMinusIncr
17006         e) genCmp could generate bad code (when left assigned to DPTR)
17007         f) Fixed bug in hasInc
17008
17009         * /sdcc/src/ds390/ralloc.c:
17010         a) packRegsForSupport could mess up live information (Fixed)
17011         b) packRegsDPTRuse could be incorrect for left & right shift
17012
17013         * /sdcc/src/mcs51/ralloc.c:
17014         packRegsForSupport could mess up the live information (Fixed)
17015
17016         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
17017
17018         * /sdcc/src/SDCCast.c:
17019         can reverse a loop even if function call is present as long
17020         as the loop control variable is local & is not passed as parameter
17021
17022 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
17023
17024         * /sdcc/ChangeLog: *** empty log message ***
17025
17026         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
17027         More builtin function additions for TININative
17028
17029         * /sdcc/src/ds390/ralloc.c:
17030         Had broken the regression testsuite
17031
17032         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
17033
17034         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
17035         Added funcattr hasStackParms will be set for reentrant functions when there
17036         are paramteres on the stack, this helps in minimizing frame pointer generation
17037         typeFromStr can handle function pointers now
17038
17039         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
17040         *** empty log message ***
17041
17042 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
17043
17044         * /src/ds390/gen.c, /src/ds390/main.c:
17045         More builtin function additions for TININative
17046
17047         * /src/ds390/ralloc.c:
17048         Had broken the regression testsuite
17049
17050         * /src/SDCCast.c: Fixed a bug in dumptree
17051
17052         * /src/SDCCsymt.c, /src/SDCCsymt.h:
17053         Added funcattr hasStackParms will be set for reentrant functions when there
17054         are paramteres on the stack, this helps in minimizing frame pointer generation
17055         typeFromStr can handle function pointers now
17056
17057         * /doc/builtins.txt, /doc/TININative.txt:
17058         *** empty log message ***
17059
17060
17061 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
17062
17063         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
17064         ALPHA version for -mTININative
17065
17066         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
17067         updated to reflect changes in the port structure
17068
17069         * /src/port.h:
17070         added function do_assemble (similar to do_link) if non-null this function
17071         will be called to do assembly (-mTININative) requires a multi command
17072         assembly
17073         added function genAssemblerEnd will be called to generate assembler Epilogue
17074
17075         * /src/SDCCsymt.c:
17076         added _JavaNative to debug info printing
17077
17078         * /src/SDCCmain.c: added option --tini-libid
17079         added port->do_assemble function (-mTININative) has a multi command assemble
17080
17081         * /src/SDCCglue.c: Disabled "constExpr" check
17082         added port->genAssemblerEnd function
17083
17084         * /src/SDCCglobl.h: Added option --tini-libid value
17085
17086         * /src/SDCCast.h:
17087         tookout optimizeCompare from the header (has no external references)
17088
17089         * /src/SDCCast.c: made one more function "static"
17090
17091 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
17092
17093         * src/z80/mappings.i: Added z80asm support.
17094
17095         * src/z80/main.c: Added z80asm support on --asm=z80asm
17096
17097         * src/z80/gen.c: Fixed asm portability issues.
17098
17099         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
17100
17101         * src/SDCCglue.c (printExterns): Added global/extern split.
17102
17103 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
17104
17105         * support/regression/Makefile: added test for mcs51 model large
17106
17107         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
17108
17109         * support/regression/ports/gbz80/spec.mk: added -mgbz80
17110
17111 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
17112
17113         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
17114
17115 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
17116
17117         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
17118
17119         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
17120
17121 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
17122
17123         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
17124
17125         * support/regression/tests/simplefloat.c: Port to mcs51.
17126
17127 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
17128         * support/regression/tests/bug-485362.c: Added.
17129
17130         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
17131
17132         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
17133
17134         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
17135
17136         * src/z80/gen.c (aopDump): Added a dump function.
17137
17138 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
17139         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
17140
17141         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
17142
17143         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
17144
17145         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
17146
17147         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
17148
17149         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
17150
17151         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
17152
17153         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
17154
17155         * support/regression/ports/ds390/support.c: Use tinibios.
17156
17157         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
17158
17159 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
17160
17161         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
17162         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
17163
17164         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
17165
17166         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
17167
17168 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
17169
17170         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
17171
17172         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
17173         (packRegsForIYUse): Created and optimised.
17174
17175 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
17176
17177         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
17178 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
17179
17180         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
17181
17182         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
17183
17184         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
17185
17186 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
17187
17188         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
17189
17190         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
17191
17192 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
17193
17194         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
17195
17196         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
17197
17198         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
17199
17200 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
17201
17202         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
17203         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
17204         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
17205
17206         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
17207
17208         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
17209         (genNotFloat): Added.
17210         (genUminusFloat): Added.
17211
17212         * device/lib/z80/Makefile: Added floating pt stubs.
17213
17214         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
17215
17216         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
17217
17218         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
17219
17220 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
17221
17222         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
17223
17224         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
17225
17226         * sdcc/support/regression/Makefile: Add port ds390.
17227
17228         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
17229
17230         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
17231
17232         * sdcc/support/regression/ports/ds390/spec.mk: Added.
17233
17234         * sdcc/support/regression/ports/ds390/support.c: Added.
17235
17236         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
17237
17238         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
17239
17240         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
17241
17242 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
17243
17244         * device/include/malloc.h: Added z80 and gbz80 support.
17245
17246         * device/lib/gbz80/heap.s: Added.
17247
17248         * device/lib/z80/heap.s: Added.
17249
17250         * device/lib/malloc.c: Added z80 and gbz80 support.
17251
17252         * support/regression/tests/malloc.c (testMalloc): Added.
17253
17254         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
17255
17256         * support/regression/tests/bug-478094.c: Added.
17257
17258         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
17259
17260 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
17261
17262         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
17263
17264         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
17265
17266         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
17267
17268         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
17269
17270         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
17271
17272 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
17273
17274         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
17275
17276 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
17277
17278         * support/regression/tests/bug-477927.c: Added.
17279
17280         * src/z80/peeph.def: Added minor rules.
17281
17282         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
17283
17284         * src/z80/peeph.def: Added jump optimisation modification.
17285
17286 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
17287
17288         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
17289
17290 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
17291
17292         * support/regression/tests/funptrs.c: Added.
17293
17294 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
17295
17296         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
17297
17298 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
17299
17300         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
17301
17302         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
17303
17304         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
17305         (movLeft2ResultLong): Created.
17306
17307         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
17308         (joinPushes): Added.  Joins two char pushes into a word push.
17309
17310 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
17311
17312         * support/cpp2/Makefile.in (install): Added creation of dest dir.
17313
17314         * support/makebin/Makefile (install): Added creation of dest dir.
17315
17316 2001-10-24 Karl Bongers <karl AT turbobit.com>
17317
17318         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
17319
17320 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
17321
17322         * src/z80/ralloc.c: Turned off faulty pack for one use.
17323
17324         * src/z80/peeph-gbz80.def: Removed redundent restart options.
17325
17326         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
17327
17328 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
17329
17330         * support/regression/Makefile: Improved clean
17331
17332         * support/regression/ports/gbz80/spec.mk: Added clean
17333
17334         * support/regression/ports/host/spec.mk: Added clean
17335
17336         * support/regression/ports/z80/spec.mk: Added clean
17337
17338         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
17339
17340         * support/regression/ports/mcs51/timeout.c: little improvements
17341
17342 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
17343
17344         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
17345
17346         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
17347
17348         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
17349
17350 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
17351
17352         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
17353
17354         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
17355
17356 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
17357         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
17358
17359         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
17360
17361         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
17362
17363         * src/mcs51/main.c (_linkCmd): Added bin path to command.
17364
17365         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
17366
17367         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
17368
17369         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
17370
17371         * support/regression/tests/longor.c: Added.
17372
17373 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
17374
17375         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
17376
17377         * as/mcs51/aslink.h: define PATH_MAX
17378
17379         * as/mcs51/asm.h: define PATH_MAX
17380
17381         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
17382
17383         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
17384
17385         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
17386
17387         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
17388
17389         * src/SDCCglobl.h: define PATH_MAX
17390
17391         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
17392
17393         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
17394
17395 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
17396
17397         * src/z80/gen.c (gencjneshort): Fixed
17398
17399         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
17400
17401 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
17402
17403         * support/regression/tests/bug-469671.c: Added.
17404
17405         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
17406
17407 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
17408
17409         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
17410
17411         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
17412
17413 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
17414
17415         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
17416
17417         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
17418
17419         * src/device/lib/_mullong.c : removed hint: nooverlay bug
17420
17421         * src/device/lib/_divuint.c : removed hint: nooverlay bug
17422
17423         * src/device/lib/_divulong.c: removed hint: nooverlay bug
17424
17425         * src/device/lib/_moduint.c : removed hint: nooverlay bug
17426
17427         * src/device/lib/_modulong.c: removed hint: nooverlay bug
17428
17429 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
17430
17431         * 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.
17432
17433         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
17434
17435         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
17436
17437 2001-10-07    <johan AT FRIJA>
17438
17439         * device/lib/gets.c (gets): fixed the return value.
17440
17441 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
17442         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
17443
17444         * 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.
17445
17446         * 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.
17447
17448         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
17449
17450         * src/pic/gen.c: Removed Safe_strdup.
17451
17452         * configure.in: Added option to enable libgc support.
17453
17454         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
17455         (bitVectUnion): Optimised.
17456         (bitVectIntersect): Optimised.
17457         (bitVectBitsInCommon): Optimised.
17458         (bitVectCplAnd): Optimised.
17459
17460         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
17461
17462 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17463
17464         * src/SDCCmain.c: distinguish between assembler debug and plain options
17465
17466         * src/avr/main.c:   remove standard assembler options
17467
17468         * src/ds390/main.c: remove standard assembler options
17469
17470         * src/mcs51/main.c: remove standard assembler options
17471
17472         * src/port.h: removed "PENDING" comment
17473
17474 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17475
17476         * src/device/lib/_mulint.c  : new, with assember functions
17477
17478         * src/device/lib/_mullong.c : new, with assember functions
17479
17480         * src/device/lib/_divuint.c : with assember functions
17481
17482         * src/device/lib/_divsint.c : with assember functions
17483
17484         * src/device/lib/_divulong.c: with assember functions
17485
17486         * src/device/lib/_divslong.c: with assember functions
17487
17488         * src/device/lib/_moduint.c : with assember functions
17489
17490         * src/device/lib/_modsint.c : with assember functions
17491
17492         * src/device/lib/_modulong.c: with assember functions
17493
17494         * src/device/lib/_modslong.c: with assember functions
17495
17496         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
17497
17498         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
17499
17500         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
17501                                       replaced _mululong.c and _mulslong.c by _mullong.c
17502
17503 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17504
17505         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
17506
17507 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
17508
17509         * src/SDCCglue.c: test, if win32api is available for MINGW
17510
17511 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
17512
17513         * src/SDCCsymt.c: no more _modifier in printTypeChain()
17514         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
17515         * support/regression/ports/gbz80/spec.mk: removed GENERIC
17516         * support/regression/ports/host/spec.mk: removed GENERIC
17517         * support/regression/ports/mcs51/spec.mk: removed GENERIC
17518         * support/regression/ports/z80/spec.mk: removed GENERIC
17519
17520 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
17521
17522         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
17523
17524         * support/regression/tests/bug-467035.c: Created.
17525
17526 2001-10-01    <johan AT FRIJA>
17527
17528         * src/SDCC.y: fixed bug #466586 part 1
17529
17530 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
17531
17532         * SDCCicode.c: z80 has no generic pointers
17533         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
17534
17535 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
17536
17537         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
17538
17539 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
17540
17541         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
17542
17543         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
17544
17545 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
17546
17547         * configure.in: Fixed up so that ucsim is only configured once.
17548
17549         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
17550
17551         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
17552         (getPathDifference): As above.
17553
17554         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
17555
17556         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
17557
17558 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
17559         * .version: Updated to 2.3.1
17560
17561         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
17562         Added copyright header.
17563
17564         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
17565         (assemble): Added support for macro based assembler commands.
17566         (linkEdit): Added support for macro based linker commands.
17567         (preProcess): Changed the pre-processor to use macros.
17568         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
17569         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
17570
17571         * device/lib/z80/crt0.s: Added module name for debugging.
17572
17573 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
17574
17575         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
17576
17577         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
17578
17579         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
17580
17581         * src/Makefile.in: Added SDCCmacro and SDCCutil
17582
17583 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
17584
17585         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
17586
17587 2001-09-16    <johan AT FRIJA>
17588
17589         * 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.
17590
17591 2001-09-15    <johan AT FRIJA>
17592
17593         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
17594         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
17595
17596 2001-09-11    <johan AT FRIJA>
17597
17598         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
17599
17600 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
17601
17602         * support/regression/tests/bug-460444.c: Added test case.
17603
17604         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
17605         (genCast): Added justification for all of the asserts.
17606
17607 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
17608
17609         * support/regression/support.c: _xdata replaced by xdata
17610
17611         * support/regression/spec.mk: removed _generic
17612
17613 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
17614
17615         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
17616
17617         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
17618         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
17619
17620         * src/z80/peeph.def: Added a rule to optimise shift then compare.
17621
17622         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
17623
17624         * support/regression/tests/bug-460010.c: Added test case.
17625
17626         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
17627
17628 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
17629
17630         * support/regression/Makefile: inter-port-clean adjusted for mcs51
17631
17632         * support/regression/testfwk.c: removed workaround for bug #436344
17633
17634         * support/regression/tests/bp.c: use less memory with mcs51
17635
17636         * support/regression/tests/bug-441448.c: use less memory
17637
17638         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
17639
17640         * support/regression/collate-results.py: typo
17641
17642 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
17643
17644         * support/regression/tests/fetchoverlap.c: Added new test case.
17645
17646         * support/regression/tests/bp.c: Added new test case.
17647
17648         * support/regression/tests/bug-448984.c: Added new test case.
17649
17650         * support/regression/tests/pow2shifts.c: Added new test case.
17651
17652         * src/z80/gen.c: Turned off the noise it normally generates for the release.
17653         (genlshTwo): Fixed right shift for count > 8.
17654
17655         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
17656
17657 2001-09-08    <johan AT FRIJA>
17658
17659         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
17660
17661 2001-09-07    <johan AT FRIJA>
17662
17663         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
17664
17665         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
17666
17667 2001-09-06    <johan AT FRIJA>
17668
17669         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
17670         * bernhard noted me at this: "() equals to (void)" (1.38)
17671
17672 2001-09-05    <johan AT FRIJA>
17673
17674         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
17675
17676 2001-09-04    <johan AT FRIJA>
17677
17678         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
17679
17680
17681 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
17682
17683         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
17684
17685 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
17686
17687         * link/z80/aslink.h: Fixed path for PATH_MAX
17688
17689 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
17690
17691         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
17692
17693         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
17694
17695         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
17696
17697         * 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.
17698
17699 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
17700
17701         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
17702         (genCmp): Fixed up genCmp for the GB with longs.
17703
17704         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
17705
17706         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
17707
17708         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
17709
17710         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
17711
17712 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
17713
17714         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
17715
17716 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
17717
17718         * 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.
17719
17720         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
17721
17722 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
17723
17724         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
17725
17726         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
17727
17728 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
17729
17730         * sim/ucsim/configure:    little improvement of Cygwin-detection
17731         * sim/ucsim/configure.in: little improvement of Cygwin-detection
17732         * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
17733         * support/regression/tests/bug-221100.c: small changes for mcs51
17734         * support/regression/tests/bug-221168.c: small changes for mcs51
17735         * support/regression/tests/bug-227710.c: small changes for mcs51
17736         * support/regression/tests/staticinit.c: small changes for mcs51
17737         * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
17738         * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
17739         * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
17740
17741 $Revision$