* asranlib/asranlib.c, link/lkar.c: don't check the padding bytes since
[fw/sdcc] / ChangeLog
1 2009-02-09 Borut Razem <borut.razem AT siol.net>
2
3         * asranlib/asranlib.c, link/lkar.c: don't check the padding bytes since
4           the openSUSE GNU ar (GNU Binutils; openSUSE 11.0) 2.18.50.20080409-11.1
5           uses '`' character instead '\n' for padding
6
7 2009-02-08 Borut Razem <borut.razem AT siol.net>
8
9         * as/COPYING3: added
10         * support/scripts/sdcc.nsi: added COPYING3.txt to the package
11         * device/lib/Makefile.in: reenable floating point in model-xstack-auto
12           libraries
13
14 2009-02-07 Borut Razem <borut.razem AT siol.net>
15
16         * asranlib/asranlib.c: fixed BSD header length calculation
17         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.9
18           due sdcc asxxxx license change to GPLv3
19
20 2009-02-05 Borut Razem <borut.razem AT siol.net>
21
22         * asranlib/asranlib.c, link/lkar.h, link/lkar.c:
23           added support for BSD (Mac OS X) ar format
24         * as/asxxsrc/aslex.c, as/as/asxxsrc/asnoice.c, as/as/asxxsrc/assym.c,
25           as/as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/aslist.c,
26           as/hc08/asm.h, as/hc08/asmain.c, as/hc08/asout.c, as/hc08/assubr.c,
27           as/hc08/m08adr.c, as/hc08/m08ext.c, as/hc08/m08mch.c,
28           as/hc08/m08pst.c, as/hc08/m6808.h, as/link/aslink.h,
29           as/link/hc08/lkarea.c, as/link/hc08/lkelf.c, as/link/hc08/lkihx.c,
30           as/link/hc08/lkmain.c, as/link/hc08/lkmem.c, as/link/hc08/lkrloc.c,
31           as/link/hc08/lks19.c, as/link/lkaomf51.c, as/link/lkdata.c,
32           as/link/lkeval.c, as/link/lkhead.c, as/link/lklex.c, as/link/lklib.c,
33           as/link/lklibr.c, as/link/lklibr.h, as/link/lklist.c,
34           as/link/lknoice.c, as/link/lkrel.c, as/link/lkrel.h,
35           as/link/lksdcclib.c, as/link/lkstore.c, as/link/lksym.c,
36           as/link/mcs51/lkarea.c, as/link/mcs51/lkihx.c,
37           as/link/mcs51/lkmain.c, as/link/mcs51/lkmem.c,
38           as/link/mcs51/lkrloc.c, as/link/mcs51/lks19.c, as/link/z80/lkarea.c,
39           as/link/z80/lkgb.c, as/link/z80/lkgg.c, as/link/z80/lkihx.c,
40           as/link/z80/lkmain.c, as/link/z80/lkrloc.c, as/link/z80/lks19.c,
41           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/aslist.c,
42           as/mcs51/asm.h, as/mcs51/asmain.c, as/mcs51/asout.c,
43           as/mcs51/assubr.c, as/mcs51/i51adr.c, as/mcs51/i51ext.c,
44           as/mcs51/i51mch.c, as/mcs51/i51pst.c, as/mcs51/i8051.h,
45           as/xa51/xa_link.c, as/xa51/xa_main.c, as/xa51/xa_main.h,
46           as/xa51/xa_rasm.l, as/xa51/xa_rasm.y, as/xa51/xa_version.h,
47           as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c, as/z80/asm.h,
48           as/z80/asmain.c, as/z80/asout.c, as/z80/assubr.c, as/z80/z80.h,
49           as/z80/z80adr.c, as/z80/z80ext.c, as/z80/z80mch.c, as/z80/z80pst.c:
50           changed license to GPL either version 3, or (at your option) any
51           later version
52
53 2009-02-05 Borut Razem <borut.razem AT siol.net>
54
55         * asranlib/asranlib.c, link/lkar.h, link/lkar.c:
56           added support for BSD (Mac OS X) ar format
57
58 2009-02-02 Borut Razem <borut.razem AT siol.net>
59
60         * device/lib/gbz80/Makefile.in, device/lib/hc08/Makefile.in,
61           device/lib/z80/Makefile.in:
62           chose source files in the PORT directory if they are available
63
64 2008-02-01 Raphael Neider <rneider AT web.de>
65
66         * device/lib/pic16/libdev/pic18f1220.c,
67         * device/lib/pic16/libdev/pic18f4450.c:
68           define SSPBUF to allow use of printf
69
70 2009-02-01 Borut Razem <borut.razem AT siol.net>
71
72         * device/lib/Makefile.in, device/lib/gbz80/Makefile.in,
73           device/lib/hc08/Makefile.in, device/lib/incl.mk,
74           device/lib/z80/Makefile.in:
75           don't remake libraries
76         * support/regression/tests/snprintf.c:
77           reenable floating point in small-xstack-auto library
78
79 2008-01-26 Raphael Neider <rneider AT web.de>
80
81         * src/pic16/ralloc.c (packForPush): disabled to fix #2496919
82
83 2008-01-25 Raphael Neider <rneider AT web.de>
84
85         * src/pic16/main.c (_pic16_linkEdit): prepend -L paths to linker
86           search path instead of appending them
87
88 2009-01-24 Borut Razem <borut.razem AT siol.net>
89
90         * as/asranlib/asranlib.h: changed type of offset to unsigned int to
91           make it work on ppc Mac OS X (off_t is 64 bit and is not converted
92           to 32 bit unsigned int when calling sputl() since it is a macro
93         * as/link/lkar.c: changed the initialization of This->loaded
94
95 2009-01-23 Borut Razem <borut.razem AT siol.net>
96
97         * as/link/lkar.h: changed type of ar_size to size_t to make it work on
98           ppc Mac OS X (off_t is 64 bit and is not converted to 32 bit
99           unsigned int when calling new(), since asxxxx doesn't use function
100           prototypes)
101
102 2009-01-21 Borut Razem <borut.razem AT siol.net>
103
104         * as/link/lkar.h: sgetl and sputl are independent of endianness
105         * as/link/sdxxxx_config.h.in: removed endianness detection
106
107 2009-01-20 Borut Razem <borut.razem AT siol.net>
108
109         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.8
110           due creation of ar format libraries
111         * support/scripts/sdcc.nsi:
112           don't add nonexistent object files to the package
113
114 2009-01-19 Borut Razem <borut.razem AT siol.net>
115
116         * Makefile.in, configure.in, configure,
117           device/lib/Makefile.in, device/lib/ds390/Makefile.in,
118           device/lib/ds400/Makefile.in, device/lib/gbz80/Makefile.in,
119           device/lib/hc08/Makefile.in, device/lib/large/Makefile.in,
120           device/lib/mcs51/Makefile.in, device/lib/medium/Makefile.in,
121           device/lib/small/Makefile.in,
122           device/lib/z80/Makefile.in: create ar format libraries
123         * support/regression/ports/mcs51-xstack-auto/spec.mk:
124           use device/lib/Makefile to create library
125         * support/regression/tests/snprintf.c:
126           floating point is not enabled in small-xstack-auto library
127         * device/lib/libfloat.lib, device/lib/libint.lib,
128           device/lib/liblong.lib, device/lib/libsdcc.lib: removed
129
130 2009-01-18 Borut Razem <borut.razem AT siol.net>
131
132         * support/cpp/auto-host.h: fixed warning: "__STDC__" redefined,
133           warning: extra tokens at end of #endif directive
134
135 2009-01-11 Borut Razem <borut.razem AT siol.net>
136
137         * Makefile.in: added SDCC_ASRANLIB to PKGS
138
139 2009-01-10 Borut Razem <borut.razem AT siol.net>
140
141         * support/scripts/sdcc.nsi: added asranlib.exe to the install package
142         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.7
143           due added support for ar format libraries
144
145 2009-01-09 Borut Razem <borut.razem AT siol.net>
146
147         * as/asranlib/Makefile.in, as/asranlib/asranlib.dsp,
148           as/asranlib/asranlib.c: added asranlib
149         * as/link/lkar.c, as/link/lkar.h: added support for ar format libraries
150         * Makefile.in, as/link/hc08/Makefile.in,
151           as/link/hc08/link_hc08.dsp, as/link/lklib.c, as/link/lklibr.c,
152           as/link/lklibr.h, as/link/lkrel.c, as/link/lkrel.h,
153           as/link/lksdcclib.c, as/link/mcs51/Makefile.in,
154           as/link/mcs51/aslink.dsp, as/link/z80/Makefile.in,
155           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp, configure,
156           configure.in, sdcc.dsw: modified to support ar format libraries
157
158 2009-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
159
160         * src/SDCCast.c (decorateType RETURN): use RESULT_TYPE_GPTR for generic
161           pointer return
162
163 2009-01-05 Philipp Klaus Krause <pkk AT spth.de>
164
165         * sim/ucsim/z80.src/inst_ed.cc:
166           Fixed bug #2488074, which made regression tests fail.
167
168 2009-01-05 Philipp Klaus Krause <pkk AT spth.de>
169
170         * device/lib/z80/mod.s,
171           device/lib/z80/div.s,
172           device/lib/z80/mulchar.s,
173           device/lib/z80/mul.s,
174           device/lib/z80/divsigned.s,
175           device/lib/z80/Makefile.in:
176           Implemented RFE #1702376.
177
178 2009-01-05 Borut Razem <borut.razem AT siol.net>
179
180         * as/link/lksdcclib.c:
181           fixed linker hanging in INDEXLIB is not defined (hc08)
182
183 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
184
185         * src/z80/gen.c:
186           Implemented RFE #2485684, and some further improvements of HL caching
187           including a bugfix.
188         * src/z80/peeph-z80.def:
189           Fixed a bug exposed by implementing RFE #2485684.
190
191 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
192
193         * src/z80/peeph-z80.def:
194           Peephole improvements.
195         * src/z80/gen.c,
196           src/z80/main.c,
197           device/include/string.h,
198           device/lib/z80/memmove.s:
199           Minor code cleanup.
200         * device/lib/z80/Makefile.in,
201           device/lib/Makefile.in,
202           support/regression/tests/memory.c,
203           device/lib/z80/strlen.s:
204           Partially implemented RFE #2471534.
205
206 2009-01-04 Borut Razem <borut.razem AT siol.net>
207
208         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.6
209           due changes in sdcc asxxxx linkers - it sholud be done 2 days ago :(
210         * doc/README.txt: updated John Hartman's e-mail address
211         * as/link/lkrel.c, as/link/lksdcclib.c:
212           fixed bug #2484677: Linker hangs
213         * src/z80/peep.c: fixed msvc warning C4047:
214           'return' : 'int ' differs in levels of indirection from 'char *'
215         * config.dsp: as/lib corrected to as/link
216
217 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
218
219         * src/z80/peep.c:
220           Implemented RFE #2484693.
221         * src/z80/peeph-z80.def:
222           Some peephole improvements.
223
224 2009-01-03 Borut Razem <borut.razem AT siol.net>
225
226         * as/link/lklibr.c:
227           fixed warning: 'ret' may be used uninitialized in this function
228
229 2009-01-02 Borut Razem <borut.razem AT siol.net>
230
231         * as/link/lklib.c, as/link/lksdcclib.c, as/link/lklibr.h,
232           as/link/getline.[ch], as/link/lkrel.[ch]: added,
233           made support for differnet library formats more flexible,
234           preparation for support of ar format
235         * as/link/lklibr.c, as/link/z80/Makefile.in,
236           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
237           as/link/hc08/link_hc08.dsp, as/link/hc08/Makefile.in,
238           as/link/mcs51/aslink.dsp, as/link/mcs51/Makefile.in,
239           as/link/hc08/lkelf.c, as/link/aslink.h:
240           made support for differnet library formats more flexible,
241           preparation for support of ar format
242
243 2009-01-01 Borut Razem <borut.razem AT siol.net>
244
245         * as/link/asxxxx_config.h.in:
246           fixed warning: extra tokens at end of #endif directive
247         * src/z80/peep.c:
248           fixed warning: suggest parentheses around && within ||
249         * device/lib/Makefile.in: allow whitespaces at the end of lines in
250           ports.build, in order to make it work on cygwin - it seems to be a
251           bug in cygwin grep: CR is not treated as part of end-of-line
252
253 2008-12-31 Borut Razem <borut.razem AT siol.net>
254
255         * configure, configure.in, config.dsp, config_vc.awk,
256           as/link/asxxxx_config.h.in, as/link/hc08/lkelf.c, as/link/aslink.h,
257           as/link/hc08/Makefile.in, as/link/mcs51/Makefile.in:
258           introduced asxxxx_config.h.in
259
260 2008-12-30 Philipp Klaus Krause <pkk AT spth.de>
261
262         * src/z80/gen.c,
263           src/z80/peeph-z80.def:
264           Minor addition improvement.
265
266 2008-12-30 Raphael Neider <rneider AT web.de>
267
268         * as/link/hc08/lkelf.c, as/link/lkaomf51.c, as/link/lklibr.c,
269           as/link/z80/lkgb.c, debugger/mcs51/cmd.c, sim/ucsim/utils.cc,
270           src/SDCCasm.c, support/Util/dbuf_string.c, support/cpp/c-ppoutput.c,
271           support/cpp/libcpp/lex.c, support/cpp/libcpp/macro.c,
272           support/librarian/sdcclib.c, support/makebin/makebin.c:
273           partially revert changes from r5293..r5295
274
275 2008-12-29 Philipp Klaus Krause <pkk AT spth.de>
276
277         * src/z80/peeph-z80.def:
278           Minor peephole improvement.
279
280 2008-12-29 Raphael Neider <rneider AT web.de>
281
282         * src/pic/pcode.c (insertBankSel, FixRegisterBanking): emit
283           incorrectly discarded BANKSELs
284
285 2008-12-29 Philipp Klaus Krause <pkk AT spth.de>
286
287         * support/regression/tests/memory.c:
288           Added simple test for memset(), memcpy() and memmove()
289
290 2008-12-29 Borut Razem <borut.razem AT siol.net>
291
292         * sdcc/support/scripts/sdcc.nsi: removed $INSTDIR\lib\src\z80\*.c
293
294 2008-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
295
296         * src/mcs51/peeph.def (177.e): replaced notVolatile(%3) with
297           operandsNotRelated(%1 %3), had to change (a)r%1 to (a)%1 for this to work
298           (177.j): added new rule
299         * src/SDCCsymt.h: added RESULT_TYPE_GPTR
300         * src/SDCCast.c (processParms): use RESULT_TYPE_GPTR for generic ptr parms,
301           (decorateType CAST): propagate storage class to generic pointer results
302
303 2008-12-27 Philipp Klaus Krause <pkk AT spth.de>
304
305         * device/lib/z80/string.c,
306           device/lib/z80/printf.c,
307           device/lib/z80/mul.s:
308           z80 library cleanup
309         * src/z80/gen.c:
310           Fixed code generation bug exposed by builtin memcpy().
311
312 2008-12-27 Philipp Klaus Krause <pkk AT spth.de>
313
314         * device/lib/_memcpy.c:
315           fixed conflict with builtin memcpy()
316
317 2008-12-26 Borut Razem <borut.razem AT siol.net>
318
319         * support/librarian/sdcclib.c:
320           fixed bug 2466950: "sdcclib broken"
321           by removing fgets return value check
322
323 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
324         * src/z80/main.c,
325           src/z80/gen.c,
326           device/include/string.h: Implemented RFE #1914254
327
328 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
329         * device/lib/z80/Makefile.in,
330           device/lib/Makefile.in,
331           device/lib/z80/memmove.s: Implemented RFE #1914256
332
333 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
334
335         * src/z80/peeph-z80.def: fixed a bug in peephole 0zf
336         * src/z80/peep.c: improved checks for unused data
337         * src/z80/gen.c,
338           src/z80/main.c: Implemented RFE #1899189
339
340 2008-12-25 Borut Razem <borut.razem AT siol.net>
341
342         * support/regression/Makefile.in:
343           add -I$(INC_DIR) to SDCCFLAGS only if INC_DIR is defined
344
345 2008-12-25 Philipp Klaus Krause <pkk AT spth.de>
346
347         * src/z80/peeph-z80.def: minor peephole improvements
348
349 2008-12-21 Borut Razem <borut.razem AT siol.net>
350
351         * support/librarian/sdcclib.c: fixed build failure on Mac OS X
352           due to redefinition of symbol __assert
353           sdcclib.c:53:1:warning: "__assert" redefined
354           /Xcode2.5/SDKs/MacOSX10.4u.sdk/usr/include/assert.h:80:1:
355           warning: this is the location of the previous definition
356
357 2008-12-20 Raphael Neider <rneider AT web.de>
358
359         * debugger/mcs51/break.c, debugger/mcs51/cmd.c,
360           debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
361           support/cpp/libcpp/macro.c: fix format string errors
362
363         * sim/ucsim/s51.src/timer2.cc: add clarifying parens
364
365         * src/pic/device.c: partial rewrite using strtok,
366           quieten compiler warnings, adopt SDCC coding style
367
368         * as/link/hc08/lkelf.c, as/link/lkaomf51.c, as/link/lklibr.c,
369           as/link/z80/lkgb.c, as/z80/asout.c, debugger/mcs51/cmd.c,
370           sim/ucsim/utils.cc, src/SDCCasm.c, support/Util/dbuf_string.c,
371           support/cpp/c-ppoutput.c, support/cpp/libcpp/lex.c,
372           support/librarian/sdcclib.c, support/makebin/makebin.c:
373           quieten most compiler warnings
374
375         * sim/ucsim/avr.src/arith_inst.cc: quieten compiler warnings,
376           probably fix operator precedence bug
377
378         * doc/clean.mk: quieten rm if no .lyx is present
379
380 2008-12-19 Borut Razem <borut.razem AT siol.net>
381
382         * doc/sdccman.lyx, doc/random-notes.txt, doc/avr/avr_design.txt,
383           doc/TININative.txt, doc/macro-sys-design.txt, doc/libdoc.txt,
384           doc/README.txt, doc/test_suite_spec.lyx:
385           applied patch 2446381: Dcoumentation spelling correcitons
386           thanks to Steven Borley
387
388 2008-12-16 Raphael Neider <rneider AT web.de>
389
390         * device/include/pic/pic12f629.h,
391           device/include/pic/pic12f675.h,
392           device/lib/pic/libdev/pic12f629.c,
393           device/lib/pic/libdev/pic12f675.c: consolidated, added TRISIO bits
394
395 2008-12-14 Borut Razem <borut.razem AT siol.net>
396
397         * doc/sdccman.lyx, cdbfileformat.lyx, test_suite_spec.lyx:
398           converted to LyX 1.5.7 (\lyxformat 276) format
399
400 2008-12-07 Borut Razem <borut.razem AT siol.net>
401
402         * support/regression/tests/bitfields.c:
403           added test case for bug #2366757
404
405 2008-12-07 Raphael Neider <rneider AT web.de>
406
407         * src/pic16/glue.c (pic16_printIvalBitFields): prevent
408           NULL pointer dereference, closes #2366757
409
410 2008-11-25 Raphael Neider <rneider AT web.de>
411
412         * device/include/pic16/pic16devices.txt,
413           sdcc/src/pic16/device.c,
414           sdcc/src/pic16/device.h: implicitly disable XINST
415           whenever CONFIG4L is set via an additional optional
416           argument to the configword directive in pic16devices.txt
417
418 2008-11-24 Raphael Neider <rneider AT web.de>
419
420         * device/lib/pic16/configure.ac,
421           device/lib/pic16/Makefile.common: fixed quoting issues
422
423         * device/lib/pic16/configure,
424           device/lib/pic16/debug/Makefile.in,
425           device/lib/pic16/libc/Makefile.in,
426           device/lib/pic16/libdev/Makefile.in,
427           device/lib/pic16/libio/Makefile.in,
428           device/lib/pic16/libm/Makefile.in,
429           device/lib/pic16/libsdcc/Makefile.in,
430           device/lib/pic16/Makefile.in,
431           device/lib/pic16/startup/Makefile.in: regenerated
432
433         * src/pic16/main.c (_pic16_finaliseOptions): revert to
434           variant of r5216
435
436 2008-11-24 Raphael Neider <rneider AT web.de>
437
438         * src/pic16/main.c (_pic16_finaliseOptions): do not quote the
439           argument of --asm= or --link= to allow for
440           --asm="sh script --options", the user can double quote the
441           argument if needed: --asm="'c:/program files/gpasm' -q",
442           also fix some potential buffer overflows
443
444 2008-11-19 Borut Razem <borut.razem AT siol.net>
445
446         * doc/sdccman.lyx:
447           fixed 2314467: sdccman.lyx: fix "--" in command line parameters
448           thanks Mauro Giachero
449
450 2008-11-16 Borut Razem <borut.razem AT siol.net>
451
452         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.5
453         * doc/sdccman.lyx: documented fixed unnamed bit-field initialization
454
455 2008-11-15 Borut Razem <borut.razem AT siol.net>
456
457         * src/pic16/glue.c, src/SDCC.y, src/SDCCast.c, src/SDCCglue.c,
458           src/SDCCsymt.c, src/SDCCsymt.h:
459           fixed RFE #2291335 : Unnamed bit-field initialization
460         * support/regression/tests/bitfields.c:
461           added test case for RFE #2291335
462         * support/regression/tests/bug-1981238.c:
463           don't initialize unnamed bit-fields
464
465 2008-11-11 Raphael Neider <rneider AT web.de>
466
467         * device/include/pic16/pic18f25j10.h,
468           device/include/pic16/pic18f45j10.h: remove useless boilerplate
469
470         * device/include/pic16/adc.h,
471           device/lib/pic16/libio/adc/adcbusy.c,
472           device/lib/pic16/libio/adc/adcclose.c,
473           device/lib/pic16/libio/adc/adcconv.c,
474           device/lib/pic16/libio/adc/adcopen.c,
475           device/lib/pic16/libio/adc/adcread.c,
476           device/lib/pic16/libio/adc/adcsetch.c: generalized, documented,
477           and fixed ADC routines to work for more target devices,
478           incorporates patch #2036130 by Nick Materer
479
480 2008-11-10 Steven Borley <steven.borley AT partnerelectronics.com>
481
482         * device/include/ctype.h,
483         * device/include/ds400rom.h,
484         * device/include/ds80c390.h,
485         * device/include/float.h,
486         * device/include/math.h,
487         * device/include/serial.h,
488         * device/include/stdbool.h,
489         * device/include/tinibios.h: replaced non-C89 '//' with '/* */',
490           patch 2195343
491         * device/include/mcs51/C8051F336.h,
492         * device/include/mcs51/C8051T600.h,
493         * device/include/mcs51/C8051T610.h,
494         * device/include/mcs51/C8051T630.h: new, added, patch 2183334
495           (svn commit by Maarten Brock <sourceforge.brock AT dse.nl>)
496
497 2008-11-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
498
499         * device/include/mcs51/P89LPC922.h: fixed #2255989, thanks kubi57
500
501 2008-11-10 Raphael Neider <rneider AT web.de>
502
503         * device/lib/pic16/libdev/mkmk.sh: obey pics.all
504         * device/lib/pic16/libio/mkmk.sh: properly match whole lines in
505           .ignore files, fixes IO libs for 18f242, 18f252, 18f442, and 18f452
506           (patch by Nick Materer, #2253980)
507
508         * device/lib/pic16/libio/adc.ignore,
509           device/lib/pic16/libio/i2c.ignore,
510           device/lib/pic16/libio/usart.ignore,
511           device/lib/pic16/pics.all: updated to build more device libs
512
513         * device/lib/pic16/libdev/Makefile.am,
514           device/lib/pic16/libdev/Makefile.in,
515           device/lib/pic16/libio/Makefile.am,
516           device/lib/pic16/libio/Makefile.in: regenerated
517
518         * src/pic16/device.c (pic16_dump_usection): fixed output of multiple
519           names per memory location, applied SDCC style to more functions
520
521 2008-11-09 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
522
523         * device/include/mcs51/p89lpc933_4.h: new NXP header file
524         * device/include/mcs51/p89lpc935_6.h: new NXP header file
525         * device/include/mcs51/p89v66x.h: minor changes
526           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
527
528 2008-11-09 Raphael Neider <rneider AT web.de>
529
530         * device/include/pic/pic14devices.txt: fixed memory description for
531           12f629 and 12f675, closes #2236240
532
533 2008-11-06 Borut Razem <borut.razem AT siol.net>
534
535         * src/SDCCmain.c: fixed bug #2224960: sdcc -MM no working correctly
536           pass system include paths with -isystem to sdcpp
537         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c: removed unneeded
538           functions (closePipes), (closeTmpFiles) and (rmTmpFiles)
539
540 2008-11-02 Raphael Neider <rneider AT web.de>
541
542         * doc/sdccman.lyx: updated the sections on the library build process
543           and on how to add support for new devices, and documented known
544           problems with the extended instruction set including a workaround
545
546 2008-11-01 Raphael Neider <rneider AT web.de>
547
548         * device/include/pic16/adc.h,
549           device/include/pic16/pic16devices.txt,
550           device/include/pic16/pic18f2410.h,
551           device/include/pic16/pic18f2510.h,
552           device/include/pic16/pic18f2515.h,
553           device/include/pic16/pic18f2610.h,
554           device/include/pic16/pic18f4410.h,
555           device/include/pic16/pic18f4510.h,
556           device/include/pic16/pic18f4515.h,
557           device/include/pic16/pic18f4610.h,
558           device/include/pic16/pic18fregs.h,
559           device/lib/pic16/libdev/Makefile.am,
560           device/lib/pic16/libdev/Makefile.in,
561           device/lib/pic16/libdev/pic18f2410.c,
562           device/lib/pic16/libdev/pic18f2510.c,
563           device/lib/pic16/libdev/pic18f2515.c,
564           device/lib/pic16/libdev/pic18f2610.c,
565           device/lib/pic16/libdev/pic18f4410.c,
566           device/lib/pic16/libdev/pic18f4510.c,
567           device/lib/pic16/libdev/pic18f4515.c,
568           device/lib/pic16/libdev/pic18f4610.c,
569           device/lib/pic16/libio/Makefile.am,
570           device/lib/pic16/libio/Makefile.in,
571           device/lib/pic16/pics.all: added support for 18f[24][456]10
572           and 18f[24]515 devices
573         * doc/sdccman.lyx: updated list of supported PIC16 devices
574
575         * src/pic/glue.c, src/pic/pcode.c, src/pic/pcodeflow.c,
576           src/pic16/glue.c, src/pic16/pcode.c, src/pic16/pcodeflow.c,
577           src/xa51/gen.c: avoid compiler warnings
578         * support/scripts/inc2h-pic16.pl: removed trailing whitespace
579
580 2008-10-22 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
581
582         * device/include/mcs51/p89v66x.h: NXP header file
583         * device/include/mcs51/p89c66x.h: fixed an SBIT definition
584           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
585
586 2008-10-14 Raphael Neider <rneider AT web.de>
587
588         * device/lib/pic16/libdev/Makefile.am,
589           device/lib/pic16/libio/Makefile.am: enable building libraries for
590           18f2321, 18f4321, 18f2523, 18f4620, 18f66j60, 18f66j65, 18f67j60,
591           18f86j60, 18f86j65, 18f87j60, 18f96j60, 18f96j65, and 18f97j60
592         * device/lib/pic16/libdev/Makefile.in,
593           device/lib/pic16/libio/Makefile.in: regenerated
594
595 2008-10-14 Raphael Neider <rneider AT web.de>
596
597         * device/include/pic16/pic18f2450.h,
598           device/include/pic16/pic18f4450.h,
599           device/lib/pic16/libdev/pic18f2450.c,
600           device/lib/pic16/libdev/pic18f4450.c,
601           device/include/pic16/adc.h,
602           device/include/pic16/pic16devices.txt,
603           device/include/pic16/pic18fregs.h,
604           device/lib/pic16/libdev/Makefile.am,
605           device/lib/pic16/libdev/Makefile.in,
606           device/lib/pic16/libio/Makefile.am,
607           device/lib/pic16/libio/Makefile.in,
608           device/lib/pic16/pics.all: added 18f2450 and 18f4450, closes #1844525
609
610         * device/lib/pic16/libsdcc/stack/stack.S: there is no need to pin the
611           stack to a fixed location, relax it to automatically work with all
612           but the smallest devices (256 byte RAM devices need #pragma stack)
613
614 2008-10-09 Maarten Brock <sourceforge.brock AT dse.nl>
615
616         * debugger/mcs51/break.c: bugfix from patch 1989966, thanks Risto Huotari
617         * debugger/mcs51/simi.c: bugfix from patch 1989972, thanks Risto Huotari
618         * device/lib/_strcspn.c: fixed bug 2140931
619
620 2008-10-06 Raphael Neider <rneider AT web.de>
621
622         * device/include/pic16/stdio.h,
623           device/lib/pic16/libc/stdio/putchar.c: putchar should not be
624           declared __naked for convenience, named all arguments
625         * device/lib/pic16/libc/stdio/strmgpsim.c,
626           device/lib/pic16/libc/stdio/strmmssp.c,
627           device/lib/pic16/libc/stdio/strmusart.c: cosmetic changes
628
629         * src/pic16/pcode.c (createReachingDefinitions): avoid segfault on
630           empty __naked functions,
631         * (pCodeLabelDestruct, pic16_unlinkpCode, pic16_pCodeUnlink): fix
632           corner cases (unlink first/last pCode in list), reuse more code
633
634 2008-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
635
636         * src/ds390/main.c (_ds390_genInitStartup): added
637         * src/SDCCpeeph.c (getPatternVar): new, added,
638           (labelInRange): fixed bug 2115959
639         * src/mcs51/peeph.def (rules 193.x to 198.x): check for labelInRange
640         * src/SDCCicode.h: added newiTempOperand
641         * src/SDCCcse.c (algebraicOpts): fixed bug for x*-1,
642           added optimizations for 0/x and x/-1, see also patch 2142900
643         * support/regression/tests/onebyte.c (testMul): added test cases
644
645 2008-09-20 Borut Razem <borut.razem AT siol.net>
646
647         * src/pic16/glue.c:
648           definition of absolute address symbols without initial value,
649           fixed SDCC crash "do not know how to intialize symbol"
650
651 2008-09-16 Maarten Brock <sourceforge.brock AT dse.nl>
652
653         * device/lib/z80/mul.s (__mulsuchar_rrx_s, __muluschar_rrx_s),
654         * device/lib/z80/div.s (__divsuchar_rrx_s, __modsuchar_rrx_s,
655           __divuschar_rrx_s, __moduschar_rrx_s): added mixed signedness versions
656         * device/lib/z80/stubs.s: added stubs for above functions
657         * src/SDCCopt.c (convilong),
658         * src/SDCCsymt.c (initCSupport): fixed bug 1900961
659         * src/SDCCsymt.h (__muldiv): enlarged for mixed signedness
660         * src/z80/main.c (_hasNativeMulFor): fixed bug, I think
661         * support/regression/tests/onebyte.c: enabled all tests for z80
662
663 2008-09-15 Borut Razem <borut.razem AT siol.net>
664
665         * device/include/pic16/stdio.h, device/lib/pic16/libc/stdio/streams.c,
666           device/lib/pic16/libc/stdio/printf.c,
667           device/lib/pic16/libc/stdio/strmusart.c,
668           device/lib/pic16/libc/stdio/printf_tiny.c,
669           device/lib/pic16/libc/stdio/sprintf.c,
670           device/lib/pic16/libc/stdio/strmgpsim.c,
671           device/lib/pic16/libc/stdio/putchar.c,
672           device/lib/pic16/libc/stdio/fprintf.c,
673           device/lib/pic16/libc/stdio/strmmssp.c,
674           device/device/lib/pic16/libc/stdio/vprintf.c,
675           device/lib/pic16/libc/stdio/printf_small.c,
676           device/lib/pic16/libc/stdio/vsprintf.c,
677           device/lib/pic16/libc/stdio/strmputchar.c,
678           device/lib/pic16/libc/Makefile.am,
679           device/lib/pic16/libc/Makefile.in:
680           *printf now returns int, puchar.c moved from stdlib to stdio,
681           *printf format parameter type changed from char * to const char *,
682           added GNU link excetion text to library source files,
683           applyed GNU coding style, removed useless svn ids,
684           added BINARY_SPECIFIER macro re-enables the use of the removed 'b'
685           binary specifier: "%b", "%hb" and "%lb"
686         * device/lib/pic16/libc/stdio/vfprintf.c:
687           applied patch #2044424: PIC16: vfprintf
688           thanks Mauro Giachero
689         * support/regression/tests/bug1057979.c:
690           removed old pic16 sprintf specifics
691         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.4
692         * doc/sdccman.lyx: documented 'b' binary format specifier removal
693
694 2008-09-15 Raphael Neider <rneider AT web.de>
695
696         * src/pic16/device.c (pic16_dump_usection): force udata sections
697           into the addressable range (0..0xFFF), workaround for a gpsim
698           bug preventing simulation of regtest bug1750318
699         * src/pic16/ralloc.c (deassignLRs): cosmetic changes,
700           (serialRegAssign): fixed regtest bug-971834,
701           (pic16_packRegisters): avoid null-pointer dereference
702
703 2008-09-14 Raphael Neider <rneider AT web.de>
704
705         * src/pic16/gen.c, src/pic16/ralloc.c: use
706           SYM_SPIL_LOC/SPIL_LOC macros, no functional changes
707         * src/pic16/ralloc.c (rematStr): reimplemented, fixes #1818857
708
709 2008-09-12 Borut Razem <borut.razem AT siol.net>
710
711         * support/regression/fwk/testfwk.h:
712           define pdata as data for pic16 target
713           thanks Mauro Giachero
714
715 2008-09-11 Borut Razem <borut.razem AT siol.net>
716
717         * support/regression/tests/bug-221100.c, support/regression/shifts.c,
718           support/regression/absolute.c:
719           applied patch #2105615: Some PIC16 testcase fixlets
720           thanks Mauro Giachero
721
722 2008-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
723
724         * src/z80/gen.c (genCmpGt, genCmpLt): fixed bug 2094505
725         * support/regression/tests/bug2094505.c: new, added
726
727 2008-09-07 Borut Razem <borut.razem AT siol.net>
728
729         * src/SDCCglue.c, src/SDCCast.c:
730           fixed throw of "excess elements" warning for char arrays
731         * support/regression/tests/nullstring.c:
732           disable warning about excess elements in array of chars initializer
733
734 2008-09-07 Maarten Brock <sourceforge.brock AT dse.nl>
735
736         * as/z80/aslist.c (lstsym): changed old K&R to ANSI
737         * src/SDCCicode.c (geniCodeCritical): fixed bug for hc08
738         * src/z80/gen.c (genCritical, genEndCritical): fixed bug 2077267
739         * support/regression/tests/bug2077267.c: new, added
740
741 2008-09-05 Raphael Neider <rneider AT web.de>
742
743         * configure.in, Makefile.common.in: add support for ccache,
744           remove spurious $VERSION output, detect doc-tools even without
745           --enable-doc to facilitate later manual doc-builds, minor cleanup
746         * configure: regenerated
747
748         * doc/Makefile.in: quieten pdflatex, makeindex, and latex2html,
749           avoid races in parallel VPATH builds
750         * doc/clean.mk: remove .lyx files in the builddir for VPATH builds
751         * doc/sdccman.lyx: mention --without-ccache configure option
752
753 2008-09-01 Raphael Neider <rneider AT web.de>
754
755         * src/pic16/gen.c (pic16_derefPtr): handle CPOINTERs as well
756         * (genConstPointerGet): fix reading bitfields from __code space
757         * src/pic16/glue.c (pic16_printIvalBitFields): correctly mask
758           bitfield initializers (fix regression test bug1856409.c)
759         * (pic16_printIvalCharPtr,pic16_printIvalPtr): generalized to support
760           arbitrary sizes
761
762 2008-08-31 Raphael Neider <rneider AT web.de>
763
764         * src/pic16/gen.c (genAssign): removed useless compiler output
765         * (genPointerGet,genPointerSet,genCast),
766           src/pic16/glue.c (pic16_printGPointerType):
767           also handle PPOINTERs just to avoid spurious asserts
768         * (pic16_printIvalType,pic16_printIvalBitFields):
769           generalized to arbitrary type/bitfield sizes, allows compilation of
770           regression test bug-1981238.c
771         * (pic16_printIvalChar): fix regression test structflexarray.c
772         * (pic16_printIvalArray): avoid SIGSEGV on uninitialized strings
773           in initialized structs and fix #1843745
774         * (pic16_printIvalStruct): always output initializers for all fields,
775           even those not explicitly given, fixes zeropad.c regression test
776         * (pic16_printIvalUnion): fix union initializers (bug1426356.c,
777           #2073635, #1567098, and #1485812)
778         * src/pic16/main.c (_pic16_keywords): remove unsupported 'pdata'
779
780 2008-08-31 Borut Razem <borut.razem AT siol.net>
781
782         * support/regression/tests/bug-895992.c,
783           support/regression/tests/onebyte.c:
784           enabled pic16 regression testing since the bugs
785           1511794: pic16: regression test bug-895992.c fails
786           1444425: onebyte.c regression tes fails on pic16
787           are fixed, probably by fixing
788           2048464: PIC16: fix genUminus - addresses not.c regression test
789         * src/SDCCsymt.c, src/SDCCglue.c,
790           support/regression/tests/bug-1981238.c:
791           applied patch 2076664: fix #1981238 + SIGSEGV in SDCCGlue.c
792           thanks to RvS
793
794 2008-08-30 Borut Razem <borut.razem AT siol.net>
795
796         * support/cpp/libcpp/files.c: SDCPP synchronized with GCC CPP
797           release version 4.3.2
798
799 2008-08-24 Raphael Neider <rneider AT web.de>
800
801         * device/lib/pic16/configure, device/lib/pic16/configure.ac:
802           always use the sdcc from the current build tree (ignore $CC from
803           the environment, fixes compile farm builds)
804         * device/lib/Makefile.in: rename .a into .lib for compatibility,
805           remove more build products from install directory
806         * sdcc/src/pic16/main.c (_pic16_linkEdit,_pic16_finaliseOptions)
807         * sdcc/support/scripts/sdcc.nsi: revert to .lib extension for libs
808
809 2008-08-24 Borut Razem <borut.razem AT siol.net>
810
811         * src/SDCC.y: applied patch
812           2050245: Fix # 1963382
813           for bug
814           1963382: Listing File - C file comment is incorrect
815           thanks to RvS
816
817 2008-08-23 Borut Razem <borut.razem AT siol.net>
818
819         * src/pic16/gen.c: applied patch
820           2048464: PIC16: fix genUminus - addresses not.c regression test
821           thanks Mauro Giachero
822
823 2008-08-22 Borut Razem <borut.razem AT siol.net>
824
825         * device/lib/pic16/configure, device/lib/pic16/configure.ac,
826           src/pic16/main.c: allow spaces in gpasm and gplink paths
827
828 2008-08-15 Philipp Klaus Krause <pkk AT spth.de>
829
830         * src/z80/peep.c,
831         * src/z80/peeph-z80.def: minor peephole improvement
832
833 2008-08-15 Raphael Neider <rneider AT web.de>
834
835         * src/z80/gen.c (_vemit2): suppress compiler warning
836
837         * src/pic/*.[ch]: make proper use of header files and avoid
838           ad-hoc extern declarations, mark module-local helpers 'static',
839           removed dead/replaced code, no functional changes
840         * src/pic16/pcode.c: disentangled from pic14 backend
841
842 2008-08-14 Philipp Klaus Krause <pkk AT spth.de>
843
844         * src/z80/gen.c: fixed #2051348
845         * support/regression/tests/bug-2051348.c: regression test for #2051348
846
847 2008-08-10 Raphael Neider <rneider AT web.de>
848
849         * configure.in,
850         * Makefile.common.in: export PACKAGE for $docdir,
851           fixes #1957036, avoid some "underquoted definition" warnings
852         * configure: regenerated
853
854 2008-08-10 Raphael Neider <rneider AT web.de>
855
856         * device/lib/pic16/**: build pic16 library using autotools for
857           improved dependency tracking
858
859         * device/lib/Makefile.in,
860         * src/pic16/main.c,
861         * support/scripts/sdcc.nsi: adapt to changes in filenames (s/.lib/.a/)
862
863 2008-08-10 Raphael Neider <rneider AT web.de>
864
865         * src/pic/pcode.c (ReuseReg): do not overlay the registers used for
866           local variables if --nooverlay is given, workaround for #2023121
867
868 2008-08-08 Raphael Neider <rneider AT web.de>
869
870         * src/pic16/genarith.c (genAddLit): fix structure access (#1888004)
871
872 2008-08-08 Raphael Neider <rneider AT web.de>
873
874         * src/pic/pcoderegs.c,
875         * src/pic/pcode.c,
876         * src/pic16/pcode.c: replace own SAFE_snprintf with common SNPRINTF
877
878 2008-08-07 Borut Razem <borut.razem AT siol.net>
879
880         * src/SDCCval.c, src/SDCCmain.c, src/SDCC.lex,
881           device/lib/pic/Makefile.rules, device/lib/ds390/Makefile.in,
882           device/lib/ds400/Makefile.in, device/lib/hc08/Makefile.in,
883           support/cpp/libcpp/lex.c,  doc/sdccman.lyx:
884           applied modified patch 2038174: Add support for binary constants v2
885           thanks Mauro Giachero
886         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.3
887
888 2008-08-04 Raphael Neider <rneider AT web.de>
889
890         * doc/sdccman.lyx,
891         * src/pic16/device.h,
892         * src/pic16/glue.c,
893         * src/pic16/main.c: enable --optimize-goto by default
894
895         * device/lib/pic16/Makefile.common.in: suppress removed option
896
897         * src/pic16/gen.c,
898         * src/pic16/genutils.c: avoid too long relative branches (#2031890)
899
900 2008-07-30 Borut Razem <borut.razem AT siol.net>
901
902         * src/pic16/device.c, src/pic16/glue.c, src/pic16/pcode.c:
903           applied patch 22032433: PIC16: fix constant strings,
904           thanks Mauro Giachero
905
906 2008-07-29 Borut Razem <borut.razem AT siol.net>
907
908         * src/pic16/gen.c: applied patches:
909           2030306: [1/3] PIC16: fix failing rotate.c tests on 16-bit variables,
910           2030307: [2/3] PIC16: fix failing rotate.c tests for 32-bit var (1),
911           2030310: [3/3] PIC16: fix failing rotate.c tests for 32-bit var (2),
912           thanks Mauro Giachero
913
914 2008-07-13 Philipp Klaus Krause <pkk AT spth.de>
915
916         * src/port.h: Fixed typo in comment
917
918 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
919
920         * src/z80/mappings.i: Implemented RFE #1919415
921         * src/z80/peeph-z80.def: Implemented RFE #1919415, #1861376,
922           #1880202, #1914434, prepared for RFE #1703943
923
924 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
925
926         * src/z80/peeph.def,
927         * src/z80/peeph-z80.def,
928         * src/z80/peeph-gbz80.def: separate Z80 from GBZ80 peepholes in
929           preparation for Z80 peephole improvements
930
931 2008-06-21 Raphael Neider <rneider AT web.de>
932
933         * device/include/pic16/pic18f66j60.h,
934         * device/include/pic16/pic18f66j65.h,
935         * device/include/pic16/pic18f67j60.h,
936         * device/include/pic16/pic18f86j60.h,
937         * device/include/pic16/pic18f86j65.h,
938         * device/include/pic16/pic18f87j60.h,
939         * device/include/pic16/pic18f96j60.h,
940         * device/include/pic16/pic18f96j65.h,
941         * device/include/pic16/pic18f97j60.h,
942         * device/lib/pic16/libdev/pic18f66j60.c,
943         * device/lib/pic16/libdev/pic18f66j65.c,
944         * device/lib/pic16/libdev/pic18f67j60.c,
945         * device/lib/pic16/libdev/pic18f86j60.c,
946         * device/lib/pic16/libdev/pic18f86j65.c,
947         * device/lib/pic16/libdev/pic18f87j60.c,
948         * device/lib/pic16/libdev/pic18f96j60.c,
949         * device/lib/pic16/libdev/pic18f96j65.c,
950         * device/lib/pic16/libdev/pic18f97j60.c,
951         * device/include/pic16/pic16devices.txt,
952         * device/include/pic16/pic18fregs.h,
953         * device/lib/pic16/pics.all: added new devices
954
955         * device/include/pic16/adc.h,
956         * device/lib/pic16/libio/adc/adcbusy.c,
957         * device/lib/pic16/libio/adc/adcopen.c,
958         * device/lib/pic16/libio/adc/adcsetch.c,
959         * device/lib/pic16/libio/i2c/i2copen.c,
960         * device/lib/pic16/libio/usart/uopen.c: adapted to new devices,
961           all changes from a patch by Anton Strobl
962
963 2008-06-12 Borut Razem <borut.razem AT siol.net>
964
965         * sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/bp.cc,
966           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
967           sim/ucsim/z80.src/z80cl.h, sim/ucsim/z80.src/z80.cc,
968           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
969           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
970           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/uc390.cc,
971           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/uc390cl.h,
972           sim/ucsim/avr.src/avrcl.h, sim/ucsim/avr.src/avr.cc:
973           fixed bug 1990586: s51 simulator, uc::disass() unimplemented
974           by applying the modified patch from Risto Huotari
975
976 2008-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
977
978         * .version,
979         * doc/sdccman.lyx: bumped sdcc version to 2.8.2
980         * src/ds390/gen.c (aopPutUsesAcc, genAddrOf): fixed bug 1015185
981         * src/mcs51/gen.c (genNearPointerGet, genNearPointerSet): fixed bug 1938300
982         * support/regression/tests/bug1938300.c: new, added
983
984 2008-06-03 Maarten Brock <sourceforge.brock AT dse.nl>
985
986         * device/include/asm/ds390/features.h,
987         * device/include/asm/mcs51/features.h,
988         * device/include/mcs51/regc515c.h: inserted LGPL notice
989
990 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
991
992         * device/lib/gbz80/div.s,
993         * device/lib/z80/div.s: fixed bug 1904314 by applying a modified part of
994           patch 1597883, Thanks Robert Ramey
995
996 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
997
998         * src/SDCCast.c (createIvalType, createIvalStruct, createIvalArray,
999           createIvalCharPtr, createIvalPtr, createIval),
1000         * src/SDCCval.h
1001         * src/SDCCval.c (convertIListToConstList, list2expr): handle incomplete
1002           initializers for local auto variables
1003         * support/regression/tests/zeropad.c: added testcase for auto initializers
1004
1005 2008-05-26 Raphael Neider <rneider AT web.de>
1006
1007         * device/lib/pic16/startup/crt0.c,
1008         * device/lib/pic16/startup/crt0i.c,
1009         * device/lib/pic16/startup/crt0iz.c: clean up, make use of access bank
1010           explicit, fixed curr_entry loop for >= 256 initializer records,
1011           removed debug code (write to 0xf7e)
1012
1013 2008-05-25 Raphael Neider <rneider AT web.de>
1014
1015         * device/include/pic/pic16f627a.h,
1016         * device/include/pic/pic16f628a.h,
1017         * device/include/pic/pic16f648a.h: added missing ports
1018
1019 2008-05-20 Maarten Brock <sourceforge.brock AT dse.nl>
1020
1021         * device/include/float.h: added __INFINITY
1022         * device/lib/_fsadd.c: handle overflows
1023         * device/lib/_fsmul.c,
1024         * device/lib/_fsdiv.c: use __INFINITY
1025         * device/lib/_fseq.c,
1026         * device/lib/_fsneq.c: handle -0.0
1027         * sim/ucsim/s51.src/uc89c51r.cc,
1028         * sim/ucsim/s51.src/uc89c51rcl.h: fixed bug 1385430
1029         * sim/ucsim/sim.src/hwcl.h: */* confuses VC
1030         * src/mcs51/gen.c (genSend): fixed bug with --xstack
1031         * support/regression/ports/mcs51-xstack-auto/spec.mk: print floats
1032         * support/regression/tests/snprintf.c: test bug with --xstack
1033
1034 2008-05-19  Philipp Klaus Krause <pkk AT spth.de>
1035
1036         * src/SDCCpeeph.c (callFuncByName):
1037           Support nested parenthesis in peephole function arguments (#1967300)
1038
1039 2008-05-19 Raphael Neider <rneider AT web.de>
1040
1041         * src/pic16/gen.c (pic16_emitpLabel,pic16_emitpLabelFORCE):
1042           fixed duplicate labels (#1911325)
1043
1044 2008-05-19 Raphael Neider <rneider AT web.de>
1045
1046         * src/regression/empty.c: suppress warning
1047         * src/regression/pointer1.c: enabled index_by_pointer()
1048         * src/regression/inline.c: now works for pic16 as well
1049
1050         * src/pic16/device.c: include dbuf declarations
1051         * src/pic16/device.h: removed obsolete prototypes
1052
1053         * src/pic16/gen.c, src/pic16/gen.h: moved generic pointer tags
1054         * src/pic16/glue.c: made purely local functions static,
1055           (pic16_printGPointerType, pic16_printIvalCharPtr,
1056           pic16_printIvalFuncPtr, pic16_printIvalPtr): fixed initialized
1057           generic pointers' tags (#1961866)
1058
1059         * src/pic16/pcode.c (assignValnums): optimize literal assignments
1060
1061 2008-05-19 Borut Razem <borut.razem AT siol.net>
1062
1063         * support/scripts/sdcc.nsi: remove uninstall.exe after uninstallation,
1064           fixed typo, uninstall include/pic16/pic16devices.txt
1065
1066 2008-05-18 Borut Razem <borut.razem AT siol.net>
1067
1068         * support/Utils/dbuf_string.[ch]: added dbuf_chomp(),
1069           the buffer is null terminated
1070         * src/device/pic16.c:
1071           applied modified patch 1965676: Patch for Win32 16 bit PIC
1072         * sdcc_vc_in.h: defined YY_NO_UNISTD_H
1073
1074 2008-05-16 Maarten Brock <sourceforge.brock AT dse.nl>
1075
1076         * src/SDCC.lex (check_type),
1077         * src/SDCC.y (type_specifier2 TYPE_NAME): fixed bug 1925942
1078         * as/hc08/clean.mk,
1079         * as/mcs51/clean.mk,
1080         * as/z80/clean.mk: also clean *.dep
1081         * device/lib/pic16/libsdcc/stack/Makefile,
1082         * sim/ucsim/libtool: removed as they are rebuild by configure
1083         * src/clean.mk: removed izt, so Makefile is not deleted for distclean
1084
1085 2008-05-13 Maarten Brock <sourceforge.brock AT dse.nl>
1086
1087         * src/SDCCast.c (fixupInline, createFunction): save currBlockno in
1088           fixupInline instead of createFunction to fix bug 1864577
1089           (inlineFindMaxBlockno): removed, use global blockNo
1090         * src/SDCCglobl.h: added blockNo
1091         * src/z80/peep.c,
1092         * src/z80/peep.h: modified properties
1093         * support/regression/tests/bug1864577.c: new, added
1094
1095 2008-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
1096
1097         * as/mcs51/asdata.c,
1098         * as/mcs51/asm.h: added org_cnt
1099         * as/mcs51/asmain.c (main, asmbl): fixed bug 1957716, changed old K&R to ANSI
1100         * as/mcs51/asout.c: changed old K&R to ANSI
1101         * as/mcs51/Makefile.in: use common identifiers
1102         * as/hc08/asdata.c,
1103         * as/hc08/asexpr.c,
1104         * as/hc08/asm.h,
1105         * as/hc08/asmain.c,
1106         * as/hc08/asout.c,
1107         * as/hc08/Makefile.bcc,
1108         * as/hc08/Makefile.in: synchronized with as/mcs51/*
1109         * sdcc_vc_in.h: added define __func__
1110         * src/SDCCast.c (expandInlineFuncs): applied patch 1957148 to fix bug 1717305,
1111           Thanks Ruud van Silfhout
1112         * support/regression/tests/bug1717305.c: new, added
1113
1114 2008-05-05 Borut Razem <borut.razem AT siol.net>
1115
1116         * support/regression/Makefile.in,
1117           support/regression/ports/ds390/spec.mk,
1118           support/regression/ports/hc08/spec.mk,
1119           support/regression/ports/mcs51-common/spec.mk,
1120           support/regression/ports/pic14/spec.mk,
1121           support/regression/ports/pic16/spec.mk,
1122           support/regression/ports/ucz80/spec.mk,
1123           support/regression/ports/z80/spec.mk:
1124           added INC_DIR and LIBDIR paths
1125         * src/ds390/gen.c: removed duplicated selicolon
1126
1127 2008-05-04 Borut Razem <borut.razem AT siol.net>
1128
1129         * support/regression/Makefile.in,
1130           support/regression/fwk/lib/testfwk.c,
1131           support/regression/ports/ds390/spec.mk,
1132           support/regression/ports/hc08/spec.mk,
1133           support/regression/ports/mcs51-common/spec.mk,
1134           support/regression/ports/mcs51-large/spec.mk,
1135           support/regression/ports/mcs51-medium/spec.mk,
1136           support/regression/ports/mcs51-small/spec.mk,
1137           support/regression/ports/mcs51-stack-auto/spec.mk,
1138           support/regression/ports/mcs51-xstack-auto/spec.mk,
1139           support/regression/ports/pic14/spec.mk,
1140           support/regression/ports/pic16/spec.mk,
1141           support/regression/ports/ucz80/spec.mk:
1142           added possibility to define the sdcc binary directory SDCC_BIN_PATH
1143           used to run regeression tests
1144
1145 2008-05-01 Raphael Neider <rneider AT web.de>
1146
1147         * doc/sdccman.lyx, support/scripts/inc2h-pic16.pl: updated list of
1148           supported devices and instructions to add new ones
1149
1150 2008-05-01 Raphael Neider <rneider AT web.de>
1151
1152         * device/include/pic16/adc.h,
1153           device/lib/pic16/libio/adc/adcbusy.c,
1154           device/lib/pic16/libio/adc/adcopen.c,
1155           device/lib/pic16/libio/adc/adcsetch.c: support old 18f242 and new
1156           18f2455 style ADC devices, based on patch #1776197
1157         * device/lib/pic16/libio/adc/adcclose.c,
1158           device/lib/pic16/libio/adc/adcconv.c,
1159           device/lib/pic16/libio/adc/adcread.c: cosmetic changes
1160         * device/include/pic16/{pic18f2331.h,pic18f2431.h},
1161           device/lib/pic16/libdev/{pic18f2331.c,pic18f2431.c}: reuse 18f4331
1162         * device/include/pic16/pic18f4431.h,
1163           device/lib/pic16/libdev/pic18f4431.c: remove outdated comments
1164         * device/lib/pic16/libio/adc.ignore: forbid unhandled devices
1165
1166 2008-05-01 Raphael Neider <rneider AT web.de>
1167
1168         * src/pic16/device.h: removed unused field PIC16_device.sfrRange,
1169           moved xinst flag into pic16_options_t
1170         * src/pic16/device.c (default_device, pic16_list_devices,
1171           pic16_find_device): removed references to sfrrange
1172         * src/pic16/gen.c (genFunction),
1173           src/pic16/glue.c (pic16initialComments),
1174           src/pic16/main.c (pic16_optionsTable),
1175           src/pic16/ralloc.c (newReg, pic16_writeUsedRegs): updated references
1176           to xinst
1177         * device/include/pic16/pic16devices.txt: removed sfrrange lines
1178
1179 2008-04-29 Raphael Neider <rneider AT web.de>
1180
1181         * src/pic16/devices.inc,
1182           device/include/pic16/pic16devices.txt: replaced compiled-in list
1183           of devices with a variant parsed at runtime
1184         * src/pic16/device.c: added support for parsing pic16devices.txt,
1185           clean up
1186         * src/pic16/device.h: removed (now) unused fields from PIC_device
1187         * src/pic16/main.c: removed #pragma maxram,
1188           (_pic16_initPaths): removed bogus generation of search paths,
1189           setup the port proper only after the search paths (for
1190           pic16devices.txt) are set up,
1191           (_pic16_finaliseOptions): moved processor dependant code here
1192           from _pic16_initPaths(), clean up
1193         * src/pic16/ralloc.c (pic16_init_stack),
1194         * src/pic16/ralloc.h,
1195         * src/pic16/pcode.c: clean up
1196         * device/include/Makefile.in,
1197           support/scripts/sdcc.nsi: also install/package pic16devices.txt
1198         * support/scripts/inc2h-pic16.pl: updated instructions
1199
1200 2008-04-29 Raphael Neider <rneider AT web.de>
1201
1202         * device/include/pic16/{pic18f2480.h, pic18f2580.h, pic18f4423.h,
1203           pic18f4480.h, pic18f4523.h, pic18f4580.h, pic18f6585.h, pic18f8585.h},
1204           device/lib/pic16/libdev/{pic18f2480.c, pic18f2580.c, pic18f4423.c,
1205           pic18f4480.c, pic18f4523.c, pic18f4580.c, pic18f6585.c, pic18f8585.c}:
1206           added missing family members and 18f2480/2580/4480/4580 family
1207         * device/include/pic16/{pic18f2423.h, pic18f2523.h}: use 18f4523.h
1208         * device/include/pic16/pic18f2525.h: use 18f4620.h
1209         * device/include/pic16/pic18f6680.h: use 18f8680.h
1210         * device/include/pic16/pic18fregs.h,
1211           device/lib/pic16/pics.all,
1212           src/pic16/devices.inc: add new devices
1213         * device/lib/pic16/libdev/{pic18f2423.c, pic18f2523.c}: use 18f4523.c
1214         * device/lib/pic16/libdev/pic18f2525.c: use 18f4620.c
1215         * device/lib/pic16/libdev/pic18f6680.c: uso 18f8680.c
1216         * device/lib/pic16/libio/{adc.ignore, i2c.ignore, usart.ignore}:
1217           prevent attempting to build the libio for some new devices
1218
1219 2008-04-29 Raphael Neider <rneider AT web.de>
1220
1221         * debugger/mcs51/Makefile.in: fixed paths to sources
1222
1223 2008-04-25 Borut Razem <borut.razem AT siol.net>
1224
1225         * as/link/lklibr.c: moved from as/link/z80/lklibr.c
1226         * as/link/hc08/lklibr.c, as/link/mcs51/lklibr.c: deleted
1227         * as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
1228         * as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
1229           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
1230           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
1231           as/link/z80/linkz80.dsp: lklibr.c moved
1232         * doc/INSTALL.txt: binary archives in bz2 format
1233         * support/cpp/auto-host_vc_in.h: CPP2 replaced with CPP
1234
1235 2008-04-23 Maarten Brock <sourceforge.brock AT dse.nl>
1236
1237         * src/SDCCglue.c (printIvalType, printIvalBitFields): fixed bug 1856409
1238         * support/regression/tests/bug1856409.c: new, added
1239
1240 2008-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
1241
1242         * src/z80/peep.c,
1243         * src/mcs51/peep.c: Use werror for error messages.
1244         * src/SDCCicode.c (geniCodeConditional),
1245         * src/SDCCsymt.c (structElemType): fixed bug 1839321
1246         * src/z80/Makefile.bcc,
1247         * src/z80/z80.dsp: added src/z80/peep.c/h
1248         * support/regression/tests/bug1839321.c: new, added
1249
1250 2008-04-20 Raphael Neider <rneider AT web.de>
1251
1252         * device/include/pic16/pic18f2455.h: added bitfields for port C
1253
1254 2008-04-20 Philipp Klaus Krause <pkk AT spth.de>
1255
1256         * src/z80/peep.c: Use werror for error messages.
1257
1258 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
1259
1260         * src/z80/peep.h (declaration of notUsed()),
1261         * src/z80/main.c (enabled notUsed() for z80 port, documented z80_port
1262           struct),
1263         * src/z80/z80.h (added dependency on peep.h),
1264         * src/z80/peep.c (definition of notUsed()): Implemented RFE #1880202
1265           for Z80.
1266
1267 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
1268
1269         * src/SDCCpeeph.c (added support for notUsed()),
1270         * src/mcs51/main.c (added dependency on peep.h, documented mcs51_port
1271           struct),
1272         * src/port.h (removed dependency on mcs51/peep.h, added declaration
1273           for notUsed()): Implemented generic (that is not port-specific) part
1274           of RFE #1880202.
1275
1276 2008-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
1277
1278         * as/link/mcs51/lkmem.c (summary2): fixed bug 1796077
1279         * device/lib/libsdcc.lib,
1280         * device/lib/Makefile.in,
1281         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1282         * device/lib/calloc.c: renamed to _calloc.c
1283         * device/lib/free.c: renamed to _free.c
1284         * device/lib/malloc.c: renamed to _malloc.c
1285         * device/lib/realloc.c: renamed to _realloc.c
1286         * src/ds390/gen.c (aopGet, aopPut, genPlusBits, genDataPointerSet,
1287           genNearPointerSet, genPagedPointerSet): synchronized with mcs51/gen.c
1288         * src/ds390/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq, ifxForOp,
1289           genAnd, genOr, genXor, genIfx, gen390Code): fixed bug 1509084
1290         * src/mcs51/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq,
1291           ifxForOp, genAnd, genOr, genXor, genNearPointerGet,
1292           genPagedPointerGet, genFarPointerGet, genCodePointerGet,
1293           genGenPointerGet, genIfx, gen51Code): fixed bug 1509084
1294         * src/ds390/gen.c,
1295         * src/mcs51/gen.c: throughout cosmetic changes for syncing both
1296         * src/SDCCsymt.h: updated IS_OP_RUONLY, IS_OP_ACCUSE
1297         * support/regression/tests/bug1509084.c: new, added
1298
1299 2008-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
1300
1301         * device/include/mcs51/cc2510fx.h: added _XPAGE
1302         * device/include/mcs51/compiler.h: cosmetic changes
1303
1304 2008-03-31 Maarten Brock <sourceforge.brock AT dse.nl>
1305
1306         * sdcc.dsw: adapted for moved cpp2, added dependency for as_z80 on
1307           config
1308
1309 2008-03-31 Borut Razem <borut.razem AT siol.net>
1310
1311         * support/cpp2 renamed to support/cpp
1312         * support/cpp2/libiberty/filenames.h, support/cpp2/libiberty/hex.c,
1313           support/cpp2/libiberty/splay-tree.c,
1314           support/cpp2/libiberty/splay-tree.h, support/cpp2/libcpp/macro.c,
1315           support/cpp2/libcpp/directives.c,
1316           support/cpp2/libcpp/include/cpplib.h,
1317           support/cpp2/libcpp/include/symtab.h,
1318           support/cpp2/libcpp/include/line-map.h,
1319           support/cpp2/libcpp/line-map.c, support/cpp2/libcpp/files.c,
1320           support/cpp2/libcpp/init.c, support/cpp2/libcpp/traditional.c,
1321           support/cpp2/libcpp/expr.c, support/cpp2/libcpp/internal.h,
1322           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/system.h,
1323           support/cpp2/libcpp/charset.c: SDCPP synchronized with GCC CPP
1324           release version 4.3.0
1325         * configure.in, configure, Makefile.in, Makefile.bcc:
1326           adapted for moved cpp2
1327
1328 2008-03-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1329
1330         * device/include/hc08/mc68hc908jkjl.h: committed fix for bug #1929739,
1331           thanks Alejandro Pustowka <alejo_pustowka AT yahoo.com.mx>
1332
1333 2008-03-30 Maarten Brock <sourceforge.brock AT dse.nl>
1334
1335         * src/SDCCloop.c (loopInvariants): applied fix for bug 1717943, thanks
1336           Robert Larice
1337         * support/regression/tests/bug1717943.c: new, added
1338
1339 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1340
1341         * src/z80/gen.c (assignResultValue): Reverted reversal of order of
1342           bytewise return value assignments introduced in last commit.
1343
1344 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1345
1346         * src/z80/gen.c (emitDebug, assignResultValue, genPlus, genMinus,
1347           genMult, genJumpTab):
1348           Use 16-bit instructions for addition in some additional cases,
1349           implemented RFEs #1914251, #1914245, #1922090, #1921382, #1918323.
1350
1351 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1352
1353         * src/z80/ralloc.c (serialRegAssign, allocReg, tryAllocatingRegPair):
1354           Implemented RFE #1921450, changed some debug messages.
1355
1356 2008-03-30 Borut Razem <borut.razem AT siol.net>
1357
1358         * Small Device C Compiler 2.8.0 released
1359         * .version, doc/sdccman.lyx: changed sdcc version to 2.8.1
1360         * support/scripts/sdcc.nsi: added finish page; this version
1361           was used for 2.8.0 release
1362         * doc/knownbugs.html: removed; magically generated by the build
1363           process using gen_known_bugs.pl from now on
1364
1365 2008-03-23 Borut Razem <borut.razem AT siol.net>
1366
1367         * src/pic/gen.h: Q&D solution for the bug, found by Jim Paris
1368           and reverted it, since it was already fixed by Raphael ;-)
1369         * doc/knownbugs.html: updated for RC2
1370
1371 2008-03-22 Raphael Neider <rneider AT web.de>
1372
1373         * src/SDCCicode.c (getPtrType): avoid unnecessary extra assignments
1374           for PIC16 targets
1375
1376 2008-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
1377
1378         * src/mcs51/gen.c (adjustArithmeticResult): fixed bug 1839299
1379         * support/regression/tests/bug1839277.c: added related testBug1839299
1380
1381 2008-03-21 Maarten Brock <sourceforge.brock AT dse.nl>
1382
1383         * src/ds390/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign),
1384         * src/mcs51/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign):
1385           fixed bug 1839277
1386         * src/mcs51/gen.c: throughout only output hex constants
1387         * src/SDCCicode.c (getPtrType, geniCodeCast): fixed code size regression
1388         * support/regression/tests/bug1839277.c: new, added
1389
1390 2008-03-21 Philipp Klaus Krause <pkk AT spth.de>
1391
1392         * src/z80/ralloc.c (callFuncByName): Used // instead of /**/ to fix
1393           compilation warning about nested comments.
1394
1395 2008-03-20 Maarten Brock <sourceforge.brock AT dse.nl>
1396
1397         * src/SDCCsymt.c (comparePtrType): fixed bug 1921073
1398         * support/regression/tests/bug1921073.c: new, added
1399
1400 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
1401
1402         * src/z80/SDCCpeeph.c.c (callFuncByName):
1403           Commented function parameters.
1404
1405 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
1406
1407         * src/z80/ralloc.c (packRegsForAccUse2):
1408           disabled a broken accumulator packing optimization (fixed #1292721).
1409         * support/regression/tests/bug-1292721: Regression test for #1292721.
1410
1411 2008-03-16 Raphael Neider <rneider AT web.de>
1412
1413         * src/pic/gen.c (SetIrp,genNearPointerGet,genNearPointerSet):
1414           fixed code bloat regression using a variant of patch #1915618
1415
1416 2008-03-16 Borut Razem <borut.razem AT siol.net>
1417
1418         * support/scripts/sdcc.nsi: added section debugging macros, added SDCC
1419           icon, changed startup menu for release distribution, code cleaning,
1420           create url files instead links in startup menu
1421
1422 2008-03-16 Maarten Brock <sourceforge.brock AT dse.nl>
1423
1424         * src/SDCCcse.c (algebraicOpts): fixed bug 1579949
1425         * support/regression/tests/bug1579949.c: new, added
1426
1427 2008-03-14 Paul Stoffregen <paul AT pjrc.com>
1428
1429         * device/lib/printf_fast.c: fixed bug 1255403
1430
1431 2008-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
1432
1433         * doc/sdccman.lyx: enhanced paragraph about bankswitching for mcs51
1434         * src/cdbFile.c (cdbWriteBasicSymbol): fixed bug 1909409 for locals
1435
1436 2008-03-14 Borut Razem <borut.razem AT siol.net>
1437
1438         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated link-xx and aslink
1439           command line options
1440         * as/link/hc08/lkmain.c: converted tabs to spaces so that the usage
1441           is correctly displayed
1442         * as/link/z80/lkmain.c: usage line commented out
1443
1444 2008-03-13 Borut Razem <borut.razem AT siol.net>
1445
1446         * doc/sdccman.lyx: corrected to be able to convert to PDF,
1447           updated the list pf supported pic14 devices
1448
1449 2008-03-12 Maarten Brock <sourceforge.brock AT dse.nl>
1450
1451         * doc/sdccman.lyx: added paragraph about bankswitching for mcs51
1452
1453 2008-03-12 Borut Razem <borut.razem AT siol.net>
1454
1455         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated command line options,
1456           fixed documentation request #1718191
1457         * as/hc80/asmain.c, as/mcs51/asmain.c: added option -c to usage
1458         * doc/sdccman.lyx: added description of --no-std-crt0 gbz80
1459           command line option
1460
1461 2008-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
1462
1463         * src/SDCCast.c (isConformingBody): fixed bug 1505811, thanks Robert Larice
1464         * support/regression/tests/bug1505811.c: new, added
1465
1466 2008-03-09 Raphael Neider <rneider AT web.de>
1467
1468         * device/include/pic16/pic18f2620.h,
1469         * device/include/pic16/pic18f4620.h,
1470         * device/lib/pic16/libdev/pic18f2620.c,
1471         * device/lib/pic16/libdev/pic18f4525.c,
1472         * device/lib/pic16/libdev/pic18f4620.c: merged 18f2525/2620/4525/4620
1473           family to consistently use pic18f4620.[ch], fixes #1832562
1474
1475 2008-03-09 Borut Razem <borut.razem AT siol.net>
1476
1477         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
1478           changed sdcc version to 2.8.0
1479         * knownbugs.html: regenerated
1480         * support/scripts/gen_known_bugs.pl: added number of open bugs
1481
1482 2008-03-09 Raphael Neider <rneider AT web.de>
1483
1484         * src/pic16/gen.c (pic16_mov2w_volatile): NEW, read volatile operands,
1485           (genOr): read volatile operand even if the result is known,
1486           closes #1511838
1487           (genOr,genXor): removed unused legacy code,
1488           (genDummyRead): use pic16_mov2w_volatile()
1489
1490 2008-03-08 Borut Razem <borut.razem AT siol.net>
1491
1492         * src/SDCCglue.c: fixed bug #1864582: multiple definition of char
1493           cons w. --model-large
1494         * support/regression/staticinit.c: added regression test for bug
1495           #1864582
1496
1497 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1498
1499         * src/ds390/gen.c (pushSide, genPcall),
1500         * src/hc08/gen.c (pushSide, genPcall): synchronized with mcs51
1501         * src/mcs51/gen.c: cosmetic changes
1502         * support/regression/fwk/include/testfwk.h: added macro reentrant
1503         * support/regression/tests/bug1908493.c: new, added
1504
1505 2008-03-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1506
1507         * src/SDCCdebug.c:, as/link/lkaomf51.c: Fixed bug 1909409: Pdata in OMF file
1508
1509 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1510
1511         * src/mcs51/gen.c (pushSide, genPcall): fixed bug 1908493
1512         * src/SDCCmain.c (preProcess): removed -DSDCC_PARMS_IN_BANK1 because it is
1513           already set in ds390/main.c and mcs51/main.c
1514
1515 2008-03-07 Raphael Neider <rneider AT web.de>
1516
1517         * src/regression/init0.c: new test for initialized arrays of function
1518           pointers
1519         * src/regression/Makefile: made a bit more flexible, added init0.c
1520         * src/pic/glue.c (emitIvals): hacky fix for initializing from function
1521           pointers, closes #1427663
1522
1523 2008-03-05 Borut Razem <borut.razem AT siol.net>
1524
1525         * dos/sdccman.lyx: docummented predefined macros SDCC_REVISION,
1526           SDCC_PARMS_IN_BANK1, SDCC_FLOAT_REENT and SDCC_INT_LONG_REENT
1527
1528 2008-03-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1529
1530         * support/librarian/sdcclib.c:Added feature request 1908061:
1531           Synchronise sdcclib commands with ar.
1532
1533 2008-03-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1534
1535         * src/SDCCmain.c: added predefined macros SDCC_REVISION (RFE #1907229),
1536           and (depending on corresponding compiler option) SDCC_PARMS_IN_BANK1,
1537           SDCC_FLOAT_REENT, SDCC_INT_LONG_REENT
1538         * device/include/mcs51/compiler.h: removed umlauts, added double
1539           underscore
1540
1541 2008-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
1542
1543         * src/SDCCptropt.c (ptrPseudoSymConvert): fixed bug 1536762
1544         * support/regression/tests/bug1536762.c: new, added
1545         * src/SDCCutil.c,
1546         * src/SDCCutil.h: added getBuildDate()
1547         * src/SDCCmain.c (printVersionInfo),
1548         * src/SDCCglue.c (initialComments): use getBuildDate() instead of
1549           __DATE__
1550         * src/*/ralloc.c: removed IS_OP_RUONLY macro
1551         * src/ds390/ralloc.c (packRegisters),
1552         * src/mcs51/ralloc.c (packRegisters),
1553         * src/z80/ralloc.c (packRegisters): applied fix for bug 1618050, thanks
1554           Robert Larice
1555         * support/regression/tests/bug1618050.c: new, added
1556         * src/SDCCsymt.h: fixed typo in DECLSPEC2TXT
1557         * support/regression/fwk/include/testfwk.h,
1558         * support/regression/tests/bug1838000.c: moved _AUTOMEM and _STATMEM to
1559           testfwk.h
1560
1561 2008-03-04 Raphael Neider <rneider AT web.de>
1562
1563         * src/pic/gen.c: removed unused prototypes, prevent internal errors
1564           on accessing OP_SYM_TYPE(op)
1565         * src/pic/gen.h: removed unused prototype of genMinusDec()
1566         * src/pic/genarith.c (genMinus): cosmetic changes, rewritten to
1567           fix #1876953 (invalid subtraction code), removed unused code
1568
1569 2008-03-03 Raphael Neider <rneider AT web.de>
1570
1571         * src/pic/gen.c,
1572         * src/pic/gen.h,
1573         * src/pic/genarith.c,
1574         * src/pic/ralloc.c,
1575         * src/pic/ralloc.h: removed AOP_R0, AOP_R1, AOP_DPTR, AOP_DPTR2,
1576           AOP_ACC, and *_IDX and adjusted code, removed unused legacy code
1577
1578 2008-03-03 Raphael Neider <rneider AT web.de>
1579
1580         * src/pic/device.c (find_device): search user-specified paths first
1581           for pic14devices.txt, fixes #1900827
1582
1583 2008-03-02 Borut Razem <borut.razem AT siol.net>
1584
1585         * support/scripts/sdcc.nsi: fixed bug in IsNT, LogicLib-isation of
1586           AddToPath and RemoveFromPath
1587
1588 2008-03-01 Borut Razem <borut.razem AT siol.net>
1589
1590         * support/scripts/sdcc.nsi: reverted MULTIUSER page since it didn't
1591           work correctly, added debugging support if -DSDCC.DEBUG command line
1592           option is defined
1593
1594 2008-02-28 Borut Razem <borut.razem AT siol.net>
1595
1596         * doc/sdccman.lyx: cosmetic changes
1597
1598 2008-02-28 Maarten Brock <sourceforge.brock AT dse.nl>
1599
1600         * src/mcs51/ralloc.c (fillGaps): fixed bug 1839671
1601         * doc/sdccman.lyx: fixed unmeant removal of spaces
1602
1603 2008-02-27 Borut Razem <borut.razem AT siol.net>
1604
1605         * support/scripts/sdcc.nsi: corrected installation directory for
1606           current user installation mode
1607         * doc/README.txt: added Philipp Klaus Krause to the developers list
1608
1609 2008-02-27 Maarten Brock <sourceforge.brock AT dse.nl>
1610
1611         * src/mcs51/gen.c (genUnpackBits): don't generate ifxJump, instead
1612           return ifx condition
1613           (genNearPointerGet, genPagedPointerGet, genFarPointerGet,
1614           genCodePointerGet, genGenPointerGet): cleanup aop before generating
1615             ifxJump to fix bug 1838000
1616         * src/SDCCsymt.c (aggregateToPointer): fix problem for xstack
1617         * support/regression/tests/bug1838000.c: new, added
1618         * device/include/mcs51/cc1110.h: new, added, thanks to Pravin Angolkar
1619
1620 2008-02-26 Borut Razem <borut.razem AT siol.net>
1621
1622         * src/SDCCast.c, doc/sdccman.lyx: fixed RFE #1901171: inerger promotion
1623           of casted varargs
1624         * support/scripts/sdcc.nsi: added MULTIUSER page,
1625           NSIS upgraded to version 2.35
1626
1627 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1628
1629         * src/mcs51/ralloc.c (isSpiltOnStack): fixed bug 1565152
1630         * support/regression/tests/bug1565152.c: new, added
1631
1632 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1633
1634         * src/mcs51/gen.c (genPagedPointerSet): fixed bug 1670148
1635         * support/regression/ports/mcs51-xstack-auto/spec.mk: added expf.c
1636         * support/regression/tests/bug1670148.c: new, added
1637
1638 2008-02-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1639
1640         * device/include/mcs51/at89c51ed2.h: fixed bug 1901469.
1641
1642 2008-02-24 Borut Razem <borut.razem AT siol.net>
1643
1644         * src/SDCCast.c, src/SDCCast.h: fixed bug #1874922: explicit typecast
1645           is ineffective for unsigned char parameter
1646
1647 2008-02-24 Maarten Brock <sourceforge.brock AT dse.nl>
1648
1649         * src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
1650         * src/SDCCglue.c (printIvalBitFields): fixed bug 1806631
1651         * support/regression/tests/bitopcse.c: removed hc08 exception, see testfwk.h
1652         * support/Util/MySystem.c (my_system): output errorcode when verbose
1653
1654 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
1655
1656         * src/z80/gen.c (genMult): Rewrote 8-bit multiplication by constant,
1657           implements #1898231
1658
1659 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
1660
1661         * device/lib/z80/mul.s: Rewrote __muluchar_rrx_s, to improve 8-bit mult.,
1662           implements #1896290
1663
1664 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
1665
1666         * src/SDCCast.c (createIvalStruct): fixed bug 1466761
1667
1668 2008-02-21 Borut Razem <borut.razem AT siol.net>
1669
1670         * support/regression/Makefile.in,
1671           support/regression/ports/ds390/spec.mk,
1672           support/regression/ports/hc08/spec.mk,
1673           support/regression/ports/mcs51-common/spec.mk,
1674           support/regression/ports/pic14/spec.mk,
1675           support/regression/ports/pic16/spec.mk,
1676           support/regression/ports/ucz80/spec.mk,
1677           support/regression/ports/xa51/spec.mk:
1678           added CFLAGS when compiling timeout
1679
1680 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1681
1682         * support/regression/tests/bugs-1596270-1736867.c: Regression test for
1683           #1596270, #1736867
1684
1685 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
1686
1687         * src/SDCClrange.c (findPrevUse): fixed bug 1888147
1688         * support/regression/tests/bug1888147.c: new, added
1689
1690 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1691
1692         * src/z80/gen.c: fixed bugs #1596270, #1736867
1693
1694 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1695
1696         * src/z80/gen.c: fixed bug in register pair loading when swapping register
1697           contents, mostly fixes #1596270
1698
1699 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1700
1701         * src/z80/peeph.def,
1702         * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific
1703           peepholes, fixes #1806565
1704
1705 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
1706
1707         * src/SDCCpeeph.c (operandBaseName): added check for @Ri
1708         * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
1709           fixes bug 1739475, thanks Robert Larice
1710           (rule 271): new, added
1711
1712 2008-02-18 Borut Razem <borut.razem AT siol.net>
1713
1714         * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
1715
1716 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
1717
1718         * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
1719
1720 2008-02-17 Raphael Neider <rneider AT web.de>
1721
1722         * src/pic16/genarith.c,
1723         * src/pic16/gen.c,
1724         * src/pic16/gen.h,
1725         * src/pic16/genutils.c: removed unused legacy code,
1726           removed unused fields from struct asmop and struct _G
1727
1728 2008-02-17 Raphael Neider <rneider AT web.de>
1729
1730         * src/pic16/gen.c (AccRsh): cosmetic changes,
1731           (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
1732           genRightShiftLiteral): fixed to work with SFRs as result by
1733           assigning only once to result,
1734           removed a lot of unused/excluded code fragments
1735
1736 2008-02-17 Raphael Neider <rneider AT web.de>
1737
1738         * device/include/pic/pic16f88.h,
1739         * device/include/pic/pic16f886.h,
1740         * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
1741
1742 2008-02-17 Borut Razem <borut.razem AT siol.net>
1743
1744         * src/z80/peeph.def: applied patch
1745           #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
1746         * src/z80/gen.c, src/z80/peeph.def: applied patch
1747           #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
1748         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1749           sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
1750           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
1751           sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
1752           enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
1753
1754 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
1755
1756         * as/link/mcs51/aslink.dsp: removed SDK define
1757         * as/link/z80/clean.mk: brought in sync with other ports
1758         * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
1759         * as/hc08/Makefile.bcc,
1760         * as/mcs51/Makefile.bcc,
1761         * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
1762         * src/z80/main.c (_setValues): use the now capitalized -Z,
1763           (z80_port, gbz80_port): generate debug information when asked
1764
1765 2008-02-16 Borut Razem <borut.razem AT siol.net>
1766
1767         * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
1768           as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
1769           as/z80/Makefile.in. as/z80/Makefile.bcc:
1770           applied patch #1893393: patch for as-z80 and link-z80 to generate
1771           cdb, thanks to Armin Diehl
1772         * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
1773           as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
1774           asnoice.c moved to as/asxxsrc/asnoice.c
1775         * src/z80/peeph-gbz80.def: applied patch
1776           #1880235: Z80 return peephole, thanks to Philipp Krause
1777
1778 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
1779
1780         * .version,
1781         * doc/sdccman.lyx: bumped version to 2.7.5
1782         * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
1783
1784 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
1785
1786         * device/include/pic16/stdlib.h,
1787         * device/lib/pic16/libc/stdlib/ltoa.c,
1788         * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
1789
1790 2008-02-13 Borut Razem <borut.razem AT siol.net>
1791
1792         * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
1793         * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
1794           src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
1795           src/SDCCopt.c,  src/SDCCval.c:
1796           fixed bug #1890273: SDCC Warning 154 shows wrong filename
1797
1798 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
1799
1800         * src/SDCCsymt.c (compareType): fixed bug 1309013
1801
1802 2008-02-09 Borut Razem <borut.razem AT siol.net>
1803
1804         * src/SDCCval.c, src/SDCCval.h:
1805           code cleaning, added function constChrVal()
1806         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
1807           call constChrVal() instead constVal()
1808
1809 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
1810
1811         * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
1812           of function pointer
1813         * src/SDCCerr.h,
1814         * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
1815         * support/regression/tests/absolute.c: added TestStruct TestVar (see also
1816           bug 1859853)
1817
1818 2008-02-01 Raphael Neider <rneider AT web.de>
1819
1820         * device/include/pic/pic16f886.h,
1821         * device/include/pic/pic16f887.h: added RA6 and RA7
1822
1823 2008-01-24 Raphael Neider <rneider AT web.de>
1824
1825         * device/include/pic/pic16f88.h: added RA6 and RA7
1826         * device/lib/pic/libdev/disabled_pic16f886.c,
1827         * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
1828
1829         * src/pic16/devices.inc,
1830         * device/include/pic16/pic18f2423.h,
1831         * device/include/pic16/pic18f2523.h,
1832         * device/include/pic16/pic18fregs.h,
1833         * device/lib/pic16/pics.all
1834         * device/lib/pic16/libdev/pic18f2423.c,
1835         * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
1836         * device/lib/pic16/libio/i2c.ignore,
1837         * device/lib/pic16/libio/usart.ignore,
1838         * device/lib/pic16/libio/adc.ignore: ignore new devices
1839
1840 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
1841
1842         * src/SDCCast.c (createRMW): fixed bug 1582651
1843
1844 2008-01-20 Borut Razem <borut.razem AT siol.net>
1845
1846         * src/SDCCcse.c: partially fixed enhancement request
1847           #1793872 - multiply by -1 not collapsed
1848         * support/regression/tests/arithcsi.c: added regression test
1849
1850 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
1851
1852         * as/mcs51/asx8051.dsp: removed define SDK
1853         * as/mcs51/i51mch.c (machine): fixed bug 1865114
1854         * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
1855         * as/link/lklex.c,
1856         * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
1857           cosmetic changes, brought more in sync, changed old K&R to ANSI
1858
1859 2008-01-13 Borut Razem <borut.razem AT siol.net>
1860
1861         * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
1862         * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
1863
1864 2007-12-30 Borut Razem <borut.razem AT siol.net>
1865
1866         * src/pic16/gen.c: fixed implementation of bitwise operations for
1867           pic16 target
1868         * support/regression/tests/bitwise.c: added test cases
1869
1870 2007-12-29 Borut Razem <borut.razem AT siol.net>
1871
1872         * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
1873         * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
1874           src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
1875         * support/Util/dbuf_string.[ch]: added function dbuf_getline()
1876         * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
1877           src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
1878           src/pic16/pcode.[ch]: added const qualifier
1879         * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
1880           as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
1881           as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
1882           as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
1883         * as/asxxsrc/aslex.c: use dbuf_getline()
1884         * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
1885           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
1886           as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
1887           as/z80/asm.h, as/z80/z80adr.c:
1888           changed type of ib and ip to const char *
1889
1890 2007-12-28 Borut Razem <borut.razem AT siol.net>
1891
1892         * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
1893           introduced (readlin) - long lines are turuncated
1894         * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
1895           as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
1896           as/z80/Makefile.in: moved aslex.c to asxxsrc
1897         * as/hc08/aslex.c, as/z80/aslex.c: deleted
1898         * as/hc08/asmain.c, as/mcs51/asmain.c:
1899           added missing initialization of a_addr field
1900         * support/regression/tests/long_asm_line.c: added regtest for long
1901           assembler line
1902
1903 2007-12-22 Borut Razem <borut.razem AT siol.net>
1904
1905         * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
1906
1907 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
1908
1909         * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
1910
1911 2007-12-16 Borut Razem <borut.razem AT siol.net>
1912
1913         * device/include/pic16/stdbool.h: removed, since already exists in
1914          device/include/; this also fixes bitopcse.c regression test for pic16
1915          target
1916         * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
1917         * src/pic16/glue.c: fixed bug #1851855: generic static pointer
1918           dereference doesn't work; covered by regression test bug1399290
1919
1920 2007-12-05 Borut Razem <borut.razem AT siol.net>
1921
1922         * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
1923           Adding new PIC16
1924
1925 2007-12-01 Borut Razem <borut.razem AT siol.net>
1926
1927         * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
1928           corrected handling of the highest_valid_address
1929
1930 2007-11-17 Raphael Neider <rneider AT web.de>
1931
1932         * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
1933         * src/pic/glue.c (picglue): emit .file if --debug is given
1934
1935 2007-11-17 Raphael Neider <rneider AT web.de>
1936
1937         * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
1938         care when left or right operand resides in result, fixes #1830220
1939
1940 2007-11-17 Borut Razem <borut.razem AT siol.net>
1941
1942         * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
1943           #983491 - "Merge duplicate strings function is ineffective"
1944         * support/regression/tests/bug-983491.c: regtest disabled
1945         * as/asxxsrc: created
1946           as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
1947           as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
1948           as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
1949           as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
1950           as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
1951           as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
1952           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
1953           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
1954           as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
1955           as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
1956           as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
1957           as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
1958           created as/asxxsrc directory, assym.c and strcpi.c moved into it
1959
1960 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
1961
1962         * device/include/stdarg.h: added and removed some casts
1963         * src/SDCCsymt.c (compareType): Fully check types between generic and
1964           non-generic pointers, also accept ptr-ptr to void-ptr assignments
1965
1966 2007-11-13 Borut Razem <borut.razem AT siol.net>
1967
1968         * support/regression/tests/bug-1817005.c:
1969           added regtest for bug #1817005 - as-z80 chokes on long labels
1970
1971 2007-11-12 Borut Razem <borut.razem AT siol.net>
1972
1973         * as/z80/asmain.c, as/z80/asm.h, as/z80/assym.c, as/z80/asdata.c,
1974           as/z80/asout.c, as/z80/aslist.c:
1975           fixed bug #1817005 - as-z80 chokes on long labels
1976
1977 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
1978
1979         * as/hc08/asmain.c,
1980         * as/z80/asmain.c: cosmetic changes
1981         * as/hc08/alloc.h,
1982         * as/mcs51/alloc.h,
1983         * as/z80/alloc.h: removed
1984         * as/hc08/assym.c,
1985         * as/mcs51/assym.c: replaced alloc.h with stdlib.h
1986         * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
1987         * as/link/hc08/Makefile.in,
1988         * as/link/mcs51/Makefile.in,
1989         * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
1990         * as/link/lklex.c,
1991         * as/link/mcs51/lkarea.c,
1992         * as/link/mcs51/lkmain.c: cosmetic changes
1993         * as/link/hc08/lklibr.c,
1994         * as/link/z80/lklibr.c,
1995         * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
1996           used cygwin_conv_to_full_posix_path,
1997           added warnings, cosmetic changes, brought more in sync
1998           changed old K&R into ANSI function declarations
1999         * as/link/z80/lklibr.c (loadAdb): added
2000         * as/link/z80/lkmain.c: removed -- option from usage text
2001
2002 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
2003
2004         * src/mcs51/gen.c (outBitC): optimized for no result
2005
2006 2007-10-31 Borut Razem <borut.razem AT siol.net>
2007
2008         * src/SDCCsymt.c: fixed (hopeful properly) bug
2009           #1805702 - order of extern matters
2010         * support/regression/tests/bug-1805702.c: enabled regtest for bug
2011           #1805702
2012
2013 2007-10-29 Borut Razem <borut.razem AT siol.net>
2014
2015         * src/SDCCsymt.c: reverted bad fixed of bug #1805702
2016           - order of extern matters
2017         * support/regression/tests/bug-1805702.c: disabled regtest for bug
2018           #1805702
2019
2020 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
2021
2022         * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
2023           24bitMode, portIsDS390
2024         * src/mcs51/gen.c (genOr): optimized for RFE 1750727
2025         * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
2026           (notVolatileVariable): also check sloc names,
2027           (callFuncByName): moved ftab[] out of function and sorted it by use
2028
2029 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
2030
2031         * device/include/stdarg.h: fixed bug in va_start macro for --xstack
2032         * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
2033           aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
2034         * src/SDCCicode.c (geniCodeCast): fixed bug 880197
2035         * support/regression/tests/bug-880197.c: new, added
2036
2037 2007-10-28 Borut Razem <borut.razem AT siol.net>
2038
2039         * support/regression/Makefile.in,
2040           support/regression/ports/mcs51-large/spec.mk,
2041           support/regression/ports/mcs51-xstack-auto/spec.mk,
2042           support/regression/ports/mcs51-stack-auto/spec.mk,
2043           support/regression/ports/mcs51-medium/spec.mk,
2044           support/regression/ports/mcs51-common/spec.mk,
2045           support/regression/ports/mcs51-common/*,
2046           support/regression/ports/mcs51-small/*:
2047           mcs51 renamed to mcs51-common, created mcs51-small
2048         * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
2049         * support/regression/tests/bug-1805702.c: added regtest for bug
2050           #1805702
2051
2052 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
2053
2054         * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
2055           added new rules 265 - 270
2056         * support/regression/tests/bug1721024.c:new, added
2057         * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
2058           introduced new test-mcs51 to run all mcs51 tests
2059
2060 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
2061
2062         * support/regression/tests/bug1816470.c: new, added
2063
2064 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
2065
2066         * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
2067           propagate for *,+,- with float, fixed bug 1816470
2068           (decorateType): cast to resultTypeProp instead of resultType
2069
2070 2007-10-19 Borut Razem <borut.razem AT siol.net>
2071
2072         * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
2073           function is ineffective" for pic16 tareget
2074         * support/scripts/listerr.c: corrected include path
2075         * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
2076           adjacent memory
2077
2078 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
2079
2080         * support/regression/tests/using.c: new, added
2081         * support/regression/tests/vaargs.c: fixed and enabled test
2082
2083 2007-10-18 Borut Razem <borut.razem AT siol.net>
2084
2085         * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
2086           is ineffective
2087         * support/regression/tests/bug-983491.c: added regtest for bug #983491
2088
2089 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
2090
2091         * doc/sdccman.lyx: documented option --Werror
2092         * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
2093           RegBankUsed[] earlier
2094
2095 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
2096
2097         * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
2098         * src/pic/glue.c,
2099         * src/SDCCval.c,
2100         * src/SDCCast.c,
2101         * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
2102           AST_ULONG_VALUE
2103         * src/SDCCast.c (decorateType): improved optimization of tri-op
2104         * src/SDCCerr.c (vwerror, setWError),
2105         * src/SDCCerr.h,
2106         * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
2107           warnings as errors, thanks Stas Sergeev for PATCH 1813211
2108
2109 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
2110
2111         * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
2112         * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
2113         * support/regression/tests/bug-223113.c,
2114         * support/regression/tests/bug-426632.c,
2115         * support/regression/tests/bug-468811.c,
2116         * support/regression/tests/bug-477835.c,
2117         * support/regression/tests/bug-478094.c,
2118         * support/regression/tests/bug-499644.c,
2119         * support/regression/tests/bug-524209.c,
2120         * support/regression/tests/bug-524211.c,
2121         * support/regression/tests/packcast.c,
2122         * support/regression/tests/structidx.c: added empty tests
2123         * support/regression/tests/bug-607243.c: enabled test
2124
2125 2007-10-06 Borut Razem <borut.razem AT siol.net>
2126
2127         * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
2128            support of universal binaries on Mac OS X
2129
2130 2007-10-02 Borut Razem <borut.razem AT siol.net>
2131
2132         * src/SDCCval.h: unified double2ul macro for all platforms
2133         * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
2134         * support/regression/tests/bitwise.c: added regtest for bug #1777758
2135
2136 2007-09-30 Borut Razem <borut.razem AT siol.net>
2137
2138         * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
2139           platforms
2140         * sdcc_vc_in.h: enabled warnings
2141         * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
2142           unsigned type, result still unsigned
2143         * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
2144
2145 2007-09-28 Raphael Neider <rneider AT web.de>
2146
2147         * src/pic/device.c (find_device): prevent buffer underflow error
2148         * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
2149           the just destroyed list entry
2150
2151 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2152
2153         * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
2154           Alexander Neundorf
2155
2156 2007-09-18 Borut Razem <borut.razem AT siol.net>
2157
2158         * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
2159          applied to unsigned type, result still unsigned
2160
2161 2007-09-17 Borut Razem <borut.razem AT siol.net>
2162
2163         * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
2164           src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
2165           src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
2166           src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
2167           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
2168           src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
2169           src/z80/gen.c, src/z80/ralloc.c:
2170           fixed bug #1739860 - sdcc does not work correctly on some platforms
2171           (not finished)
2172           introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
2173
2174 2007-09-17 Raphael Neider <rneider AT web.de>
2175
2176         * src/pic16/device.c: reverted to previous version
2177         * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
2178
2179 2007-09-16 Raphael Neider <rneider AT web.de>
2180
2181         * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
2182           as this raises a ton of gpasm warnings, just emit a second label
2183         * src/pic16/devices.inc,
2184         * device/lib/pic16/pics.all,
2185         * device/lib/pic16/libdev/pic18f2585.c,
2186         * device/lib/pic16/libdev/pic18f2680.c,
2187         * device/lib/pic16/libdev/pic18f2682.c,
2188         * device/lib/pic16/libdev/pic18f2685.c,
2189         * device/lib/pic16/libdev/pic18f4585.c,
2190         * device/lib/pic16/libdev/pic18f4680.c,
2191         * device/lib/pic16/libdev/pic18f4682.c,
2192         * device/lib/pic16/libdev/pic18f4685.c,
2193         * device/include/pic16/pic18f2585.h,
2194         * device/include/pic16/pic18f2680.h,
2195         * device/include/pic16/pic18f2682.h,
2196         * device/include/pic16/pic18f2685.h,
2197         * device/include/pic16/pic18f4585.h,
2198         * device/include/pic16/pic18f4680.h,
2199         * device/include/pic16/pic18f4682.h,
2200         * device/include/pic16/pic18f4685.h,
2201         * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
2202           18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
2203           patch contributed by Anton Strobl, applied with changes
2204
2205 2007-09-16 Raphael Neider <rneider AT web.de>
2206
2207         * device/include/pic16/pic18f2431.h,
2208         * device/include/pic16/pic18f25j10.h,
2209         * device/include/pic16/pic18f4431.h,
2210         * device/include/pic16/pic18f45j10.h: adopted common include style
2211         * device/include/pic16/pic18f1320.h,
2212         * device/include/pic16/pic18f2320.h,
2213         * device/include/pic16/pic18f2525.h,
2214         * device/include/pic16/pic18f4320.h,
2215         * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
2216         * device/include/pic16/pic18fregs.h: prepared for automatic include
2217           file selection by having DEVICE.h for every DEVICE
2218         * device/lib/pic16/libdev/pic18f2320.c,
2219         * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
2220
2221         * device/lib/pic16/configure.in,
2222         * device/lib/pic16/configure: use rm -rf instead of rmdir
2223         * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
2224         * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
2225
2226 2007-09-09 Borut Razem <borut.razem AT siol.net>
2227
2228         * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
2229           distingush between i386 and ppc Mac OS X versions
2230
2231 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
2232
2233         * src/mcs51/gen.c (genReceive): fixed bug 1788177
2234         * support/regression/tests/bug1788177.c: new, added
2235
2236 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2237
2238         * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
2239         * device/include/mcs51/lint.h added keyword __naked
2240
2241 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
2242
2243         * src/pic16/glue.c,
2244         * src/pic/glue.c,
2245         * src/SDCCmem.h: removed maxRegBank
2246         * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
2247           RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
2248         * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
2249         * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
2250           name and behaviour to handle banked functions
2251           (scan4op): and use it to fix bug 1786213
2252
2253 2007-09-03 Raphael Neider <rneider AT web.de>
2254
2255         * device/include/pic16/pic18f248.h,
2256         * device/include/pic16/pic18f258.h,
2257         * device/include/pic16/pic18f448.h,
2258         * device/lib/pic16/libdev/pic18f248.c,
2259         * device/lib/pic16/libdev/pic18f258.c,
2260         * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
2261           added T0CONbits, fixes #1786891
2262
2263 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
2264
2265         * src/ds390/gen.c (genFarPointerSet),
2266         * src/hc08/ralloc.c (packRegisters),
2267         * src/mcs51/ralloc.c (packRegisters),
2268         * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
2269           bug 1750318
2270         * src/SDCCicode.h: POINTER_SET can be true for literals too
2271         * support/regression/tests/bug1750318.c: new, added
2272
2273 2007-08-23 Borut Razem <borut.razem AT siol.net>
2274
2275         * debugger/mcs51/sdcdb.c: fixed compilation with older readline
2276           library versions without the completition functionality
2277
2278 2007-08-22 Raphael Neider <rneider AT web.de>
2279
2280         * device/include/pic16/pic18f1220.h,
2281         * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
2282
2283 2007-08-12 Borut Razem <borut.razem AT siol.net>
2284
2285         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
2286
2287 2007-08-11 Borut Razem <borut.razem AT siol.net>
2288
2289         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
2290           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
2291           support/Util/SDCCerr.[ch] moved to src
2292         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
2293           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
2294           device/examples/ds390/tinitalk/tinitalk.dsp,
2295           device/examples/serialcomm/windows/serialcomm.dsp,
2296           support/librarian/librarian.dsp:
2297           removed linking of unused odbc32.lib and odbccp32.lib
2298         * support/scripts/winres.h:
2299           added for compilation with Visual C++ 2005 Express Edition
2300
2301 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2302
2303         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
2304           and CKCON1.
2305
2306 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2307
2308         * sdccconf_in.h: update the endian test so that SPARC Solaris
2309           does not throw syntax errors
2310
2311 2007-08-06 Borut Razem <borut.razem AT siol.net>
2312
2313         * doc/sdccman.lyx: removed two index entries which prevented the
2314           generation of sdcc doc archive
2315
2316 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2317
2318         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
2319           instead of lyx 1.5.0.
2320
2321 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2322
2323         * device/include/hc08/mc68hc908apxx.h: new header contributed by
2324           Lucas Loizaga, with minor modifications. Thanks!
2325
2326 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2327
2328         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
2329           in sdcclib.
2330
2331 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2332
2333         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
2334           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
2335           with acall/ajmp.
2336
2337 2007-07-22 Borut Razem <borut.razem AT siol.net>
2338
2339         * configure.in, configure: re-introduced .version
2340         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
2341           the version reverted to 2.7.0
2342
2343 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
2344
2345         * configure.in,
2346         * doc/sdccman.lyx: bumped version to 2.7.3
2347         * device/include/mcs51/compiler.h: fixed elif->else
2348         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
2349         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
2350           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
2351            enable accuse for bit operands
2352         * src/SDCCmain.c (printVersionInfo),
2353         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
2354           environment descriptor
2355         * src/SDCCutil.h: added getBuildEnvironment
2356         * src/SDCCglue.c (initialComments): use getBuildEnvironment
2357         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
2358         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
2359         * support/regression/tests/bug1348008.c,
2360         * support/regression/tests/bug1496419.c,
2361         * support/regression/tests/bug1503067.c,
2362         * support/regression/tests/preproc.c: added empty tests
2363
2364 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
2365
2366         * support/regression/tests/bug1678803.c: new, added
2367
2368 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
2369
2370         * as/link/aslink.h,
2371         * as/link/hc08/lkihx.c,
2372         * as/link/hc08/lkrloc.c,
2373         * as/link/mcs51/lkihx.c,
2374         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
2375           ihxExtendedLinearAddress
2376         * as/link/mcs51/lkrloc.c (relr),
2377         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
2378           acall/ajmp, see bug 830513
2379
2380 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
2381
2382         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
2383           (cseBBlock): remember aggr2ptr has been used
2384         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
2385           (geniCodeAssign): fixed bug 868103
2386         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
2387           added operandSize prototype
2388         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
2389           (genDataPointerSet): use max of size of right and result,
2390           (gencjne): added parameter useCarry for optimization,
2391           (genCmpEq): use carry if appropriate,
2392           (genXor): check if operand already in carry
2393         * support/regression/tests/bug-868103.c: enabled test
2394
2395 2007-07-12 Raphael Neider <rneider AT web.de>
2396
2397         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
2398
2399 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
2400
2401         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
2402           from Robert Larice, thanks
2403         * support/regression/tests/bitopcse.c,
2404         * support/regression/tests/bitvars.c,
2405         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
2406         * support/regression/tests/bug-927659.c: enabled test for z80
2407         * support/regression/tests/bug1738367.c: added extra tests by Frieder
2408         * support/regression/tests/bug1745717.c: new, added
2409         * support/regression/tests/literalop.c,
2410         * support/regression/tests/nullstring.c: removed storage definitions that
2411           are now in testfwk.h
2412
2413 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
2414
2415         * device/include/stdbool.h: do not define __bool_true_false_are_defined
2416           and bool for targets that do not fully support it.
2417         * support/regression/tests/bug1546986.c,
2418         * support/regression/tests/bug1723128.c,
2419         * support/regression/tests/bug1734654.c,
2420         * support/regression/tests/bug1738367.c,
2421         * support/regression/tests/constantRange.c: only use bool if allowed
2422
2423 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
2424
2425         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
2426           Larice, also handle function pointers
2427         * support/regression/tests/bug1749275.c: new, added
2428
2429 2007-07-03 Borut Razem <borut.razem AT siol.net>
2430
2431         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
2432           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
2433           #1746528: SDCC should ignore ':' in inline assembler comments
2434         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
2435
2436 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
2437
2438         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
2439         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
2440
2441 2007-06-29 Borut Razem <borut.razem AT siol.net>
2442
2443         * src/SDCCmain.c: fixed bug
2444           #1744746: SDCC #4867: broken option --xram-size
2445
2446 2007-06-28 Borut Razem <borut.razem AT siol.net>
2447
2448         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
2449           find out the endianess of host machine for ucsim
2450
2451 2007-06-27 Borut Razem <borut.razem AT siol.net>
2452
2453         * support/regression/generate-cases.py: corrected the file name
2454           in warning
2455         * configure.in, configure, sdccconf_in.h: find out the endianess of
2456           host machine
2457         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
2458           negative size
2459
2460 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
2461
2462         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
2463
2464 2007-06-26 Borut Razem <borut.razem AT siol.net>
2465
2466         * support/regression/generate-cases.py: display warning if function
2467           list is empty; implemented more flexible rule for detection of
2468           testing functions, allowing return type 'void' in the same line as
2469           the function name in the function definition
2470         * support/regression/tests/bug-1654060.c: corrected test
2471         * support/librarian/sdcclib.c: fixed warning:
2472           format '%s' expects type 'char *', but argument 2 has type 'int'
2473
2474 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2475
2476         * support/librarian/sdcclib.c: Added feature Requests [1510635]
2477           Multiple infiles for sdcclib.
2478
2479 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2480
2481         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
2482           bug 1731741
2483
2484 2007-06-18 Borut Razem <borut.razem AT siol.net>
2485
2486         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
2487           how to handle comments, so they have to be removed by the
2488           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
2489         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
2490           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
2491           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
2492           table driven option hadling
2493
2494 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
2495
2496         * src/SDCCast.c (decorateType),
2497         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
2498           iCode to ast level to fix bug 1738367
2499         * support/regression/tests/bug1738367.c: new, added
2500
2501 2007-06-15 Raphael Neider <rneider AT web.de>
2502
2503         * src/pic16/devices.inc,
2504         * device/lib/pic16/pics.all,
2505         * device/include/pic16/pic18fregs.h,
2506         * device/include/pic16/pic18f[24][45]20.h,
2507         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
2508           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
2509         * device/lib/pic16/Makefile.in: faster cleanup
2510
2511 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2512
2513         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
2514
2515 2007-06-13 Raphael Neider <rneider AT web.de>
2516
2517         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
2518
2519 2007-06-12 Raphael Neider <rneider AT web.de>
2520
2521         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
2522           suppress bit defines if NO_BIT_DEFINES is #define'd
2523         * device/include/pic/pic*.h: recreated all headers to include
2524           conditional bit defines
2525         * device/include/pic/pic16f886.h,
2526         * device/include/pic/pic16f887.h: fixed based on newer .inc file
2527         * device/include/pic/recreate.sh: script to recreate the complete
2528           device library files based on the currently supported devices
2529
2530 2007-06-12 Borut Razem <borut.razem AT siol.net>
2531
2532         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
2533           support/regression/Makefile.in, support/scripts/build.mak,
2534           support/scripts/Makefile.snapshot:
2535           use new svn URL scheme
2536         * doc/sdccman.lyx: SDCC Wiki moved to
2537           http://sdcc.wiki.sourceforge.net/
2538
2539 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2540
2541         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
2542         * support/regression/tests/bug1734654.c: added
2543
2544 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
2545
2546         * src/SDCCast.c (decorateType): optimized '?' for equal operands
2547         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
2548           with literal operands
2549
2550 2007-06-10 Borut Razem <borut.razem AT siol.net>
2551
2552         * as/link/z80/lklibr.c: fixed mingw build warning
2553           lklibr.c:575: warning: implicit declaration of function 'tolower'
2554         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
2555           src/z80/main.c: move target specific options from src/SDCCmain.c
2556           to src/<target>/main.c
2557
2558 2007-06-09 Borut Razem <borut.razem AT siol.net>
2559
2560         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
2561           removed unused swap_sense; removed outBitCLong, replaced with outBitC
2562         * support/regression/tests/bug-1294691.c: added
2563
2564 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
2565
2566         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
2567           can also be static, fixes bug 1733438
2568         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
2569           have absolute address too
2570           (computeType): added optimization for 'cond ? true : false'
2571         * support/regression/tests/absolute.c: added test for static absolute var
2572
2573 2007-06-08 Raphael Neider <rneider AT web.de>
2574
2575         * src/regression/Makefile: suppress parallel builds, allow easy
2576           switching between pic14/pic16 ports
2577         * src/regression/picregs.h: added pic14/16 header file switch
2578         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
2579           inline.c,nestfor.c,string1.c}: include "picregs.h"
2580
2581 2007-06-07 Borut Razem <borut.razem AT siol.net>
2582
2583         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
2584           permanent solution to suppress GCC 4.2.0 c++ warning:
2585           deprecated conversion from string constant to `char *'
2586           use 'const char *' where ever required
2587         * support/regression/generate-cases.py: implemented more flexible rule
2588           for detection of testing functions, allowing white-spaces surrounding
2589           the function name and the 'void' parameter.
2590         * support/regression/tests/constantRange.c,
2591           support/regression/tests/scott-compare3.c: fixed failing regression
2592           tests, uncovered by implementation of more flexible rule for detection
2593           of testing functions
2594
2595 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
2596
2597         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
2598
2599 2007-06-04 Borut Razem <borut.razem AT siol.net>
2600
2601         * configure.in, configure, config_vc.awk: sdcc version number is now
2602           stored in configure.in; removed .version
2603         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
2604           doc/INSTALL.txt: version bumped to 2.7.2
2605         * sim/ucsim/configure.in, sim/ucsim/configure:
2606           use "read" to read from .version
2607
2608 2007-06-03 Borut Razem <borut.razem AT siol.net>
2609
2610         * */Makefile.in: removed annoying warning:
2611           Makefile:xx: Makefile.dep: No such file or directory
2612
2613 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
2614
2615         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
2616           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
2617         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
2618         * src/SDCCast.c (resultTypePropagate): propagate for '!',
2619           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
2620           bugfix: only use newBoolLink for bit result type
2621         * src/SDCCicode.c (geniCodeLogic): added param tree,
2622           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
2623           (geniCodeLogicAndOr): use IS_BIT,
2624           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
2625           (ast2iCode): added tree param to geniCodeLogic for comparisons
2626         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
2627         * support/regression/tests/bug1723128.c: added test NotZero
2628
2629 2007-06-01 Borut Razem <borut.razem AT siol.net>
2630
2631         * SDCPP synchronized with GCC CPP release version 4.2.0,
2632           currently the latest release:
2633         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2634           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
2635           support/cpp2/cppdefault.h, support/cpp2/except.h,
2636           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
2637           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
2638           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
2639           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
2640           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
2641           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
2642           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
2643           support/cpp2/opts.h, support/cpp2/output.h,
2644           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
2645           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
2646           support/cpp2/system.h, support/cpp2/version.c,
2647           support/cpp2/Makefile.in: modified
2648         * support/cpp2/opts-common.c: added
2649         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
2650         * device/lib/pic16/libdev/pic18f[24]5j10.c:
2651           search for included source file in local directory
2652         * sim/ucsim/configure, sim/ucsim/configure.in:
2653           temporary solution to suppress GCC 4.2.0 c++ warning:
2654           deprecated conversion from string constant to `char *'
2655
2656 2007-06-01 Raphael Neider <rneider AT web.de>
2657
2658         * device/lib/pic/libdev/pic12f683.c,
2659         * device/include/pic/pic12f683.h: added GPIO bits
2660
2661 2007-06-01 Raphael Neider <rneider AT web.de>
2662
2663         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
2664           quotation marks, clarified role of PIC14 vs. PIC16 ports
2665         * src/pic16/devices.inc,
2666         * device/include/pic16/pic18fregs.h,
2667         * device/include/pic16/pic18f[24][45]j10.h,
2668         * device/lib/pic16/pics.all,
2669         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
2670           18f24j10, 18f25j10, 18f44j10, and 18f45j10
2671         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
2672           for new devices as they are not yet supported by gputils
2673
2674 2007-05-31 Borut Razem <borut.razem AT siol.net>
2675
2676         * Small Device C Compiler 2.7.0 released
2677         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
2678           changed sdcc version to 2.7.1
2679         * support/scripts/sdcc.nsi: added How to create WIN32 release
2680           setup.exe package
2681
2682 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
2683
2684         * doc/sdccman.lyx: documented initialization and allocation of absolute
2685           variables, bit parameter passing, the need for function pointers to be
2686           reentrant and alpha quality support of inline and retrict
2687
2688 2007-05-26 Borut Razem <borut.razem AT siol.net>
2689
2690         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
2691           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
2692         * docs/knownbugs.html: updated
2693
2694 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
2695
2696         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
2697           thanks Jan Waclawek
2698         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
2699           AOP_CRY and ruonly
2700           (gencjneshort): optimized when left is AOP_DIR
2701         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
2702           initializing unions in a struct/array
2703         * support/regression/fwk/include/testfwk.h: added defines for data, near
2704           and far for host and z80
2705         * support/regression/tests/bug1723128.c: new, added
2706
2707 2007-05-22 Borut Razem <borut.razem AT siol.net>
2708
2709         * doc/knownbugs.html: updated
2710
2711 2007-05-21 Raphael Neider <rneider AT web.de>
2712
2713         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
2714           error message instead
2715         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
2716
2717 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
2718
2719         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
2720
2721 2007-05-21 Raphael Neider <rneider AT web.de>
2722
2723         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
2724           closes #1722392
2725         * src/regression/gpsim_assert.h,
2726         * src/regression/Makefile,
2727         * src/regression/pcodeopt.c: regression test for the above fix
2728
2729 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
2730
2731         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
2732           jumps to self, fixed bug 1717281
2733
2734 2007-05-10 Borut Razem <borut.razem AT siol.net>
2735
2736         * support/scripts/gen_known_bugs.pl: cosmetic fix
2737         * doc/knownbugs.html: generated by gen_known_bugs.pl
2738
2739 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2740
2741         * src/SDCCast.c (createFunction): also generate non-inlined version of
2742           function for functions declared as "static inline"
2743         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
2744           function can be inlined after non-inlined version generated.
2745
2746 2007-05-10 Borut Razem <borut.razem AT siol.net>
2747
2748         * support/scripts/gen_known_bugs.pl: added script
2749           which generates knownbugs.html
2750
2751 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
2752
2753         * doc/knownbugs.html: updated for release 2.7.0
2754
2755 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2756
2757         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
2758
2759 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
2760
2761         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
2762           (throughout): updated generating comments
2763         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
2764           (throughout): updated generating comments
2765         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
2766           rule instead of at the second, or it might skip lines when removing the
2767           complete match
2768         * support/regression/tests/bug1714204.c: changed test to foo
2769
2770 2007-05-08 Borut Razem <borut.razem AT siol.net>
2771
2772         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
2773           thanks to SDCC Distributed Compile Farm members,
2774           added Z80 and GBZ80 command line options
2775         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
2776
2777 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
2778
2779         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
2780         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
2781         * support/regression/tests/longlit.c: modified to be tested at all and
2782           to pass the actual test
2783
2784 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2785
2786         * device/include/mcs51/uPSD33xx.h: Added.
2787
2788 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
2789
2790         * device/lib/_gptrput.c,
2791         * device/lib/_gptrget.c: removed old code,
2792          (_gptrgetWord),
2793         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
2794         * support/regression/tests/bug1714204.c: new, added
2795
2796 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2797
2798         * support/regression/tests/regtrack.c: test was never executed
2799           because of the regression test being picky about white spaces.
2800         * device/lib/mcs51/crtclear.asm: added comment
2801
2802 2007-05-06 Raphael Neider <rneider AT web.de>
2803
2804         * device/lib/pic/Makefile.rules,
2805         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
2806           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
2807
2808 2007-05-06 Raphael Neider <rneider AT web.de>
2809
2810         * src/pic16/device.h,
2811         * src/pic16/main.h,
2812         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
2813           _pic16_setDefaultOptions): removed/reordered command-line args
2814         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
2815           devices, regrouped command line args, environment variables),
2816           clarified sone points, added sections on how to add devices to the
2817           PIC14/PIC16 ports
2818
2819 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
2820
2821         * src/z80/peeph.def: fixed bug in rule 2
2822
2823 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
2824
2825         * src/port.h: added TARGET_MCS51_LIKE
2826         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
2827           take advantage of it too
2828         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
2829           (shiftR2Left2Result): Optimized: don't check shifting by 0
2830         * src/z80/peeph-z80.def,
2831         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
2832           modifications, see patch 1700823
2833         * src/mcs51/peep.c (): fixed bug 1712928
2834         * support/regression/tests/bug1712928.c: new, added
2835
2836 2007-05-05 Borut Razem <borut.razem AT siol.net>
2837
2838         * device/lib/pic16/Makefile.common.in,
2839           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
2840           removed bash dependencies
2841
2842 2007-05-01 Borut Razem <borut.razem AT siol.net>
2843
2844         * src/SDCCicode.c:
2845           fixed bug #1710507: --i-code-in-asm makes compile fail
2846           all iCode comments are now one liners
2847         * src/mcs51/gen.c: fixed memory leak
2848
2849 2007-05-01 Raphael Neider <rneider AT web.de>
2850
2851         * device/lib/pic/libdev/*.c
2852         * device/include/pic/*.h: regenerated all device libs from updated
2853           .inc files
2854         * support/scripts/inc2h.pl: documented usage, now uses strict to
2855           catch more bugs
2856
2857 2007-04-30 Borut Razem <borut.razem AT siol.net>
2858
2859         * doc/sdccman.lyx:
2860           fixed bug #1669175: Problem with space in output paths
2861           documented how to use paths with spaces for Windows users
2862
2863 2007-04-29 Borut Razem <borut.razem AT siol.net>
2864
2865         * Fixed svn:eol-style and svn:keywords properties
2866         * src/SDCCval.c: fixed bug
2867           #1592871: Segfault with "large" const arrays of characters
2868           replaced recursion with iteration
2869         * Removed svn:executable property from non-executable files
2870
2871 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
2872
2873         * src/mcs51/gen.c (genRet): fixed bug 1707003
2874
2875 2007-04-27 Raphael Neider <rneider AT web.de>
2876
2877         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
2878           createReachingDefinitions,assignValnums,pic16_destructDF,
2879           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
2880           prevent NULL pointer dereferences
2881         * device/lib/pic/libdev/pic16f886.c,
2882         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
2883           prevent building them, gputils do not really support them yet
2884
2885 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2886
2887         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
2888           helps printf_small. 32 bytes more __idata mem.
2889
2890 2007-04-27 Raphael Neider <rneider AT web.de>
2891
2892         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
2893           return early when pb or pb->pcHead is NULL (patch #1708427)
2894         * src/regression/empty.c,
2895         * src/regression/Makefile: added test with empty functions
2896         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
2897
2898 2007-04-27 Borut Razem <borut.razem AT siol.net>
2899
2900         * src/SDCCast.c: fixed feature request
2901           #1547512: Redundant strings linked when using sizeof("abc")
2902
2903 2007-04-23 Borut Razem <borut.razem AT siol.net>
2904
2905         * doc/sdccman.lyx, src/SDCCmain.c:
2906           peep-hole comments are generated only if --fverbose-asm option is
2907           specified and --no-peep-comments is not, as proposed by Frieder.
2908         * support/regression/Makefile.in: compile regression tests with
2909           --fverbose-asm option so one can "grep" whether a new (or an old)
2910           peephole is (still) applied; requested by Frieder.
2911
2912 2007-04-23 Kevin Buettner <kevin AT buettner.to>
2913
2914         * device/include/pic/pic16f886.h,
2915         * device/include/pic/pic16f887.h,
2916         * device/lib/pic/libdev/pic16f886.c,
2917         * device/lib/pic/libdev/pic16f887.c,
2918         * device/include/pic/pic14devices.txt,
2919         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
2920
2921 2007-04-23 Kevin Buettner <kevin AT buettner.to>
2922
2923         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
2924           fixes #1704666
2925
2926 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2927
2928         * device/lib/_memset.c: assembler version for mcs51
2929
2930 2007-04-22 Borut Razem <borut.razem AT siol.net>
2931
2932         * support/scripts/listerr.c: program to create the list of errors and
2933           warnings list from - added
2934         * doc/sdccman.lyx: removed the note
2935           "For list of warnings and corresponding codes, see err_warn.txt"
2936         * src/SDCCsymt.c: fixed bug #1699804:
2937           Bug with some uses of sizeof(static local array) (MCS51)
2938         * support/regression/tests/bug-1699804.c: added
2939
2940 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
2941
2942         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
2943           (main): added option -i,
2944           (asmbl, case S_INCL): use search_path_fopen,
2945           mostly from patch 1579668 by Peter Miller, thanks
2946         * src/z80/main.c: fixed typo --callee-saves-bc
2947         * device/include/mcs51/compiler.h: added sfrword for Tasking
2948
2949 2007-04-20 Borut Razem <borut.razem AT siol.net>
2950
2951         * src/z80/main.c: replaced reserved keyword asm with asmblr
2952
2953 2007-04-19 Borut Razem <borut.razem AT siol.net>
2954
2955         * src/port.h: use const pointers to strings
2956         * src/SDCCargs.h: declared getStringArg() and getIntArg()
2957         * src/pic16/main.c: include SDCCargs.h
2958         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
2959           const char, since the strings are dynamically allocated
2960         * src/SDCCmain.c: options.code_seg and options.const_seg are
2961           dynamically allocated; check port specific command line options
2962           before the general ones
2963         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
2964
2965 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
2966
2967         * device/include/ds400rom.h,
2968         * device/lib/ds390/lcd390.c,
2969         * device/lib/ds390/memcpyx.c,
2970         * device/lib/ds390/rtc390.c,
2971         * device/lib/ds400/ds400rom.c,
2972         * device/lib/ds400/memcpyx.c,
2973         * device/lib/hc08/_ret.c: more replacements of keywords with their
2974           double underscore equivalents
2975         * device/lib/ds390/Makefile.in,
2976         * device/lib/ds400/Makefile.in,
2977         * device/lib/gbz80/Makefile.in,
2978         * device/lib/hc08/Makefile.in,
2979         * device/lib/mcs51/Makefile.in,
2980         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
2981
2982 2007-04-17 Borut Razem <borut.razem AT siol.net>
2983
2984         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
2985           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
2986           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
2987           to --fverbose-asm, to be gcc'ish
2988
2989 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
2990
2991         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
2992
2993 2007-04-17 Borut Razem <borut.razem AT siol.net>
2994
2995         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
2996         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
2997           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
2998           with their double underscore equivalent
2999
3000 2007-04-14 Borut Razem <borut.razem AT siol.net>
3001
3002         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
3003           source"
3004
3005 2007-04-13 Borut Razem <borut.razem AT siol.net>
3006
3007         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
3008           C99 standard
3009         * device/examples/serialcomm/windows/serial.[ch],
3010           device/examples/serialcomm/windows/test_serialcomm.cpp:
3011           updated by Bela Torok
3012         * device/examples/serialcomm/windows/serialcomm.dsw,
3013           device/examples/serialcomm/windows/serialcomm.dsp: added
3014
3015 2007-04-13 Jan Waclawek <wek AT efton.sk>
3016
3017         * doc/sdccman.lyx: additions and changes at various places
3018           (submitted as #1697136).
3019           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
3020
3021 2007-04-10 Borut Razem <borut.razem AT siol.net>
3022
3023         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
3024           LyX file format changed to 245
3025         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
3026           "FreeWare" replaced with "free open source"
3027
3028 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
3029
3030         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
3031
3032 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
3033
3034         * device/include/pic16/pic18fregs.h,
3035         * device/lib/_bp.c,
3036         * device/lib/_decdptr.c,
3037         * device/lib/_divsint.c,
3038         * device/lib/_divslong.c,
3039         * device/lib/_divuint.c,
3040         * device/lib/_divulong.c,
3041         * device/lib/_fs2schar.c,
3042         * device/lib/_fs2sint.c,
3043         * device/lib/_fs2slong.c,
3044         * device/lib/_fs2uchar.c,
3045         * device/lib/_fs2uint.c,
3046         * device/lib/_fs2ulong.c,
3047         * device/lib/_fsadd.c,
3048         * device/lib/_fscmp.c,
3049         * device/lib/_fsdiv.c,
3050         * device/lib/_fseq.c,
3051         * device/lib/_fsget1arg.c,
3052         * device/lib/_fsget2args.c,
3053         * device/lib/_fsgt.c,
3054         * device/lib/_fslt.c,
3055         * device/lib/_fsmul.c,
3056         * device/lib/_fsneq.c,
3057         * device/lib/_fsnormalize.c,
3058         * device/lib/_fsreturnval.c,
3059         * device/lib/_fsrshift.c,
3060         * device/lib/_fssub.c,
3061         * device/lib/_fsswapargs.c,
3062         * device/lib/_gptrget.c,
3063         * device/lib/_gptrgetc.c,
3064         * device/lib/_gptrput.c,
3065         * device/lib/_logexpf.c,
3066         * device/lib/_modsint.c,
3067         * device/lib/_modslong.c,
3068         * device/lib/_moduint.c,
3069         * device/lib/_modulong.c,
3070         * device/lib/_mulint.c,
3071         * device/lib/_mullong.c,
3072         * device/lib/_schar2fs.c,
3073         * device/lib/_ser.c,
3074         * device/lib/_setjmp.c,
3075         * device/lib/_sint2fs.c,
3076         * device/lib/_slong2fs.c,
3077         * device/lib/_spx.c,
3078         * device/lib/_uchar2fs.c,
3079         * device/lib/_uint2fs.c,
3080         * device/lib/_ulong2fs.c,
3081         * device/lib/asincosf.c,
3082         * device/lib/atanf.c,
3083         * device/lib/calloc.c,
3084         * device/lib/ds390/tinibios.c,
3085         * device/lib/ds400/tinibios.c,
3086         * device/lib/expf.c,
3087         * device/lib/free.c,
3088         * device/lib/hc08/_mulint.c,
3089         * device/lib/logf.c,
3090         * device/lib/malloc.c,
3091         * device/lib/printf_fast.c,
3092         * device/lib/printf_tiny.c,
3093         * device/lib/printfl.c,
3094         * device/lib/realloc.c,
3095         * device/lib/ser_ir.c,
3096         * device/lib/serial.c,
3097         * support/regression/tests/libmullong.c: replaced all special keywords
3098           with their double underscore equivalent
3099         * support/regression/ports/mcs51-xstack-auto/spec.mk,
3100         * device/lib/Makefile.in: compile libs with --std-c99 instead of
3101           --std-sdcc99
3102         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
3103           (genRet): if the bit-symbol is ruonly it already is in the carry
3104         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
3105         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
3106         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
3107           type UCHAR if dest is not bit
3108
3109 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
3110
3111         * device/include/math.h,
3112         * device/lib/cotf.c,
3113         * device/lib/expf.c,
3114         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
3115
3116 2007-04-01 Borut Razem <borut.razem AT siol.net>
3117
3118         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
3119           fixed bug #1692042: input buffer overflow...scanner uses REJECT
3120         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
3121           gcc_unreachable() called internal_error()...
3122
3123 2007-03-30 Raphael Neider <rneider AT web.de>
3124
3125         * src/pic/ralloc.c (isData): suppress garbage debug output
3126
3127 2007-03-28 Borut Razem <borut.razem AT siol.net>
3128
3129         * doc/sdccman.lyx:
3130           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
3131           is developed, built and used worldwide, and the word "night" doesn't
3132           make any sense.
3133
3134 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
3135
3136         * device/include/mcs51/C8051F360.h: new, added
3137         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
3138
3139 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3140
3141         * src/SDCC.y (declaration_specifiers, function_specifier),
3142         * support/Util/SDCCerr.c,
3143         * support/Util/SDCCerr.h,
3144         * src/SDCCsymt.h,
3145         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
3146           inline keyword
3147         * src/SDCCmem.c (deallocParms),
3148         * src/SDCCast.c: support for function inlining, not quite complete
3149         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
3150           'restrict' qualifier
3151
3152 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
3153
3154         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
3155           (saveRBank, unsaveRBank): don't save bits,
3156           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
3157         * support/regression/tests/bug1535242.c: new, added
3158         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
3159           thanks Alexey Shamrin <shamrin AT gmail.com>,
3160           made assert.h header ANSI compliant (added a check for NDEBUG macro,
3161           removed header guard)
3162         * .version,
3163         * sdcc.spec: bumped version to 2.6.5
3164         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
3165
3166 2007-03-22 Borut Razem <borut.razem AT siol.net>
3167
3168         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
3169           fixed bug #1653671: sdcdb integration into ddd is broken
3170
3171 2007-03-22 Raphael Neider <rneider AT web.de>
3172
3173         * src/pic/gen.c (popGetExternal): augmented to also create references
3174           to external variables (not only labels),
3175           (genCall): comment on plan to reduce PAGESEL overhead,
3176           (genFunction, genEndFunction): also save/restore FSR around interrupt
3177           handling code, removed lots of unused code
3178           (genDivOneByte): release acquired temp register
3179         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
3180           of popGetExternal
3181         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
3182           for registers that need to be saved during interrupts (FSR, STATUS,
3183           PCLATH; W needs special handling), currently only FSR is used
3184
3185 2007-03-22 Raphael Neider <rneider AT web.de>
3186
3187         * device/include/pic/pic14devices.txt: 16f688 has only one config word
3188
3189 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3190
3191         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
3192
3193 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
3194
3195         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
3196
3197 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
3198
3199         * as/link/aslink.h: added LKOBJEXT
3200         * as/link/hc08/link_hc08.dsp,
3201         * as/link/hc08/Makefile.bcc,
3202         * as/link/hc08/Makefile.in,
3203         * as/link/mcs51/aslink.dsp,
3204         * as/link/mcs51/Makefile.bcc,
3205         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
3206         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
3207         * as/link/lkaomf51.c: merged and moved
3208         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
3209         * as/link/z80/lkdata.c,
3210         * as/link/lkdata.c: merged and moved
3211         * as/link/hc08/lkmain.c,
3212         * as/link/mcs51/lkmain.c: cosmetic changes
3213         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
3214         * as/link/lklex.c: use LKOBJEXT
3215         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
3216           ANSI-fied functions, removed bubble-sorts
3217         * as/link/z80/lksym.c           as/link/lksym.c: merged,
3218           ANSI-fied functions
3219         * as/link/z80/linkgbz80.dsp,
3220         * as/link/z80/linkz80.dsp,
3221         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
3222           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
3223         * as/link/z80/lkhead.c,
3224         * as/link/z80/lklex.c: deleted
3225         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
3226         * as/link/z80/lkmain.c: added copyfile()
3227
3228 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3229
3230         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
3231
3232 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3233
3234         * device/lib/_strlen.c: assembler version for mcs51
3235
3236 2007-03-13 Raphael Neider <rneider AT web.de>
3237
3238         * device/include/pic16/pic18f2221.h,
3239         * device/include/pic16/pic18f2321.h,
3240         * device/include/pic16/pic18f2331.h,
3241         * device/include/pic16/pic18f4221.h,
3242         * device/include/pic16/pic18f4321.h,
3243         * device/include/pic16/pic18f4331.h: fixed config byte location names
3244         * support/scripts/inc2h-pic16.pl: removed debug output, emit
3245           consistently named config byte locations
3246
3247 2007-03-13 Borut Razem <borut.razem AT siol.net>
3248
3249         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
3250           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
3251           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
3252           as/link/z80/Makefile.in, as/z80/Makefile.in:
3253           introduced LDFLAGS
3254
3255 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3256
3257         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
3258         * device/lib/printf_large.c: pointer was converted to generic
3259         pointer for mcs51 models other than model-small (Maarten noticed)
3260
3261 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3262
3263         * device/include/mcs51/ADuC84x.h: Added.
3264
3265 2007-03-10 Borut Razem <borut.razem AT siol.net>
3266
3267         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
3268           fixed RFE #1624219: double backslashes in filenames;
3269           functions hexEscape(), octalEscape() and copyStr() moved from
3270           SDCCval.c to SDCCutil.c and made them glovbally available
3271
3272 2007-03-09 Borut Razem <borut.razem AT siol.net>
3273
3274         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
3275           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
3276           1673361: Missaligned comments in output files
3277
3278 2007-03-09 Raphael Neider <rneider AT web.de>
3279
3280         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
3281
3282 2007-03-09 Raphael Neider <rneider AT web.de>
3283
3284         * src/pic/gen.c,
3285         * src/pic/glue.c,
3286         * src/pic/ralloc.c: suppress undesired debug output
3287         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
3288
3289 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3290
3291         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
3292
3293 2007-03-07 Borut Razem <borut.razem AT siol.net>
3294
3295         * device/lib/pic16/libdev/pic18f[24][34]31.c:
3296           search include files in the current directory
3297
3298 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
3299
3300         * src/SDCCglue.c (emitMaps, glue),
3301         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
3302           absolute xdata
3303         * support/regression/tests/absolute.c: added xdata test
3304
3305 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
3306
3307         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
3308           added condition to macro, fixes bug 1666080
3309
3310 2007-03-02 Raphael Neider <rneider AT web.de>
3311
3312         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
3313
3314 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3315
3316         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
3317         be cleared. Unconditionally set __XPAGE
3318         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
3319
3320 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3321
3322         * src/SDCCglobl.h,
3323         * src/SDCCmain.c,
3324         * src/mcs51/gen.c,
3325         * src/mcs51/rtrack.c,
3326         * src/ds390/gen.c,
3327         * doc/sdccman.lyx: added --no-gen-comments
3328         * src/mcs51/peeph.def: added 192.b, disabled 185
3329
3330 2007-02-25 Raphael Neider <rneider AT web.de>
3331
3332         * src/pic16/gen.c (genCast): fixed typo
3333         * device/lib/pic16/Makefile.subdir: only install existing files
3334         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
3335
3336 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
3337
3338         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
3339         * device/lib/mcs51/crtclear.asm,
3340         * device/lib/mcs51/crtxclear.asm: renumbered labels
3341         * device/lib/mcs51/Makefile.in: added crtcall.asm
3342         * doc/sdccman.lyx: documented mcs51 crt* library startup code
3343         * src/mcs51/gen.c (movc): removed,
3344           (aopGet, genPlusBits): clear a after loading the carry (possibly from
3345             acc.x or psw.x),
3346           (toCarry, genSend, genRet): added function toCarry,
3347           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
3348           (assignBit, genAssign, genCast): added function assignBit
3349         * src/mcs51/Makefile.bcc: added rtrack.c
3350         * src/mcs51/ralloc.h: made valueKnown a bitfield
3351         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
3352           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
3353           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
3354         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
3355         * src/z80/gen.c: added AOP_IS_PAIRPTR,
3356           (_pop): only pop valid pairs, see gencjneshort,
3357           (gencjneshort): return pair that still needs to be popped, restructured,
3358           (gencjne, genCmpEq): call _pop
3359
3360 2007-02-23 Raphael Neider <rneider AT web.de>
3361
3362         * device/include/pic/pic14devices.txt: 16f684 has only one config word
3363
3364 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3365
3366         * device/include/mcs51/P89LPC925.h: Added.
3367
3368 2007-02-18 Raphael Neider <rneider AT web.de>
3369
3370         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
3371
3372 2007-02-17 Borut Razem <borut.razem AT siol.net>
3373
3374         * support/cpp2/directives.c, support/cpp2/version.c:
3375           synchronized with GCC CPP 4.1.2
3376
3377 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3378
3379         * src/mcs51/rtrack.h,
3380         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
3381           by checking the strings passed by emitcode() to the assembler.
3382           Feel free to change. This in part addresses RFE #482179.
3383           Set environment variable SDCC_RTRACK to enable.
3384         * src/mcs51/gen.c: inserted hooks
3385         * src/mcs51/ralloc.h: added two members to struct regs
3386         * support/regression/tests/regtrack.c: added
3387
3388 2007-02-14 Borut Razem <borut.razem AT siol.net>
3389
3390         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
3391         * Makefile.in: applied patch from Makefile related part of
3392           #1469393: Compiler does not initialize static data
3393
3394 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
3395
3396         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
3397           for better fix of bug 1273984, compiles pic16 rand.c
3398
3399 2007-02-12 Borut Razem <borut.razem AT siol.net>
3400
3401         * src/pic16/main.c: fixed pic16 standard library directory bug
3402
3403 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
3404
3405         * src/hc08/gen.c (genSwap): fix swap regression test
3406
3407 2007-02-10 Borut Razem <borut.razem AT siol.net>
3408
3409         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
3410           with same scope
3411         * support/regression/tests/bug-1654060.c: added regression test for
3412           #1654060
3413
3414 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
3415
3416         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
3417         bit moves in return statement
3418
3419 2007-02-09 Borut Razem <borut.razem AT siol.net>
3420
3421         * src/SDCC.y: fixed bug #1654060 typedef within function causes
3422           syntax error
3423
3424 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3425
3426         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
3427         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
3428
3429 2007-02-07 Raphael Neider <rneider AT web.de>
3430
3431         * src/pic16/devices.inc,
3432         * device/include/pic16/pic18fregs.h,
3433         * device/include/pic16/pic18f[24][34]31.h,
3434         * device/lib/pic16/libdev/pic18f[24][34]31.c,
3435         * device/lib/pic16/pics.all: added 18f[24][34]31 family
3436         * device/lib/pic16/libio/i2c.ignore: do not build i2c
3437
3438 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3439
3440         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
3441           can this have lived here for so many years?
3442         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
3443           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
3444         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
3445
3446 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
3447
3448         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
3449         appended by loop induction must be at the very end of the eBBlock
3450
3451 2007-02-05 Kevin Vigor
3452
3453         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
3454
3455 2007-02-05 Borut Razem <borut.razem AT siol.net>
3456
3457         * support/regression/fwk/lib/timeout.c: native WIN32 port,
3458           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
3459
3460 2007-02-03 Borut Razem <borut.razem AT siol.net>
3461
3462         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
3463           applied patch #1646602 option to set default signedness of char to
3464           unsigned, added -funsigned-char command line option,
3465           thanks to Gunther Jehle
3466         * device/lib/Makefile.in: added the -f option to rm so it doesn't
3467           prompt for file deletion a few hundred times (especially the
3468           subversion files, which have ro permissions so it asks for
3469           confirmation), thanks to Simon McAuliffe;
3470           added {} + option to find in order to remove multiple files from a
3471           single rm commad
3472
3473 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3474
3475         * device/include/mcs51/SST89x5xRDx.h: Added.
3476
3477 2007-02-02 Raphael Neider <rneider AT web.de>
3478
3479         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
3480         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
3481
3482 2007-02-01 Raphael Neider <rneider AT web.de>
3483
3484         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
3485           config words again
3486
3487 2007-01-31 Borut Razem <borut.razem AT siol.net>
3488
3489         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
3490           if compiled with GCC. Thanks to Raphael Neider
3491
3492 2007-01-31 Raphael Neider <rneider AT web.de>
3493
3494         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
3495             operand names, handles name and (name + n) for all n,
3496           (sameBank): restructured, also check bank allocation policy,
3497         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
3498           (pic14_operandsAllocatedInSameBank): check whether to operands
3499             will be allocated into the same bank (i.e., section) to reduce
3500             BANKSEL overhead, queried from pcode.c:sameBank,
3501           (pic14printLocals): reintroduced clustering registers into a single
3502             section: all compiler generated symbols will now reside in one
3503             bank (per file), reducing BANKSEL overhead and code size,
3504           (showAllMemmaps): use local dbuf where possible
3505
3506 2007-01-29 Raphael Neider <rneider AT web.de>
3507
3508         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
3509           (call_libraryfunc): retrieve/create symbol and mark as used,
3510           (genFunction): mark defined functions as non-extern and add again
3511            to code memmap for later output
3512         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
3513           (pic14printLocals): reworked for new symbol emission,
3514           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
3515           showAllMemmaps): reworked symbol output using dbufs, added handling
3516             of string literals (still incomplete),
3517           (picglue): removed symbol emission, moved into showAllMemmaps,
3518           (emitSymbolSet): new workhorse for symbol output,
3519           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
3520
3521 2007-01-29 Borut Razem <borut.razem AT siol.net>
3522
3523         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
3524           component contains the extension separator.
3525
3526 2007-01-28 Borut Razem <borut.razem AT siol.net>
3527
3528         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
3529           on WIN32
3530         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
3531           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
3532           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
3533           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
3534           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
3535           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
3536           src/z80/gen.c, support/Util/MySystem.c:
3537           accept slash and backslash as directory separator on WIN32 and
3538           Cygwin ports
3539
3540 2007-01-28 Raphael Neider <rneider AT web.de>
3541
3542         * src/pic16/devices.inc,
3543         * device/include/pic16/pic18f[24][23]21.h,
3544         * device/include/pic16/pic18fregs.h,
3545         * device/lib/pic16/libdev/pic18f[24][23]21.c,
3546         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
3547         * device/lib/pic16/libio/adc.ignore,
3548         * device/lib/pic16/libio/i2c.ignore,
3549         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
3550           family, as gputils do not yet support the devices
3551         * device/lib/pic16/Makefile.subdir: ignore errors on install
3552         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
3553           headers and libraries from gputils .inc files
3554
3555 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3556
3557         * doc/sdccman.lyx: add printf_fast_f precision limitation note
3558
3559 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3560
3561         * doc/sdccman.lyx: add printf benchmarks
3562
3563 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3564
3565         * device/lib/printf_fast.c: fix %c, char promoted to int
3566         * device/lib/printf_tiny.c: fix %c, char promoted to int
3567
3568 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3569
3570         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
3571
3572 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3573
3574         * support/regression/tests/swap.c: 64 bit hosts failed
3575         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
3576
3577 2007-01-25 Raphael Neider <rneider AT web.de>
3578
3579         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
3580           based on absolute register address, patch by Alex Blond
3581
3582 2007-01-22 Raphael Neider <rneider AT web.de>
3583
3584         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
3585           emitted, do not emit them again...
3586
3587 2007-01-22 Raphael Neider <rneider AT web.de>
3588
3589         * src/regression/bank1.c, src/regression/compare6.c,
3590           src/regression/add.c: cosmetic changes
3591         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
3592         * src/pic/gen.c: fixed global zero and one,
3593           (aopForSym): removed unued code,
3594           (aopGet): assert aop is defined, check and use `index' of
3595             pCodeImmd operands (fixes #1630908),
3596         * src/pic/pcode.c (get_op): added output of generic pointer tag,
3597           (register_reassign): prevent accidental register unification,
3598           (ReuseReg): cosmetic changes (also above)
3599         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
3600           pic14emitStaticSeg): do not emit initialized data,
3601           (printIval*): replaced with working versions,
3602           (pic14createInterruptVect,picglue): use idata for initialized data,
3603             now init data should work in all modules (not only main()),
3604         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
3605
3606 2007-01-21 Borut Razem <borut.razem AT siol.net>
3607
3608         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
3609           use -fPIC or -fpic if they are supported and not ignored
3610         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
3611         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
3612
3613 2007-01-20 Borut Razem <borut.razem AT siol.net>
3614
3615         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
3616           implemented RFE #1470316: allow "$" in variable names
3617
3618 2007-01-20 Raphael Neider <rneider AT web.de>
3619
3620         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
3621
3622 2007-01-20 Raphael Neider <rneider AT web.de>
3623
3624         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
3625         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
3626         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
3627         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
3628           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
3629         * device/lib/pic/libdev/pic*.c,
3630         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
3631         * device/lib/pic/libdev/Makefile.in: show progress
3632
3633 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
3634
3635         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
3636         * support/scripts/sdcc_cygwin_mingw32,
3637         * support/scripts/sdcc_mingw32,
3638         * support/scripts/build.mak: replaced --datadir by --datarootdir for
3639         conformance with autoconf 2.6
3640
3641 2007-01-19 Raphael Neider <rneider AT web.de>
3642
3643         * src/pic/device.c (register_map): fixed list construction
3644         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
3645           (genMod): removed case for genModbits,
3646           (genModbits): removed as now unused/unimplemented
3647         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
3648
3649 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3650
3651         * support/regression/tests/swap.c: added in response to #1638622
3652         * doc/sdccman.lyx: synced version, minor changes
3653
3654 2007-01-18 Borut Razem <borut.razem AT siol.net>
3655
3656         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
3657           thanks to Gunther Jehle
3658         * src/asm.c: don't die if the file drfined in #line couldn't be opened
3659         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
3660           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
3661           use filename in lineno instead.
3662         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
3663           print the file name in ast_print()
3664
3665 2007-01-18 Borut Razem <borut.razem AT siol.net>
3666
3667         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
3668           defined in MSVC
3669         * src/SDCC.lex: stringLiteral() returns const char pointer,
3670           EOF detection in stringLiteral(), fixed asmbuf memory leak,
3671           fixed column counting
3672         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
3673           accept const char pointer as parameter
3674         * src/SDCCdwarf2.c: corrected buffer size
3675
3676 2007-01-17 Borut Razem <borut.razem AT siol.net>
3677
3678         * support/Util/dbuf_string.c: fixed for amd64
3679
3680 2007-01-15 Borut Razem <borut.razem AT siol.net>
3681
3682         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
3683           removed terminal symbol ELIPSIS, since it was never generated by the
3684           lexer and it was wrongly used in parameter_identifier_list rule
3685
3686 2007-01-15 Raphael Neider <rneider AT web.de>
3687
3688         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
3689             code page and data banking description
3690         * src/pic/genarith.c,
3691         * src/pic/gen.h: removed bit arithmetic functions,
3692             updated exit(1) to exit(EXIT_FAILURE)
3693         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
3694         * device/include/pic16/pic18f2455.h,
3695         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
3696             TRISD and TRISE, fixed/added some bit names
3697         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
3698         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
3699             updated pic18f2455.{c,h} instead of duplicating them
3700
3701 2007-01-14 Borut Razem <borut.razem AT siol.net>
3702
3703         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
3704           Cannot debug files that contain spaces in the path name
3705           by converting spaces in asm file name to underscores
3706
3707 2007-01-13 Borut Razem <borut.razem AT siol.net>
3708
3709         * doc/sdccman.lyx: fixed format errors
3710
3711 2007-01-10 Borut Razem <borut.razem AT siol.net>
3712
3713         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
3714           codeseg/constseg #pragma fail
3715         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
3716         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
3717           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
3718           suppoprt/cpp2/sdcpp.[ch]: house cleaning
3719
3720 2007-01-09 Borut Razem <borut.razem AT siol.net>
3721
3722         * get rid of diagnistic.[ch], pretty-print.[ch],
3723           c-pretty-print.[ch], ... used just for error, warning, ...
3724           message formatting
3725         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
3726           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
3727           suppoprt/cpp2/pretty-print.[ch]:
3728           removed
3729         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
3730           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
3731           suppoprt/cpp2/sdcpp.dsp:
3732           changed
3733
3734 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
3735
3736         * device/lib/printf_large.c (output_float): removed recursion,
3737           use smaller buffer on stack for mcs51,
3738           fixed bug printing 1.96
3739         * support/regression/tests/snprintf.c: added test
3740
3741 2007-01-07 Borut Razem <borut.razem AT siol.net>
3742
3743         * use dynamic memory buffers instead temporary files
3744         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
3745           added
3746         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
3747           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
3748           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
3749           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
3750           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
3751           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
3752           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
3753           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
3754           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
3755           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
3756           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
3757           support/Util/dbuf.c, support/Util/dbuf.h:
3758           modified
3759         * .version, sdcc.spec: bumped version to 2.6.4
3760
3761 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
3762
3763         * src/port.h: added TARGET_Z80_LIKE macro
3764         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
3765           output PSEG location if --xram-loc or --xstack-loc was used
3766         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
3767
3768 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
3769
3770         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
3771         * as/as_z80.dsp,   as/z80/as_z80.dsp,
3772         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
3773         * sdcc.dsw: moved project files into subdir
3774         * as/hc08/as_hc08.dsp,
3775         * as/hc08/Makefile.bcc,
3776         * as/hc08/Makefile.in,
3777         * as/mcs51/Makefile.bcc,
3778         * as/mcs51/Makefile.in,
3779         * as/z80/Makefile.bcc,
3780         * as/z80/Makefile.in,
3781         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
3782         * as/hc08/asm.h,
3783         * as/mcs51/asm.h,
3784         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
3785         * as/hc08/asmain.c,
3786         * as/hc08/assym.c,
3787         * as/mcs51/asmain.c,
3788         * as/mcs51/assym.c,
3789         * as/z80/assym.c: removed include "strcmpi.h"
3790         * as/hc08/strcmpi.c,
3791         * as/hc08/strcmpi.h,
3792         * as/mcs51/strcmpi.c,
3793         * as/mcs51/strcmpi.h,
3794         * support/Util/strcmpi.c,
3795         * support/Util/strcmpi.h: removed files
3796         * as/strcmpi.c: added as_strncmpi()
3797
3798 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3799
3800         * sdcc.dsw: Added some dependencies on project config.dsp
3801
3802 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
3803
3804         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
3805           with [di]ram_start to fix a regresion
3806
3807 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
3808
3809         * configure.in: added missing mcs51 in status output
3810         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
3811         directory
3812         * debugger/mcs51/clean.mk (distclean): remove config.h
3813         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
3814         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
3815         options.h, s-options-h and options.c
3816         * support/cpp2/clean.mk: unused, removed
3817         * Makefile.common.in,
3818         * main_in.mk,
3819         * as/Makefile.in,
3820         * as/hc08/Makefile.in,
3821         * as/hc08/clean.mk,
3822         * as/mcs51/Makefile.in,
3823         * as/mcs51/clean.mk,
3824         * as/z80/clean.mk,
3825         * as/z80/conf.mk,
3826         * as/z80/Makefile.in,
3827         * as/z80/clean.mk,
3828         * as/link/Makefile.in,
3829         * as/link/hc08/Makefile.in,
3830         * as/link/hc08/clean.mk,
3831         * as/link/mcs51/Makefile.in,
3832         * as/link/mcs51/clean.mk,
3833         * as/link/z80/Makefile.in,
3834         * as/link/z80/clean.mk,
3835         * as/link/z80/conf.mk,
3836         * debugger/mcs51/Makefile.in,
3837         * debugger/mcs51/clean.mk,
3838         * device/include/Makefile.in,
3839         * device/lib/Makefile.in,
3840         * device/lib/mcs51/Makefile.in,
3841         * device/lib/pic/Makefile.in,
3842         * device/lib/pic/Makefile.common.in,
3843         * device/lib/pic/Makefile.subdir,
3844         * device/lib/pic/Makefile.rules,
3845         * device/lib/pic16/libio/Makefile.in,
3846         * device/lib/pic16/Makefile.subdir,
3847         * device/lib/pic16/libdev/Makefile.in,
3848         * device/lib/pic16/Makefile.rules,
3849         * device/lib/pic16/Makefile.common.in,
3850         * sim/ucsim/avr.src/Makefile.in,
3851         * sim/ucsim/main_in.mk,
3852         * sim/ucsim/cmd.src/Makefile.in,
3853         * sim/ucsim/doc/Makefile.in,
3854         * sim/ucsim/gui.src/Makefile.in,
3855         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
3856         * sim/ucsim/gui.src/serio.src/Makefile.in,
3857         * sim/ucsim/hc08.src/Makefile.in,
3858         * sim/ucsim/libltdl/Makefile.in,
3859         * sim/ucsim/s51.src/Makefile.in,
3860         * sim/ucsim/sim.src/Makefile.in,
3861         * sim/ucsim/sim.src/conf.mk,
3862         * sim/ucsim/xa.src/Makefile.in,
3863         * sim/ucsim/z80.src/Makefile.in,
3864         * src/Makefile.in,
3865         * src/clean.mk,
3866         * src/port.mk,
3867         * support/cpp2/Makefile.in,
3868         * support/librarian/Makefile.in,
3869         * support/librarian/clean.mk,
3870         * support/makebin/Makefile.in,
3871         * support/makebin/clean.mk,
3872         * support/packihx/Makefile.in,
3873         * support/regression/Makefile.in,
3874         * support/regression/ports/ds390/spec.mk,
3875         * support/regression/ports/gbz80/spec.mk,
3876         * support/regression/ports/hc08/spec.mk,
3877         * support/regression/ports/mcs51/spec.mk,
3878         * support/regression/ports/mcs51-large/spec.mk,
3879         * support/regression/ports/mcs51-medium/spec.mk,
3880         * support/regression/ports/mcs51-xstack-auto/spec.mk,
3881         * support/regression/ports/pic14/spec.mk,
3882         * support/regression/ports/pic16/spec.mk,
3883         * support/regression/ports/mcs51-stack-auto/spec.mk,
3884         * support/regression/ports/ucz80/spec.mk,
3885         * support/regression/ports/xa51/spec.mk,
3886         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
3887         adding a slash after $(top_builddir) and/or adding @datarootdir@
3888         * configure.in,
3889         * debugger/mcs51/configure.in,
3890         * device/lib/pic/configure.in,
3891         * device/lib/pic16/configure.in,
3892         * sim/ucsim/configure.in,
3893         * support/cpp2/configure.in,
3894         * support/packihx/configure.in: changed AC_PREREQ to 2.60
3895         * configure,
3896         * debugger/mcs51/configure,
3897         * device/lib/pic/configure,
3898         * device/lib/pic16/configure,
3899         * sim/ucsim/configure,
3900         * support/cpp2/configure,
3901         * support/packihx/configure: generated with autoconf 2.60
3902
3903 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
3904
3905         * as/link/hc08/lkihx.c (newArea),
3906         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
3907
3908 2007-01-02 Borut Razem <borut.razem AT siol.net>
3909
3910         * doc/sdccman.lyx: documented #pragma sdcc_hash
3911         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
3912           initialized to 0
3913         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
3914
3915 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
3916
3917         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
3918         empty 'while'-loop to work correctly, see regression test 'while.c'
3919         * support/regression/tests/while.c: added
3920
3921 2007-01-01 Borut Razem <borut.razem AT siol.net>
3922
3923         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
3924           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
3925           support/cpp2/libcpp/sdcpp.c:
3926           sdcpp specific pragma/directive/option handling moved to sdcpp.c
3927         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
3928         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
3929
3930 2006-12-31 Borut Razem <borut.razem AT siol.net>
3931
3932         * SDCPP synchronized with GCC CPP release version 4.1.1,
3933           currently the latest release:
3934         * support/cpp2/libcpp, support/cpp2/libcpp/include,
3935           support/cpp2/libcpp/include/cpp-id-data.h
3936           support/cpp2/libiberty/fopen_unlocked.c
3937           support/cpp2/libiberty/md5.c
3938           support/cpp2/md5.h
3939           support/cpp2/opt-functions.awk
3940           support/cpp2/opt-gather.awk
3941           support/cpp2/optc-gen.awk
3942           support/cpp2/opth-gen.awk:
3943           added
3944         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
3945           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
3946           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
3947           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
3948           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
3949           support/cpp2/diagnostic.h, support/cpp2/except.h,
3950           support/cpp2/hwint.h, support/cpp2/input.h,
3951           support/cpp2/intl.h, support/cpp2/move-if-change,
3952           support/cpp2/opts.c, support/cpp2/opts.h,
3953           support/cpp2/output.h, support/cpp2/prefix.c,
3954           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
3955           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
3956           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
3957           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
3958           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
3959           support/cpp2/version.c:
3960           modified
3961         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
3962           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
3963           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
3964           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
3965           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
3966           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
3967           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
3968           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
3969           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
3970           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
3971           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
3972           moved
3973         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
3974           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
3975           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
3976           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
3977           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
3978           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
3979           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
3980           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
3981           support/cpp2/hashtable.h, support/cpp2/line-map.c,
3982           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
3983           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
3984           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
3985           support/cpp2/system.h:
3986           deleted / moved
3987
3988 2006-12-31 Borut Razem <borut.razem AT siol.net>
3989
3990         * configure.in, configure: fixed bug #1538756: configure dies if bison
3991           and flex are not installed, 2nd try
3992
3993 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
3994
3995         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
3996         400.x for better code in RFE 899102
3997
3998 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
3999
4000         * src/SDCCpeeph.c (deadMove),
4001         * src/port.h,
4002         * src/mcs51/peep.h: renamed 'op' by 'reg'
4003         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
4004         (scan4op): small change for removeDeadMove(), added support for
4005         'callee saves' and/or PACLL function calls,
4006         (removeDeadMove): added, removes superflous 'mov r%1,%2',
4007         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
4008         left in new dispatcher mcs51DeadMove()
4009         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
4010         removeDeadMove()
4011         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
4012
4013 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4014
4015         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
4016           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
4017
4018 2006-12-30 Borut Razem <borut.razem AT siol.net>
4019
4020         * support/cpp2/spacs.h: deleted from svn
4021         * configure.in, configure: fixed bug #1538756: configure dies if bison
4022           and flex are not installed
4023
4024 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
4025
4026         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
4027           with this z80 passes printf float test when enabled
4028         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
4029
4030 2006-12-28 Borut Razem <borut.razem AT siol.net>
4031
4032         * support/cpp2/config.in, support/cpp2/configure.in,
4033           support/cpp2/configure, support/cpp2/Makefile.in:
4034           fix for the solaris build
4035
4036 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4037
4038         * src/SDCC.y (type_specifier2, pointer),
4039         * src/SDCCsymt.h,
4040         * src/SDCCsymt.c (mergeSpec, checkSClass),
4041         * support/Util/SDCCerr.c,
4042         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
4043         * support/valdiag/valdiag.py: Allow test cases to specify
4044           required language standard
4045         * support/valdiag/tests/restrict.c: New file to test restrict keyword
4046         * support/valdiag/tests/tentdecl.c: Supress empty source file error
4047
4048 2006-12-27 Borut Razem <borut.razem AT siol.net>
4049
4050         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
4051         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
4052           mbchar removed
4053         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
4054           fixed for borland C
4055         * support/cpp2/libiberty/Makefile.bcc: updated
4056         * src/pic16/main.c: fixed #pragma udata handling
4057         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
4058
4059 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
4060
4061         * src/SDCCpeeph.c: made labelHashEntry global,
4062         made pcDistance, FBYNAME static,
4063         (pcDistance): made static, use isComment and isLabel,
4064         (deadMove): added,
4065         (getLabelRef): added, extracted from labelRefCount(),
4066         (labelRefCount): use new getLabelRef(),
4067         (callFuncByName): made static, added deadMove,
4068         use isComment and isLabel,
4069         (newPeepRule): made static, set isLabel,
4070         (isLabelDefinition): added parameter isPeepRule to allow '%' in
4071         labels from peephole rules,
4072         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
4073         when isComment or isLabel is set
4074         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
4075         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
4076         to make them global
4077         * src/mcs51/peep.h: added
4078         * src/mcs51/peep.c: added, implements mcs51DeadMove()
4079         * src/port.h: added peep->deadMove to port structure
4080         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
4081         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
4082         deadMove, finally removed no. 1 and 2
4083         * src/mcs51/gen.c,
4084         * src/pic/gen.c,
4085         * src/z80/gen.c,
4086         * src/z80/ralloc.c,
4087         * src/pic16/gen.c,
4088         * src/ds390/gen.c,
4089         * src/hc08/gen.c: mark lines with isComment or isLabel
4090         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
4091         * .version,
4092         * sdcc.spec: bumped version to 2.6.3
4093
4094 2006-12-26 Borut Razem <borut.razem AT siol.net>
4095
4096         * support/cpp2/Makefile.in: added dependency on options.h
4097         * configure: regenerated
4098         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
4099         * support/cpp2/Makefile.in: added vasprintf.c
4100
4101 2006-12-25 Borut Razem <borut.razem AT siol.net>
4102
4103         * SDCPP synchronized with GCC CPP release version 3.4.6,
4104           the latest release before 4.x:
4105         * support/cpp2/Makefile.in, support/cpp2/config.h,
4106           support/cpp2/configure, support/cpp2/configure.in,
4107           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
4108           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
4109           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
4110           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
4111           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
4112           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
4113           support/cpp2/cpptrad.c, support/cpp2/except.h,
4114           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
4115           support/cpp2/hwint.h, support/cpp2/intl.h,
4116           support/cpp2/line-map.c, support/cpp2/line-map.h,
4117           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
4118           support/cpp2/output.h, support/cpp2/prefix.c,
4119           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
4120           support/cpp2/system.h, support/cpp2/version.c:
4121           modified
4122         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
4123           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
4124           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
4125           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
4126           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
4127           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
4128           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
4129           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
4130           support/cpp2/move-if-change, support/cpp2/opts.c,
4131           support/cpp2/opts.h, support/cpp2/opts.sh,
4132           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
4133           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
4134           support/cpp2/win32, support/cpp2/win32/dirent.c,
4135           support/cpp2/win32/dirent.h:
4136           added
4137         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
4138         * support/cpp2/sdcpp.h: renamed from sdcc.h
4139         * sdcppinit.c: deleted
4140
4141 2006-12-23 Borut Razem <borut.razem AT siol.net>
4142
4143         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
4144           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
4145           preproc.c: an other try to fix bug #982435: introduced
4146           -pedantic-parse-number command line option and pedantic_parse_number
4147           pragma
4148
4149 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
4150
4151         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
4152            BSEG handling,
4153           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
4154            corrected overlayed areax addresses, warn about memory overlaps
4155         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
4156         * src/avr/main.c,
4157         * src/ds390/main.c,
4158         * src/hc08/main.c,
4159         * src/mcs51/main.c,
4160         * src/pic16/main.c,
4161         * src/pic/main.c,
4162         * src/xa51/main.c,
4163         * src/z80/main.c,
4164         * src/port.h: added xabs_name and iabs_name
4165         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
4166           (glue, emitMaps): create and emit maps d_abs and i_abs
4167         * src/SDCCglue.h: cosmetic changes
4168         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
4169         * src/SDCCmem.h,
4170         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
4171           (allocDefault): put absolute, initialized globals in them
4172         * support/regression/tests/absolute.c: added absolute bdata test
4173         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
4174
4175 2006-12-20 Borut Razem <borut.razem AT siol.net>
4176
4177         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
4178         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
4179           added regression test for bug #982435
4180
4181 2006-12-18 Borut Razem <borut.razem AT siol.net>
4182
4183         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
4184         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
4185           small cosmetic changes
4186         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
4187         * support/regression/tests/bug-1351710.c: added regression test
4188
4189 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4190
4191         * doc/sdccman.lyx: added the long missed iCode table
4192           "<where is figure II?>", added links to wiki
4193
4194 2006-12-17 Borut Razem <borut.razem AT siol.net>
4195
4196         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
4197           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
4198           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
4199           unified table driven pragma handling, pragma argument type checking
4200         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
4201           current one - version 1.1.3
4202         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
4203
4204 2006-12-13 Raphael Neider <rneider AT web.de>
4205
4206         * src/pic/device.h: removed AssignedMemory structure and macros
4207         * src/pic/device.c: removed global finalMapping (linker assigns
4208             memory locations),
4209           (register_map): add SFRs to remembered memRanges
4210           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
4211           assignFixedRegisters,assignRelocatableRegisters): removed,
4212           (setMaxRAM,validAddress): adapted accordingly,
4213           (pic14_hasSharebank,pic14_getSharedStack): only report and use
4214             reasonably sized sharebanks,
4215         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
4216           (allDefsOutOfRange): removed unused code,
4217         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
4218             handling
4219         * src/pic/pcode.c (register_reassign): removed recursion warning,
4220             fired far too often,
4221         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
4222             to use existing pic14_stringInSet() to avoid duplicate symbols,
4223             tidied up the code a bit,
4224           (pic14printLocals): added in symmetry to printExterns, replaces
4225             writeUsedRegs more or less,
4226           (picglue): call new pic14_printLocals(),
4227         * device/include/pic/pic*.h: removed #pragma memmap directives,
4228             information gathered from include/pic/pic14devices.txt
4229         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
4230
4231 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
4232
4233         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
4234
4235 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4236
4237         * device/include/mcs51/cc2430.h: fixed missing ';'
4238
4239 2006-12-10 Raphael Neider <rneider AT web.de>
4240
4241         * device/lib/pic16/libc/stdio/vfprintf.c,
4242         * device/lib/pic16/libc/stdio/printf_small.c,
4243         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
4244           char arguments, as char varargs are cast to int by the caller,
4245           hopefully fixes #1604915 (other device libraries are still affected)
4246
4247 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4248
4249         * src/mcs51/ralloc.c (packRegsForAssign),
4250         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
4251
4252 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
4253
4254         * device/include/malloc.h: removed init_dynamic_memory
4255         * device/lib/malloc.c: made init_dynamic_memory static and automatically
4256           call it once from malloc. Also use _sdcc_heap[] from _heap.c
4257         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
4258         * device/lib/libsdcc.lib,
4259         * device/lib/Makefile.in,
4260         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
4261         * doc/sdccman.lyx: documented use of new _heap.c
4262         * support/regression/tests/malloc.c: removed init_dynamic_memory
4263         * src/cdbFile.c(spacesToUnderscores): new function,
4264           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
4265           1068030
4266         * device/include/tinibios.h: removed defines for putchar and getchar
4267         * device/lib/ds390/Makefile.in: added putchar.c
4268         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
4269
4270 2006-12-09 Borut Razem <borut.razem AT siol.net>
4271
4272         * support/cpp2/sdcc.h: prevent multiple inclusion
4273         * support/cpp2/options.h: deleted
4274
4275 2006-12-08 Borut Razem <borut.razem AT siol.net>
4276
4277         * support/cpp2/sdcc.h: removed x*alloc() macros
4278         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
4279         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
4280           support/cpp2/sdcpp.sdc: x*alloc files added to the project
4281         * support/cpp2/system.h: moved #include "sdcc.h"
4282         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
4283           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
4284           added
4285         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
4286           -funsigned-char options
4287         * support/cpp2/sdcppmain.c: fixed bug 1611411
4288
4289 2006-12-07 Borut Razem <borut.razem AT siol.net>
4290
4291         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
4292           directive
4293
4294 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
4295
4296         * src/SDCCsymt.c (addDecl): fixed bug 1609244
4297         * src/SDCCmain.c (linkEdit): fixed bug 1609279
4298         * doc/sdccman.lyx,
4299         * .version: bumped to 2.6.2 because a) it's been a while
4300           b) the linker sources have moved c) the preprocessor is upgraded
4301
4302 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4303
4304         * support/regression/tests/snprintf.c: some checks
4305         * lib/src/printf_large.c: %bc: read char instead of int from stack
4306
4307 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
4308
4309         * device/include/mcs51/cc2430.h: inserted _XPAGE
4310
4311 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4312
4313         * device/include/mcs51/cc2430.h: added
4314
4315 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
4316
4317         * device/include/asm/default/features.h,
4318         * device/include/asm/ds390/features.h,
4319         * device/include/mcs51/at89s53.h,
4320         * device/include/ser.h,
4321         * device/include/ser_ir.h,
4322         * device/include/serial.h: changed keywords to double underscore variants,
4323           fixes bug 1590261 some more, thanks Steven Borley
4324
4325 2006-12-01 Raphael Neider <rneider AT web.de>
4326
4327         * src/pic/pcode.c (register_reassign): do not crash on recursive code
4328           but emit warning (recursion is not supported for pic14)
4329
4330 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4331
4332         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
4333         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
4334
4335 2006-11-30 Raphael Neider <rneider AT web.de>
4336
4337         * src/pic/device.c (dump_sfr): always emit symbols
4338         * src/pic/glue.c (pic14printPublics): fixed typo
4339
4340 2006-11-30 Raphael Neider <rneider AT web.de>
4341
4342         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
4343           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
4344           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
4345            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
4346            a sharebank, use a non-shared bank for the stack if none available
4347         * src/pic/device.h (struct memRange): added linked list next field,
4348           added prototypes for above functions
4349         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
4350           (typeRegWithIdx): accept fixed and unfixed stack registers
4351         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
4352           the stack, handle shared and banked stack (except for WSAVE),
4353           (insertBankSel): removed useless optimization (will never fire),
4354           (FixRegisterBanking): added optimization for devices with only one
4355           possibly aliased bank of memory, like 16f84
4356         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
4357           devices have no SHAREBANK in the linker script
4358         * device/include/pic/pic14devices.txt: documented memmap
4359         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
4360
4361 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4362
4363         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
4364           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
4365           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
4366           genhc08Code): switched most of the D (debug) macros to DD (detailed
4367           debug) macros to better control clutter in the generated .asm file.
4368         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
4369           genRightShift): fixed bug with non-constant bit shift stored to
4370           a volatile result (SF Open Discussion forum thread #1616749).
4371           Single byte case is not yet optimized.
4372
4373 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
4374
4375         * device/include/asm/mcs51/features.h,
4376         * device/include/malloc.h,
4377         * device/include/stdio.h: changed keywords to double underscore variants,
4378           fixes bug 1590261
4379
4380 2006-11-27 Borut Razem <borut.razem AT siol.net>
4381
4382         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4383           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
4384           support/cpp2/output.h, support/cpp2/cppinit.c,
4385           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
4386           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4387           support/cpp2/cppdefault.c, support/cpp2/system.h,
4388           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
4389           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
4390           support/cpp2/prefix.c, support/cpp2/except.h,
4391           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
4392           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
4393           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4394           support/cpp2/version.c, support/cpp2/cppmain.c,
4395           support/cpp2/version.h, support/cpp2/hashtable.c,
4396           support/cpp2/cpperror.c:
4397           synchronized with GCC CPP release version 3.3.6,
4398           the latest where cppmain.c still exists.
4399         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
4400           support/cpp2/sdcppinit.c: added
4401
4402 2006-11-27 Borut Razem <borut.razem AT siol.net>
4403
4404         * support/cpp2/cpplex.c:
4405           fixed _asm ... _endasm handling bug, introduce with GCC CPP
4406           synchronization
4407         * support/cpp2/cpplib.c: removed definitions of unused variables
4408
4409 2006-11-26 Borut Razem <borut.razem AT siol.net>
4410
4411         * support/cpp2/libiberty.h: commented out x*alloc() declarations
4412           since they are redefined by macros in support/cpp2/sdcc.h
4413         * support/cpp2/sdcc.h: x*alloc macro redefinition
4414
4415 2006-11-25 Borut Razem <borut.razem AT siol.net>
4416
4417         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4418           support/cpp2/configure, support/cpp2/Makefile.in,
4419           support/cpp2/cppfiles.c, support/cpp2/output.h,
4420           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
4421           support/cpp2/config.h, support/cpp2/cpplib.h,
4422           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4423           support/cpp2/cppdefault.c, support/cpp2/config.in,
4424           support/cpp2/system.h, support/cpp2/cpplex.c,
4425           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
4426           support/cpp2/cppdefault.h, support/cpp2/prefix.c
4427           support/cpp2/hwint.h, support/cpp2/mbchar.h,
4428           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
4429           support/cpp2/configure.in, support/cpp2/intl.h,
4430           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
4431           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4432           support/cpp2/version.c, support/cpp2/cppmain.c,
4433           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
4434           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
4435           support/cpp2/cpperror.c,
4436           support/cpp2/libiberty/safe-ctype.c,
4437           support/cpp2/libiberty/safe-ctype.h,
4438           support/cpp2/libiberty/splay-tree.c,
4439           support/cpp2/libiberty/obstack.c,
4440           support/cpp2/libiberty/lbasename.c,
4441           support/cpp2/libiberty/splay-tree.h,
4442           support/cpp2/libiberty/obstack.h:
4443           synchronized with GCC CPP release version 3.2.3,
4444           the latest before integration of cpp into gcc
4445         * support/cpp2/except.h, support/cpp2/line-map.c,
4446           support/cpp2/line-map.h,
4447           support/cpp2/libiberty/hex.c,
4448           support/cpp2/libiberty/concat.c,
4449           support/cpp2/libiberty/filenames.h: added
4450         * support/cpp2/intl.c: deleted
4451
4452 2006-11-24 Borut Razem <borut.razem AT siol.net>
4453
4454         * src/SDCC.y: enabled compilation of empty source file
4455         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
4456           "ISO C forbids an empty source file"
4457         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
4458           if all the code is ifdefed out.
4459
4460 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4461
4462         * src/hc08/gen.c (genPcall): fix for bug #1601032
4463
4464 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4465
4466         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
4467         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
4468         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
4469         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
4470         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
4471         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
4472         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
4473         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
4474         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
4475         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
4476         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
4477         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
4478         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
4479         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
4480         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
4481           Renamed to all upper case as per the standard set by SiLabs
4482
4483 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4484
4485         * device/include/mcs51/C8051F520.h: new, added
4486         * device/include/mcs51/compiler.h: added link about predefined macros
4487
4488 2006-11-23 Raphael Neider <rneider AT web.de>
4489
4490         * src/regression/Makefile: add -L path to fresh library
4491         * src/regression/simulate: emphasize FAILED output
4492         * src/regression/create_stc: output _failures from gpsim
4493         * src/regression/compare4.c,
4494         * src/regression/rotate6.c: fixed char literals,
4495           all compile, all run =8-D
4496
4497         * src/pic/pcode.h: added isPCASMDIR macro
4498         * src/pic/gen.c (genAnd): fixed bit offset
4499         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
4500           packBits): unified register numbering schemes,
4501           (newReg): do not insert stack registers into hash table,
4502           (initStack): unpinned pseudo stack, simplified,
4503           (typeRegWithIdx): fixed retrieval of stack registers,
4504         * src/pic/pcode.c (addpCodeComment,sameBank): added,
4505           (pCodeReplace): removed invalid assertion,
4506           (insertPCodeInstruction): fixed newly added labels,
4507           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
4508           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
4509           DumpFlow): removed unsed (broken?) code,
4510           (insertBankSel): prevent STATUS from being BANKSELed,
4511           (FixRegisterBanking): rewritten from scratch, implemented generic
4512             optimizations (suppress BANKSELs to same register and to registers
4513             present in all banks),
4514           (AnalyzeBanking): update flow after BANKSELection
4515
4516         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
4517             sharebank, let linker place it, mark STKxx symbols as emitted
4518
4519 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4520
4521         * src/regression/arrays.c,
4522         * src/regression/bank1.c,
4523         * src/regression/bool2.c,
4524         * src/regression/compare7.c,
4525         * src/regression/compare8.c,
4526         * src/regression/compare9.c,
4527         * src/regression/compare10.c,
4528         * src/regression/configword.c,
4529         * src/regression/for.c,
4530         * src/regression/mult1.c,
4531         * src/regression/pointer1.c,
4532         * src/regression/rotate6.c,
4533         * src/regression/string1.c,
4534         * src/regression/struct1.c,
4535         * src/regression/Makefile: make PIC14 regression tests run again
4536           (3 fail, 6 won't compile)
4537
4538 2006-11-21 Raphael Neider <rneider AT web.de>
4539
4540         * device/include/pic16/pic18f4550.h,
4541         * device/include/pic16/pic18f4455.h,
4542         * device/lib/pic16/libdev/pic18f4550.c,
4543         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
4544         * configure.in: removed superfluous closing bracket
4545
4546 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4547
4548         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
4549           always positive.
4550
4551 2006-11-21 Raphael Neider <rneider AT web.de>
4552
4553         * src/pic/device.{c,h}: added pic14_getPIC()
4554         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
4555           (genAnd): added PIC code for one case, fixes #1597044
4556         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
4557           SFRs that are present in all banks (e.g., STATUS)
4558
4559 2006-11-20 Raphael Neider <rneider AT web.de>
4560
4561         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
4562           INCFSZ/INCFSZW and declared them as changing Z bit,
4563           (insertPCodeInstruction): correctly invert the above instructions,
4564           fixes #1599333,
4565           (DoBankSelect): don't panic on po_immediates
4566
4567 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4568
4569         * as/link/aslink.h,
4570         * as/link/mcs51/lkihx.c (newArea),
4571         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
4572         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
4573
4574 2006-11-11 Raphael Neider <rneider AT web.de>
4575
4576         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
4577           bitfield symbols, fixes #1579535 (once more...).
4578
4579 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4580
4581         * support/regression/generate-cases.py,
4582         * support/regression/fwk/include/testfwk.h,
4583         * support/regression/fwk/lib/testfwk.c: used code pointers,
4584           (about 50kByte less code generated for mcs51)
4585
4586 2006-11-06 Borut Razem <borut.razem AT siol.net>
4587
4588         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4589           debugger/mcs51/configure: fixed failed check because the function
4590           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
4591           who submitted the patch for gpsim.
4592         * debugger/mcs51/configure.in: removed the result message
4593         * debugger/mcs51/Makefile.in: fixed the config.status warning
4594           "... seems to ignore the --datarootdir setting"
4595
4596 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
4597
4598         * device/include/mcs51/c8051f020.h,
4599         * device/include/mcs51/c8051f040.h,
4600         * device/include/mcs51/c8051f060.h,
4601         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
4602         * src/z80/gen.c (gencjneshort),
4603         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
4604
4605 2006-10-31 Borut Razem <borut.razem AT siol.net>
4606
4607         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4608           debugger/mcs51/configure: get readline version
4609
4610 2006-10-30 Borut Razem <borut.razem AT siol.net>
4611
4612         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
4613         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4614           debugger/mcs51/configure: locate readline even when cross compiling
4615         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
4616
4617 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4618
4619         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
4620           serial port.
4621
4622 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4623
4624         * device/include/malloc.h,
4625         * device/lib/calloc.c,
4626         * device/lib/free.c,
4627         * device/lib/malloc.c,
4628         * device/lib/realloc.c: moved definition of struct into sources
4629         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
4630
4631 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4632
4633         * as/asx8051.dsp: corrected output directories
4634         * as/link/hc08: new directory for hc08 linker
4635         * as/hc08/aslink.h,             as/link/aslink.h,
4636         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
4637         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
4638         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
4639         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
4640         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
4641         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
4642         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
4643         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
4644         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
4645         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
4646         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
4647         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
4648         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
4649         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
4650         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
4651         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
4652         * as/link/hc08/conf.mk,
4653         * configure,
4654         * configure.in,
4655         * Makefile.in,
4656         * sdcc.dsw: moved hc08 linker to as/link/hc08
4657         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
4658         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
4659         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
4660         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
4661         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
4662         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
4663         * as/link/mcs51/aslink.dsp,
4664         * as/link/mcs51/Makefile.in: factored out the common files
4665         * as/hc08/lkstore.c: deleted, use the one already in as/link/
4666         * as/clean.mk: extra cleaning common files
4667         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
4668         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
4669         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
4670
4671 2006-10-29 Raphael Neider <rneider AT web.de>
4672
4673         * src/pic/ralloc.c (newReg): create aliases for registers with
4674           multiple names to fix #1579535 and #1584001,
4675           (regWithIdx,dirregWithName): resolve aliases on lookup
4676         * src/pic/pcode.c (DoBankSelect): die with error message on failing
4677           bankselect
4678         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
4679           to prevent build errors on small devices
4680
4681 2006-10-28 Raphael Neider <rneider AT web.de>
4682
4683         * src/pic/gen.c (genFunction,genCall): drop "same code page"
4684           assumption within interrupt handlers, fixes #1584940
4685         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
4686           "emitted" to avoid emitting them again in udata
4687
4688 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4689
4690         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
4691         Removed.
4692
4693 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4694
4695         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
4696         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
4697         on/off CR to CRLF conversion.
4698
4699 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4700
4701         * doc/sdccman.lyx: updated IRQ section
4702
4703 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4704
4705         * device/lib/serial_io.c: removed
4706         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
4707         replacements for serial_io.c
4708
4709 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
4710
4711         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
4712
4713 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4714
4715         * device/lib/serial_io.c: Default putchar() and getchar() for
4716           mcs51 uses serial port.
4717
4718 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
4719
4720         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
4721
4722 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4723
4724         * support/regression/ports/mcs51/support.c: smaller
4725         _sdcc_external_startup()
4726         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
4727
4728 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
4729
4730         * device/lib/gbz80/crt0.s,
4731         * device/lib/gbz80/crt0_rle.s,
4732         * device/lib/gbz80/div.s,
4733         * device/lib/gbz80/fstubs.s,
4734         * device/lib/gbz80/heap.s,
4735         * device/lib/gbz80/mul.s,
4736         * device/lib/gbz80/putchar.s,
4737         * device/lib/gbz80/stubs.s,
4738         * device/lib/z80/crt0.s,
4739         * device/lib/z80/crt0_rle.s,
4740         * device/lib/z80/div.s,
4741         * device/lib/z80/fstubs.s,
4742         * device/lib/z80/heap.s,
4743         * device/lib/z80/mul.s,
4744         * device/lib/z80/putchar.s,
4745         * device/lib/z80/stubs.s: reverted, I was mistaken
4746
4747 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4748
4749         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
4750         * support/regression/ports/mcs51/support.c: removed race
4751         condition on TI in _putchar allowing to use serial port mode 0
4752
4753 2006-10-20 Borut Razem <borut.razem AT siol.net>
4754
4755         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
4756
4757 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
4758
4759         * device/lib/gbz80/crt0.s,
4760         * device/lib/gbz80/crt0_rle.s,
4761         * device/lib/gbz80/div.s,
4762         * device/lib/gbz80/fstubs.s,
4763         * device/lib/gbz80/heap.s,
4764         * device/lib/gbz80/mul.s,
4765         * device/lib/gbz80/putchar.s,
4766         * device/lib/gbz80/stubs.s,
4767         * device/lib/z80/crt0.s,
4768         * device/lib/z80/crt0_rle.s,
4769         * device/lib/z80/div.s,
4770         * device/lib/z80/fstubs.s,
4771         * device/lib/z80/heap.s,
4772         * device/lib/z80/mul.s,
4773         * device/lib/z80/putchar.s,
4774         * device/lib/z80/stubs.s: removed all leading underscores from area names
4775
4776 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
4777
4778         * support/regression/ports/mcs51/support.c: use highest baudrate so the
4779           regression tests are not waiting in the simulator for simulated
4780           transmission of debug output
4781
4782 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4783
4784         * device/lib/printf_large.c: slightly smaller
4785         * doc/sdccman.lyx: do not use spaces within html links
4786
4787 2006-10-16 Borut Razem <borut.razem AT siol.net>
4788
4789         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
4790           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
4791           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
4792           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
4793           debugger/mcs51/configure:
4794           [ 1185668 ] add gnu readline support to sdcdb - enabled
4795
4796 2006-10-16 Raphael Neider <rneider AT web.de>
4797
4798         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
4799           fixes #1577882, removes close to all banking optimizations
4800
4801 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
4802
4803         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
4804           variables in code memory
4805         * support/regression/tests/absolute.c: added test for this
4806
4807 2006-10-15 Raphael Neider <rneider AT web.de>
4808
4809         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
4810           devices,
4811           (BankSelect): emit BANKSEL before touching linker-placed regs,
4812           fixes #1570934
4813
4814 2006-10-10 Raphael Neider <rneider AT web.de>
4815
4816         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
4817         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
4818         * src/pic/main.c (_pic14_parseOptions),
4819         * src/pic/main.h: mostly reverted to previous state, now use results
4820             from SDCCmain.c's argument parsing
4821
4822 2006-10-10 Borut Razem <borut.razem AT siol.net>
4823
4824         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
4825           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
4826           [ 1185668 ] add gnu readline support to sdcdb -
4827           prepared for READLINE, not enabled yet,
4828           thanks to <tal.bav AT gmail.com>
4829
4830 2006-10-10 Raphael Neider <rneider AT web.de>
4831
4832         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
4833         * src/pic16/devices.inc,
4834         * device/include/pic16 (pic18f[24]620.h),
4835         * device/include/pic18fregs.h,
4836         * device/lib/pic16/pics.all,
4837         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
4838             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
4839             Gary Plumbridge and Anton Strobl
4840
4841 2006-10-10 Raphael Neider <rneider AT web.de>
4842
4843         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
4844           --stack-siz=NUM options to configure the argument passing stack
4845         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
4846         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
4847           (pic14_getSharebankSize): obey --stack-siz=NUM,
4848           (pic14_getSharebankAddress): obey --stack-loc=NUM
4849
4850 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4851
4852         * doc/sdccman.lyx: added to the manual
4853         * doc/figures/ddd_example.png: added (neither pdflatex nor
4854         most browsers seem to like the .eps file)
4855
4856 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
4857
4858         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
4859         to /tmp and /var/tmp acc. LSB
4860         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
4861         RESULT_TYPE_IFX
4862         * support/regression/tests/onebyte.c: added test
4863
4864 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4865
4866         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
4867
4868 2006-10-05 Borut Razem <borut.razem AT siol.net>
4869
4870         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
4871           thanks to dfulab:
4872           - sdcc.dsw: changed property eol-style to CRLF
4873           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
4874
4875 2006-10-04 Raphael Neider <rneider AT web.de>
4876
4877         * device/include/pic/{pic16f84.h,pic16f84a.h},
4878         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
4879           from patch #1522504, thanks to Robas Teodor
4880
4881 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
4882
4883         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
4884           fixes bug 1566015
4885
4886 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
4887
4888         * src/pic16/glue.c (pic16emitMaps),
4889         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
4890         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
4891         * device/lib/pic16/libc/string/memcpypgm2ram.c,
4892         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
4893           Philipp Krause
4894         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
4895         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
4896
4897 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4898
4899         * support/librarian/sdcclib.c: Added option -l.
4900         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
4901           usage totals.
4902         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
4903           using Windows command prompt.
4904
4905 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
4906
4907         * device/lib/libsdcc.lib: added module rand
4908         * src/ds390/ralloc.c (rematStr),
4909         * src/hc08/ralloc.c (rematStr),
4910         * src/mcs51/ralloc.c (rematStr),
4911         * src/z80/ralloc.c (rematStr): made output more consistent
4912         * src/mcs51/gen.c: cosmetic changes
4913
4914 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
4915
4916         * src/port.h: added mem.cabs_name to PORT
4917         * src/ds390/main.c,
4918         * src/hc08/main.c,
4919         * src/mcs51/main.c,
4920         * src/pic16/main.c,
4921         * src/pic/main.c,
4922         * src/xa51/main.c,
4923         * src/z80/main.c: added cabs_name initializers
4924         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
4925           constants
4926           (emitMaps): emit absolutes in code memory into cabs_name
4927         * src/SDCCmem.c,
4928         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
4929         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
4930         * support/regression/fwk/include/testfwk.h: added define for at
4931         * support/regression/tests/absolute.c: added, new
4932
4933 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
4934
4935         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
4936           optimizations, see also patch 887161 by Stas Sergeev
4937         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
4938           to be necessary anymore,
4939           (102, 103, 104, 127): renamed all occurances of bp to _bp
4940
4941 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
4942
4943         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
4944           thanks Weston T. Schmidt for patch 1555221
4945         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
4946         * src/SDCCicode.c(geniCodeMultiply): small optimization
4947
4948 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
4949
4950         * device/include/stdlib.h: added rand prototypes
4951         * device/lib/rand.c: new, added
4952         * device/lib/Makefile.in: added rand.c
4953         * src/z80/peeph.def,
4954         * src/z80/peeph-gbz80.def,
4955         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
4956
4957 2006-09-20 Raphael Neider <rneider AT web.de>
4958
4959         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
4960
4961 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
4962
4963         * as/link/aslink.h: cosmetic changes
4964         * as/link/mcs51/Makefile.in,
4965         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
4966
4967 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
4968
4969         * as/link/aslink.h,
4970         * as/link/mcs51/aslink.h,
4971         * as/link/z80/aslink.h: merged and moved to as/link/
4972         * as/link/lkstore.c,
4973         * as/link/mcs51/lkstore.c: moved to as/link/
4974         * as/link/clean.mk: remove *.o
4975         * as/link/mcs51/alloc.h: deleted
4976         * as/link/mcs51/lkarea.c: added lnksect prototype
4977         * as/link/mcs51/lkdata.c,
4978         * as/link/mcs51/lklex.c,
4979         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
4980         * as/link/mcs51/lkmem.c,
4981         * as/link/mcs51/lknoice.c: removed include strcmpi.h
4982         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
4983         * as/link/mcs51/aslink.dsp,
4984         * as/link/mcs51/Makefile.aslink,
4985         * as/link/mcs51/Makefile.bcc,
4986         * as/link/mcs51/Makefile.in: updated for moved files
4987         * as/link/z80/lkarea.c,
4988         * as/link/z80/lkhead.c,
4989         * as/link/z80/lklex.c,
4990         * as/link/z80/lklibr.c,
4991         * as/link/z80/lklist.c,
4992         * as/link/z80/lkmain.c,
4993         * as/link/z80/lkrloc.c,
4994         * as/link/z80/lksym.c: synced with mcs51
4995         * as/link/z80/lkdata.c,
4996         * as/link/z80/lkeval.c,
4997         * as/link/z80/lkihx.c,
4998         * as/link/z80/lks19.c: cosmetic changes
4999         * as/link/z80/Makefile.in,
5000         * as/link/z80/linkgbz80.dsp,
5001         * as/link/z80/linkz80.dsp: updated for moved files
5002
5003 2006-09-16 Borut Razem <borut.razem AT siol.net>
5004
5005         * debugger/mcs51/sdcdb.c: partially fixed
5006           [ 1203664 ] sdcdb fails to open files w. two "." periods
5007         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
5008           debugger/mcs51/symtab.h: fixed indenting
5009         * configure.in, configure: up to date with latest Maarten's changes
5010
5011 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
5012
5013         as/link/mcs51
5014         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
5015         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
5016         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
5017         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
5018         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
5019         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
5020         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
5021         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
5022         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
5023         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
5024         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
5025         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
5026         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
5027         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
5028         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
5029         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
5030         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
5031         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
5032         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
5033         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
5034         as/link/mcs51/alloc.h,
5035         as/link/mcs51/clean.mk,
5036         as/link/mcs51/conf.mk,
5037         as/link/mcs51/Makefile.bcc,
5038         as/link/mcs51/Makefile.in,
5039         as/link/mcs51/readme.390,
5040         as/link/mcs51/strcmpi.c,
5041         as/link/mcs51/strcmpi.h,
5042         as/mcs51/clean.mk,
5043         as/mcs51/Makefile.bcc,
5044         as/mcs51/Makefile.in,
5045         configure,
5046         Makefile.in,
5047         sdcc.dsw: moved mcs51 linker to as/link/mcs51
5048
5049 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
5050
5051         * as/link,
5052         * as/link/Makefile.in,
5053         * as/link/z80/linkgbz80.dsp,
5054         * as/link/z80/linkz80.dsp,
5055         * configure,
5056         * link,
5057         * link/clean.mk,
5058         * link/Makefile.in,
5059         * link/README,
5060         * link/z80,
5061         * link/z80/aslink.h,
5062         * link/z80/clean.mk,
5063         * link/z80/conf.mk,
5064         * link/z80/linkgbz80.dsp,
5065         * link/z80/linkz80.dsp,
5066         * link/z80/lkarea.c,
5067         * link/z80/lkdata.c,
5068         * link/z80/lkeval.c,
5069         * link/z80/lkgb.c,
5070         * link/z80/lkgg.c,
5071         * link/z80/lkhead.c,
5072         * link/z80/lkihx.c,
5073         * link/z80/lklex.c,
5074         * link/z80/lklibr.c,
5075         * link/z80/lklist.c,
5076         * link/z80/lkmain.c,
5077         * link/z80/lkrloc.c,
5078         * link/z80/lks19.c,
5079         * link/z80/lksym.c,
5080         * link/z80/Makefile.in,
5081         * Makefile.in,
5082         * sdcc.dsw: moved link/ to as/link/
5083
5084 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
5085
5086         * as/mcs51/i51mch.c (machine): fixed warning
5087
5088 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
5089
5090         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
5091
5092 2006-09-09 Borut Razem <borut.razem AT siol.net>
5093
5094         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
5095           sdcdb WIN32 native port
5096         * src/clean.mk: fixed
5097
5098 2006-09-08 Borut Razem <borut.razem AT siol.net>
5099
5100         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
5101
5102 2006-09-08 Raphael Neider <rneider AT web.de>
5103
5104         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
5105         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
5106             to gplink to disable processor mismatch warning and to allow
5107             the use of devices with only aliased (shared) memory banks,
5108           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
5109
5110 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5111
5112         * doc/sdccman.lyx: Some re-formating plus example on using
5113           #pragma preproc_asm +/-
5114
5115 2006-09-07 Borut Razem <borut.razem AT siol.net>
5116
5117         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
5118           section
5119
5120 2006-09-06 Borut Razem <borut.razem AT siol.net>
5121
5122         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
5123           line at sdcc.nsi:153
5124         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
5125
5126 2006-09-05 Borut Razem <borut.razem AT siol.net>
5127
5128         * configure.in, configure: support for winsock2
5129         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
5130           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
5131           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
5132           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
5133           debugger/mcs51/symtab.h: sdcdb WIN32 native port
5134
5135 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
5136
5137         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
5138           and OP_DEFS
5139         * support/regression/tests/bug1551947.c: new, added
5140         * src/SDCCsymt.h: strings are char* not byte*
5141
5142 2006-09-05 Raphael Neider <rneider AT web.de>
5143
5144         * device/lib/pic16/libdev/pic18f4550.c,
5145           device/include/pic16/pic18f4550.h: added PORTD/TRISD
5146             declarations/definitions from patch #1520949
5147
5148 2006-09-05 Raphael Neider <rneider AT web.de>
5149
5150         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
5151           byte-aligned bitfields, fixes #1539278
5152
5153 2006-09-05 Raphael Neider <rneider AT web.de>
5154
5155         * src/pic/gen.c (genReceive): skip unreferenced arguments,
5156           fixes #1544120
5157
5158 2006-09-04 Borut Razem <borut.razem AT siol.net>
5159
5160         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
5161         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
5162           -mno-cygwin is a part of the compiler name
5163         * support/scripts/sdcc_mingw32: don't disable ucsim
5164
5165 2006-09-03 Borut Razem <borut.razem AT siol.net>
5166
5167         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
5168         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
5169
5170 2006-09-03 Raphael Neider <rneider AT web.de>
5171
5172         * src/pic/ralloc.c,
5173         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
5174           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
5175           fixes #1550049
5176
5177 2006-09-01 Borut Razem <borut.razem AT siol.net>
5178
5179         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
5180           to make ppc-osx happy
5181
5182 2006-08-31 Borut Razem <borut.razem AT siol.net>
5183
5184         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
5185         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
5186         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
5187         * support/regression/ports/ds390/spec.mk,
5188           support/regression/ports/mcs51/spec.mk,
5189           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
5190           To run regression tests in mingw environment:
5191           make DEV_NULL=NUL CC=gcc
5192
5193 2006-08-30 Borut Razem <borut.razem AT siol.net>
5194
5195         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
5196           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
5197           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
5198           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
5199           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
5200           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
5201           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
5202           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
5203           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
5204           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
5205           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
5206           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
5207           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
5208           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
5209           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
5210           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
5211           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
5212           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
5213           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
5214           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
5215           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
5216           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
5217           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
5218           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
5219           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
5220           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
5221           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
5222           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
5223           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
5224           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
5225           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
5226           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
5227           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
5228           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
5229           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
5230           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
5231           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
5232           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
5233           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
5234           ucsim WIN32 native port
5235
5236 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5237
5238         * doc/sdccman.lyx: added note on dynamic memory heap initialization
5239
5240 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5241
5242         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
5243         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
5244
5245 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
5246
5247         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
5248         * support/regression/tests/bug1546986.c: new, added
5249         * as/mcs51/.cvsignore,
5250         * debugger/mcs51/.cvsignore,
5251         * src/.cvsignore: deleted
5252
5253 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5254
5255         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
5256           definitions)
5257
5258 2006-08-20 Borut Razem <borut.razem AT siol.net>
5259
5260         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
5261           removed cl_listen_console::match(), cl_console::match(),
5262           restructured cl_commander::proc_input()
5263
5264 2006-08-16 Borut Razem <borut.razem AT siol.net>
5265
5266         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
5267           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
5268           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
5269
5270 2006-08-14 Borut Razem <borut.razem AT siol.net>
5271
5272         * support/regression/Makefile.in,
5273           support/regression/ports/pic14/gpsim.cmd,
5274           support/regression/ports/pic14/spec.mk,
5275           support/regression/ports/pic14/support.c:
5276           added pic14 regression test
5277
5278 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
5279
5280         * as/doc/asxhtm.html: documented changed ABS behaviour
5281         * as/doc/README: fixed some typos
5282
5283 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
5284
5285         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
5286           not defined on host
5287
5288 2006-08-12 Borut Razem <borut.razem AT siol.net>
5289
5290         * support/regression/fwk/include/testfwk.h,
5291           support/regression/fwk/lib/testfwk.c,
5292           support/regression/generate-cases.py,
5293           support/regression/Makefile.in:
5294           regression test framework does not depend on function pointers and
5295           variable arguments
5296
5297 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
5298
5299         * device/include/stddef.h: c temporary hack to fix bug 1518273
5300
5301 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5302
5303         * device/include/mcs51/cc2510fx.h: added
5304         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
5305           to projects.
5306
5307 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
5308
5309         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
5310         * as/z80/Makefile.in: added strcmpi.c
5311         * as/z80/z80adr.c: added upper case registers and lower case conditionals
5312         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
5313
5314 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
5315
5316         * device/lib/gbz80/asm_strings.s,
5317         * device/lib/gbz80/crt0_rle.s,
5318         * device/lib/gbz80/div.s,
5319         * device/lib/gbz80/mul.s,
5320         * device/lib/gbz80/shift.s,
5321         * device/lib/z80/asm_strings.s,
5322         * device/lib/z80/crt0_rle.s,
5323         * device/lib/z80/div.s,
5324         * device/lib/z80/mul.s,
5325         * device/lib/z80/shift.s: changed to all lower case menmonics except the
5326           flags which are all upper case
5327
5328 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
5329
5330         * as/z80/asm.h: made CASE_SENSITIVE 1
5331         * link/z80/aslink.h: made CASE_SENSITIVE 1
5332         * src/z80/gen.c (throughout): made all conditionals upper case
5333         * support/regression/tests/bug1503067.c: new
5334
5335 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
5336
5337         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
5338           (shiftIntoPair): added case 2 for PAIR_IY,
5339           (setupToPreserveCarry): replaced parameters with iCode and check if
5340            PAIR_DE is in use to fix bug 1399290,
5341           (genPlus, genMinus): updated call to setupToPreserveCarry
5342         * support/regression/tests/bug1399290.c: new
5343
5344 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
5345
5346         * device/lib/Makefile.in (Z80SOURCES): enabled float support
5347         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
5348         * src/ds390/gen.c (shiftRLong),
5349         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
5350         * src/mcs51/gen.c (sameReg): changed to sameByte,
5351           (xch_a_aopGet): new,
5352           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
5353            shiftRLong): fixed bug 1533966
5354         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
5355           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
5356         * support/regression/Makefile.in: disabled z80, enabled ucz80
5357         * support/regression/tests/float_trans.c: enabled test for z80 and host
5358         * support/regression/tests/shifts2.c: new, for testing bug 1533966
5359
5360 2006-08-01 Borut Razem <borut.razem AT siol.net>
5361
5362         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
5363           comparison is always false due to limited range of data type
5364           on PPC64 machine (openpower-linux1) where "char = unsigned char"
5365
5366 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
5367
5368         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
5369         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
5370         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
5371         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
5372
5373 2006-07-31 Borut Razem <borut.razem AT siol.net>
5374
5375         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
5376           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
5377           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
5378           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
5379           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
5380           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
5381           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
5382           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
5383           enable ucsim mingw compilation. Serial port is disabled,
5384           since it uses termios.h API, which is not available on native
5385           WIN32
5386
5387 2006-07-31 Borut Razem <borut.razem AT siol.net>
5388
5389         * Small Device C Compiler 2.6.0 released
5390         * support/scripts/sdcc.nsi: added FULL_DOC option
5391         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
5392
5393 2006-07-28 Borut Razem <borut.razem AT siol.net>
5394
5395         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
5396         * doc/INSTALL.txt: updated
5397
5398 2006-07-27 Borut Razem <borut.razem AT siol.net>
5399
5400         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
5401           device/lib/pic/libdev/Makefile.in: fixed bug
5402           [ 1438354 ] pic libsdcc: distclean doesn't work
5403         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
5404           device/lib/pic16/libio/Makefile.in: fixed bug
5405           [ 1438344 ] pic16 lib: clean doesn't work properly
5406         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
5407
5408 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
5409
5410         * device/lib/pic/libsdcc/fsdiv.c,
5411         * device/lib/pic/libsdcc/fsmul.c,
5412         * device/lib/pic16/libsdcc/float/fsdiv.c,
5413         * device/lib/pic16/libsdcc/float/fsmul.c,
5414         * device/lib/_fsdiv.c,
5415         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
5416         * support/regression/tests/bug1520966.c: added
5417         * doc/knownbugs.html: removed [ 1520966 ] from the list
5418
5419 2006-07-25 Borut Razem <borut.razem AT siol.net>
5420
5421         * configure.in, configure, sdccconf_in.h: fixed bug
5422           [ 1519095 ] regression test onebyte.c fails on ppc64 host
5423         * doc/knownbugs.html: removed [ 1519095 ] from the list
5424
5425 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
5426
5427         * doc/knownbugs.html: added, contains list of known bugs at release
5428         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
5429
5430 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
5431
5432         * device/include/mcs51/compiler.h: added SFRX for xdata based special
5433           function registers and corrected defaults with additional warning
5434         * device/lib/malloc.c: cosmetic changes
5435         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
5436         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
5437           (fillGaps): and used it
5438
5439 2006-07-20 Raphael Neider <rneider AT web.de>
5440
5441         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
5442           output unless SDCCPICDEBUG is set
5443         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
5444           output if SILENT is set
5445
5446 2006-07-11 Borut Razem <borut.razem AT siol.net>
5447
5448         * doc/README.txt: updated
5449
5450 2006-07-10 Borut Razem <borut.razem AT siol.net>
5451
5452         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
5453           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
5454           in WIN32 installation
5455         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
5456           release candidate 1
5457
5458 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
5459
5460         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
5461         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
5462
5463 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
5464
5465         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
5466
5467 2006-07-06 Borut Razem <borut.razem AT siol.net>
5468
5469         * support/regression/tests/bitfields.c:
5470           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
5471         * support/regression/tests/constantRange.c:
5472           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
5473
5474 2006-07-04 Borut Razem <borut.razem AT siol.net>
5475
5476         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
5477           src/port.mk,
5478           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5479           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5480           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5481           reverted changes from 2006-07-03
5482         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
5483         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
5484           added CPPFLAGS, used by the host port
5485
5486 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
5487
5488         * support/regression/valdiag/tests/switch.c,
5489         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
5490         * support/regression/tests/libmullong.c: fixed for host
5491         * support/regression/ports/host/spec.mk: disable all warnings for host,
5492         SDCC runs with --less-pedantic too
5493
5494 2006-07-03 Borut Razem <borut.razem AT siol.net>
5495
5496         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
5497           defined CPPFLAGS
5498         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
5499         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5500           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5501           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5502           include ../port.mk
5503         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
5504           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5505           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
5506           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
5507
5508 2006-07-02 Raphael Neider <rneider AT web.de>
5509
5510         * src/pic16/devices.inc,
5511         * device/include/pic16/pic18fregs.h,
5512         * device/include/pic16/pic18f4550.h,
5513         * device/lib/pic16/pics.all,
5514         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
5515
5516 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
5517
5518         * as/hc08/lkaomf51.c (OutputName),
5519         * as/mcs51/lkaomf51.c (OutputName),
5520         * as/z80/asmain.c (asmbl),
5521         * src/ds390/main.c (asmLineNodeFromLineNode),
5522         * src/hc08/ralloc.c (hc08_assignRegisters),
5523         * src/mcs51/main.c (asmLineNodeFromLineNode),
5524         * src/xa51/ralloc.c (checkRegMask),
5525         * src/xa51/gen.c (emitcode),
5526         * src/z80/gen.c (_emit2),
5527         * src/SDCCast.c (searchLitOp),
5528         * src/SDCCglobl.h,
5529         * support/packihx/packihx.c,
5530         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
5531         * src/ds390/gen.c (aopPutUsesAcc),
5532         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
5533         * support/regression/tests/libmullong.c (mullong_wrapper),
5534         * src/SDCCsymt.c (powof2),
5535         * src/SDCCast.c,
5536         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
5537         * src/SDCCsymt.h: added TYPE_TARGET_*
5538         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
5539         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
5540         SDCCast because 1) header problems 2) this is the right place
5541         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
5542         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
5543         prototype
5544
5545 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
5546
5547         * src/SDCCicode.h: removed buggy semicolon in unused macro
5548         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
5549         search for previous definiton of auto symbols too,
5550         (findPrevUse): fixed logic of emitWarnings
5551
5552 2006-06-26 Raphael Neider <rneider AT web.de>
5553
5554         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
5555           PCLATH and PCLATU on interrupts, potentially fixes #1505141
5556
5557 2006-06-25 Raphael Neider <rneider AT web.de>
5558
5559         * device/lib/pic/libm: NEW, added math library functions
5560         * device/lib/pic/libsdcc: NEW; added float support functions
5561         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
5562         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
5563           NEW, added math related headers
5564         * device/include/asm/pic/features.h: NEW
5565         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
5566           (popGet): allow larger offsets for AOP_PCODE,
5567           (genDataPointerSet): handle literals explicitly, more debug output,
5568           (genAssign): fixed for float using aopLiteral ;-)
5569         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
5570           GOTO initialisation routine
5571         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
5572           flag on registers, fixes #1469043 (local variables do not work)
5573         * src/pic/main.c (_pic14_do_link),
5574         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
5575           available
5576
5577 2006-06-25 Borut Razem <borut.razem AT siol.net>
5578
5579         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
5580           characters printed (not including the trailing '\0' used to end
5581           output to strings). Problem detected in regression test bug-927659.c.
5582           NOTE: printf() family functions should return int instead
5583           unsigned int!
5584         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
5585           specifier are printed as themselves
5586         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
5587           support flags, width and precision specifiers
5588
5589 2006-06-24 Borut Razem <borut.razem AT siol.net>
5590
5591         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
5592           to the list of sdcc tagrets not supporting bit type
5593         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
5594           testfor pic16 due to bug:
5595           [ 1511794 ] pic16: regression test bug-895992.c fails
5596
5597 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
5598
5599         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
5600         * src/SDCCglue.c (initPointer), fixed bug 1496419
5601         * support/regression/tests/bug1496419.c: new, added
5602
5603 2006-06-22 Borut Razem <borut.razem AT siol.net>
5604
5605         * support/regression/ports/pic16/support.c: use gpsim usart module from
5606           libgpsim_modules library
5607
5608 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5609
5610         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
5611         IP0H to IPH0.
5612
5613 2006-06-19 Raphael Neider <rneider AT web.de>
5614
5615         * src/pic/glue.h,src/pic16/glue.h: added prototypes
5616         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
5617           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
5618           (pic14printExterns,pic14printPublics,pic16printPublics,
5619           pic16_printExterns): use new functions to emit symbols
5620           (picglue,pic16glue): emit publics before emitting externs
5621         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
5622           locally defined functions to avoid bug #1443651
5623         * support/regression/tests/bug-716242.c: removed pic16 workaround
5624         * support/regression/ports/pic16/spec.mk: ignore errors during build
5625
5626 2006-06-19 Raphael Neider <rneider AT web.de>
5627
5628         * src/pic/glue.h: added pic14aopLiteral prototype
5629         * src/pic/glue.c (pic14aopLiteral): return unsigned int
5630         * src/pic/gen.c: removed stdint.h dependency
5631           (aopGet): use Safe_strdup()
5632           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
5633           (genDataPointerSet): use pic14aopLiteral()
5634         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
5635           for pic16; thanks to Bernhard and Maarten
5636
5637 2006-06-18 Borut Razem <borut.razem AT siol.net>
5638
5639         * support/regression/tests/structflexarray.c: flexible array members
5640           not supported by gcc < 3
5641         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
5642           GUI tool by default
5643         * src/pic/gen.c: don't include [p]strdin.h on solaris
5644         * support/Util/pstdint.h: addad svn attributes
5645         * support/regression/tests/constantRange.c,
5646           support/regression/tests/rotate.c: include inttypes.h instead
5647           stdint.h on solaris, addad svn attributes
5648
5649 2006-06-18 Raphael Neider <rneider AT web.de>
5650
5651         * src/SDCCsymt.c (initCSupport): change return type of divschar to
5652           int for PIC16
5653         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
5654           (pic16_genMinusBits): simplified sign-extension
5655           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
5656             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
5657             adjusted to correctly handle mixed-signed operands, disabled
5658             now unused multiplciation routines
5659         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
5660           (assignResultValue): added argument denoting the size of the result
5661             as returned by the function (fixes upcasts in assigning from
5662             function calls: char foo(); int i = foo();)
5663           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
5664             function result to assignResultValue
5665           (genMult): disabled inlined multiplication code
5666           (genDiv): augmented to also handle the modulus operator, fixed to
5667             handle mixed-signed operands correctly
5668           (genMod): simply call genDiv, disabled unused code
5669           (genAssign): fixed missing (sign-)extension on result
5670         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
5671             valid char operands, allow signed operands for native code, added
5672             division and modulo operator handling
5673         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
5674
5675         As a consequence, onebyte.c (if split into two files) and muldiv.c
5676         pass regression tests.
5677
5678 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5679
5680         * doc/Makefile.in: two runs of makeindex seem needed to get
5681         correct page references in the index of sdccman.pdf
5682         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
5683
5684 2006-06-17 Borut Razem <borut.razem AT siol.net>
5685
5686         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
5687
5688 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5689
5690         * doc/sdccman.lyx: updated, added (porting source code, debugging),
5691         mentioned ec2drv and paulmon
5692
5693 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
5694
5695         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
5696           consecutive abs areas
5697           (find_empty_space, allocate_space): added map to handle codemap or
5698            xdatamap,
5699           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
5700            absolute idata and xdata
5701         * as/mcs51/lkmem.c (summary2): updated legend
5702
5703 2006-06-16 Raphael Neider <rneider AT web.de>
5704
5705         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
5706
5707 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
5708
5709         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
5710           1208515
5711         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
5712
5713 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
5714
5715         * src/port.h (struct PORT): added field gp_tags, to hold the tag
5716         value of generic pointers,
5717         * src/avr/main.c,
5718           src/ds390/main.c,
5719           src/hc08/main.c,
5720           src/izt/i186.c,
5721           src/izt/tlcs900h.c,
5722           src/mcs51/main.c,
5723           src/pic/main.c,
5724           src/pic16/main.c,
5725           src/xa51/main.c,
5726           src/z80/main.c: PORT structure, added elements for gp_tags field,
5727         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
5728         fields in the PORT structure of each port,
5729         * src/SDCCast.c (decorateType): allow processing of generic pointers
5730         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
5731         S_FIXED symbols
5732
5733 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
5734
5735         * link/z80/lkgb.c,
5736         * link/z80/lkgg.c,
5737         * src/pic16/gen.c,
5738         * src/pic16/main.c,
5739         * src/pic16/pcode.c,
5740         * src/pic/main.c,
5741         * src/pic/pcoderegs.c,
5742         * src/SDCCicode.c,
5743         * src/SDCCmain.c,
5744         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
5745           bug 1504689 on minGW
5746
5747 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5748
5749         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
5750
5751 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
5752
5753         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
5754
5755 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
5756
5757         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
5758           for optimization
5759
5760 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
5761
5762         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
5763         to a char variable. Fixed bug #1504211
5764         * device/include/pic16/adc.h,
5765         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
5766         and fixed bug #1364390
5767
5768 2006-06-10 Borut Razem <borut.razem AT siol.net>
5769
5770         * CVSROOT: removed the CVS left-over
5771
5772 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
5773
5774         * as/hc08/asmain.c (asexit),
5775         * as/hc08/lkmain.c (lkexit),
5776         * as/mcs51/asmain.c (asexit),
5777         * as/mcs51/lkmain.c (lkexit),
5778         * src/SDCCglue.c (DEFSETFUNC),
5779         * src/SDCCmain.c (linkEdit, assemble),
5780         * support/librarian/sdcclib.c (AddRel),
5781           replaced unlink() by standard C remove()
5782         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
5783         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
5784           gatherImplicitVariables): new, added to fix bug 608752,
5785           (createFunction): added gatherImplicitVariables()
5786         * src/SDCCast.h: added createRMW prototype
5787         * src/SDCCsymt.h (struct symbol): added infertype
5788         * support/regression/tests/bug608752.c: new, added
5789
5790 2006-06-10 Raphael Neider <rneider AT web.de>
5791
5792         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
5793           multibyte dummy reads (fixes #1503234)
5794
5795 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
5796
5797         * device/include/mcs51/compiler.h: new, added header file to enable
5798           creating common sfr definition header files for different compilers
5799
5800 2006-06-05 Raphael Neider <rneider AT web.de>
5801
5802         * src/pic16/{pcode.h,genarith.c}:
5803           introduced pCodeOp combining any two pCodeOps (previously only
5804           two register operands could be combined), removed pcop2 from
5805           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
5806         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
5807         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
5808           rewritten to use new PO_TWO_OPS
5809         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
5810         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
5811           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
5812           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
5813           (pic16_get_op): embraced return arg to allow #define return(x),
5814             added new case for combined opcodes
5815           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
5816           (pic16_pCode2str,pic16_getRegFrompCodeOp,
5817            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
5818
5819 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
5820
5821         * src/SDCCval.c (checkConstantRange): added
5822         * src/SDCCval.h: added checkConstantRange
5823         * support/Util/SDCCerr.c,
5824         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
5825         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
5826         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
5827         * src/SDCCast.c (decorateType): added checkConstantRange,
5828         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
5829         can be emitted with the correct always true/false warning,
5830         added optimization for double '!';
5831         result of decorateType() must be assigned back to the tree, because
5832         decorateType() can change the tree
5833         * src/SDCCicode.c (geniCodeLogic),
5834         (geniCodeAssign): replaced new checkConstantRange, added warnings,
5835         (checkConstantRange): removed, it was only a fragment which never
5836         emitted a warning
5837         * src/SDCCsymt.c (computeType): fixed promotion for
5838         "-1 < (unsigned bit) b"
5839         * src/pic/ralloc.c (packRegsForAssign),
5840         * src/pic16/ralloc.c (packRegsForAssign),
5841         * src/hc08/ralloc.c (packRegsForAssign),
5842         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
5843         from mcs51
5844         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
5845         * support/regression/tests/constantRange.c: added
5846         * support/valdiag/tests/constantRange.c: added
5847         * support/valdiag/valdiag.py: added -DPORT_HOST=1
5848
5849 2006-06-02 Borut Razem <borut.razem AT siol.net>
5850
5851         * support/regression/ports/pic16/support.c: increase stack size
5852           to 255 bytes
5853         * support/regression/Makefile.in: sort tests by name so that the
5854           resutlts can be compared on different machines / platforms
5855
5856 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5857
5858         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
5859         * src/ds390/gen.c (emitLabel): new, added,
5860           (genDjnz): fixed stack overflow bug,
5861           (throughout): cosmetic changes to sync with mcs51/gen.c,
5862           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
5863         * src/mcs51/gen.c (genEndFunction): small optimization,
5864           (throughout): cosmetic changes to sync with ds390/gen.c
5865
5866 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5867
5868         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
5869           (_print_format): fixed printing pointers
5870         * src/mcs51/gen.c (emitLabel, movb): new, added,
5871           (genAssign): small optimization,
5872           (genDjnz): fixed stack overflow bug,
5873           (throughout): replaced sprintf with SNPRINTF,
5874           replaced mcs51_regWithIdx with REG_WITH_INDEX,
5875           replaced emitcode("mov", "b,...") with MOVB(...),
5876           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
5877           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
5878         * src/mcs51/peeph.def: added rules 140 and 264
5879         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
5880           so they may get optimized into registers
5881
5882 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
5883
5884         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
5885           immediately when encountered,
5886           (printUsage): always use stderr even on windows
5887
5888 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
5889
5890         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
5891         (processParms): fixed bug #1247551
5892         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
5893         parseCmdLine, main): print '--version' to stdout,
5894         print 'help' to stdout if --help is given,
5895         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
5896         arguments are given; fixed --help
5897
5898 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
5899
5900         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
5901         * support/regression/tests/bug-1493710.c: added
5902
5903 2006-05-27 Borut Razem <borut.razem AT siol.net>
5904
5905         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
5906           static instead auto
5907         * support/regression/ports/pic16/support.c: increase stack size
5908           from default 64 bytes to 128 bytes
5909         * support/regression/tests/staticinit.c,
5910           support/regression/tests/float.c: regression tests fully enabled
5911           for pic16 port by putting the initialized data arrays into the code
5912           section
5913         * support/regression/ports/pic16/spec.mk: don't link default libraries.
5914           This was changed by mistake in the previous version.
5915
5916 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
5917
5918         * src/pic16/gen.c (genFunction, genEndFunction): some
5919         beautifications, fixed bug with falsely restoring FSR2 in large
5920         stack model, thanks to Beau E. Cox for reporting the bug
5921
5922 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
5923
5924         * debugger/mcs51/break.c,
5925         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
5926           use %p to print pointers, made address variables unsigned
5927         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
5928         * debugger/mcs51/symtab.c (parseSymbol): must return something
5929         * src/mcs51/gen.c (aopForSym): small optimization,
5930            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
5931           (freeAsmop): added missing break,
5932           (aopPut): removed parameter bvolatile, determine it inside the function,
5933           (saveRegisters, unsaveRegisters): small optimization,
5934           (genIpush): removed pointless check,
5935           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
5936           replaced sprintf with SNPRINTF,
5937           replaced strcpy with strncpyz,
5938           updated aopPut calls,
5939           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
5940         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
5941
5942 2006-05-24 Borut Razem <borut.razem AT siol.net>
5943
5944         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
5945           modification of test for the pic16 port, put the array to the code
5946           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
5947
5948 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5949
5950         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
5951         * support/Util/pstdint.h: added
5952
5953 2006-05-22 Borut Razem <borut.razem AT siol.net>
5954
5955         * src/regression/Makefile: removed bool2.c test, added -q linker option
5956         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
5957           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
5958           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
5959           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
5960           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
5961           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
5962           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
5963           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
5964           define SUPPORT_BIT_TYPES 0, removed unused bit variables
5965
5966 2006-05-22 Raphael Neider <rneider AT web.de>
5967
5968         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
5969           bug #1492360 (problematic due to generic pointers, see code)
5970
5971 2006-05-22 Borut Razem <borut.razem AT siol.net>
5972
5973         * support/regression/ports/pic16/specs.mk: removed stack size linker
5974           directive
5975         * support/regression/tests/array.c,
5976           support/regression/tests/bitopcse.c,
5977           support/regression/tests/bug-908454.c,
5978           support/regression/tests/malloc.c: modified for pic16 regression test
5979         * support/regression/tests/bitfields.c:
5980           pic16 - excluded bitfileds of size > 8
5981         * support/regression/tests/bp.c: pic16 - reduced data size
5982         * support/regression/tests/bug-221100.c: pic16 - reduced data size
5983         * support/regression/tests/bug-460010.c:
5984           pic16 - used the absolute address the fits in memory
5985         * support/regression/tests/bug-716242.c:
5986           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
5987         * support/regression/tests/float.c:
5988           pic16 - excluded - data size too big
5989         * support/regression/tests/onebyte.c:
5990           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
5991         * support/regression/tests/shifts.c:
5992           pic16 - function names probably have to differ in first X characters
5993           (gpasm limitation?)
5994         * support/regression/tests/staticinit.c:
5995           pic16 - excluded some tests due error: no target memory available for
5996           section ".idata"
5997
5998 2006-05-22 Borut Razem <borut.razem AT siol.net>
5999
6000         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
6001           second try. Thanks Stas Sergeev once more.
6002
6003 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
6004
6005         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
6006           (genLeftShift, genRightShift): fixed bug 1491627
6007         * src/hc08/peeph.def (rules 7, 8.x): added
6008         * support/regression/tests/shifts.c (ShiftLeftByParam,
6009           ShiftRightByParam, testShiftByParam): added to test variable shifting
6010
6011 2006-05-20 Raphael Neider <rneider AT web.de>
6012
6013         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
6014         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
6015           (allocReg): add only new registers to dynAllocRegs,
6016           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
6017             #1489055, #1445850, and probably #1483693
6018
6019 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
6020
6021         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
6022         bug in for-loop that didn't emit the last of CONFIG and ID registers
6023
6024 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
6025
6026         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
6027           with offset
6028         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
6029           1489016, 1434401 and 1490124
6030         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
6031           1489016, 1434401 and 1490124
6032
6033 2006-05-17 Borut Razem <borut.razem AT siol.net>
6034
6035         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
6036           thanks Stas Sergeev
6037
6038 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
6039
6040         * device/include/mcs51/P89c51RD2.h,
6041         * device/include/mcs51/P89LPC901.h,
6042         * device/include/mcs51/P89LPC922.h,
6043         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
6044
6045 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6046
6047         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
6048         to fix missing stack pragma in compiled binary object file,
6049
6050 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
6051
6052         * support/packihx/configure.in,
6053         * support/packihx/configure: removed warning, autoconf >= 2.5x can
6054         determine sizeof basic types even while cross compiling
6055
6056 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
6057
6058         * src/avr/gen.c (aopop),
6059         * src/ds390/gen.c (aopOp),
6060         * src/hc08/gen.c (aopOp),
6061         * src/mcs51/gen.c (aopop),
6062         * src/pic16/gen.c (pic16_aopOp),
6063         * src/pic/gen.c (aopOp),
6064         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
6065         if size of operand is smaller than spill location
6066
6067 2006-05-12 Borut Razem <borut.razem AT siol.net>
6068
6069         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
6070           have to have CR/LF line endings even if they are checked out on *nix
6071           or on WIN32 in cygwin binmode
6072
6073 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
6074
6075         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
6076         * device/include/ds80c390.h: added sfr16 definitions
6077         * src/ds390/gen.c,
6078         * src/ds390/gen.h,
6079         * src/ds390/main.c,
6080         * src/ds390/ralloc.c,
6081         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
6082           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
6083           bit returning functions
6084         * support/regression/tests/sfr16.c: enabled test on ds390
6085
6086 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6087
6088         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
6089         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
6090
6091 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
6092
6093         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
6094         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
6095           (cl_address_space constructor): removed expensive initialization,
6096           (cl_address_space::get_cell): extended for late initialization,
6097           (cl_address_space::*): use late initialization,
6098           (cl_address_decoder::activate): removed expensive initialization,
6099           This reduced regression test running time by 25%
6100
6101 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
6102
6103         * packihx/,
6104         * configure.in,
6105         * configure,
6106         * sdcc.dsw,
6107         * Makefile.bcc,
6108         * Makefile.in,
6109         * support/packihx/Makefile.in,
6110         * support/packihx/clean.mk,
6111         * support/packihx/Makefile.bcc,
6112         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
6113
6114 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6115
6116         * src/SDCCval.c (valNot): fix for regression test failure
6117           of not.c on big endian hosts
6118
6119 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
6120
6121         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
6122
6123 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6124
6125         * device/lib/mcs51/Makefile.in: changed string comparison operator
6126           to = for POSIX compliance; == is bash extension
6127
6128 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
6129
6130         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
6131           kosmonaut_pirx
6132
6133 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
6134
6135         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
6136         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
6137         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
6138         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
6139         bug report #1478657,
6140
6141 2006-05-05 Borut Razem <borut.razem AT siol.net>
6142
6143         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
6144           making the html
6145
6146 2006-05-02 Borut Razem <borut.razem AT siol.net>
6147
6148         * doc/Makefile.in: removed *.ind dependency since there is no rule to
6149           create *.ind, which made make to fail if invoked with -j 2
6150
6151 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
6152
6153         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
6154           Hubert Sack for patch 1479782
6155
6156 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
6157
6158         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
6159
6160 2006-05-01 Raphael Neider <rneider AT web.de>
6161
6162         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
6163           (create_pic): store only prefix-free device name,
6164           (init_pic): check for device names with "16" prefix,
6165           (list_valid_pics),
6166         * src/pic/device.h (struct PIC_device),
6167         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
6168             stored device name,
6169         * device/include/pic/pic12f{635,675,629,683}.h,
6170         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
6171         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
6172         * device/include/pic/pic16f505.h,
6173         * device/lib/pic/libdev/pic16f505.c: removed
6174         * device/include/pic/pic14devices.txt: added support for pic12f
6175             devices, removed unsupported non 16-bit devices
6176             [above changes provided by patch from Zik Saleeba]
6177         * src/pic/*, src/pic16/*, device/include/pic16/*,
6178           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
6179
6180 2006-05-01 Borut Razem <borut.razem AT siol.net>
6181
6182         * configure.in, configure, doc/Makefile.in:
6183           sync with nightly build makefile - latex, dvipdf and dvips
6184           not needed any more
6185
6186 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
6187
6188         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
6189         in the library source
6190
6191 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
6192
6193         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
6194
6195 2006-04-28 Raphael Neider <rneider AT web.de>
6196
6197         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
6198         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
6199           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
6200         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
6201
6202 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
6203
6204         * device/lib/pic/libdev/Makefile.in,
6205         * device/lib/hc08/Makefile.in,
6206         * device/lib/gbz80/Makefile.in,
6207         * device/lib/z80/Makefile.in,
6208         * device/lib/ds390/Makefile.in,
6209         * device/lib/ds400/Makefile.in: added srcdir to include search path,
6210         thanks to Borut for the bug report
6211         * configure.in,
6212         * configure: always create doc/Makefile independent from --enable-doc
6213         * Makefile.in: always install from directory doc independent from
6214         --enable-doc
6215         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
6216         removed
6217         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
6218         * doc/Makefile.in: install *.txt if present
6219         * device/include/Makefile.in (install): added installation of pic/*.inc
6220         and pic/*.txt files again, they were erroneously removed
6221
6222 2006-04-28 Raphael Neider <rneider AT web.de>
6223
6224         * src/pic/{gen.c,main.h,pcode.c},
6225         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
6226             concerning signedness with casts
6227
6228 2006-04-28 Raphael Neider <rneider AT web.de>
6229
6230         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
6231             definition of an interrupt handler,
6232         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
6233             interrupt handler stuff from picglue() to separate routine,
6234           (picglue): enabled definition of intr handlers in files w/o main()
6235
6236 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6237
6238         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
6239           compilation with MSVC 2005 Express Edition (VC8)
6240
6241 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
6242
6243         * device/lib/Makefile: fixed build of gbz80 lib
6244
6245 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6246
6247         * support/regression/tests/bug-460010.c,
6248         * support/regression/tests/bug-524691.c,
6249         * support/regression/tests/bug-716242.c: removed conditional defines
6250           that are already in testfwk.h
6251
6252 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
6253
6254         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
6255           (AccAXRsh1): added, shift right by 1,
6256           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
6257            AccAXLrl1
6258         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
6259
6260 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
6261
6262         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
6263         remove cast to same type
6264         * src/SDCCast.c (decorateType): fix for RFE 1475742,
6265         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
6266         * as/z80/Makefile,
6267         * link/z80/Makefile: removed, they have moved to
6268         Makefile.in files
6269         * configure,
6270         * configure.in: replaced duplicate message about ucsim by missing sdcpp
6271         * install-sh: fix bug #1204398 by setting umask 0022
6272         * device/lib/Makefile: separate build of z80 and gbz80 lib
6273
6274 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
6275
6276         Enabled VPATH feature: changed nearly all Makefiles (149 files).
6277         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
6278
6279         One basic decision: e.g. src/clean.mk includes further files. In order
6280         to make this work there are two solutions:
6281         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
6282           run configure on them. This way they can use
6283           'include $(srcdir)/port-clean.mk'
6284         - always include clean.mk by the Makefile at the same level. To avoid
6285           that `make clean` tries to include and build Makefile.dep the
6286           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
6287           implemented, because now even `make uninstall` doesn't create
6288           Makefile.in. clean.mk could be eliminated by pasting it in
6289           Makefile.in.
6290
6291         * debugger/mcs51/Makefile.in: build own objects from library sources
6292         (SLIB, SDCC) in current directory
6293
6294         * configure, configure.in: renamed --disable-device-lib-build in
6295         --disable-device-lib; added --enable-doc, the required tools are
6296         searched by configure; added result message; the toolchain for the
6297         belonging ports are now only built, if the port is enabled.
6298
6299         * support/regression/*: all output is written in directory gen, because
6300         the fwk and ports directories don't livet in the build tree using vpath
6301
6302         * doc/sdccman.lyx: renamed --disable-device-lib-build to
6303         --disable-device-lib, added --enable-doc, added section VPATH
6304
6305         * sim/ucsim/configure.in,
6306         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
6307         z80 are enabled by default
6308
6309 2006-04-24 Raphael Neider <rneider AT web.de>
6310
6311         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
6312             to config word, "pic14_"-prefixed some extern functions
6313           (pic14_emitConfigWord): emit __config directive(s) if assignment to
6314             config word has been found
6315         * src/pic/device.h: added prototypes
6316         * src/pic/pcode.c: added "pic14_"-prefix where needed
6317         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
6318             fixup
6319         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
6320             words,
6321           (pic14emitRegularMap): ignore config words,
6322           (pic14createInterruptVect): moved generating __config directives away
6323           (picglue): have __config directives emitted
6324
6325 2006-04-24 Borut Razem <borut.razem AT siol.net>
6326
6327         * doc/Makefile: sync with nightly build makefile
6328
6329 2006-04-24 Raphael Neider <rneider AT web.de>
6330
6331         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
6332             registers that have not been assigned proper liveranges,
6333             fixes #1469504 and #1474602,
6334           (pCodeRegOptimizeRegUsage): fixed typo in comment
6335
6336 2006-04-24 Borut Razem <borut.razem AT siol.net>
6337
6338         * device/examples/main8051.c: deleted - it was removed from CVS
6339           24.mar.2000 and after that modified 18.feb.2001, so it reappered
6340           after the transition to Subversion
6341         * src/SDCCalloc.h: deleted - it was removed  from CVS
6342           3.feb.2001 and after that modified 18.feb.2001, so it reappered
6343           after the transition to Subversion
6344         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
6345           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
6346           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
6347           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
6348
6349 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
6350
6351         * as/asx8051.dsp: added mcs51/strcmpi.h
6352         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
6353         * as/hc08/aslink.h: updated lnksect prototype
6354         * as/hc08/asm.h,
6355         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
6356         * as/hc08/asmain.c,
6357         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
6358           (newdot): handle A_ABS
6359         * as/hc08/asout.c,
6360         * as/mcs51/asout.c (outarea): output address
6361         * as/hc08/lkaomf51.c,
6362         * as/mcs51/lkaomf51.c: disabled unused array UsageType
6363         * as/hc08/m08pst.c,
6364         * as/mcs51/i51pst.c,
6365         * as/z80/z80pst.c: "ABS" is not A_OVR
6366         * as/hc08/lkarea.c (newarea): read a_addr,
6367           (lnkarea): added codemap array, sort absolute areas to the front,
6368            combine all GSINITx/GSFINAL,
6369           (find_empty_space, allocate_space): new functions,
6370           (lnksect): return next address, handle absolute sections
6371         * as/mcs51/lkarea.c (newarea): read a_addr,
6372           lnksect2 prototype changed,
6373           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
6374           (find_empty_space, allocate_space): new, factored out of lnksect2,
6375           (lnksect2): return next address, handle absolute sections
6376         * as/hc08/lkhead.c,
6377         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
6378         * as/hc08/lklibr.c (addfile, fndsym),
6379         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
6380           index out of range and detect both '\' and '/'
6381         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
6382         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
6383           regression tests (ds390 cannot return bool yet)
6384         * doc/sdccman.lyx: changed version number, document changed --no-peep,
6385           document critical interrupts on z80, document changed SDCC define
6386         * src/asm.c (_asxxxx_mapping): fixed .org directive,
6387           (_a390_mapping): added .org directive
6388         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
6389           (genMultOneByte): fixed warnings
6390         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
6391           ones
6392         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
6393         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
6394           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
6395         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
6396         * src/pic16/main.c: removed newReg prototype
6397         * src/pic16/pcode.c,
6398         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
6399           warnings
6400         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
6401           ones
6402         * src/pic16/ralloc.c
6403         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
6404           to fix warnings
6405         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
6406           from short to PIC_OPTYPE
6407         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
6408         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
6409           optype from short to PIC_OPTYPE
6410         * src/port.h: made int_size unsigned to fix warnings
6411         * src/SDCC.y: fixed warning on MSVC
6412         * src/SDCCicode.c (getArraySizePtr): return unsigned int
6413         * src/SDCCopt.c (convertToFcall): fixed warnings
6414         * src/SDCCsymt.h: removed double prototype for genSymName
6415         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
6416           offset int to fix warnings
6417
6418 2006-04-22 Borut Razem <borut.razem AT siol.net>
6419
6420         * doc/sdccman.lyx, */Makefile, */Makefile.in:
6421           references to CVS replaced with Subversion
6422
6423 2006-04-21 Borut Razem <borut.razem AT siol.net>
6424
6425         * doc/sdccman.lyx, */Makefile, */Makefile.in:
6426           references to CVS replaced with Subversion
6427
6428 2006-04-19 Borut Razem <borut.razem AT siol.net>
6429
6430         * src/version.awk: adapted for svn
6431         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
6432           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
6433           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
6434           /binutils-avr/etc/*.vi, *.jin: removed all properties
6435           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
6436
6437 2006-04-19 Borut Razem <borut.razem AT siol.net>
6438
6439         * CVS to Subversion migration completed
6440
6441 2006-04-18 Borut Razem <borut.razem AT siol.net>
6442
6443         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}/lib/pic/*.o,
6444           ${DEV_ROOT}/lib/src/pic/libdev/*.S, ${DEV_ROOT}/lib/src/pic/libdev/*.inc
6445
6446 2006-04-17 Borut Razem <borut.razem AT siol.net>
6447
6448         * device/include/Makefile.in: added pic/*.inc to the installation
6449
6450 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
6451
6452         * support/regression/collate-results.py: fixed output in case of
6453         a valdiag error
6454         * support/regression/generate-cases.py: fixed splitting of pathnames
6455         with dots
6456         * as/hc08/lklibr.c (addfile),
6457         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
6458
6459 2006-04-11 Raphael Neider <rneider AT web.de>
6460
6461         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
6462         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
6463         * src/pic16/pcode.c (assignValnums): fixed #1460578
6464
6465 2006-04-11 Raphael Neider <rneider AT web.de>
6466
6467         * device/lib/pic/libdev/*.c,
6468         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
6469           fixes #1468739, enables compilation in --std-c99 mode
6470         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
6471
6472 2006-04-11 Raphael Neider <rneider AT web.de>
6473
6474         * src/pic/device.c (find_device): removed debug output
6475           (list_valid_pics): enabled verbose listing of supported devices
6476         * device/include/stdbool.h: define bool as char for pic14/16 as well
6477
6478 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6479
6480         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
6481
6482 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6483
6484         * .version: bumped version to 2.5.6
6485         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
6486
6487 2006-04-06 Raphael Neider <rneider AT web.de>
6488
6489         * .version: bumped version to 2.5.6 (pic14 ABI changed)
6490         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
6491         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
6492           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
6493             pic14_constructAbsMap
6494           (pic14printPublics): declare absolute global symbols as global
6495           (pic14createInterruptVect),
6496         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
6497           (newReg): assume new registers unused, use correct name in
6498             hashtable (reg->name instead of name), more debugLog output
6499         * src/pic/device.h (PIC_device): added fields for verbose output
6500         * src/pic/device.c: moved device definition to pic14devices.txt,
6501             added routines for runtime parsing of pic14devices.txt,
6502             added support for second config word
6503         * src/pic/main.c (_process_pragma): removed #pragma maxram,
6504           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
6505           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
6506           (_pic14_parseOptions): moved pCodeInitRegisters here
6507           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
6508         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
6509           (pCodeInitRegisters): rewrapped comments, perpared new approach to
6510             handling the pseudo stack
6511         * device/lib/Makefile.in: ignore failures in objects-pic16,
6512         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
6513         * device/lib/pic/NEWS: document new dependency on picXXX.lib
6514         * device/lib/pic/Makefile.subdir,
6515         * device/lib/pic16/Makefile.subdir: improved clean rules
6516         * device/lib/pic/libdev/: NEW, pic14 device libraries
6517         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
6518         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
6519         * device/include/Makefile.in: create subdir and install pic14 headers
6520         * device/include/pic/p16f_common.inc: removed unused declarations
6521         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
6522             PICs from inc2h.pl v1.6,
6523             replaced BIT_AT macros with struct declarations
6524         * device/include/pic/pic14devices.txt: definition of supported devices,
6525             all above improvements contributed by Zik Saleeba, thanks
6526         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
6527         * support/scripts/sdcc.nsi: also install pic14 device libraries and
6528             headers
6529
6530 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6531
6532         * device/include/mcs51/c8051f410.h: added interrupt numbers,
6533         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
6534           thanks to Charles Olds
6535
6536 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6537
6538         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
6539
6540 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6541
6542         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
6543         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
6544         * support/regression/bug1464657.c: added, new test
6545
6546 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6547
6548         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
6549           version number
6550
6551 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6552
6553         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
6554           --no-peep and --peep-file <file> are used don't use default rules but
6555           do use the <file>
6556
6557 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6558
6559         * src/mcs51/gen.c (genCall): fixed bug 1457608
6560
6561 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6562
6563         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
6564         changes seem to cause (trigger?) problems with the build system.
6565
6566 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
6567
6568         * src/SDCCpeeph.c (operandsLiteral): new, added,
6569           (callFuncByName): inserted operandsLiteral
6570         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
6571
6572 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6573
6574         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
6575         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
6576
6577 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
6578
6579         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
6580           implemented patch 1120823 Thanks to Willy De la Court (normal
6581           interrupts need an interrupt number now if they are made critical),
6582           and enabled nesting of critical functions though not for gbz80
6583           (genCritical, genEndCritical): added functions
6584           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
6585         * src/z80/mappings.i: added "ei" to all mappings
6586
6587 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6588
6589         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
6590         submitted by the Debian SDCC maintainer Aurelien Jarno:
6591         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
6592         archive with gcc 4.1 on mips and wrote the patch"
6593
6594 2006-03-16 Raphael Neider <rneider AT web.de>
6595
6596         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
6597           the left operand is shorter than the result (c* = lit-c* + int),
6598           fixes bug #1450796
6599         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
6600           OP_SYMBOL
6601
6602 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6603
6604         * src/.version: increased version number to 2.5.5
6605         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
6606         linking is done manually in pic16 port's _linkEdit,
6607         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
6608         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
6609         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
6610         allocate asmop as AOP_ACC,
6611         (aopForRemat): added parameter 'bool result' in function declaration,
6612         (pic16_aopGet): return AOP_ACC when accessing WREG,
6613         (pic16_popGetTempReg): minor modification,
6614         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
6615         'pic16_allocWithIdx',
6616         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
6617         calling function in absolute addresses,
6618         (genAssign): take into account AOP_ACC asmop,
6619         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
6620         * src/pic16/pcoderegs.c: some debug functions and lines added,
6621         * src/pic16/ralloc.c (decodeRegType): added but commented out,
6622         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
6623         register too,
6624         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
6625         call to allocReg, not by manually allocating a new one,
6626         (pic16_assignRegisters): now before going through the register
6627         allocating functions mark all registers as free. This eliminates some
6628         side effects resulting from peephole parser done earlier in the backbone
6629
6630 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
6631
6632         * src/SDCCicode.c (geniCodeLogic),
6633         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
6634
6635 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
6636
6637         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
6638           (genSend): bugfix, do not allocate and free twice,
6639           (shiftRLong): handle partially overlapping aops
6640         * support/regression/tests/bitopcse.c: fixed warning redefined idata
6641
6642 2006-03-08 Borut Razem <borut.razem AT siol.net>
6643
6644         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
6645           for pic16
6646
6647 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
6648
6649         * support/regression/tests/bug1409955.c: new, added
6650         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
6651         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
6652           (aopForSym, aopOp): increment asmop.allocated if reused,
6653           (freeAsmop): decrement asmop.allocated and check for zero instead of
6654           using asmop.freed,
6655           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
6656           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
6657            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
6658            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
6659            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
6660            genSignedRightShift, genRightShift, genDataPointerGet,
6661            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
6662            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
6663             in reverse order from allocation,
6664           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
6665             added swappedLR to keep track
6666         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
6667           pdata & code for GCC, z80, gbz80 & hc08
6668         * support/regression/tests/zeropad.c: moved defines to testfwk.h
6669
6670 2006-03-08 Raphael Neider <rneider AT web.de>
6671
6672         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
6673
6674 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
6675
6676         * device/include/mcs51/c8051f410.h: new SiLabs mcu
6677         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
6678         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
6679
6680 2006-03-06 Borut Razem <borut.razem AT siol.net>
6681
6682         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
6683           made the linker quiet
6684
6685 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
6686
6687         * src/pic16/gen.c (genPcall): fixed bug #1443644
6688         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
6689         which dumps before the function entry point a data byte which represents
6690         the number of the local variables used by the specified function, added
6691         'xinst' for initial support for Extended Instruction Support,
6692         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
6693         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
6694         port->fun_prefix anymore (may change later),
6695         (genFunction, genEndFunction): do not store/restore local registers for
6696         _main (this should take care the --main-return command line option in
6697         the future),
6698         (genOr): removed some legacy pic-port instructions,
6699         * src/pic16/genarith.c (genAddLit): re-enabled old code because
6700         performing operations with SFR's causes data to be written more than
6701         once to each SFR. Perhaps SFRs should be handled in special cases...
6702         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
6703         pcode.h
6704         * src/pic16/main.c (_process_pragma): stack bound checking did not take
6705         into account for stack starting position,
6706         (struct OPTIONS pic16_optionsTable): added command line argument
6707         --extended or -y for Extended Instruction Support,
6708         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
6709         (deassignLRs): *** perhaps the most important change, old 'for' code
6710         (commented out for reference), didn't account for some registers which
6711         were left marked 'not free' after a pointer operation. The change
6712         reduces register usage a lot in some cases
6713
6714 2006-03-04 Borut Razem <borut.razem AT siol.net>
6715
6716         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
6717           _clean
6718         * support/regression/tests/bug-524697.c: decreased array size for
6719           mcs51 to fit into the internal RAM
6720         * support/regression/Makefile.in: a little bit more verbose
6721
6722 2006-03-03 Borut Razem <borut.razem AT siol.net>
6723
6724         * support/regression/fwk/lib/testfwk.c,
6725           support/regression/fwk/include/testfwk.h: introduced function
6726           _prints(), nonrecursive _printn(), call _initEmu() from main()
6727         * support/regression/ports/gbz80/support.asm,
6728           support/regression/ports/ucz80/support.asm,
6729           support/regression/ports/z80/support.asm,
6730           support/regression/ports/ds390/support.c,
6731           support/regression/ports/hc08/support.c,
6732           support/regression/ports/host/support.c,
6733           support/regression/ports/mcs51/support.c,
6734           support/regression/ports/xa51/support.c: added empty _initEmu()
6735           function
6736         * support/regression/ports/pic16/gpsim.cmd,
6737           support/regression/ports/pic16/spec.mk,
6738           support/regression/ports/pic16/support.c,
6739           support/regression/Makefile.in: added pic16 regression test
6740
6741 2006-03-01 Raphael Neider <rneider AT web.de>
6742
6743         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
6744           genConstPointerGet): use safe way of generating MOVFF to cover
6745             literals as well as registers, fixes bug #1440527
6746         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
6747             dereference
6748           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
6749             more correctly, fixes bug #1232186
6750           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
6751         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
6752             gplink guess the correct processor in more cases, applied patch
6753             from Till Riedel attached to and fixing bug #1436552
6754
6755 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6756
6757         * support/regression/tests/array.c: added, contains check for #1434401
6758         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
6759
6760 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
6761
6762         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
6763         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
6764         * device/include/mcs51/c8051f326.h,
6765         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
6766         * device/include/mcs51/c8051f000.h,
6767         * device/include/mcs51/c8051f018.h,
6768         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
6769           PCON_IDLE,PCON_STOP and added sfr16 definitions
6770
6771 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
6772
6773         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
6774           genGetWord): fixed bug 1409955
6775
6776 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
6777
6778         * device/include/hc08/mc68hc908gp32.h,
6779         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
6780
6781 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
6782
6783         * src/SDCCast.c (constExprValue): return NULL if not a value
6784         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
6785         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
6786         * support/regression/tests/bitfields.c: enabled signed bitfield for all
6787
6788 2006-02-13 Borut Razem <borut.razem AT siol.net>
6789
6790         * src/regression/ptrarg.c: added, fails due to bug #1430967
6791         * src/regression/Makefile: ptrarg.c added, ...
6792
6793 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
6794
6795         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
6796         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
6797
6798 2006-02-11 Borut Razem <borut.razem AT siol.net>
6799
6800         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
6801           print "Processor: xxx" message to stdout only if --verbose
6802
6803 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
6804
6805         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
6806         * support/regression/tests/bug1426356.c: added
6807         * support/regression/tests/bitfields.c: removed 2 tests
6808
6809 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
6810
6811         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
6812         * device/include/mcs51/c8051f330.h,
6813         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
6814           PCON_IDLE,PCON_STOP and added sfr16 definitions
6815         * device/lib/_divsint.c,
6816         * device/lib/_divuint.c,
6817         * device/lib/_divulong.c,
6818         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
6819           register bank bug for small stackauto
6820
6821 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
6822
6823         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
6824
6825 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
6826
6827         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
6828         * all.dsp: corrected several bin paths
6829         * device/include/mcs51/c8051f120.h,
6830         * device/include/mcs51/c8051f300.h,
6831         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
6832           to PCON_IDLE,PCON_STOP
6833         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
6834         * device/lib/printf_large.c (output_float): fixed bug 1388703
6835         * support/regression/tests/bug1057979.c: added test for bug 1388703
6836
6837 2006-02-08 Raphael Neider <rneider AT web.de>
6838
6839         * src/pic/pcode.c (pciTRIS): fixed typo,
6840           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
6841           (LinkFlow): fixed handling of flows that end in a call,
6842           (ReuseReg): perform safety check earlier
6843         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
6844             to work with flows at the beginning of a pBlock,
6845             fixes #1426557 (Symbol not previously defined),
6846           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
6847             usage information
6848           (RemoveUnusedRegisters): update register usage info
6849         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
6850             created, reuse existing ones instead
6851         * src/pic/gen.c (genPcall): fixed #1424719
6852
6853 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
6854
6855         * link/z80/lkmain.c,
6856         * link/z80/lklex.c,
6857         * link/z80/lkdata.c,
6858         * link/z80/aslink.h: fixed build on current cygwin:
6859         replaced getline() by lk_getline()
6860
6861 2006-02-01 Borut Razem <borut.razem AT siol.net>
6862
6863         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
6864           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
6865           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
6866           src/regression/bool1.c, src/regression/bool2.c,
6867           src/regression/bool3.c, src/regression/call1.c,
6868           src/regression/compare.c, src/regression/compare10.c,
6869           src/regression/compare2.c, src/regression/compare3.c,
6870           src/regression/compare4.c, src/regression/compare5.c,
6871           src/regression/compare6.c, src/regression/compare7.c,
6872           src/regression/compare8.c, src/regression/compare9.c,
6873           src/regression/configword.c, src/regression/for.c,
6874           src/regression/inline.c, src/regression/mult1.c,
6875           src/regression/nestfor.c, src/regression/or1.c,
6876           src/regression/pointer1.c, src/regression/ptrfunc.c,
6877           src/regression/rotate1.c, src/regression/rotate2.c,
6878           src/regression/rotate3.c, src/regression/rotate4.c,
6879           src/regression/rotate5.c, src/regression/rotate6.c,
6880           src/regression/rotate7.c, src/regression/string1.c,
6881           src/regression/struct1.c, src/regression/sub.c,
6882           src/regression/sub2.c, src/regression/switch1.c,
6883           src/regression/while.c, src/regression/xor.c,
6884           src/regression/create_stc, src/regression/simulate,
6885           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
6886           regression tests
6887         * src/regression/gpsim_assert.h: added
6888
6889 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
6890
6891         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
6892         ((void (code *) (void)) 0) ();
6893         * as/hc08/aslex.c,
6894         * as/hc08/aslink.h,
6895         * as/hc08/asm.h,
6896         * as/hc08/asmain.c,
6897         * as/hc08/lkdata.c,
6898         * as/hc08/lklex.c,
6899         * as/hc08/lkmain.c,
6900         * as/mcs51/aslex.c,
6901         * as/mcs51/aslink.h,
6902         * as/mcs51/asm.h,
6903         * as/mcs51/asmain.c,
6904         * as/mcs51/lkdata.c,
6905         * as/mcs51/lklex.c,
6906         * as/mcs51/lkmain.c,
6907         * as/z80/aslex.c,
6908         * as/z80/asm.h,
6909         * as/z80/asmain.c: fixed build on current cygwin:
6910         replaced getline() by as_getline()
6911
6912 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6913
6914         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
6915         declarator in the symbol chain
6916         * src/SDCCsymt.h,
6917         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
6918         parameter list for function pointers
6919         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
6920         * support/regression/tests/bug-716242.c: added
6921
6922 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
6923
6924         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
6925         offset if possible
6926         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
6927
6928 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
6929
6930         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
6931         inifinitely recurseable, added static
6932         * support/regression/tests/bug-1408066.c: added
6933
6934 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
6935
6936         * src/SDCCicode.h,
6937         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
6938         renamed, added possibility to create "postLoopLbl"-labels
6939         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
6940         newiTempLoopHeaderLabel
6941         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
6942         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
6943         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
6944         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
6945         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
6946         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
6947         (basicInduction): fixed bug #136564, made static,
6948         (loopInduction): changed parameter of basicInduction, made static,
6949         (addPostLoopBlock): added
6950         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
6951         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
6952         findLoopEndSeq
6953         * support/regression/tests/bug-136564.c: added
6954         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
6955         --std-sdcc99 to LIBSDCCFLAGS
6956
6957 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
6958
6959         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
6960         while loop
6961         * support/regression/tests/bug-1406131.c: added
6962
6963 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
6964
6965         * src/SDCCast.c (decorateType): fix promotion of unary minus
6966         * src/SDCCsymt.c (computeType): beautified
6967         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
6968         (valUnaryPM, valComplement): fix sign and promotion,
6969         (valNot): ANSI: result type is int (SDCC: unsigned char)
6970         * support/regression/tests/uminus.c: speedup by removing superflous
6971         test case 'int'
6972         * support/regression/tests/onebyte.c: added promotion and signedness
6973         tests for unary minus
6974         * support/regressions/tests/bug-477927.c: disable warning about
6975         uninitialized variables
6976         * support/regression/tests/not.c: added
6977
6978 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
6979
6980         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
6981         * src/mcs51/gen.c (gen51Code): show final register usage after
6982         fillGaps in asm with --i-code-in-asm
6983         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
6984         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
6985         incUsed, rliveClear, adjustIChain): made static,
6986         (setFromRange): excluded because it's unused,
6987         (findPrevUseSym, markWholeLoop): added,
6988         (findPrevUse): rewritten; fixes bug 895992; now a complete search
6989         through all branches of predecessors enables sdcc to emit the warning
6990         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
6991         (rlivePoint): made static, added parameter emitWarnings which is only
6992         true during the first run out of two,
6993         (findRecursiveSucc, findRecursivePred): removed,
6994         (computeLiveRanges): made static, added parameter emitWarnings,
6995         (dumpIcRlive): added for debugging only
6996         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
6997         removed prototype of setFromRange()
6998         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
6999         in call of computeLiveRanges()
7000         * support/regression/tests/bug-895992.c: added
7001         * support/regression/tests/bug-971834.c: added
7002         * support/valdiag/tests/bug-895992.c: added
7003         * support/valdiag/tests/bug-971834.c: added
7004
7005 2005-12-18 Raphael Neider <rneider AT web.de>
7006
7007         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
7008           (genUnpackBits): improved code for direct operands,
7009           (genPackBits): improved code for literal assignment to bitfields
7010             and for direct destination operands (no FSR indirection),
7011             prevented redundant AND, fixes #1362800,
7012           (AccLsh): added parameter to disable masking of the result
7013         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
7014           skip instructions with side-effects (like incfsz),
7015           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
7016         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
7017         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
7018           fixes #1375263
7019
7020 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
7021
7022         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
7023         volatile variables as spill location
7024
7025 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
7026
7027         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
7028         replacing literals
7029         * support/regression/tests/bug-1376320.c: added
7030
7031 2005-12-08 Raphael Neider <rneider AT web.de>
7032
7033         * src/pic/device.c: renamed is_shared to pic14_is_shared
7034         * src/pic/gen.c (genIfx): re-enabled handling of sbits
7035         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
7036           (is_valid_identifier): added for above workaround
7037
7038 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
7039
7040         * device/lib/Makefile.in: fixed to enable port-specific-objects
7041         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
7042           char, thanks Hubert Sack
7043         * doc/sdccman.lyx: documented --xstack-loc,
7044           elaborated a bit more on interrupts and pitfalls,
7045           removed "setjmp/longjmp unsupported",
7046           documented some unsupported C99 features
7047         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
7048         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
7049           if, thanks Hubert Sack
7050         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
7051         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
7052           make make_library
7053         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
7054           regression tests can report resource usage (rfe 700441)
7055         * support/regression/collate-results.py: report resource usage
7056         * support/regression/ports/ds390/spec.mk,
7057         * support/regression/ports/hc08/spec.mk,
7058         * support/regression/ports/mcs51/spec.mk,
7059         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
7060         * support/regression/ports/ds390/uCsim.cmd,
7061         * support/regression/ports/hc08/uCsim.cmd,
7062         * support/regression/ports/mcs51/uCsim.cmd,
7063         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
7064         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
7065           library, use the default one
7066         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
7067           building the library
7068
7069 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
7070
7071         * config.dsp: added dependency on .version and configure_vc.awk
7072         * device/include/setjmp.h: updated for --stack-auto and --xstack
7073         * device/include/mcs51/at89c51snd1c.h: corrected line endings
7074         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
7075         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
7076         * device/lib/libsdcc.lib: added _setjmp
7077         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
7078           (decorateType): fixed bug 1372851,
7079           (optimizeGetHbit): fixed warning
7080         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
7081           array initialisation
7082         * support/regression/tests/bug1057979.c: added test for bug 1358192
7083         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
7084
7085 2005-12-03 Borut Razem <borut.razem AT siol.net>
7086
7087         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
7088           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
7089
7090 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
7091
7092         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
7093         createIval): implement symbol independant "flexible array member",
7094         (createIvalCharPtr): implemented flexible array initialisation with a
7095         string
7096         * src/SDCCsymt.c (copyStruct): removed,
7097         (getSize): fixed misleading comment,
7098         (getAllocSize): removed, the additional allocation size is now in
7099         sym->flexArrayLength,
7100         (checkStructFlexArray): new, syntax checks for flexible array members,
7101         (compStructSize): added syntax checks for "flexible array members"
7102         (copyStruct): removed,
7103         (copyLinkChain): removed inefficient fix for bug 770487
7104         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
7105         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
7106         symbol->flexArrayLength
7107         * src/SDCCerr.c,
7108         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
7109         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
7110         * support/regression/tests/structflexarray.c: added
7111         * support/valdiag/tests/structflexiblearray.c: added
7112
7113 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
7114
7115         * src/SDCCast.c (decorateType): fixed bug 1368489
7116         * support/Util/SDCCerr.c,
7117         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
7118
7119 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7120
7121         * device/include/mcs51/at89c51snd1c.h: added file submitted by
7122           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
7123
7124 2005-11-27 Borut Razem <borut.razem AT siol.net>
7125
7126         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
7127           support/cpp2/mkdeps.h: added command line option
7128           -obj-ext=<extension> to SDCPP to define object file externion, used
7129           for generation of make dependencies (-M)
7130         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
7131
7132 2005-11-26 Borut Razem <borut.razem AT siol.net>
7133
7134         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
7135           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
7136           added pic and pic16 libraries
7137
7138 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7139
7140         * device/include/float.h: Corrected typo in prototype of __fsgt
7141
7142 2005-11-25 Borut Razem <borut.razem AT siol.net>
7143
7144         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
7145           added creation of model-mcs51-stack-auto libraries
7146
7147 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
7148
7149         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
7150         and fields-list too
7151         * src/SDCCast.c (createIvalArray): removed obsolete comment
7152
7153 2005-11-24 Borut Razem <borut.razem AT siol.net>
7154
7155         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
7156           added missing device/lib/mcs51/crt*.asm sources
7157
7158 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
7159
7160         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
7161
7162 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
7163
7164         * device/lib/_fs2schar.c,
7165         * device/lib/_fs2sint.c,
7166         * device/lib/_fs2slong.c: optimized inline asm
7167
7168 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7169
7170         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
7171           Better handling of floats between -1.0 and 0.0.
7172
7173 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7174
7175         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
7176           (the missing "if"s prohibited removal of redundant labels)
7177
7178 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7179
7180         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
7181           Properly convert floats between -1.0 and 0.0 to long, int, and char
7182           types (max integer value of negative floats tends to zero).
7183         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
7184           Removed changes made so to work properly with floats between
7185           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
7186           and _fs2char.c
7187
7188 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
7189
7190         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
7191         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
7192         (genCast) cosmetic change
7193         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
7194         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
7195         from mcs51
7196         * support/regression/tests/bitfields (testSignedBitfields): added
7197
7198 2005-11-18 Borut Razem <borut.razem AT siol.net>
7199
7200         * sdcc/device/lib/Makefile.in: remove all unnecessary files
7201         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
7202           introduced SILENT option to make building of pic16 libraries less
7203
7204 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7205
7206         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
7207           Now they work properly with floats between -1.0 and 0.0
7208         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
7209
7210 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
7211
7212         * src/SDCCicode.c (printOperand): added missing else
7213
7214 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
7215
7216         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
7217         reformatted for better readability
7218         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
7219         signed bitfields
7220
7221 2005-11-17 Borut Razem <borut.razem AT siol.net>
7222
7223         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
7224           introduced SILENT option to make building of pic16 libraries less
7225           verbose - used for nightly snapshot build
7226         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
7227           available on Win32 platforms.
7228         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
7229           medium, large, pic and pic16
7230
7231 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7232
7233         * device/lib/printf_large.c: Temporary patch for bug 1358192:
7234           printf("%f"...) sets fraction to zero.
7235
7236 2005-11-16 Raphael Neider <rneider AT web.de>
7237
7238         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
7239           fixes #1357221
7240         * src/pic/gen.c (genIfx): implemented for CARRY bit
7241         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
7242           to generic pointers, fixes #1357332,
7243           (pic16_movLit2f): NEW,
7244           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
7245
7246 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
7247
7248         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
7249
7250 2005-11-11 Raphael Neider <rneider AT web.de>
7251
7252         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
7253         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
7254           compute pointer's type from operand,
7255           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
7256           improved single bit reads, fixes bug #1353379
7257
7258 2005-11-09 Borut Razem <borut.razem AT siol.net>
7259
7260         * support/scripts/sdcc.nsi: added lib/pic to the package
7261
7262 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
7263
7264         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
7265
7266 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
7267
7268         * support/regression/tests/bug1348008.c: added
7269         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
7270         * support/regression/tests/bug1337835.c: updated comment
7271
7272 2005-11-06 Borut Razem <borut.razem AT siol.net>
7273
7274         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
7275           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
7276           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
7277           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
7278           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
7279           dynamic construction of cl_error_class and derivates - 2.nd try
7280
7281 2005-11-05 Borut Razem <borut.razem AT siol.net>
7282
7283         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
7284           bug, which caused Bus Errors on sparc solaris
7285
7286 2005-11-04 Borut Razem <borut.razem AT siol.net>
7287
7288         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
7289           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
7290           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
7291           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
7292           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
7293           and derivates to resolve the initialization problem on OSX
7294
7295 2005-11-02 Borut Razem <borut.razem AT siol.net>
7296
7297         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
7298           corrected typo - #include <winsock2.h>
7299
7300 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
7301
7302         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
7303           (_asxxxx_mapping): added org directive for future enhancements
7304
7305 2005-11-01 Borut Razem <borut.razem AT siol.net>
7306
7307         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
7308           enabled sockets on WIN32
7309         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
7310
7311 2005-10-31 Borut Razem <borut.razem AT siol.net>
7312
7313         * support/regression/generate-cases.py: escape backslashes in {testcase}:
7314           WIN32 backslash path delimiters should be escaped when used in C strings
7315         * support/regression/tests/bitfields.c: exclude failing assertions for
7316           __CYGWIN32__ and __MINGW32__ hosts
7317
7318 2005-10-30 Borut Razem <borut.razem AT siol.net>
7319
7320         * src/SDCCutil.c: corrected double comparison typo
7321
7322 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
7323
7324         * device/lib/medium/Makefile: added for new memory model medium
7325         * device/include/asm/mcs51/features.h: updated for medium/pdata
7326         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
7327           added Multiply & Accumulate sbit's and MAC0_PAGE define
7328         * device/include/mcs51/c8051f300.h: added sfr16 definitions
7329         * device/include/mcs51/c8051f310.h: added sfr16 definitions
7330         * device/lib/_mullong.c: update for medium model
7331         * device/lib/incl.mk: added medium model
7332         * doc/sdccman.lyx: documented medium model
7333         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
7334         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
7335         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
7336         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
7337           (allocParms): set SCLS and OCLS to pdata for medium model
7338         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
7339           for pdata,
7340           (powof2): return <0 if not power of 2
7341         * src/avr/gen.c (genBitWise): use updated powof2
7342         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
7343           (shiftR2Left2Result): small optimization in setup, save acc when storing,
7344           (shiftLLeftOrResult): use B if necessary
7345         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
7346         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
7347         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
7348         * support/regression/Makefile.in: added test-mcs51-medium
7349         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
7350
7351 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
7352
7353         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
7354         specifier unsigned
7355         * device/lib/time.c (mktime): fixed bug 1334315
7356
7357 2005-10-28 Raphael Neider <rneider AT web.de>
7358
7359         * device/include/pic/p16f_common.inc: added common declarations
7360         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
7361
7362 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
7363
7364         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
7365           (aopPutUsesAcc): added to predict accumulator use,
7366           (assignResultValue): save acc if necessary,
7367           (genMinusDec): store result if indirectly addressed,
7368           (genDivOneByte):  save acc if necessary,
7369           (movLeft2Result): bugfix if left already in acc,
7370           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
7371             attention to accumulator use (esp. pdata),
7372           (genReceive): receive pdata correctly
7373         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
7374         * src/SDCCicode.h: added isOperandInPagedSpace prototype
7375
7376 2005-10-27 Raphael Neider <rneider AT web.de>
7377
7378         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
7379
7380 2005-10-27 Raphael Neider <rneider AT web.de>
7381
7382         * .version: changed version to 2.5.4
7383         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
7384         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
7385           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
7386             arithmetics support routines
7387         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
7388         * device/lib/Makefile.in: also create installdir for pic
7389
7390         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
7391           pic14 port as well
7392         * src/pic/device.c (dump_sfr): rewritten to delegate register
7393           placement to the linker (use `extern sym' rather than sym EQU addr),
7394           (validAddress): fixed to check last specified address
7395         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
7396           (popGetLit): truncate literal value to 8 bit,
7397           (popGet): moved assert to more appropriate place
7398           (popGetExternal): create pCode operand from and mark the according
7399             symbol as being `extern'
7400           (popGetAddr): added sanity check on immediate's offset, provide
7401             GPOINTER tag on demand
7402           (aopPut): fixed for immediates,
7403           (mov2w_op): move operand's address or contents to WREG (depending on
7404             operand type), safer variant of mov2w,
7405           (movwf,call_libraryfunc): NEW, handy abbreviations,
7406           (get_argument_pcop,get_return_val_pcop,pass_argument,
7407           get_returnvalue): interface for accessing function parameters and
7408             return values,
7409           (assignResultValuei,genRet): use new parameter/return value interface
7410           (pic14_getDataSize): back to old version handling generic pointers,
7411           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
7412             provided implementation and/or fixed old one,
7413           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
7414             calls, removed legacy 8051 reference code
7415           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
7416           (loadSignToC): NEW, move the operands sign bit to CARRY,
7417           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
7418             genRightShiftSigned, accepts negative shift counts,
7419           (setup_fsr): load FSR and adjust IRP (indirect memory access),
7420           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
7421             generic pointers, __data pointers and __code pointers,
7422           (genUnpackBits,genPackBits): rewritten to work with generic pointers
7423             and signed bitfields, limit bitfields to 8 bit,
7424           (genDataPointerGet): fixed number of bytes read,
7425           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
7426           (genPointerGet,genPointerSet): fixed handling of __code pointers,
7427             pointers to constant data are no longer assumed to point to __code
7428             space, removed invalid pointer types,
7429           (bitpatternFromVal): retrieve the PICs representation of an integer
7430             or float literal,
7431           (genDataPointerSet): fixed assigning to po_immediate operands,
7432           (genGenPointerSet): implemented as library call,
7433           (genIfx): fixed incorrect condition,
7434           (genAddrOf): limit generic pointers' addresses to 2 bytes,
7435             provide GPOINTER tag according to destination's storage class,
7436           (genCast): added code to handle casting to generic pointers, added
7437             sign-/zero extension of the result
7438           (aop_isLitLike,op_isLitLike): fixed handling of immediates
7439         * src/pic/gen.h: added macros to access IRP bit in STATUS register
7440         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
7441           extend the result
7442         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
7443           address/register resides in the shared banks
7444           (emitSymbolToFile): improved to handle global and `pinned' symbols,
7445             put all variables into separate sections (have the linker arrange
7446             them)
7447           (picglue): put init code and interrupt handlers in separate sections
7448         * src/pic/main.c: added port specific options table, modified to PORT
7449           structure to make GPOINTERs 3 byte, added pic14_options
7450           (_pic14_do_link): private linking routine (update paths to libraries,
7451             add libsdcc.lib by default)
7452         * src/pic/main.h: declare pic14_options
7453         * src/pic/pcode.c: fixed instructions i/o relations,
7454           (RegCond): reverted to correct version,
7455           (newpCodeOpLit): truncate literals to 8 bit,
7456           (genericPrint): added debug output,
7457           (getRegFromInstruction): fixed for various operand types, simplified
7458           (BuildFlow): fixed broken handling of isntructions with labels
7459           (LinkFlow): start at last instruction in flow (skip trailing comments),
7460             pass the flow on to the next instruction after CALL
7461           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
7462           (insertPCodeInstruction): fixed inserting after a skip instruction,
7463           (DoBankSelect): fixed for labeled instructions
7464           (OptimizepBlock): honor --nopeep switch
7465           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
7466         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
7467         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
7468           (pCodeOptime2pCodes): allow disabling this optimization via
7469             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
7470             but is still buggy), started implementation of a dataflow based
7471             pCode optimization (CSE + dead code elimination)
7472           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
7473         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
7474           names are independant of the stack location and therefore portable across
7475           devices
7476
7477 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
7478
7479         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
7480           (selectSpil): fixed bug 1337835 by not spilling bit variables
7481         * support/regression/tests/bug1337835.c: added test for this bug
7482         * src/mcs51/peeph.def: restart after rule 3.c,
7483           addded rules 263.x to optimize loading constants
7484
7485 2005-10-26 Raphael Neider <rneider AT web.de>
7486
7487         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
7488         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
7489           (genAssign): emit warning when casting literals to generic pointer
7490             type, also applies when taking the address of a fixed variable,
7491           (genCast): improved casting to generic pointers
7492         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
7493           extern variables, added verbose error message
7494         * device/include/pic16/{string.h,errno.h}: added #pragma library c
7495
7496 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
7497
7498         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
7499         carry must be complemented too
7500         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
7501         could be emitted by genMinus
7502         * src/SDCCval.c (constVal): fixed bug 1305065
7503
7504 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
7505
7506         * src/SDCCast.c (addCast): added promotion for bit variables
7507         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
7508         promotion casts + optimisation
7509         (optimizeGetWord): fix warning 'i' might be used uninitialized
7510         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
7511         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
7512
7513 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
7514
7515         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
7516         all chars are promoted to int; promotion should be handled in SDCCast.c
7517
7518 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7519
7520         * device/lib/_strcmp.c: Fixed bug 1326457
7521
7522 2005-10-11 Raphael Neider <rneider AT web.de>
7523
7524         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
7525         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
7526
7527 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
7528
7529         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
7530         * support/regression/tests/sfr16.c: added test for the sfr32 bug
7531
7532 2005-10-04 Raphael Neider <rneider AT web.de>
7533
7534         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
7535           device/lib/pic16/pics.all: added pic18f1320
7536         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
7537
7538 2005-09-30 Raphael Neider <rneider AT web.de>
7539
7540         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
7541         * src/pic16/devices.inc: NEW, provides device descriptions
7542         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
7543
7544 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
7545
7546         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
7547           GETHBIT
7548
7549 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
7550
7551         * doc/sdccman.lyx: updated Highest Order Bit documentation,
7552           documented Any Order Bit, Higher Order Byte and Higher Order Word
7553         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
7554         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
7555           (optimizeGetAbit): new, to get any bit, not only the high bit,
7556           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
7557           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
7558           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
7559           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
7560             RIGHT_OP: also try GETBYTE, GETWORD optimization,
7561             GETABIT, GETBYTE, GETWORD: decorate them,
7562           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
7563           (ast_print): added GETABIT, GETBYTE, GETWORD
7564         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
7565         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
7566           (geniCodeBinary): new generic binary icode,
7567           (ast2iCode): added GETABIT, GETBYTE, GETWORD
7568         * src/port.h: updated comment for PORT.hasExtBitOp
7569         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
7570           (genGetByte): new, to get a single byte,
7571           (genGetWord): new, to get a word from a long,
7572           (gen51Code): added GETABIT, GETBYTE, GETWORD
7573         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
7574
7575 2005-09-23 Raphael Neider <rneider AT web.de>
7576
7577         * configure.in, configure: have device/lib/pic configured
7578         * device/lib/Makefile.in: added model-pic14
7579         * device/lib/clean.mk: added pic/ to clean rule
7580         * device/lib/pic: added rudimentary pic14 library providing support
7581           functions for multiplication/division/generic pointer access
7582         * src/SDCCopt.c (convilong): mark support functions as extern
7583           for pic14 port as well
7584         * src/pic/gen.c (genMult): added assertions,
7585           (genpic14Code): emit warning on unhandled iCodes
7586         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
7587         * src/pic/pcode.c (pCodeOpCopy),
7588         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
7589           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
7590           SFR_REGISTER}), made safe for future extensions
7591         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
7592           instructions even if preceeded by SKIP instructions (also remove
7593           them); removed unused code
7594         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
7595           prevents leaving parts of the structure uninitialized after copying
7596
7597 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
7598
7599         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
7600           ago by me
7601         * support/regression/tests/addsub.c: added test for the bug
7602
7603 2005-09-21 Raphael Neider <rneider AT web.de>
7604
7605         * device/include/pic16/pic18f1220.h,
7606           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
7607         * device/lib/pic16/Makefile.rules: added missing opening paren
7608         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
7609           are provided in genutils.c,
7610           (genUminusFloat,genUminus,genCmpEq): added asserts on different
7611           operand/result sizes,
7612           (genCmp): assert on NULL pointers first, then check deref'ed values
7613         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
7614           result size
7615
7616 2005-09-18 Raphael Neider <rneider AT web.de>
7617
7618         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
7619           as these are now unused,
7620           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
7621         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
7622           local, avoids uninitialized pointer dereference on r->name
7623         * src/pic16/ralloc.c (newReg): fixed indentation
7624
7625 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
7626
7627         * src/SDCCval.c (constVal): fixed bug 730366
7628         * support/Util/SDCCerr.c,
7629         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
7630
7631 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
7632
7633         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
7634
7635 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
7636
7637         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
7638
7639 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7640
7641         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
7642           (hex2dec): made hex_digit unsigned char, removed ascii dependance
7643         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
7644           (hex2dec): made hex_digit unsigned char, removed ascii dependance
7645         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
7646         * packihx/packihx.c (hexDigit): made c unsigned char
7647         * as/mcs51/lklibr.c (fndsym),
7648         * link/z80/lkgb.c (gb),
7649         * link/z80/lklibr.c (fndsym),
7650         * link/z80/lkrloc.c (relr),
7651         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
7652         * src/SDCC.lex (checkCurrFile, process_pragma),
7653         * src/SDCCglue.c (spacesToUnderscores),
7654         * src/SDCCmain.c (setParseWithComma, processFile),
7655         * src/asm.c (tvsprintf, printCLine),
7656         * src/avr/gen.c (emitcode, aopPut),
7657         * src/ds390/gen.c (emitcode),
7658         * src/hc08/gen.c (emitcode, emitinline),
7659         * src/mcs51/gen.c (emitcode, genInline),
7660         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
7661           tokenizeLineNode),
7662         * src/pic/ralloc.c (debugLog),
7663         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
7664           tokenizeLineNode),
7665         * src/pic16/ralloc.c (debugLog),
7666         * src/z80/main.c (_process_pragma):
7667            made all ctype.h function calls safe
7668         * src/SDCCopt.c: include math.h for fabs
7669         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
7670           and used them throughout the code to make ctype.h function calls safe
7671         * src/ds390/main.c (asmLineNodeFromLineNode),
7672         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
7673         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
7674            unsigned char*
7675         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
7676           (newpCodeAsmDir): made ctype.h function calls safe
7677         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
7678           pic16_emitcode):  made lbp unsigned char*
7679         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
7680           (pic16_newpCodeAsmDir): made ctype.h function calls safe
7681         * src/xa51/gen.c (emitcode),
7682         * src/z80/gen.c (_emit2): made lbp unsigned char*
7683         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
7684            char*
7685
7686 2005-09-05 Raphael Neider <rneider AT web.de>
7687
7688         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
7689           access bank splitpoint
7690
7691 2005-09-05 Raphael Neider <rneider AT web.de>
7692
7693         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
7694
7695 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
7696
7697         * .version: changed to version 2.5.3
7698         * doc/sdccman.lyx: changed version to 2.5.3,
7699           documented --codeseg and --constseg and pragma codeseg and constseg,
7700           documented bit parameters (reentrant) and bit returning
7701         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
7702            currFunc->recvSize, but is this ok for all ports?
7703           (ast2iCode): result of ~ on unsigned char must be cast to int for
7704            bool to work
7705         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
7706           function pointers in bit space
7707         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
7708           (processFuncArgs): call port.reg_parm() with reentrancy info
7709         * src/port.h,
7710         * src/avr/main.c,
7711         * src/ds390/main.c,
7712         * src/hc08/main.c,
7713         * src/pic/main.c,
7714         * src/pic16/main.c,
7715         * src/xa51/main.c,
7716         * src/z80/main.c: port.reg_parm prototype extended with
7717           "bool reentrant" parameter
7718         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
7719           options.stackAuto for allocating bit register parameters
7720         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
7721           (genSend): set BitBankUsed if it is,
7722           (selectRegBank): factored out of genCall for use in genPcall,
7723           (genCall): removed redundant dtype assignmen, use selectRegBank,
7724           (genPcall): handle returning in Carry properly, save in F0 if needed,
7725           (genReceive): handle bit register parameters
7726         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
7727           (mcs51_assignRegisters): enable bit registers for all reentrant
7728            functions and don't set BitBankUsed unconditionally
7729         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
7730         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
7731         * support/regression/tests/funptrs.c: added tests for BOOL and for return
7732
7733 2005-08-27 Borut Razem <borut.razem AT siol.net>
7734
7735         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
7736         ppc-osx (Darwin) does not support -u option. It seems that it is
7737         supported only on Linux - GNU cp
7738
7739 2005-08-25 Borut Razem <borut.razem AT siol.net>
7740
7741         * sim/ucsim/gui.src/serio.src/Makefile.in,
7742           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
7743           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
7744           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
7745           install and strip, since the strip at /usr/ccs/bin should be used
7746           on solaris
7747
7748 2005-08-24 Borut Razem <borut.razem AT siol.net>
7749
7750         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
7751
7752 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
7753
7754         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
7755         ffffffffu
7756
7757 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
7758
7759         * as/mcs51/aslink.h: completed lkrloc.c prototypes
7760         * as/mcs51/lkmain.c (link_main): fixed warning
7761         * device/include/stdbool.h: ds390 has no advanced bit support yet
7762         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
7763         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
7764         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
7765           and updated their macros
7766         * src/SDCCval.c (constVal): updated comment for renamed b_long
7767
7768 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
7769
7770         * as/mcs51/asdata.c: changed ctype['['] to BINOP
7771         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
7772           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
7773           (oprio): set priority for '['
7774         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
7775            and adb_24_bit
7776         * as/mcs51/asm.h: added defines R_BIT and S_BIT
7777         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
7778         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
7779         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
7780           added overlayable BIT_BANK area
7781         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
7782           (summary2): explain 'T' in legenda
7783         * as/mcs51/lkrloc.c: replaced old K&R style,
7784           (relr): added R_BIT processing,
7785           (errmsg): added "Bit-addressable relocation error",
7786           (adb_bit): added for converting from byte- to bit-addressable space,
7787           (adb_24_bit): added for converting from byte- to bit-addressable space
7788         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
7789            used in reentrant functions now even as return value
7790         * device/lib/_gptrput.c (_gptrput): removed obsolete code
7791         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
7792           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
7793         * src/SDCCglobl.h: added indicator BitBankUsed
7794         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
7795            the bit registers b0-b7
7796         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
7797           (geniCodeCast): fixed bug 1263853,
7798           (geniCodeLogicAndOr): put result in bool or char,
7799           (geniCodeReceive): added parameter func for accessing the return type,
7800           (geniCodeFunctionBody): pass func to geniCodeReceive
7801         * src/SDCCmain.c: added indicator BitBankUsed
7802         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
7803         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
7804           (checkSClass): don't put automatic bool/bit on stack,
7805           (checkFunction): removed check on function cannot return bit
7806         * src/SDCCsymt.h: added newBoolLink prototype
7807         * src/mcs51/gen.c (rb1regs): added bit registers,
7808           (movc): created for assigning to carry,
7809           (pushReg, popReg): created for pushing registers,
7810           (sameRegs): check both AOP_REG and AOP_CRY types,
7811           (aopOp): handle bit registers,
7812           (aopPut): optimization no self-assign,
7813           (saveRegisters): push reg->base (bits) only once for bit registers,
7814            and use pushReg,
7815           (unsaveRegisters): pop reg->base only once and use popReg,
7816           (assignResultValue): added parameter func and return in carry for bits,
7817           (genIpush): optimization no reload in A if not changed,
7818           (genSend): bit parameters in reentrant functions are passed in bit
7819            registers by first assigning to bits in B, then save registers and
7820            copy B to bits,
7821           (genCall): handle returning in Carry properly, save it in F0 if needed,
7822           (genPcall): updated assignResultValue call, this is not safe yet for bit
7823            returning function !!!
7824           (genFunction): don't generate equ's for bit registers and use pushReg,
7825           (genEndFunction): take care of bit returning functions and use popReg,
7826           (genRet): return bit in Carry,
7827           (genIfx): optimize bit registers and other directly addressable bits,
7828           (genReceive): updated assignResultValue call
7829         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
7830           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
7831            registers when using stack-auto
7832         * src/mcs51/ralloc.c (_G): added allBitregs,
7833           (regs8051): added the bit registers,
7834           (createStackSpil): use macro IS_BIT,
7835           (getRegBit): added to allocate a bit register, else spill,
7836           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
7837           (updateRegUsage): factored out to ease stepping while debugging,
7838           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
7839            also allocate bit registers,
7840           (fillGaps): handle bit registers,
7841           (findAllBitregs): added to create bit vector with all bit registers,
7842           (mcs51_allBitregs): returns this bit vector,
7843           (mcs51_assignRegisters): when using stack-auto use bit registers for
7844            passing parameters and creating local variables
7845         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
7846
7847 2005-08-22 Borut Razem <borut.razem AT siol.net>
7848
7849         * device/lib/Makefile.in: replaced find option -or with -o
7850           to make it run on solaris
7851
7852 2005-08-22 Raphael Neider <rneider AT web.de>
7853
7854         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
7855           fixes #1265442 (crash on Solaris)
7856
7857 2005-08-20 Borut Razem <borut.razem AT siol.net>
7858
7859         * configure, configure.in: added tests for libsocket and libnsl libraries,
7860           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
7861           from support/regression/Makefile.in
7862         * support/regression/Makefile.in: added
7863         * device/lib/pic16/Makefile.common.in: force make to use bash shell
7864         * sim/ucsim/libtool: regenerated on sparc-solaris
7865         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
7866           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
7867           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
7868           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
7869           sparc-solaris, which doesn't use GNU ld linker
7870         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
7871         * as/Makefile: find on sparc-solaris does not support -maxdepth option
7872
7873 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
7874
7875         * src/mcs51/peeph.def: updated comments
7876
7877 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7878
7879         * device/lib/_gptrget.c,
7880         * device/lib/_gptrput.c: slightly shorter
7881         * doc/sdccman.lyx: incremented version
7882         * src/mcs51/peeph.def: moved peephole comments to the line of first
7883           change to better keep line correlation, reanimated 186.e
7884         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
7885
7886 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
7887
7888         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
7889           David Saxton with quotes around file name.
7890
7891 2005-08-15 Borut Razem <borut.razem AT siol.net>
7892
7893         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
7894           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
7895           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
7896           make tests run on x86_64 platform
7897
7898 2005-08-13 Raphael Neider <rneider AT web.de>
7899
7900         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
7901           as it might be executed DURING a build (parallel make is wonderful)
7902
7903 2005-08-13 Raphael Neider <rneider AT web.de>
7904
7905         * device/lib/Makefile.in (port-specific-objects-pic16):
7906           revert to cp $(PORT)/bin/*.* $(PORTDIR)
7907         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
7908           dependency
7909         * device/lib/pic16/Makefile.rules: build subdirs before creating
7910           the library, removed builddir rule, create $(builddir) early in
7911           recurse rule, use empty recurse rule for leaf directories
7912         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
7913           mkdir errors (race condition), removed duplicate suffix "hex"
7914           from clean rules
7915         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
7916         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
7917           prevents mkdir -p from aborting on Alpha
7918
7919 2005-08-12 Raphael Neider <rneider AT web.de>
7920
7921         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
7922           db-statements in order to allow for arrays of pointers in code
7923           sections to be placed without interspersed 0-padding, fixes
7924           bug #1256215
7925         * (emitStatistics): fixed division by zero for pic18f1220
7926         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
7927           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
7928         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
7929         * (pic16_pCodeConstString): keep track of already emitted string
7930           literals to prevent "duplicate definitions of symbol _str_NR"
7931         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
7932           debug message
7933         * device/lib/Makefile.in: ignore failing PIC16 library builds
7934         * device/lib/pic16/Makefile: do not build if gputils are missing
7935         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
7936
7937 2005-08-10 Raphael Neider <rneider AT web.de>
7938
7939         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
7940           my last commit)
7941
7942 2005-08-10 Raphael Neider <rneider AT web.de>
7943
7944         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
7945           Rokas' patch to add the new fixed point type "__fixed16x16"
7946         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
7947           functions for __fixed16x16 arithmetics
7948         * device/lib/pic16: reimplemented the build system to support
7949           a separate build directory, better handling of libio (create
7950           the library in a separate subdir for each architecture) and
7951           easier configuration (centralized in Makefile.common)
7952
7953 2005-08-07 Raphael Neider <rneider AT web.de>
7954
7955         * src/pic16/gen.c (genrshTwo): fixed sign extension
7956         * src/pic16/device.c: added pic18f2320, 4220 and 4320
7957         * device/include/pic16/pic18f2220.h: changed some bit definitions,
7958           added T0CONbits
7959         * device/include/pic16/pic18f4220.h: NEW, header for
7960           pic18f4220 and pic18f4320
7961         * device/include/pic16/pic18fregs.h: added new devices,
7962           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
7963         * device/include/pic16/signal.h: resolved name clashes
7964           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
7965           to also allow testing for interrupt enable bits, added
7966           comments on how to use the macros
7967         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
7968         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
7969           register definitions for the devices
7970         * device/lib/pic16/pics.all: added new devices
7971         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
7972           allocated memory
7973         * device/lib/pic16/libc/stdlib/memfree: do not count
7974           the block header as free memory
7975         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
7976           simplified and added missing end-of-blocklist-marker
7977           (reported by Peter Onion, fixes #1252814)
7978         * (_mergeHeapBlock): fixed loop condition
7979         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
7980           len==0, restructured code
7981         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
7982           up a bit, reduced bitfield accesses, prevent endless loops
7983           in case of heap corruption
7984         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
7985           "unreferenced arguments/must return a value" warnings
7986         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
7987           replaced BAUDREG with SPBRG
7988         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
7989           device/lib/pic16/debug/gstack/gstack.c: replaced
7990           _naked, _asm, _endasm with __naked, __asm, __endasm
7991
7992 2005-08-05 Raphael Neider <rneider AT web.de>
7993
7994         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
7995           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
7996
7997 2005-08-05 Borut Razem <borut.razem AT siol.net>
7998
7999         * device/lib/Makefile.in: added missing ';'
8000         * configure: removed ^M characters
8001
8002 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8003
8004         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
8005           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
8006           License
8007
8008 2005-08-04 Borut Razem <borut.razem AT siol.net>
8009
8010         * configure.in: pic16 libraries build 2nd try - enable running
8011           configure in device/lib/pic16
8012         * configure: regenerated from configure.in
8013         * device/lib/Makefile.in: create $(PORT)/bin directory
8014
8015 2005-08-03 Raphael Neider <rneider AT web.de>
8016
8017         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
8018           to get/set values via pointers
8019         * (genUnpackBits,genPackBits): changed detection of
8020           ptr->bitfield vs. sym.bitfield, fixed access via generic
8021           pointers, removed dead (wrong) code for multibyte bitfields
8022         * (genNearPointerGet, genGenPointerGet): removed useless code,
8023           fixed bitfield detection, fixes #1250594
8024         * (genNearPointerSet): removed useless code
8025         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
8026           and introduced macro pic16_emitpcode that conditionally emits
8027           the origin of the following pCode (useful for debugging SDCC)
8028         * src/pic16/pcode.c: changed (and disabled) some debug outputs
8029         * (createDefmap): fixed handling of LFSR for --optimize-df
8030
8031 2005-08-02 Borut Razem <borut.razem AT siol.net>
8032
8033         * device/lib/Makefile.in: pic16 libraries build enabled since
8034           gputils-0.13.2 are now localy installed at sourceforge's compile farm
8035
8036 2005-08-02 Raphael Neider <rneider AT web.de>
8037
8038         * src/pic16/gen.c (genPackBits): removed deprecated warning
8039         * (genGenPointerSet): fixed bitfield detection
8040
8041 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8042
8043         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
8044
8045 2005-07-31 Raphael Neider <rneider AT web.de>
8046
8047         * device/lib/pic16/libdev/pic18f458.c,
8048           device/include/pic16/pic18f458.h: added missing T0CONbits
8049
8050 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
8051
8052         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
8053
8054 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
8055
8056         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
8057
8058 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8059
8060         * device/include/mcs51/at89c51ed2.h: added.
8061
8062 2005-07-23 Raphael Neider <rneider AT web.de>
8063
8064         * src/pic/gen.h: added emitpcode macro for debugging
8065         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
8066           and replace by macro adding debug information on demand
8067         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
8068         * (gencjne): tried to fix; replaced with correct (slower) code
8069         * (gen{Unp,P}ackBits): fixed single bit access
8070         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
8071         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
8072           previous instruction
8073         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
8074           register has to be handled with care (forbidding movement
8075           of assignments/uses, removing assignments completely, ...)
8076         * (pCodeOptime2pCodes): make use of regIsSpecial
8077         * added lots of debugging output (commented out)
8078         * src/pic/rallloc.c (deassignLRs): prevent operand registers
8079           from being reused as result UNLESS it is known to work
8080
8081 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
8082
8083         * support/Util/dbuf.h: include <stddef.h> for size_t
8084         * .version: changed to version 2.5.2
8085
8086 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8087
8088         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
8089
8090 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8091
8092         * src/hc08/gen.c (genMinus): fixed bug #1241835,
8093           (genModOneByte): removed needless psha/pula
8094
8095 2005-07-22 Raphael Neider <rneider AT web.de>
8096
8097         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
8098           have PIC14 handled like PIC16, fixes broken pic14 linker calls
8099         * src/pic/gen.c (resolveIfx): do not "invent" labels
8100         * (genSkipc): changed to positive logic
8101         * (genSkipCond): removed as no longer needed
8102         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
8103           backport from PIC16
8104         * (genLeftShift): check operands are in different registers
8105         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
8106           INCF does not update CARRY...
8107         * src/pic/main.c: fixed _linkCmd
8108         * src/pic/pcode.c (unlinkpCode): added inactive code
8109         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
8110           alive (do not assign result and operand overlapping registers)
8111
8112 2005-07-22 Raphael Neider <rneider AT web.de>
8113
8114         * src/pic/device.c (dump_sfr): replaced register declaration with
8115           call to emitSymbolToFile() to avoid duplicate symbols
8116         * (assignRelocatableRegisters): do not declare external symbols
8117         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
8118           right (take size of type, not etype)
8119         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
8120         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
8121         * (packRegsForAccUse): disabled assignment of WREG as
8122           the result reg to prevent occurence of just fixed #1235003,
8123           fixes #1242954
8124         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
8125           symbols (avoids duplicate symbols in .asm file)
8126         * (pic14emitRegularMap): use emitSymbolToFile()
8127         * src/pic/gen.c (aopOp): fixed spillLocation handling
8128         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
8129         * (genDataPointerSet): removed unneccessary variables/output
8130
8131 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
8132
8133         * as/mcs51/lkarea.c: enlarged codemap for banked memory
8134         * device/lib/mcs51/crtbank.asm: added # to 0x0F
8135
8136 2005-07-21 Raphael Neider <rneider AT web.de>
8137
8138         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
8139           architecture cannot handle them efficiently, fixes bug #1235003
8140         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
8141           check for empty sets before using them (fixes bug #1232190)
8142
8143 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
8144
8145         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
8146           (lnksect2): generate warnings for memory overlap
8147         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
8148           constseg to set the name of these segments so you can instruct the linker
8149           to place them in banks
8150         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
8151         * src/SDCCglobl.h: added MODEL_HUGE to enum,
8152           added code_seg and const_seg to options
8153         * src/SDCCglue.c (emitMaps): use options.const_seg,
8154           (createInterruptVect): put interrupt vectors in segment HOME,
8155           (glue): put HOME before static segment and put the main glue in HOME,
8156           (glue): use options.code_seg
8157         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
8158         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
8159           these segments so you can instruct the linker to place them in banks
8160           (linkEdit): use code_loc for HOME segment which should be the first
8161           segment in code memory now
8162         * src/SDCCmem.c: fixed more stuff like bug 1238386
8163         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
8164           (changePointer): don't change function pointers to code pointers for
8165           banked functions,
8166           (compareType): added exceptional check for banked function pointers
8167         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
8168         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
8169           after static in code memory
8170         * src/mcs51/gen.c: added aopLiteralLong prototype,
8171           (aopForSym): use getSize for functions,
8172           (genCall): generate banked calls over one trampoline __sdcc_banked_call
8173           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
8174           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
8175           the segment,
8176           (genPcall): use call for literal function pointers and generate banked
8177           calls over the one trampoline so there's only one place for the user to
8178           modify according to his/hers hardware,
8179           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
8180           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
8181         * src/mcs51/main.c: added keyword banked,
8182           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
8183         * support/Util/SDCCerr.c,
8184         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
8185           needed for passing the bank and address to the trampoline
8186         * device/lib/mcs51/crtbank.asm: added for bankswitching
8187         * device/lib/mcs51/Makefile: added crtbank
8188
8189 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8190
8191         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
8192           for fields at offset 0 of a struct or union as reported
8193           on 2005-07-07 in the developer mailing list.
8194
8195 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
8196
8197         * src/SDCCmem.c: fixed bug 1238386
8198
8199 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8200
8201         * src/mcs51/peeph.def: added labelrefcounting for peepholes
8202           (patch #1144962), added peephole 300, enabled 259.x
8203         * doc/sdccman.lyx: removed screenshot and provided link instead
8204
8205 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8206
8207         * doc/sdccman.lyx: added section about debugging with ddd
8208         * doc/figures/ddd_example.eps: screenshot of debugging session
8209
8210 2005-07-04 Raphael Neider <rneider AT web.de>
8211
8212         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
8213           like CODE pointers, fixes #1115683
8214         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
8215           call, fixes bugs #1232211, #1228110,
8216           fixed wrong casts to pCodeFlow from pCodeInstructions
8217
8218 2005-07-04 Raphael Neider <rneider AT web.de>
8219
8220         * src/pic/gen.c (popGet): changed assert to allow for
8221           bit operands
8222         * (popGetAddr): changed signature to provide
8223           an additional index, patched all call sites
8224         * (genCmpEq): handle literal-like operands correctly
8225         * (genAddrOf): added sanity checks on __code/__data pointers
8226         * (genAssign): added handling of symbols from __code section
8227         * (gencjne): do not generate code for comparisons whose result
8228           is neither stored nor used, fixes bug #1171114
8229         * (AccLsh, AccRsh): operate on operand instead of WREG
8230         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
8231           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
8232           by known count
8233         * rewrote complete shift-by-literal logic, commented unused
8234           functions out
8235         * (genConstPointerGet): get multiple bytes (if result size > 1),
8236           fixed handling of non-immediate addresses
8237         * (genPointerGet): handle CODE pointers like CONST pointers
8238         * (genpic14Code): insert C-SRC lines as Cource-pCodes
8239         * ({aop,op}_isLitLike): NEW, single place to decide whether an
8240           operand is to be treated as a literal or not
8241         * (mov2w,genPcall,genCmpEq),
8242           src/pic/genarith.c: use aop_isLitLike() to decide between
8243           literal/register contents
8244         * (addSign): added missing offset
8245         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
8246           only emit comment in debug-mode,
8247           use {aop,op}_isLitLike throughout the file
8248         * src/pic/glue.c: fix initializers for pointers (work in progress)
8249         * src/pic/pcode.c (get_op): honor index on _const symbols
8250         * ({reset,dump}pCodeStatistics): NEW, estimate code size
8251         * (dumppBlock): added pCode size estimation
8252         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
8253           check for IS_SYMOP before OP_SYMBOL'ing
8254         * fixed indentation, compacted switch-statements
8255         * (allocReg): find free register and allocate it instead of
8256           allocating new registers all the time
8257         * (deassignLRs): prevent POINTER_GET's from being assigned the same
8258           registers as its operands (necessary only for multibyte GETs)
8259
8260 2005-07-01 Raphael Neider <rneider AT web.de>
8261
8262         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
8263           debugging .asm-output macros FENTRY + FEXIT
8264         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
8265           way... I wonder...
8266         * (emitpComment): NEW, printf to pCode
8267         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
8268           offset handling
8269         * (popGetAddr): NEW, variant of popGet to access an immediates
8270           high(er) bytes instead of the n'th byte of memory they reference,
8271           replaced popGet with popGetAddr where neccessary
8272         * (genDataPointerGet): reactivated and fixed implementation
8273         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
8274           accesses
8275         * (genDataPointerSet): fixed multibyte assignments
8276         * (genpic14Code): fixed --i-code-in-asm handling
8277         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
8278         * (genPlus): fixed index-out-of-bounds error
8279         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
8280         * src/pic/ralloc.c: added debugging output macro FENTRY2
8281         * (spillThis): fixed indentation, enbraced for-body for clarity
8282         * (rematStr): commented out as now unused
8283         * (regTypeNum): commented out special spill case (overwrites
8284           arbitrary values)
8285         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
8286
8287 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
8288
8289         * doc/sdccman.lyx: documented sfr16/sfr32,
8290           added example for using storage class with function pointers
8291         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
8292
8293 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
8294
8295         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
8296         * device/lib/_itoa.c,
8297         * device/lib/_ltoa.c: optimized codesize
8298         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
8299           but don't know how to suppress the double warning.
8300         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
8301         * support/Util/SDCCerr.c,
8302         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
8303
8304 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
8305
8306         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
8307           fixed old K&R prototypes
8308         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
8309         * device/lib/_gptrget.c,
8310         * device/lib/_gptrgetc.c,
8311         * device/lib/_gptrput.c: changed versions for new memory indicator values,
8312           also new versions for small generic pointers and banked generic pointers
8313         * src/port.h: added const_name
8314         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
8315         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
8316         * src/SDCCcse.c (findPrevIc): check all associative operators
8317         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
8318         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
8319         * src/SDCCmem.c: updated comments,
8320           set far-space to 0 for pdata, results in optimized code
8321         * src/SDCCmem.h: added macro CONST_NAME
8322         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
8323           moving the info into the highest bits, see also gptrget/gptrput
8324         * src/src.dsp: added sdcc.ico to project files
8325         * src/avr/gen.c (genCast): fixed bug 0x%d
8326         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
8327         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
8328           relation between ptr_type and DCL_TYPE,
8329           (genCast): fixed bug 0x%d
8330         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
8331           (CODE)" for const_name
8332         * src/hc08/gen.c (genCast): fixed bug 0x%d
8333         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
8334           (hc08_port): added "CONST (CODE)" for const_name
8335         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
8336           (aopForRemat, adjustArithmeticResult): disconnected direct relation
8337           between ptr_type and DCL_TYPE,
8338           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
8339           operand* and took AOP() inside function so sfr-ness can be checked,
8340           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
8341           new prototype,
8342           (genFunction, genEndFunction): optimized stack setup,
8343           (genMinus): optimized for literals with ending zeroes (in bytes),
8344           (genCast): fixed bug 0x%d
8345         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
8346           (mcs51_port): added "CONST (CODE)" for const_name
8347         * src/mcs51/peeph.def: made rule 226 more generic
8348         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
8349         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
8350         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
8351         * src/z80/main.c (z80_port): added NULL for const_name,
8352           (gbz80_port): added NULL for const_name
8353         * support/regression/tests/bug663539.c,
8354         * support/regression/tests/sfr16.c: new tests
8355
8356 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8357
8358         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
8359
8360 2005-06-24 Raphael Neider <rneider AT web.de>
8361
8362         * device/lib/pic16/libdev/pic18f[68][567]20.c:
8363           corrected typos...
8364         * device/include/pic16/signal.h: added USBIF
8365           and SIG_USB
8366
8367 2005-06-24 Raphael Neider <rneider AT web.de>
8368
8369         * device/lib/pic16/libdev/pic18f2455.c,
8370           device/include/pic16/pic18f2455.h: NEW
8371         * device/include/pic16/pic18fregs.h,
8372           device/lib/pic16/pics.all,
8373           src/pic16/device.c: added 18f2455
8374         * device/lib/pic16/libdev/pic18f[68][567]20.c,
8375           device/include/pic16/{pic18f[68][567].h,usart.h}:
8376           replaced MULTIPLE_USARTS define with more relaible
8377           compatibility sfrs (for USART access)
8378
8379 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
8380
8381         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
8382           and the output asm file line is printed on two lines.
8383
8384 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8385
8386         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
8387           BGT, BLE, BHI, and BLS instructions
8388         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
8389           genCmpEq): removed
8390         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
8391           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
8392           fixes bug #1216342
8393         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
8394
8395 2005-06-15 Raphael Neider <rneider AT web.de>
8396
8397         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
8398         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
8399         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
8400           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
8401           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
8402
8403 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8404
8405         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
8406           Marcel Telka in bug #1215704
8407
8408 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
8409
8410         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
8411           located in shared memory bank.
8412
8413 2005-05-31 Raphael Neider <rneider AT web.de>
8414
8415         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
8416           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
8417           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
8418
8419 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
8420
8421         * device/lib/_strncpy.c: fixed the fix
8422
8423 2005-05-26 Raphael Neider <rneider AT web.de>
8424
8425         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
8426           initializers with \0, bug #1208187
8427         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
8428           intializers with \0, bug #1208187
8429
8430 2005-05-26 Raphael Neider <rneider AT web.de>
8431
8432         * src/pic16/glue.c (pic16_printIvalChar): fixed string
8433           initializers with \0, bug #1208187
8434         * src/pic16/main.c (_process_pragma): added sanity checks
8435           for stack position and size, emit warnings when appropriate
8436
8437 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
8438
8439         * device/lib/_strncpy.c: fixed not filling with \0
8440
8441 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8442
8443         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
8444           createFunction),
8445         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
8446           compound_statement),
8447         * src/SDCCsymt.h,
8448         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
8449
8450 2005-05-24 Raphael Neider <rneider AT web.de>
8451
8452         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
8453
8454 2005-05-24 Raphael Neider <rneider AT web.de>
8455
8456         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
8457           TRISE definitions, closes bug #1162453
8458
8459 2005-05-22 Raphael Neider <rneider AT web.de>
8460
8461         * src/pic16/main.c (_process_pragma): check for missing
8462           arguments to pragmas code and udata
8463         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
8464           consistency fixes to match other headers (thanks to Jim Paris)
8465         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
8466
8467 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
8468
8469         * src/SDCCicode.c (isOperandEqual): fixed missing ;
8470
8471 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
8472
8473         * support/regression/tests/bug1198642.c: new test
8474         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
8475         * src/SDCCcse.c (findPrevIc): added comment, please have a look
8476         * support/scripts/resource.h,
8477         * support/scripts/resource.rc,
8478         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
8479         * support/scripts/sdcc.ico: added 32x32 icon
8480
8481 2005-05-18 Raphael Neider <rneider AT web.de>
8482
8483         * device/lib/pic16/libdev/pic18f*.c,
8484         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
8485           keywords to "__sfr" and "__at (X)"
8486         * device/include/pic16/pic18fregs.h: added pic18f4520
8487         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
8488           #1203088 (MPLAB compatibility)
8489
8490 2005-05-17 Raphael Neider <rneider AT web.de>
8491
8492         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
8493         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
8494         * device/lib/pic16/pics.all: added new devices
8495         * src/pic16/device.c: added support for pic18f4520
8496
8497 2005-05-16 Raphael Neider <rneider AT web.de>
8498         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
8499         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
8500         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
8501           convenience function for bit access
8502
8503 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
8504
8505         * device/lib/printf_large.c: fixed bug 1193299
8506         * support/regression/tests/bug1057979.c: added test %3.3s
8507
8508 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8509
8510         * device/include/mcs51/8051.h,
8511         * device/include/mcs51/8052.h: made parseable with lint
8512         * device/include/mcs51/lint.h: added include file for (sp)lint
8513         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
8514         * doc/cdbfileformat.lyx,
8515         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
8516
8517 2005-05-14 Raphael Neider <rneider AT web.de>
8518
8519         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
8520         * device/lib/pic16/libc/stdlib/itoa.c (new)
8521         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
8522         * device/lib/pic16/libio/Makefile: exclude subdir according to
8523           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
8524         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
8525         * src/pic16/gen.c (genFunction): prevent annoying warning
8526         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
8527           nameclashes on BeOS
8528         * support/cpp2/cppmain.c (cpp_output_string): new
8529         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
8530           fixes bug 1116802
8531
8532 2005-05-13 Borut Razem <borut.razem AT siol.net>
8533
8534         * src/SDCCmain.c (linkEdit): fixed bug 1195202
8535
8536 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8537
8538         * .version: changed to version 2.5.1; back to bleeding edge development
8539
8540 2005-05-11 Borut Razem <borut.razem AT siol.net>
8541
8542         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
8543           generate PDF version 1.3 documents
8544
8545 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8546
8547         * .version: changed to version 2.5.0
8548
8549 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8550
8551         * doc/sdccman.lyx: updated weblinks, index and smaller updates
8552
8553 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8554
8555         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
8556         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
8557         well as many smaller updates.
8558         * .version: changed to version 2.5.0-pre1
8559
8560 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8561
8562         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
8563
8564 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
8565
8566         * support/regression/tests/bug1185672.c: added
8567         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
8568           bug 1185672
8569         * src/mcs51/gen.c (genCall): added comments, made it look safer
8570         * src/mcs51/gen.c (genEndFunction): simplified
8571
8572 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
8573
8574         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
8575
8576 2005-04-14 Borut Razem <borut.razem AT siol.net>
8577
8578         * fixed bug 1045046 - SIGSEGV with really simple code?:
8579           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
8580           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
8581
8582 2005-04-14 Borut Razem <borut.razem AT siol.net>
8583
8584         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
8585           src/pic16/device.h: temporarily disabled experimental #inline pragma
8586           for 2.5.0 release
8587
8588 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
8589
8590         * device/include/z80/stdio.h,
8591         * device/include/z80/string.h: removed these highly incomplete files so
8592           SDCC can use the default ones in device/include/
8593
8594 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8595
8596         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
8597         gcc warning.
8598         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
8599         fix sdcpp warnings.
8600
8601 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8602
8603         * device/include/malloc.h: removed redundant __reentrant prototypes
8604         * device/lib/_mullong.c: added working xstack variant in asm (C version
8605           doesn't pass regression tests)
8606         * device/lib/bpx.c: used __data and made bpx char for mcs51
8607         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
8608           (createFunction): fixed bug with xstackPtr
8609         * src/SDCCcse.c: corrected comments
8610         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
8611           (killDeadCode, eBBlockFromiCode): removed unused code
8612         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
8613           corrected comments
8614         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
8615           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
8616           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
8617           (genModOneByte): fixed warning in MSVC
8618         * src/mcs51/main.c (): added comments
8619         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
8620
8621 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8622
8623         * src/SDCCmain.c (linkEdit): oops, changed one line too many
8624
8625 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
8626
8627         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
8628
8629 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
8630
8631         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
8632         characters arrays of larger size than the declared one.
8633
8634 2005-04-10 Borut Razem <borut.razem AT siol.net>
8635
8636         * src/pic/gen.c (genInline),
8637           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
8638           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
8639           (findNextInstruction), (findPrevInstruction),
8640           (findInstructionUsingLabel),
8641           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
8642         * src/pic/pcode.c (findLabel): added missing '\n'
8643         * src/src.dsp: added SDCCdwarf2.c to the project
8644
8645 2005-04-09 Borut Razem <borut.razem AT siol.net>
8646
8647         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
8648
8649 2005-04-08 Raphael Neider <rneider AT web.de>
8650
8651         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
8652           into the chain after a given one) and mergeDefmapSymbols (combine
8653           defmap entries for each symbol per pcode)
8654         * (createDefmap): have defmap entries merged in the end
8655         * (defmapReplaceSymRef): split defmap entries covering two accesses to
8656           a symbol before replacing one access type's symbol, merge symbols in
8657           the end (replacement symbol might already have an entry)
8658         * (assignValnums): keep reference to written WREG intact
8659
8660 2005-04-08 Raphael Neider <rneider AT web.de>
8661
8662         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
8663           Alpha)
8664
8665 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
8666
8667         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
8668         bytes
8669
8670 2005-04-07 Raphael Neider <rneider AT web.de>
8671
8672         * device/include/pic16/usart.h: added compatibility defines for
8673           devices with more than one USART
8674         * device/include/pic16/pic18f[68][567]20.h: activated above defines
8675
8676 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8677
8678         * device/lib/Makefile.in: updated for port specific include
8679
8680 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8681
8682         * support/regression/ports/mcs51/spec.mk: added mcs51 include
8683
8684 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8685
8686         * device/include/8051.h,
8687         * device/include/8052.h,
8688         * device/include/at89S8252.h,
8689         * device/include/at89c55.h,
8690         * device/include/at89x051.h,
8691         * device/include/at89x51.h,
8692         * device/include/at89x52.h,
8693         * device/include/mcs51reg.h,
8694         * device/include/reg51.h,
8695         * device/include/reg764.h,
8696         * device/include/regc515c.h,
8697         * device/include/sab80515.h: (re)moved these 12 files
8698         * device/include/mcs51/8051.h,
8699         * device/include/mcs51/8052.h,
8700         * device/include/mcs51/at89S8252.h,
8701         * device/include/mcs51/at89c55.h,
8702         * device/include/mcs51/at89x051.h,
8703         * device/include/mcs51/at89x51.h,
8704         * device/include/mcs51/at89x52.h,
8705         * device/include/mcs51/mcs51reg.h,
8706         * device/include/mcs51/reg51.h,
8707         * device/include/mcs51/reg764.h,
8708         * device/include/mcs51/regc515c.h,
8709         * device/include/mcs51/sab80515.h: and added them here
8710
8711 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
8712
8713         * device/include/stdarg.h: changed SDCC specific keywords to double
8714           underlined form.
8715         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
8716           mcs51 and ds390.
8717         * device/include/hc08/mc68hc908gp32.h,
8718         * device/include/hc08/mc68hc908jb8.h,
8719         * device/include/hc08/mc68hc908jkjl.h,
8720         * device/include/hc08/mc68hc908qy.h: fixed comments
8721         * device/include/mcs51/README: updated
8722         * device/include/mcs51/c8051f120.h: added PINRSF
8723         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
8724         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
8725           amidst code. Also inline is not supported.
8726
8727 2005-04-06 Raphael Neider <rneider AT web.de>
8728
8729         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
8730         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
8731           callers stack/frame pointers
8732
8733 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
8734
8735         * device/include/pic16/usart.h: added, missing in previous commit,
8736         * device/include/pic16/adc.h: fixed typo,
8737         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
8738         commit,
8739         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
8740         <p18fxxx.inc>
8741         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
8742         uninitialized because a bug appears with gplink
8743         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
8744         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
8745         complains for unrecognised option
8746
8747 2005-04-05 Raphael Neider <rneider AT web.de>
8748
8749         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
8750           structs as well (using memcpy)
8751         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
8752           on ISRs (GOTO has no label)
8753         * src/pic16/device.h: added OF_OPTIMIZE_DF
8754         * src/pic16/main.c: added compiler switch --optimize-df to enable the
8755           new data flow analysis/optimization
8756         * src/pic16/pcode.c: added (prototypes for and implementation of)
8757           dataflow analysis functions, fixed pCodeInstructions' inCond and
8758           outCond values, made RCALL a branch instruction
8759         * (pic16_unlinkpCode): keep C line if possible
8760         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
8761           C line moved if possible
8762         * (pic16_getRegFrompCodeOp): NEW, improved version of...
8763         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
8764           to use new pic16_getRegFrompCodeOp (works for more SFRs)
8765         * (pic16_BuildFlow): fixed skip instructions with label (did not start
8766           new flow)
8767         * (pic16_getJumptabpCode): NEW, needed in...
8768         * (LinkFlow): fixed handling of jumptables, calls and conditional
8769           branches
8770         * (pic16_InsertCommentAfter): NEW
8771         * (pic16_pCodeReplace): made verbose and flow preserving
8772         * (AnalyzeFlow): added call to data flow analysis
8773         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
8774         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
8775         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
8776
8777 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8778
8779         * src/SDCCast.c (decorateType): fixed bug #1105626
8780
8781 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
8782
8783         * device/include/asm/pic16/features.h,
8784         * pic18f*.h headers,
8785         * device/include/pic16/adc.h,
8786         * device/include/pic16/delay.h,
8787         * device/include/pic16/i2c.h,
8788         * device/include/pic16/malloc.h,
8789         * device/include/pic16/stdio.h,
8790         * device/include/pic16/stdlib.h,
8791         * device/include/pic16/string.h,
8792         * device/lib/pic16/libc/stdio/printf_tiny.c,
8793         * device/lib/pic16/libc/stdio/printf_small.c,
8794         * device/lib/pic16/libc/stdio/strmgpsim.c,
8795         * device/lib/pic16/libc/stdio/strmmssp.c,
8796         * device/lib/pic16/libc/stdio/strmusart.c,
8797         * device/lib/pic16/libc/stdio/vfprintf.c,
8798         * device/lib/pic16/libc/stdlib/ltoa.c,
8799         * device/lib/pic16/libc/stdlib/putchar.c,
8800         * device/lib/pic16/libc/stdlib/x_ftoa.c,
8801         * device/lib/pic16/libc/stdlib/memchrpgm.c,
8802         * device/lib/pic16/libc/stdlib/memchrram.c,
8803         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
8804         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
8805         * device/lib/pic16/libio/adc/adcbusy.c,
8806         * device/lib/pic16/libio/adc/adcread.c,
8807         * device/lib/pic16/libio/adc/adcsetch.c,
8808         * device/lib/pic16/libio/usart/ubaud.c,
8809         * device/lib/pic16/libio/usart/ubusy.c,
8810         * device/lib/pic16/libio/usart/udrdy.c,
8811         * device/lib/pic16/libio/usart/uopen.c,
8812         * device/lib/pic16/libio/usart/uputc.c,
8813         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
8814         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
8815         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
8816         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
8817         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
8818         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
8819         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
8820         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
8821         specific keywords to double underlined form,
8822         * device/lib/pic16/libc/Makefile.rules,
8823         * device/lib/pic16/libsdcc/Makefile.rules,
8824         * device/lib/pic16/libm/Makefile,
8825         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
8826         to compile with C standard set in Makefile.common
8827         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
8828         rand.c and crc.c in compilation process,
8829         * device/lib/pic16/libsdcc/int/divuint.c,
8830         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
8831         `c' from signed to unsigned,
8832         * device/lib/pic16/startup/crt0.c,
8833         * device/lib/pic16/startup/crt0i.c,
8834         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
8835         keywords to double underlined form, bug fixes in _do_cinit function
8836         which prevented the correct initialization of the .idata segment,
8837         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
8838         core to enter a infinite loop
8839         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
8840
8841 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8842
8843         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
8844
8845 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8846
8847         * device/include/Makefile.in: add support for hc08 subdirectory
8848         * device/include/hc08/: new subdirectory
8849         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
8850         Lucas Loizaga, thanks!
8851         * device/include/hc08/mc68hc908qy.h,
8852         * device/include/hc08/mc68hc908gp32.h,
8853         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
8854         their own directory. Changed internal macro names to use the compiler
8855         reserved namespace. Changed SDCC specific keywords to double
8856         underlined form.
8857         * device/include/math.h,
8858         * device/include/malloc.h,
8859         * device/include/stdarg.h,
8860         * device/include/stdbool.h
8861         * device/include/string.h,
8862         * device/include/tinibios.h,
8863         * device/include/ds400rom.h,
8864         * device/include/8051.h,
8865         * device/include/8052.h,
8866         * device/include/80c51xa.h,
8867         * device/include/at89c55.h,
8868         * device/include/at89S8252.h,
8869         * device/include/at89x51.h,
8870         * device/include/at89x52.h,
8871         * device/include/ds80c390.h,
8872         * device/include/reg764.h,
8873         * device/include/regc515c.h,
8874         * device/include/sab80515.h,
8875         * device/include/mcs51/c8051f000.h,
8876         * device/include/mcs51/c8051f018.h,
8877         * device/include/mcs51/c8051f020.h,
8878         * device/include/mcs51/c8051f040.h,
8879         * device/include/mcs51/c8051f060.h,
8880         * device/include/mcs51/c8051f120.h,
8881         * device/include/mcs51/c8051f300.h,
8882         * device/include/mcs51/c8051f310.h,
8883         * device/include/mcs51/c8051f320.h,
8884         * device/include/mcs51/c8051f330.h,
8885         * device/include/mcs51/c8051f350.h,
8886         * device/include/z180.h: Changed SDCC specific keywords to double
8887         underlined form.
8888
8889 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
8890
8891         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
8892         18F4455,
8893         * (pic16_assignConfigWordValue): disable testing of configuration
8894         register value with config mask,
8895         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
8896         function with port->fun_prefix,
8897         * (genFunction): when generating a naked interrupt function never
8898         create an absolute segment placed in interrupt vector address, place
8899         the actual interrupt function at IVA instead, when an interrupt
8900         function is generated with unspecified interrupt then do not create
8901         the absolute section,
8902         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
8903         code for generating a call to generic pointer get/put function with
8904         a call to function pic16_callGenericPointer(),
8905         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
8906         the call to the generic pointer get/put functions with prefixing the
8907         function name with port->fun_prefix,
8908         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
8909         * src/pic16/main.c (_process_pragma): prefix function with
8910         port->fun_prefix,
8911         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
8912         calling assembler, old 18Fxxxx macro is deprecated,
8913         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
8914         PC_ASMDIR in while condition,
8915         * (findInstruction): add PC_ASMDIR in while condition,
8916         * (buildCallTree): prefix main with port->fun_prefix,
8917         * (pic16_pCode2str): fixed bug that didn't emit the memory access
8918         identifier for variable with banked access in instructions BTFSS,
8919         BTFSC, BCF, BSF, BTG
8920         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
8921         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
8922         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
8923         perform optimization when enviroment variable NO_REG_OPT is set,
8924         * (insideLRBlock): NEW, return 1 if register is inside an
8925         INF_LOCALREGS block,
8926         * (RemoveRegFromLRBlock): remove a register that is completely
8927         eliminated by register optimization, but it is still left in local
8928         register store/restore in/from stack block,
8929         * (Remove2pcodes): after removing register, check to see if it
8930         should be removed from local register store/restore in/from stack
8931         block,
8932         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
8933         DUMMY_READ_VOLATILE,
8934
8935         * device/include/pic16/adc.h: minor prototype modifications and
8936         update,
8937         * device/include/pic16/malloc.h: added GPL notice various
8938         modifications,
8939         * device/include/pic16/stdint.h: NEW, standard header for ints
8940         * device/include/pic16/delay.h: NEW, header for delay functions,
8941         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
8942         delay1mtcy,
8943         * device/include/pic16/signal.h: NEW, header providing helper macros
8944         for implementing signal handlers,
8945         * device/include/pic16/stdio.h: added prototypes for functions,
8946         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
8947         prototypes for stdin and stdout, added macro PUTCHAR to
8948         automatically implement putchar function prototype,
8949         * device/include/pic16/usart.h: modified and updated USART library,
8950         * device/lib/pic16/libio/adc/,
8951         * device/lib/pic16/libio/i2c: some modifications to improve library
8952         performance,
8953         * device/lib/pic16/libc/stdio/: modifications for the new printf*
8954         family of functions,
8955         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
8956         family of functions and other sources,
8957         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
8958         of the PIC18Fxx[28] devices,
8959         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
8960         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
8961         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
8962         _do_cinit function, because the previous failed when local variables
8963         where not placed in the same memory bank,
8964         * device/lib/pic16/libsdcc/char/: various modifications to improve
8965         library performance,
8966         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
8967         information on the new functions of the c library and more...
8968
8969 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8970
8971         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
8972
8973 2005-03-26 Raphael Neider <rneider AT web.de>
8974
8975         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
8976           if condition == CARRY)
8977         * (genCmp): adapted to new genSkipc semantics
8978         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
8979           on rIfx (genCmp was broken)
8980
8981 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8982
8983         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
8984         * src/z80/main.c (_keywords[]),
8985         * src/SDCCglobal.h (struct options),
8986         * src/SDCC.y,
8987         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
8988         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
8989         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
8990         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
8991         always available in leading double underscore form. The C99 support is
8992         mostly missing, but it's a start.
8993         * support/regression/tests/bug-227710.c: fixed nonconforming use of
8994         reserved identifier "__data".
8995
8996 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
8997
8998         * src/mcs51/peeph.def: fixed bug 1170013
8999
9000 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
9001
9002         * device/include/mcs51reg.h: fixed bug 842007
9003
9004 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9005
9006         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
9007         last time.
9008
9009 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9010
9011         * src/port.h (struct PORT),
9012         * src/avr/ralloc.c (avr_assignRegisters),
9013         * src/avr/main.c,
9014         * src/ds390/ralloc.c (ds390_assignRegisters),
9015         * src/ds390/main.c,
9016         * src/hc08/ralloc.c (hc08_assignRegisters),
9017         * src/hc08/main.c,
9018         * src/mcs51/ralloc.c (mcs51_assignRegisters),
9019         * src/mcs51/main.c,
9020         * src/pic/ralloc.c (pic14_assignRegisters),
9021         * src/pic/main.c,
9022         * src/pic16/ralloc.c (pic16_assignRegisters),
9023         * src/pic16/main.c,
9024         * src/xa51/ralloc.c (xa51_assignRegisters),
9025         * src/xa51/main.c,
9026         * src/z80/ralloc.c (z80_assignRegisters),
9027         * src/z80/ralloc.h,
9028         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
9029         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
9030         * src/SDCCcse.h,
9031         * src/SDCCdflow.c (computeDataFlow),
9032         * src/SDCCdflow.h,
9033         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
9034         * src/SDCCloop.h,
9035         * src/SDCCcflow.c (*),
9036         * src/SDCCcflow.h,
9037         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
9038         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
9039         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
9040         immedDom() returning wrong block; probably fixes bug #1160833)
9041
9042 2005-03-20 Borut Razem <borut.razem AT siol.net>
9043
9044         * support/scripts/inc2h.pl: WIN32 port
9045
9046 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
9047
9048         * device/lib/makefile.in: added abs.c and labs.c
9049
9050 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
9051
9052         * device/include/stdint.h: added
9053         * device/lib/abs.c: added
9054         * device/lib/labs.c: added
9055         * device/include/stdlib.h: added abs() and labs() prototypes
9056         * device/lib/libsdcc.lib: added abs and labs
9057         * device/include/float.h,
9058         * device/lib/_fsmul.c,
9059         * device/lib/printf_fast.c,
9060         * device/lib/printf_tiny.c: updated comments
9061
9062 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9063
9064         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
9065         bug #1164313
9066
9067 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9068
9069         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
9070         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
9071
9072 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
9073
9074         * device/lib/printf_large.c: removed inline assembly for portability and
9075           readability. Use printf_fast if speed or size are more important.
9076         * src/pic16/gen.c: removed conditions around use of DEBUGpc
9077         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
9078
9079 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
9080
9081         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
9082         prevent compiler warning
9083
9084 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
9085
9086         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
9087         moved to level 0 and declared as static. Also they are explicit
9088         placed in access bank. This was necessery because some times they
9089         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
9090         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
9091         optimizations. Currently only compare to unsigned char is implemented,
9092         * src/pic16/gen.c: added fReturnIdx array,
9093         * (struct resolvedIfx) is moved to gen.h and made public,
9094         * (struct _G): added sregsAlloc and sregsAllocSet fields,
9095         * (aopForSym): added an optimization to directly store in stack of
9096         the operand of a SEND iCode,
9097         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
9098         but as registers instead (AOP_REG) using the fReturnIdx array,
9099         * (pic16_freeAsmop): remove the freed register from the
9100         _G.sregsAlloc field,
9101         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
9102         a compare of 'WREG',
9103         * (pic16_popGetTempRegCond): changed function prototype, now
9104         function takes also a bitVector argument v which holds the current
9105         set of registers that are allocated for stack access by aopForSym,
9106         registers allocated in aopForSym for accessing stack symbols are not
9107         any more part of the functions usedRegs field,
9108         * (genCall): some times aopOp is called for a stack variable to be
9109         send, aopForSym might perform the push, if this is true make sure
9110         that genCall doesn't push the variable twice by testing _G.resDirect,
9111         * (genFunction): changed testing for unspecified interrupt number
9112         from 256 to INTNO_UNSPEC,
9113         * modified selection scheme of frame pointer generation. Previously
9114         if function did use local registers a frame pointer was generated,
9115         now a frame pointer is generated only if function has arguments
9116         (that need PLUSW2 register access), or has stack arguments, or the
9117         compiler is not instructed to omit the frame pointer,
9118         * (genEndFunction): before restoring local registers that were saved
9119         in the function preamble, also restore the registers that *might*
9120         have been allocated for stack access,
9121         * (genRet): removed some old comments,
9122         * (genCmp, the active (RN's) version): added a call to the
9123         pic16_genCmp_special function to perform the compare with a more
9124         robust and optimized way,
9125         * (genInline): a feature has been added in inline code generation,
9126         which allows a wildcard variable substitution when writing inline
9127         assembly. Code is incomplete and experimental therefore undocumented,
9128         * (genCast): changed order of aopOp for result and right to allow
9129         aopForSym to directly load the result if possible,
9130         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
9131         perform an optimized compare on some selected special occasions,
9132         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
9133         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
9134         generate an IVT any more,
9135         * src/pic16/main.c (pic16_optionsTable): added command line option
9136         --optimize-cmp,
9137         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
9138         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
9139         macros,
9140         * src/pic16/NOTES: Raphael Neider added in list of active developers
9141         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
9142         jumptable_end to prevent bug #,
9143         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
9144         inCond and outCond fields,
9145         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
9146         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
9147         turn off register spilling,
9148         * (packRegsForOneUse): synced with other ports' versions although it
9149         is not used currently,
9150         * (pic16_packRegisters): added an optimization while reading
9151         structure bitfields, some registers may be saved (malloc code is
9152         decreased by 80 bytes)
9153
9154 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
9155
9156         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
9157         left is a bitfield, if yes, then don't optimize assignment. Perhaps
9158         this can be optimized more?
9159
9160 2005-03-10 Raphael Neider <rneider AT web.de>
9161
9162         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
9163           genNearPointerGet): (hopefully) fixed access to bitfields via
9164           pointers (p->bitN = x; and x = p->bitN; failed)
9165
9166 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
9167
9168         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
9169
9170 2005-03-09 Raphael Neider <rneider AT web.de>
9171
9172         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
9173
9174 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
9175
9176         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
9177         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
9178           (regTypeNum): set REG_BIT type if necessary
9179         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
9180         * support/regression/tests/critical.c: check bug 1144613
9181
9182 2005-03-02 Raphael Neider <rneider AT web.de>
9183
9184         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
9185
9186 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9187
9188         * src/avr/ralloc.c (serialRegAssign),
9189         * src/ds390/ralloc.c (serialRegAssign),
9190         * src/hc08/ralloc.c (serialRegAssign),
9191         * src/mcs51/ralloc.c (serialRegAssign),
9192         * src/pic/ralloc.c (serialRegAssign),
9193         * src/pic16/ralloc.c (serialRegAssign),
9194         * src/xa51/ralloc.c (serialRegAssign),
9195         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
9196
9197 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
9198
9199         * src/SDCCast.c (decorateType): fixed bug 1124787
9200
9201 2005-02-20 Hubert Sack <sack AT digiplan.de>
9202         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9203
9204         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
9205         patch #1121755
9206
9207 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9208
9209         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
9210         to keep the correct label reference count when adding/removing references
9211         to labels. A peephole file using this is appended to patch #1144962.
9212
9213 2005-02-14 Raphael Neider <rneider AT web.de>
9214
9215         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
9216         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
9217         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
9218           retrievals of result operand's value on assignment
9219
9220 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
9221
9222         * device/include/pic16/string.h: modified prototype for memccpy()
9223         to memccpy(void *, void *, char, size_t)
9224         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
9225         check whether to omit frame pointer or not,
9226         * (genInline): convert all occurences of "\n" to LF in inline
9227         assembler blocks, this helps formatting the inline text,
9228         * (pic16_loadFSR0): modified prototype,
9229         * (genNearPointerGet, genNearPointerSet): reorganization of code,
9230         removed some 8051 legacy code,
9231         * (genPackBits): enabled handling bitfields exceeding one byte in size,
9232         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
9233         before allocating temporary registers in functions,
9234
9235 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
9236
9237         * support/regression/tests/bitvars.c: corrected the "fix"
9238
9239 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
9240
9241         * support/regression/tests/bitvars.c,
9242         * support/regression/tests/bitwise.c,
9243         * support/regression/tests/rotate.c: "fixed" problems on Alpha
9244
9245 2005-02-10 Raphael Neider <rneider AT web.de>
9246
9247         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
9248           different size for Alpha
9249         * src/pic16/gen.c (genCmpEq) : improved compare with 0
9250
9251 2005-02-09 Raphael Neider <rneider AT web.de>
9252
9253         * src/SDCC.lex(doPragma) : save and restore warning options as well
9254           (also added new stack plus clone- and copyAndFreeSDCCERRG())
9255         * have #pragma less_pedantic set the errorlevel to WARNING
9256           (fixes #1117001)
9257         * (cloneOptimize) : fixed wrong malloc's size
9258         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
9259           facilitate correct handling of #pragma (save|restore)
9260
9261 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
9262
9263         * src/mcs51/gen.c: removed non-standard C nameless struct/union
9264
9265 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
9266
9267         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
9268
9269 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
9270
9271         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
9272
9273 2005-02-02 Raphael Neider <rneider AT web.de>
9274
9275         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
9276         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
9277         * (pic16_storeForReturn): fixed to allow returning function pointers
9278         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
9279         * device/include/pic16/{stddef.h,stdbool.h}: added
9280
9281 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
9282
9283         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
9284
9285 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
9286
9287         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
9288         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
9289          appeared to be required
9290
9291 2005-01-31 Borut Razem <borut.razem AT siol.net>
9292
9293         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
9294           include/mcs51 and include/z80 directories to the package
9295
9296 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9297
9298         * src/hc08/gen.c (genFunction): fixed bug #1112752
9299
9300 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9301
9302         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
9303
9304 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9305
9306         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
9307
9308 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
9309
9310         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
9311
9312 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
9313
9314         * device/include/c8051fxxx.h: removed these 6 files
9315         * device/include/mcs51/c8051fxxx.h: added these 11 new files
9316
9317 2005-01-26 Raphael Neider <rneider AT web.de>
9318
9319         * src/pic16/gen.c (genAssign): fixed assignment from longs
9320           in codespace (were cut to three bytes)
9321         * (genDummyRead): implemented (except for CODESPACE...),
9322           fixed bug #1108575
9323         * src/pic16/glue.c (emitStatistics): beautified
9324         * device/lib/pic16/libm/Makefile: added include path
9325
9326 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9327
9328         * src/z80/gen.c (aopPut): fixed bug #1103902
9329
9330 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9331
9332         * device/lib/expf.c: fixed bug #1095792
9333
9334 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
9335
9336         * device/lib/pic16/libm: added Math library sources
9337
9338 2005-01-24 Raphael Neider <rneider AT web.de>
9339
9340         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
9341           to enable upcast to pCodeOpReg2 (there is no type tag to
9342           differenciate the two and pic16_popGet2p cast into PCOR2)
9343         * src/pic16/main.c (_process_pragma): fixed another malloc bug
9344           (sizeof(sectNames) changed to sizeof(sectName))
9345           Both patches fix segfaults under MinGW.
9346
9347 2005-01-23 Raphael Neider <rneider AT web.de>
9348
9349         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
9350           Safe_[mc]?alloc()'ed variables
9351         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
9352           of (byte sized) temporaries (assign them to WREG for now)
9353         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
9354           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
9355           this might fix SIGSEGVs on MinGW...
9356         * src/SDCCopt.c (killDeadCode): restored original behaviour
9357           (volatile operands might get thrown away though)
9358
9359 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
9360
9361         * src/pic16/gen.c: fixed bug #1106975,
9362         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
9363         pointer update, INTCON is saved, global interrupts are disabled and
9364         restored after updateing TOS.
9365         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
9366         * added function attribute 'shadowregs' to take advantage of shadow
9367         registers,
9368         * added function attribute 'wparam' as an alternative to the wparam
9369         pragma,
9370         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
9371         user declares a non-ISR function as 'shadowregs',
9372         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
9373
9374 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
9375
9376         * .version: bumped version number to 2.4.8
9377         * device/lib/pic16/pics.all: list of PIC18F devices supported by
9378         pic16 port,
9379         * device/lib/pic16/libio/i2c/: I2C module support library,
9380         * device/include/pic16/i2c.h: I2C support library header,
9381         * device/lib/pic16/libc/stdio/: standard IO support sources,
9382         * (printf_small.c): printf_small() source, supports float print,
9383         * (printf_tiny.c): printf_tiny() source, does not support floats,
9384         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
9385         enable global optimizations for entire library source, other
9386         Makefiles in the source tree are also modified to reflect this,
9387         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
9388         function,
9389         * doc/sdccman.lyx: updated to reflect new changes,
9390         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
9391         sym->onStack if-case,
9392         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
9393         sbit, idata, _idata, xdata, _xdata,
9394         * added pragma library, to link an external library, (see doc),
9395         * removed command line options, --pomit-config-words, --pomit-ivt,
9396         --pleave-reset-vector,
9397         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
9398         when calling assembler to reflect memory model used, also define
9399         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
9400         reflect stack model used,
9401         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
9402         on stack return NULL,
9403
9404 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
9405
9406         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
9407           of the operands is volatile. Fixes #1020220
9408
9409 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
9410
9411         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
9412         * (OptimizeRegUsage): make sure that there is really no other flow where
9413           the first pCode is used
9414
9415 2005-01-22 Raphael Neider <rneider AT web.de>
9416
9417         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
9418           to fix #1106967 (pCode->seq are not set up correctly)
9419
9420 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9421
9422         * src/SDCCglue.c (glue): make sure code area is declared before the
9423         static initialization area.
9424
9425 2005-01-21 Raphael Neider <rneider AT web.de>
9426
9427         * device/lib/Makefile.in: fixed test for pic16 install dir
9428         * device/lib/pic16/*/Makefile*: modified compile flags to enable
9429           optimizations
9430         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
9431           added --optimize-goto compiler switch and pragma wparam documentation
9432         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
9433         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
9434           and PRODH closing bug #1071770 (peephole optimizer)
9435
9436 2005-01-19 Raphael Neider <rneider AT web.de>
9437
9438         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
9439           cmdLine buffers (used when calling sdcpp...) are large enough
9440           (MAX_PATH=256 truncates arguments leading to system halts when
9441           used in MinGW...)
9442         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
9443         * (genUminus): rewritten to for efficiency
9444         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
9445           used uninitialized in some cases)
9446         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
9447           copy the third byte from the int -- now assumes 0x80 (data memory)
9448         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
9449           operands (genAddLit expects the iCode's operands to swapped as
9450           well), fixed leftover bytes (crashed for short left operands)
9451         * (pic16_genMinusDec): performance improvements, removed false
9452           PIC14 emitSKPNCs
9453         * (pic16_genMinus): fixed to cope with differently sized operands
9454         * src/pic16/glue.c (pic16_glue): added new banksel optimization
9455           for --obanksel > 1
9456         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
9457         * src/pic16/graph.[ch]: implementation of directed graphs, used by
9458           new banksel optimization
9459         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
9460           analysis for temporary registers (segfaults...)
9461         * src/pic16/peeph.def: added rule
9462
9463 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
9464
9465         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
9466         which converts a float number to its ASCII representation
9467         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
9468         functions to convert the fractional and integer part of a float to ASCII,
9469         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
9470         realloc.c): added _MALLOC_SPEC to explicit place variables in data
9471         ram
9472         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
9473         _STATMEM macros,
9474         * device/include/pic16/adc.h: added GPL info,
9475         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
9476         a pCodeOp as tested operand,
9477         * (genNearPointerGet): optimized bit testing, does not use
9478         intermediate register for bit value, test directly instead with
9479         BTFSS, BTFSC, works only for single bits,
9480         * (genpic16Code): dump the name of the iCode in the asm,
9481         * src/pic16/ralloc.c (decodeOp): removed static declaration and
9482         renamed to pic16_decodeOp,
9483         * (serialRegAssign): do not allocate a temporary register for iCode
9484         sequences that test a single bit for 1/0
9485
9486 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
9487
9488         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
9489         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
9490         access stack and frame pointers. They are initially assigned to
9491         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
9492         accessing SFRs. Updated all occurences of modification of stack or
9493         frame pointer in gen.c and pcode.c,
9494         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
9495         assigning of a literal value to pointers,
9496         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
9497         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
9498         selected
9499
9500 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
9501
9502         * doc/sdccman.lyx: update documentation about stack pragma, added
9503         some info for stack memory models
9504
9505 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9506
9507         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
9508
9509 2005-01-08 Raphael Neider <rneider AT web.de>
9510
9511         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
9512           udata sections to fix bug #1097823
9513
9514 2005-01-05 Raphael Neider <rneider AT web.de>
9515
9516         * src/pic16/gen.c (genGenericShift): added handling of differently
9517           sized left operand and result
9518
9519 2005-01-04 Raphael Neider <rneider AT web.de>
9520
9521         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
9522         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
9523           to hold the condition bit)
9524         * added new version of genCmp (old code available via #define)
9525         * added new version of genShiftLeft/genShiftRight in a generic
9526           way, now supports shifting by negative values
9527         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
9528           shiftCount (expected by genGenericShift)
9529         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
9530         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
9531           dump
9532         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
9533           is an invalid literal too...)
9534
9535 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
9536
9537         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
9538         from Raphael Neider,
9539         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
9540         for 8-bit literals. This fixes some literal operands which are sign
9541         extended to 16-bits ints when instruction needs only 8-bits.
9542
9543 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
9544
9545         * device/lib/logf.c: added mcs51 assembly version
9546         * device/lib/expf.c: added mcs51 assembly version
9547         * device/lib/_logexpf.c: new shared asm code for expf and logf
9548         * device/include/math.h: add defines for assembly math library
9549         * device/lib/Makefile.in: build new _logexpf.c
9550         * device/lib/libfloat.lib: use new _logexpf.c
9551
9552 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9553
9554         * src/pic/device.c
9555         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
9556           device types which have less than 0x7f registers.
9557
9558 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9559
9560         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
9561
9562 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9563
9564         * device/lib/printf_fast.c: only build on supported arch.
9565         * device/lib/printf_tiny.c: only build on supported arch.
9566         * device/lib/printf_fast_f.c: only build if asm float lib
9567         * device/lib/_fsget1arg.c: only build if asm float lib
9568         * device/lib/_fsget2args.c: only build if asm float lib
9569         * device/lib/_fsnormalize.c: only build if asm float lib
9570         * device/lib/_fsreturnval.c: only build if asm float lib
9571         * device/lib/_fsrshift.c: only build if asm float lib
9572         * device/lib/_fsswapargs.c: only build if asm float lib
9573         * device/include/stdio.h: don't provide print_fast,
9574           print_fast_f, print_tiny prototypes if --xstack used
9575
9576 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
9577
9578         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
9579         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
9580           to the SOURCES
9581
9582 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9583
9584         * device/lib/printf_fast_f.c: same as printf_fast, but
9585           with floating point enabled
9586         * device/lib/printf_fast.c: minor tweaks
9587         * device/include/stdio.h: add printf_fast_f
9588
9589 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9590
9591         * src/SDCCmain.c: make --float-reent default for mcs51
9592         * device/lib/_fsadd.c: added mcs51 assembly version
9593         * device/lib/_fssub.c: added mcs51 assembly version
9594         * device/lib/_fsmul.c: added mcs51 assembly version
9595         * device/lib/_fsdiv.c: added mcs51 assembly version
9596         * device/lib/_fseq.c: added mcs51 assembly version
9597         * device/lib/_fsneq.c: added mcs51 assembly version
9598         * device/lib/_fsgt.c: added mcs51 assembly version
9599         * device/lib/_fslt.c: added mcs51 assembly version
9600         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
9601         * device/lib/Makefile.in: add _fscmp to build
9602         * device/lib/libfloat.lib: add _fscmp to build
9603
9604 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9605
9606         * device/lib/_fs2slong.c: added mcs51 assembly version
9607         * device/lib/_fs2sint.c: added mcs51 assembly version
9608         * device/lib/_fs2schar.c: added mcs51 assembly version
9609         * device/lib/_fs2ulong.c: added mcs51 assembly version
9610         * device/lib/_fs2uint.c: added mcs51 assembly version
9611         * device/lib/_fs2uchar.c: added mcs51 assembly version
9612         * device/lib/_slong2fs.c: added mcs51 assembly version
9613         * device/lib/_sint2fs.c: added mcs51 assembly version
9614         * device/lib/_schar2fs.c: added mcs51 assembly version
9615         * device/lib/_ulong2fs.c: added mcs51 assembly version
9616         * device/lib/_uint2fs.c: added mcs51 assembly version
9617         * device/lib/_uchar2fs.c: added mcs51 assembly version
9618         * device/include/float.h: added #define to select asm vs c
9619
9620 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
9621
9622         * device/lib/printf_fast.c: improvements to float output
9623         * device/include/float.h: add defines for assembly float library
9624         * device/lib/_fsget1arg.c: receive 1 float arg
9625         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
9626         * device/lib/_fsnormalize.c: normalize a float
9627         * device/lib/_fsreturnval.c: return float, various helper routines
9628         * device/lib/_fsrshift.c: right shift a float's mantissa
9629         * device/lib/_fsswapargs.c: swap 2 floats
9630         * device/lib/Makefile.in: build these 6 new files for mcs51
9631         * device/lib/libfloat.lib: add these 6 files to the library
9632
9633 2004-12-26 Borut Razem <borut.razem AT siol.net>
9634
9635         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
9636           built by gcc 3.4.2
9637
9638 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
9639
9640         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
9641           and fully reentrant and register bank neutral.
9642         * device/lib/printf_fast.c: added float (not enabled by default),
9643           added compact/slower integer (also not enabled by default),
9644           improved size/speed of fast integer code, other minor changes
9645         * device/include/stdio.h, device/lib/Makefile.in,
9646           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
9647
9648 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
9649
9650         * src/pic16/pcode.c: declaring variables other than at the start of a
9651           block is not supported in C by VC6.
9652
9653 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
9654
9655         * applied a previous patch from Raphael Neider that wasn't included
9656         in the previous commits, which fixes infinite loops within jumptable
9657         improvements,
9658         * made some fixes that previous patches introduced
9659
9660 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
9661
9662         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
9663         that fixes an issue with AOP_PCODE asmop's offset,
9664         * (pic16_popCopyReg): update instance field too,
9665         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
9666         function of pic port,
9667         * (genCmp, genAnd, genAssign),
9668         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
9669
9670 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
9671
9672         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
9673         variables initial values to idata section,
9674         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
9675         variables in some functions. This utilizes parmBytes field of iCode
9676         structure to hold the offset of the variable in stack. (might be
9677         able to use the stack field too?)
9678         * applied patch from Raphael Neider # ### , # ###
9679         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
9680         variable initial values in idata section,
9681         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
9682         for static variables with initial value
9683         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
9684         applied fix in while loop from Raphael Neider.
9685
9686 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
9687
9688         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
9689         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
9690         * src/ds390/ralloc.c (serialRegAssign): spill bits
9691         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
9692         * support/Util/SDCCerr.c,
9693         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
9694         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
9695         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
9696
9697 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
9698
9699         * device/include/sdcc-lib.h: inserted LGPL, added includes
9700           asm/ds390/features.h and asm/mcs51/features.h
9701         * device/include/asm/default/features.h,
9702         * device/include/asm/gbz80/features.h,
9703         * device/include/asm/z80/features.h: added empty _AUTOMEM
9704           and _STATMEM
9705         * device/include/asm/ds390/features.h,
9706         * device/include/asm/mcs51/features.h: added files with defines for
9707           _AUTOMEM and _STATMEM indicating automatic and static storage class
9708         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
9709         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
9710         * src/SDCCicode.c (geniCodeCast),
9711         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
9712         * src/SDCCloop.c (loopInduction): removed unused variable lr
9713         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
9714           to convertToFcall to include char modulo (RFE 1065037), added check
9715           if left operand is unsigned and use abs of literal value
9716         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
9717           as it doesn't work after conversion from peephole.def to peephole.rul
9718         * src/mcs51/gen.c (toBoolean): added check for size,
9719           (genModOneByte): optimized code for signed char modulo a literal
9720           power of 2 (thanks to Hubert Sack),
9721           (genRRC): removed unnecessary "clr c",
9722           (genRLC): replaced "add a,acc" with cheaper "rlc a"
9723         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
9724           jump optimization,
9725           swapped rules 256.c and 256.d,
9726           extended 256.d by using new multiple checks (thanks Erik),
9727           added rules 256.e and 256.f,
9728           updated rule 261.a and 261.b to new generated code
9729         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
9730
9731 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9732
9733         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
9734           induction related bugs, including first part of bug #1074377
9735
9736 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
9737
9738         * applied patch from bug-report #1076292,
9739         * applied patches for genAnd and Goto-optimizations for Raphael
9740         Neider,
9741         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
9742         dump a less iCode information,
9743         * src/pic16/device.h (pic16_options_t): added field debgen,
9744         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
9745         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
9746         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
9747         puclic,
9748         * (various functions): added macros FENTRY and FENTRY2 to functions,
9749         to emit function prologue,
9750         * (various functions): fixed indentation,
9751         * (genNearPointerGet): fixed loading of FSR0,
9752         * (genPackBits): applied patch from Raphael Neider to fix updating
9753         of FSR0 and touching only the modified bits,
9754         * src/pic16/genarith.c (various functions): added macros FENTRY to
9755         emit function prologue in comments,
9756         * src/pic16/pcode.h: added functions debugf2, debugf3,
9757         * src/pic16/ralloc.c: partial fix for packForPush caused
9758         segmentation fault,
9759
9760 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9761
9762         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
9763           <stsp AT users.sourceforge.net> with reversed byte order
9764         * support/regression/tests/rotate.c: added (ds390 skips some tests)
9765
9766 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9767
9768         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
9769           bug #1074377
9770         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
9771         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
9772
9773 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
9774
9775         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
9776
9777 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9778
9779         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
9780           conditions,
9781           (setFromConditionArgs): friendly operand parser for peephole rules,
9782           (operandBaseName, operandsNotRelated): new peephole condition
9783           "operandsNotRelated" -- similar to "operandsNotSame", but takes
9784           architecture specific register naming into account, handles n-way
9785           comparisons, and supports quoted literals
9786         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
9787
9788 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9789
9790         * src/mcs51/peeph.def: fixed bug #1076940
9791
9792 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
9793
9794         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
9795
9796 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9797
9798         Adding support for replacing ljmps with sjmps in jumptables
9799         generated for switch statements. For now you need to set the
9800         environment variable SDCC_SJMP_JUMPTABLE to enable this.
9801         Now 4 algorithms for mcs51 jumptable generation are used:
9802         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
9803         addresses loaded pc-relative for up to 112 cases and stack-pushing
9804         target addresses loaded with offset from dptr for up to 256 cases.
9805
9806         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
9807         * src/mcs51/main.c: adapted constants for switch table generation
9808         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
9809
9810 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
9811
9812         * device/lib/printf_large.c (_print_format): fixed bug 1073386
9813         * support/regression/tests/bug1057979.c: added test for bug 1073386
9814
9815 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
9816
9817         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
9818         compilers
9819
9820 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
9821
9822         * src/pic16/device.h,
9823         * src/pic16/genarith.c,
9824         * src/pic16/glue.c,
9825         * src/pic16/main.c,
9826         * src/pic16/pcode.c: applied patches #1068154 and #1070213
9827
9828 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
9829
9830         Large cummulative patch for pic16 port.
9831         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
9832         to call when a stack overflow occurs,
9833         * (malloc.h): added CVS Id tag,
9834         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
9835         variable,
9836         * added libc directory. The current version of LibC contains string
9837         functions, ctype functions and macros and some functions of the
9838         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
9839         be extensively tested in the future. Standard disclaimer here.
9840         Library is not automatically build yet. But one can build it by
9841         invoking 'make' inside the libc directory.
9842         * added ADC library under libio. Preliminary version yet.
9843
9844         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
9845         * src/pic16/gen.c (aopForRemat): asmop size is filled by
9846         aopForRemat() now and not by pic16_aopOp(),
9847         * (pic16_popGetTempReg): removed warning messgae when allocating
9848         temporary registers, its a buggy feature and will be removed,
9849         * (pic16_popGet): set register instance field in AOP_CRY,
9850         * (pic16_outBitC): fixed for results in size greater than 1,
9851         * (genUminusFloat): fixed for pic16, ported code from mcs51,
9852         * (pic16_storeForReturn): optimized return of 0,
9853         * (genCmp): experimental code for new genCmp which uses PIC18's
9854         special compare&skip instructions. Initial tests fail some times
9855         with variables grater than 1 byte in size, so new code is disabled,
9856         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
9857         a single bit,
9858         * (genCast): began a fix to optimize the casting of a bit to another
9859         bit, now assigning a bitfield to another bitfield will fail, sorry,
9860         * src/pic16/main.c: disabled the use of lr-support feature,
9861         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
9862         * added some function prototypes, added function _debugf prototype,
9863         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
9864         bits with offset (case PO_GPR_BIT),
9865         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
9866         command line,
9867         * (isBankInstruction): modified to return 0 for no banking instruction,
9868         and 1 for banking instruction,
9869         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
9870         caused stop processing pCodes after a inline assembly block,
9871         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
9872         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
9873         registers when it shouldn't,
9874         * src/pic16/ralloc.c (allocReg): add preliminary support for
9875         supporting a limited set of temporary registers,
9876
9877 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9878
9879         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
9880           genDataPointerSet): ensure assignments always copy in MSB to LSB
9881           order,
9882           (loadRegFromAop): recognize CLRH optimization,
9883           (genFunction): optimize RECEIVE iCodes in reentrant functions
9884
9885 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9886
9887         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
9888           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
9889           selected.
9890         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
9891         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
9892           contiguous with data
9893
9894 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9895
9896         * device/lib/_gptrget.c (_gptrget),
9897         * device/lib/_gptrgetc.c (_gptrgetc),
9898         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
9899           instead of sjmp to ret
9900         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
9901           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
9902
9903 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
9904
9905         * .version: bumped version to 2.4.7
9906         * device/lib/_gptrget.c (_gptrget): is now _naked
9907         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
9908         * device/lib/_gptrput.c (_gptrput): is now _naked
9909         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
9910           (createFunction): fixed xstack
9911         * src/SDCCglue.c (emitMaps): set allocation required for bit area
9912         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
9913           or bit either,
9914           (geniCodeCritical): store original interrupt state in an iTemp bit
9915           var unless stack-auto
9916         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
9917         * src/SDCCmain.c (setIncludePath): added include/target to search path
9918         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
9919         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
9920           prototype,
9921           (processFuncArgs): put bit vars in bit area
9922         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
9923           unsaveRBank): fixed xstack,
9924           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
9925           (genFunction, genEndFunction): fixed xstack,
9926           (genAssign): optimization don't walk backwards through mem
9927         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
9928         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
9929         * support/regression/Makefile: also make library (for stack-auto) when
9930           making "all" and added "test-mcs51-xstack-auto"
9931         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
9932         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
9933         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
9934         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
9935         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
9936           make-library by MAKE_LIBRARY
9937         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
9938           regression tests for xstack
9939         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
9940         * support/regression/tests/critical.c: test for critical on mcs51
9941
9942 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9943
9944         * support/regression/ports/ucz80/spec.mk: use include and lib files from
9945           built version of sdcc instead of installed version
9946
9947 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
9948
9949         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
9950         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
9951           vprintf.c now
9952         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
9953         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
9954           WARNING: remove device/lib/build/z80/printf.o by hand when
9955           updating from previous build!
9956         * device/lib/z80/printf.c: updated comment
9957         * support/regression/tests/bug1057979.c: test all ports now
9958         * support/regression/tests/bug1065458.c: file added
9959
9960 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9961
9962         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
9963           *_start and *_end symbols for static functions
9964
9965 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
9966
9967         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
9968           and search crt0.o in all library paths,
9969           (setIncludePath): proper handling of --nostdinc,
9970           (setLibPath): proper handling of --nostdlib
9971         * support/regression/Makefile,
9972         * support/regression/ports/ds390/spec.mk,
9973         * support/regression/ports/gbz80/spec.mk,
9974         * support/regression/ports/hc08/spec.mk,
9975         * support/regression/ports/mcs51/spec.mk,
9976         * support/regression/ports/mcs51-large/spec.mk,
9977         * support/regression/ports/mcs51-stack-auto/spec.mk,
9978         * support/regression/ports/z80/spec.mk: use include and lib files from
9979           built version of sdcc instead of installed version
9980         * doc/sdccman.lyx: fixed typo in --nostdinc
9981
9982 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
9983
9984         * src/pic/pcode.c,
9985         * src/pic/device.c,
9986         * src/pic/ralloc.c,
9987         * src/pic/gen.c : added support to generate code for struct bit fields.
9988
9989 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
9990
9991         * as/xa51/xa_version.h,
9992         * device/include/errno.h,
9993         * device/include/regc515c.h,
9994         * device/lib/_itoa.c,
9995         * device/lib/_ltoa.c,
9996         * device/lib/ser_ir_cts_rts.c,
9997         * sim/ucsim/xa.src/glob.cc,
9998         * sim/ucsim/xa.src/inst_gen.cc,
9999         * sim/ucsim/xa.src/xa_bit.cc,
10000         * sim/ucsim/xa.src/xa_sfr.cc,
10001         * sim/ucsim/z80.src/inst_dd.cc,
10002         * sim/ucsim/z80.src/inst_fdcb.cc,
10003         * support/scripts/keil2sdcc.pl,
10004         * src/pic16/pic16.dsp,
10005         * src/pic16/pic16a.dsp: corrected cvs line endings
10006         * device/lib/printf_large.c: fixed bug 1057979
10007         * src/pic16/gen.c: fixed non-C standard code
10008         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
10009         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
10010         * support/regression/ports/mcs51/support.c: reload T1 asap
10011         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
10012           pdata use and clear idata startup behaviour
10013         * support/regression/tests/bug1057979.c: added
10014
10015 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
10016
10017         * device/examples/ds390/ow390/ad26.h,
10018         * device/examples/ds390/ow390/cnt1d.h,
10019         * device/examples/ds390/ow390/crcutil.c,
10020         * device/examples/ds390/ow390/ownet.h,
10021         * device/examples/ds390/ow390/owsesu.c,
10022         * device/examples/ds390/ow390/swt12.h,
10023         * device/examples/ds390/ow390/swtoper.c,
10024         * device/examples/ds390/ow390/temp10.h,
10025         * device/examples/ds390/ow390/thermodl.c,
10026         * device/examples/ds390/tinitalk/tinitalk.dsp,
10027         * device/examples/ds390/tinitalk/tinitalk.dsw,
10028         * device/examples/mcs51/clock/hw.h,
10029         * device/examples/mcs51/simple2/go.bat,
10030         * device/examples/serialcomm/windows/serial.h,
10031         * device/examples/xa51/dummy.c,
10032         * device/examples/xa51/hello.c,
10033         * device/include/80c51xa.h,
10034         * device/include/at89x051.h: corrected cvs line endings
10035
10036 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
10037
10038         * src/pic16/main.c (options): added command line --gstack, to trace
10039         stack over/under flows,
10040         * added pragma 'wparam' to allow passing first byte of function
10041         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
10042         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
10043         call to __gstack_test function and sets up the symbol as extern,
10044         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
10045         * popaop): added call to pic16_testStackOverflow,
10046         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
10047         wparamList list,
10048         * (genCall, genPcall): now all parameters are passed via stack
10049         except in functions that are pass to wparam pragma in which WREG is
10050         used too,
10051         * (genPcall): REENTRANT flag is checked to see if variable prototype
10052         contains reentrant keyword, don't call a non-reentrant function, via
10053         a reentrant function pointer or vice versa, functions are never
10054         passed via WREG,
10055         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
10056         D.Winkler,
10057         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
10058         SIGSEGV when accessing a NULL register stucture,
10059         * (pic16_printGPointerType): modified to handle UPPER modifier for
10060         function initializers, changed prototype of function to simpler one,
10061         * (pic16_printIvalFuncPtr): check to see if function is already
10062         added in externs list,
10063         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
10064         optimized a move from W to SFR with a move to the same register
10065         later after a CALL,
10066         * device/lib/pic16/debug: NEW directory, contains debug features
10067         which are enabled when linking with libdebug.lib, currently command
10068         line option --gstack enables stack pointer tracing for over/under
10069         flow, corresponding sources are in debug/gstack
10070
10071 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
10072
10073         * doc/sdccman.lyx: updated SDCC version,
10074         * (PIC16 port): update list of command line options,
10075         * src/pic16/device.h (structure pic16_options_t): added field gstack
10076         to enable stack overflow tracing on push/pops,
10077         * src/pic16/device.c (statistics structure): added statistics
10078         structure,
10079         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
10080         pic16_dump_int_registers): increase statistics counters for each
10081         * variable which is encountered
10082         * (pic16_dump_usection): emit each .udata variable to its own udata
10083         section,
10084         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
10085         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
10086         parameters via stack, otherwise use old scheme,
10087         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
10088         assembler output file,
10089         * src/pic16/main.c: added command line options --gstack to enable
10090         push/pop tracing for stack overflow,
10091         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
10092         instructions): added size of each instruction,
10093         * (pic16_countInstruction): estimate size of instructions in
10094         the_pFile list, inline assembly blocks are not counted,
10095         * (pic16_FixRegisterBanking): trace previous register usage, when
10096         banksel optimizations is greater than 0, don't emit a redudant
10097         banksel directive,
10098
10099 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
10100
10101         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
10102         * src/pic16/ralloc.c : applied same fix for pic16.
10103         * src/pic/gen.c : tidied it up a little.
10104
10105 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10106
10107         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
10108         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
10109
10110 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10111
10112         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
10113
10114 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10115
10116         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
10117         non-reentrant function __modsint in the interrupt function (thus
10118         corrupting math operations during serial I/O)
10119         * device/lib/ser_ir.c: as above, changed buffersize
10120         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
10121         256.c,d for zeroing
10122         * doc/Makefile: added option -t for rsync
10123
10124 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10125
10126         * src/SDCCast.h (struct ast),
10127         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
10128
10129 2004-10-20 Borut Razem <borut.razem AT siol.net>
10130
10131         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
10132         package
10133
10134 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
10135
10136         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
10137         makefile targets,
10138         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
10139         support functions to replace long sequences of MOVFF's from access
10140         bank registers to stack and vice versa,
10141         * src/pic16/device.h: added new field opt_flags, where optimization
10142         flags can be set to enable certain features,
10143         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
10144         * pBlock, (genFunction, genEndFunction): surroung loop for
10145         saving/loading used registers in stack with PC_INFO pCodes,
10146         INF_LREGS. Code in between can then be optimized by pCode optimizer
10147         to support function calls,
10148         * (genDataPointerSet): fixed bug which loaded float fields in
10149         structures with corrupt data,
10150         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
10151         in a standard way debug info on stderr. Feature used for developing
10152         and debugging only,
10153         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
10154         obsolete chunks of code,
10155         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
10156         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
10157         * pic16/src/pcode.c (pic16_newpCodeInfo,
10158         * (pic16_newpCodeOpLocalRegs),
10159         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
10160         feature,
10161         * (pic16_pCodeConstString): printing of the initial value of a
10162         symbol as a comment is inhibited since parsing was already done by
10163         copyStr and output is corrupt,
10164         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
10165
10166 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10167
10168         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
10169
10170 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
10171
10172         * as/mcs51/lkarea.c: removed old K&R style,
10173           (lnksect): changed check on boundary error,
10174           (lnksect2): changed check on boundary error,
10175           (lnksect2): extend XSTK to end of page if size = 1
10176         * as/mcs51/lkmain.c: removed old K&R style,
10177           (Areas51): create l_IRAM symbol
10178         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
10179         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
10180           model-mcs51-stack-auto, added model-mcs51-xstack-auto
10181         * device/lib/_mullong.c: added version to be compiled with xstack
10182         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
10183         * device/lib/mcs51/crtxclear.asm: clear pdata as well
10184         * device/lib/mcs51/crtxstack.asm: fixed comment
10185         * src/SDCCglue.c: maxInterrupts defaults to 0,
10186           (emitMaps): added pdata,
10187           (createInterruptVect): (re)moved default,
10188           (glue): added pdata,
10189           (glue): moved __start__xstack to XSTK with default size 1
10190         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
10191           and options.float_rent when options.stackAuto is set,
10192           (linkEdit): only write XDATA_NAME if provided on command line
10193         * src/SDCCmem.h,
10194         * src/SDCCmem.c: added pdata
10195         * src/port.h: added pdata_name to PORT
10196         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
10197           (saveRegisters, unsaveRegisters): removed usage of B,
10198           (genMinus): fixed accumulator clash,
10199           (genJumpTab): added comment, this needs another look
10200         * src/mcs51/gen.c: added check for "B in use" paranoia,
10201           added pushB() and popB()
10202         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
10203           chance
10204         * src/avr/main.c,
10205         * src/ds390/main.c,
10206         * src/hc08/main.c,
10207         * src/mcs51/main.c,
10208         * src/pic/main.c,
10209         * src/pic16/main.c,
10210         * src/xa51/main.c,
10211         * src/z80/main.c: (reset_regparms) made void parameter explicit and
10212           added PSEG (PAG,XDATA) or NULL to port specifier
10213         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
10214         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
10215           (_mcs51_genInitStartup): removed __start__xstack equ,
10216           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
10217         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
10218         * src/z80/gen.c (_rleAppend): fixed warnings
10219         * support/regression/tests/zeropad.c: added pdata test
10220         * .version: bumped to 2.4.6
10221
10222 2004-10-17 Borut Razem <borut.razem AT siol.net>
10223
10224         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
10225         as a part of nightly build
10226
10227 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
10228
10229         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
10230         WREG holds the first byte function parameters,
10231         * (aopForSym): take special case for symbols which are in FARSPACE
10232         but in CODESPACE too,
10233         * (assignResultValue): modified to take into account _G.useWreg,
10234         * (genCall): don't use wreg for parameter passing when function is
10235         declared as reentrant, too, added optimization INCF to stack
10236         pointer when stack parameter count is 1,
10237         * (genFunction, genEndFunction): refurnished and fixed to not using
10238         wreg for passing parameters when function has varargs or is
10239         reentrant, fixed bug with symbol name compare for generating
10240         functions in absolute address,
10241         * (pic16_storeForReturn): refurnished,
10242         * (genCmp): began writing a new version of the function, not ready
10243         yet, therefore it is disabled,
10244         * (genAssign): do not read code memory when assigning a function to
10245         a pointer function,
10246         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
10247         array of characters, not pointer,
10248         * (pic16initialComments): in debug mode emit an .ident directive for
10249         the assembler,
10250         * (_process_pragma): emit a new warning type (internal to pic16)
10251         when setting stack to default length, emit a similar warning when
10252         placing a function at absolute address and address is not word aligned
10253         * (_pic16_parseOptions): added 'return TRUE' statement,
10254         * (_pic16_linkEdit): if compiling a source, then add the source's
10255         file object, first in the list of objects to link,
10256
10257 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
10258
10259         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
10260         * src/pic/main.c : removed VC warning.
10261         * src/pic/gen.c : changed comment.
10262
10263 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
10264
10265         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
10266         reference to a deprecated symbol _GPTRREG was causing failure to
10267         link. Thanks G. M. Gallant for the info.
10268
10269 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
10270
10271         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
10272         comments for Bugs item #954788.
10273
10274 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
10275
10276         * src/pic16/device.c (pic16_dump_gsection,
10277         * pic16_groupRegistersInSection): handle symbols declared to be in
10278         access bank differently,
10279         * src/pic16/gen.c (struct _G): added field resDirect,
10280         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
10281         send values read from stack directly to result and don't allocate
10282         temporary values,
10283         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
10284         same registers,
10285         * (pic16_sameRegsOfs): NEW,
10286         * (freeAsmop): if _G.resDirect is set then do not mark registers as
10287         free because they were not allocated from temporary pool,
10288         * pic16_popRegFromString): workaround to fix a problem with
10289         allocating variables twice or never,
10290         * (genGenPointerGet): using PRODL instead of FSR0H,
10291         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
10292         instead of FSR0H,
10293         * (genAssign): take advantage of the _G.resDirect flag,
10294         * (genCast): around line 11844, use mov2f instead of directly
10295         MOVFF'ing between operands to account for literal values,
10296         * src/pic16/genutils.c: some new debug functions for gpsim have been
10297         added,
10298         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
10299         float with integer part only,
10300         * src/pic16/main.c (_process_pragma): handle pragma udata access to
10301         place variables in access bank
10302         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
10303         updated sources to reflect recent changes in gen.c
10304
10305 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
10306
10307         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
10308         sources that searched for headers in installation path, now the
10309         device/include/pic16 is used,
10310         * src/pic16/glue.c (pic16glue),
10311         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
10312         .line directives if not in debug mode, this suppresses assembler's
10313         warnings for ignored directives
10314
10315 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
10316
10317         * src/port.h: made reset_regparms prototype void parameter explicit.
10318         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
10319         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
10320         * doc/sdccman.lyx: documented warning disabling and how to use
10321           printf_large to make it print floats.
10322         * device/include/stdbool.h: NEW
10323         * device/lib/_atof.c,
10324         * device/lib/_divuint.c,
10325         * device/lib/_divulong.c,
10326         * device/lib/expf.c,
10327         * device/lib/printf_large.c,
10328         * device/lib/sincosf.c,
10329         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
10330         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
10331           a completely reentrant lib.
10332
10333 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
10334
10335         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
10336         * device/include/pic16/stdio.h: fixed bug with colon
10337
10338 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
10339
10340         * device/include/pic16/stdio.h,
10341         * device/include/pic16/stdlib.h,
10342         * device/include/pic16/math.h: NEW
10343         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
10344         declared as _naked to reduce overhead
10345         * device/lib/Makefile.in (target port-specific-objects-pic16):
10346         changed * to *.* so to ignore the CVS directory,
10347         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
10348         stacked variables back in stack,
10349         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
10350         corruption
10351
10352 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
10353
10354         * .version: bumped version number to 2.4.5
10355         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
10356         * support/Util/SDCCerr.c (messages structure): added entry for
10357         W_POSSBUG2
10358
10359         Large cumulative patch for pic16 port and libraries.
10360         * device/include/pic16/sdcc-lib.h,
10361         * device/include/pic16/stdarg.h,
10362         * device/include/asm/pic16/features.h,
10363         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
10364         * device/include/pic16/float.h: changes reentrant keyword with
10365         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
10366         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
10367         updated target build-libraries to include objects from gptr,
10368         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
10369         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
10370         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
10371         all function headings,
10372         * src/SDCCmain.c: added global parameter userIncDirsSet,
10373         * (parseCmdLine): when option -I is encountered add directory to
10374         userIncDirsSet too,
10375         * src/version.awk: added space between control and long,
10376         * src/pic16/NOTES: added some notes for the port,
10377         * src/pic16/gen.c: added prototype for mov2fp function,
10378         * (fReturnpic16[]): properly named return value registers,
10379         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
10380         * (aopForSym): added code to handle symbols with onStack flag set,
10381         symbols onStack are allocated PTRSIZE bytes,
10382         * (aopFreeAsmop): handles special case where asmops are stack objects,
10383         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
10384         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
10385         added argument lock to trace flaws in allocating temporary registers
10386         when developing port,
10387         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
10388         * (pic16_popRegFromString): reenabled allocating a direct register
10389         from string,
10390         * (assignResultValue): various beautifications,
10391         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
10392         referenced function argument,
10393         * (genIpush): reenabled to allow stacked arguments, handles only
10394         ic->parmPush iCodes,
10395         * (genCall, genPcall): major changes to allow for variable argument
10396         functions, fixed a bug with falsely restoring stack pointer after
10397         returning from call,
10398         * (genFunction): pending code for critical function,
10399         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
10400         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
10401         * (genNearPointerGet): fixed bug with indirect reading, was always
10402         reading from INDF0
10403         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
10404         pointers,
10405         * (genAddrOf): rewrote code to take address of a stacked function parameter
10406         * (genCast): fixed casting to generic pointer type,
10407         * src/pic16/gen.h: added AOP_STA,
10408         * (struct asmop): added field stk,
10409         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
10410         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
10411         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
10412         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
10413         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
10414         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
10415         generic pointers,
10416         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
10417         and library paths,
10418         * (pic16_port structure): generic pointer size is set to 3,
10419         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
10420         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
10421         compiler warning,
10422         * src/pic16/ralloc.c (allocReg): prevent allocating register when
10423         operand is an iTemp,
10424
10425 2004-09-24 Martin Helmling <mh AT octo-soft.de>
10426
10427         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
10428         * debugger/mcs51/simi.c: addapt new syntax of s51
10429
10430 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
10431
10432         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
10433         * src/pic16/pcode.c: commented out some calls to free() in order to
10434         fix bug #989576,
10435
10436 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10437
10438         * src/SDCCicode.h,
10439         * src/SDCCicode.c (isiCodeInFunctionCall),
10440         * src/avr/ralloc.c (selectSpil),
10441         * src/pic/ralloc.c (selectSpil),
10442         * src/pic16/ralloc.c (selectSpil),
10443         * src/ds390/ralloc.c (selectSpil),
10444         * src/hc08/ralloc.c (selectSpil),
10445         * src/xa51/ralloc.c (selectSpil),
10446         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
10447         stack in the middle of a function call sequence (fixes bug #1020268)
10448         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
10449         costs associated with the minimum switch case.
10450
10451 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10452
10453         * src/SDCC.lex: fixed bug #1030549
10454
10455 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10456
10457         * src/SDCCcse.h (struct cseDef),
10458         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
10459         over a function call if the CSE is derived from a symbol whose
10460         address has been taken (fixes bug #1029883)
10461         * support/regression/tests/bug-1029883: a new regression test for
10462         this bug
10463
10464 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10465
10466         * src/hc08/gen.c (emitinline): fixed bug #1029778
10467         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
10468         to a cast object is no longer a syntax error ("fixes" bug #1030006,
10469         and starts toward RFE #905167)
10470
10471 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
10472
10473         * src/pic16/gen.c (mov2f): New function to move an operand to
10474         another without considering if it is a literal or a register,
10475         * (pic16_sameRegs): don't check if they are both AOP_REG,
10476         * (AccRsh): removed andmask=0 lines,
10477         * (genLeftShift): duplicated to be improved in future versions,
10478         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
10479         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
10480         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
10481         * (pic16initMnemonics): added initialization for POC_INFSNZW,
10482         * (insertBankSwitch): fixed inserting banksel directives algorithm
10483         for instructions that follow a skip instruction, this fixes a report
10484         for broken subtraction code generation,
10485         * src/pic16/ralloc.c (deassignLRs): do not free register if current
10486         iCode is a left op, just in case result and right share the same
10487         registers
10488
10489 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10490
10491         * src/hc08/main.c,
10492         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
10493         preservation of HX
10494         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
10495         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
10496         on 2004-09-12; it was buggy
10497
10498 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
10499
10500         * src/SDCCsymt.h: removed RESULT_CHECK
10501         * src/SDCCast.c,
10502         * src/SDCCglue.c,
10503         * src/SDCCval.c,
10504         * src/pic/glue.c,
10505         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
10506
10507 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
10508
10509         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
10510         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
10511         configuration values no more rejected by compiler, they are assigned
10512         to configuration registers with a warning message instead,
10513         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
10514         the for-loop so last conf register is emitted too,
10515         * (_pic16_initPaths): link library libsdcc.lib by default,
10516         * (_hasNativeMulFor): modified test for multiplication according to
10517         Raphael Neider's remarks. Integer multiplication is also done with
10518         support functions,
10519         * device/include/pic16/pic18fregs.h: corrected type error in while
10520         testing and including 18f6720 header file
10521
10522 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
10523
10524         * src/pic16/device.h (pic16_options): removed field use_crt,
10525         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
10526         until an optimization to handle single bits is added,
10527         * (pic16_loadFSR0): moved before genUnpackBits,
10528         * (genAnd): some white lines removed,
10529         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
10530         leave_reset flags in pic16_options when using crt modules,
10531
10532 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
10533
10534         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
10535           for bugs 898889 & 979599. Also used some safer print instructions.
10536
10537 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
10538
10539         * src/pic16/device.h (pic16_options_t): added field use_crt,
10540         crt_name, no_crt,
10541         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
10542         catch a probable future bug,
10543         * src/pic16/gen.c: aopIdx function commented out,
10544         * (genAssign): commented out old code which used aopIdx,
10545         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
10546         code, added if conditionals to take into account the --use-crt
10547         command line options,
10548         * src/pic16/main.c (pic16_optionsTable): added new command line
10549         options, --use-crt= and --no-crt,
10550         * (_pic16_linkEdit): now the proper crt object is added in the
10551         linker command line except than when --no-crt is specified,
10552         * src/pic16/pcode.c,
10553         * src/pic16/pcode.h: added some structures and functions for a new
10554         optimization scheme to compansate for instruction overhead between
10555         same iCodes, this scheme is currently under development and is not
10556         working in any way,
10557         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
10558         to && operator,
10559         * device/lib/pic16/startup/crt0i.c,
10560         * device/lib/pic16/startup/crt0iz.c: added global char variable
10561         __uflags to force the generation of an idata section
10562
10563 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
10564
10565         * doc/Makefile,
10566         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
10567         * doc/sdccman.lyx: updated sdcc version to 2.4.4
10568
10569 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10570
10571         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
10572         Frieder) and clarified the default code optimization mode
10573
10574 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10575
10576         * src/SDCC.lex (doPragma, process_pragma),
10577         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
10578         "opt_code_size", and "opt_code_balanced"
10579         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
10580         regrouped options by category, added support for category headers
10581         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
10582         and "--opt-code-size"
10583         * doc/sdccman.lyx: documented these new options and pragmas
10584         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
10585         preference into account
10586
10587 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10588
10589         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
10590           geniCodePreDec): Fixed bug 904237 by generating a warning
10591         * src/SDCCerr.h,
10592         * src/SDCCerr.c: added warning W_SIZEOF_VOID
10593
10594 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
10595
10596         * src/pic/device.c : When no max ram set validate full memory range.
10597         * src/pic/pcode.c,
10598         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
10599
10600 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10601
10602         * device/lib/_gptrget.c,
10603         * device/lib/_gptrput.c: updated comment
10604         * device/lib/calloc.c,
10605         * device/lib/free.c,
10606         * device/lib/malloc.c,
10607         * device/lib/realloc.c: added LGPL, made them reentrant-safe
10608         * src/SDCCcse.c (cseBBlock),
10609         * src/SDCCicode.c (printOperand, geniCodeArray),
10610         * src/SDCCicode.h (struct operand): fixed bug 868103
10611         * support/regression/tests/bug-868103.c: added
10612         * src/SDCCast.c (searchLitOp),
10613         * src/SDCCcse.h (struct cseDef),
10614         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
10615         * src/SDCCicode.h (struct operand),
10616         * src/SDCCsymt.h (struct sym_link),
10617         * src/avr/gen.c (hasInc),
10618         * src/ds390/gen.c (hasInc),
10619         * src/hc08/gen.c (genPlusIncr, hasInc),
10620         * src/mcs51/gen.c (hasInc),
10621         * src/pic16/glue.c (pic16_printIvalChar),
10622         * src/pic16/ralloc.c (regWithIdx),
10623         * src/xa51/gen.c (hasInc) : removed warnings
10624         * src/SDCCast.c (createBlock): added comment ???
10625         * src/hc08/ralloc.c: updated comments
10626
10627 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10628
10629         * doc/sdccman.lyx: updated section on switch statements, added
10630         section about semaphore locking
10631         * doc/Makefile: added option -info for latex2html
10632         * device/lib/_gptrget.c,
10633         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
10634
10635 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10636
10637         * src/pic/device.h,
10638         * src/pic/device.c,
10639         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
10640          maxram is less than 0x100.
10641
10642 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10643
10644         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
10645
10646 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10647
10648         * src/port.h,
10649         * src/mcs51/main.c,
10650         * src/ds390/main.c,
10651         * src/z80/main.c,
10652         * src/hc08/main.c,
10653         * src/pic/main.c,
10654         * src/pic16/main.c,
10655         * src/avr/main.c,
10656         * src/xa51/main.c
10657         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
10658         a jump table is the best form for a switch statement, including
10659         automatic insertion of missing cases to make the case range
10660         continuous. Developed in collaboration with Frieder Ferlemann.
10661
10662 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10663
10664         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
10665         accumulator result if it needs sign extension
10666
10667 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10668
10669         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
10670
10671 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10672
10673         * device/lib/gbz80/printf.c,
10674         * device/lib/z80/printf.c: removed define for NULL
10675
10676 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10677
10678         * as/xa51/xa_link.c,
10679         * device/examples/ds390/ow390/ad26.c,
10680         * device/examples/ds390/ow390/cnt1d.c,
10681         * device/examples/ds390/ow390/counter.c,
10682         * device/examples/ds390/ow390/ds2480.h,
10683         * device/examples/ds390/ow390/ds2480ut.c,
10684         * device/examples/ds390/ow390/findtype.c,
10685         * device/examples/ds390/ow390/gethumd.c,
10686         * device/examples/ds390/ow390/owllu.c,
10687         * device/examples/ds390/ow390/ownetu.c,
10688         * device/examples/ds390/ow390/swt12.c,
10689         * device/examples/ds390/ow390/swtloop.c,
10690         * device/examples/ds390/ow390/temp.c,
10691         * device/examples/ds390/ow390/temp10.c,
10692         * device/examples/ds390/ow390/thermo21.c,
10693         * device/examples/ds390/ow390/tinilnk.c,
10694         * device/examples/ds390/ow390/tstfind.c,
10695         * device/examples/serialcomm/windows/serial.cpp,
10696         * device/examples/serialcomm/windows/test_serialcomm.cpp,
10697         * device/include/reg51.h: fixed line endings for cvs
10698
10699 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10700
10701         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
10702         packRegsForAccUse, packRegisters): new accumulator register
10703         packing algorithm
10704         * support/regression/ports/hc08/support.c (_putchar): suppress
10705         warning of unused variable
10706         * src/SDCCicode.c: added SWAP entry to codeTable
10707
10708 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
10709
10710         * device/lib/sprintf.c: forgot to add this file before previous commit
10711
10712 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
10713
10714         * src/pic16/gen.c (genPackBits): added operand right in function
10715         parameters, load result directly if p_type is POINTER (that is
10716         called by genNearPointerSet)
10717         * (genUnPackBits): added operand left in function parameters,
10718         * (genNearPointerGet, genNearPointerSet): prevent the loading of
10719         FSR0 if accessing bitfields,
10720
10721 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
10722
10723         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
10724           _print_format; updated printf, sprintf, vsprintf
10725         * device/include/asm/default/features.h: corrected comment/define
10726         * device/lib/Makefile.in: added sprintf.c
10727         * device/lib/libsdcc.lib: added sprintf module
10728         * device/lib/printf_large.c,
10729         * device/lib/vprintf.c,
10730         * device/lib/sprintf.c: totally refactored printf_large and vprintf
10731           into these 3 files
10732         * support/regression/Makefile: changed ALL_PORTS into a usefull default
10733         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
10734         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
10735           hc08 test
10736         * support/regression/tests/zeropad.c: define idata as data for hc08
10737
10738 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10739
10740         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
10741         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
10742         labels are referenced at least once (even if a reference is not found)
10743         * src/hc08/gen.c (emitcode): set isComment flag for comments
10744         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
10745         loads), rules 6a..6b (optimize jumps to return)
10746
10747 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10748
10749         * device/lib/acosf.c (acosf),
10750         * device/lib/asinf.c (asinf),
10751         * device/lib/atanf.c (atanf),
10752         * device/lib/ceilf.c (ceilf),
10753         * device/lib/cosf.c (cosf),
10754         * device/lib/coshf.c (coshf),
10755         * device/lib/cotf.c (cotf),
10756         * device/lib/fabsf.c (fabsf),
10757         * device/lib/floorf.c (floorf),
10758         * device/lib/log10f.c (log10f),
10759         * device/lib/logf.c (logf),
10760         * device/lib/sinf.c (sinf),
10761         * device/lib/sinhf.c (sinhf),
10762         * device/lib/sqrtf.c (sqrtf),
10763         * device/lib/tanf.c (tanf),
10764         * device/lib/tanhf.c (tanhf),
10765         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
10766         replaced all instances of "reentrant" in the library functions
10767         defined in math.h with this macro.
10768         * support/regression/tests/float_trans.c: reenabled test for hc08
10769
10770 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
10771
10772         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
10773         erroneously deleted
10774
10775 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10776
10777         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
10778         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
10779         multi-byte volatile operands are used
10780         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
10781         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
10782         initialization to area GSINIT0 so that it would always precede
10783         any static initializers in GSINIT
10784         * support/regression/tests/zeropad.c: fixed idata define for hc08
10785         * support/regression/tests/bug-927659.c,
10786         * support/regression/tests/float_trans.c: disabled tests for hc08
10787         pending missing library routines
10788         * .version: increased version number to 2.4.4 - hc08 port now passes
10789         regression tests
10790
10791
10792 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
10793
10794         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
10795         * Makefile.common.in,
10796         * as/Makefile,
10797         * as/hc08/Makefile.in,
10798         * as/mcs51/Makefile.in,
10799         * as/z80/Makefile.in,
10800         * debugger/mcs51/Makefile.in,
10801         * device/include/Makefile.in,
10802         * device/lib/Makefile.in,
10803         * doc/Makefile,
10804         * link/Makefile,
10805         * link/z80/Makefile.in,
10806         * packihx/Makefile.in,
10807         * sim/ucsim/main_in.mk,
10808         * sim/ucsim/avr.src/Makefile.in,
10809         * sim/ucsim/doc/Makefile.in,
10810         * sim/ucsim/gui.src/serio.src/Makefile.in,
10811         * sim/ucsim/hc08.src/Makefile.in,
10812         * sim/ucsim/s51.src/Makefile.in,
10813         * sim/ucsim/xa.src/Makefile.in,
10814         * sim/ucsim/z80.src/Makefile.in,
10815         * src/Makefile.in,
10816         * support/cpp2/Makefile.in,
10817         * support/librarian/Makefile,
10818         * support/makebin/Makefile: added DESTDIR to the install path proposed
10819         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
10820         * doc/sdccman.lyx: added DESTDIR documentation
10821
10822 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
10823
10824         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
10825         instruction for interrupt handlers, use fast returns when returning
10826         from high priority interrupts
10827
10828 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10829
10830         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
10831         code generation
10832         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
10833         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
10834         bugs, ported much of Bernhard's code from mcs51
10835         * src/mcs51/gen.c (genSend),
10836         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
10837         than one when calling a reentrant function
10838         * device/lib/_mullong.c: defined an alternate struct layout for big
10839         endian ports (hc08)
10840
10841 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10842
10843         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
10844         test
10845
10846 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10847
10848         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
10849         are sane and complete before asking the port its prefered parameter
10850         passing method (fixes bug #1017633)
10851         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
10852         and _ret3
10853
10854 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10855
10856         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
10857         problem in bitfields >= 8 bits.
10858
10859 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10860
10861         * src/SDCCsymt.c: undid changes that were not meant to be committed
10862
10863 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10864
10865         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
10866
10867 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10868
10869         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
10870           copied and wrong bit got inverted
10871
10872 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10873
10874         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
10875         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
10876         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
10877         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
10878         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
10879         assignments to bitfields at known addresses
10880         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
10881         reads from bitfields at known addresses
10882         * src/hc08/ralloc.c (packRegisters),
10883         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
10884         genhc08Code): optimize pointer get values used as conditionals
10885         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
10886         and branch
10887
10888 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10889
10890         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
10891         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
10892         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
10893         as conditionals
10894
10895 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10896
10897         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
10898
10899 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10900
10901         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
10902         related problems
10903
10904 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
10905
10906         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
10907
10908 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10909
10910         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
10911         mcs51 port
10912
10913 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
10914
10915         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
10916
10917 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10918
10919         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
10920         cases use more compact code.
10921
10922 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
10923
10924         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
10925
10926 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10927
10928         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
10929
10930 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10931
10932         * src/SDCCsymt.h,
10933         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
10934         parameter of changePointer() from symbol* to sym_link*
10935         * src/SDCCast.c (decorateType): call changePointer() for CAST op
10936         * src/SDCCsymt.c (compareType): void* type is castable to other
10937         pointers, but not necesarily an exact match.
10938         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
10939         is no longer blindly treated as an exact match.
10940         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
10941
10942 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
10943
10944         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
10945
10946 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
10947
10948         * src/pic/gen.c,
10949         * src/pic/pcode.c,
10950         * src/pic/ralloc.h,
10951         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
10952
10953 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
10954
10955         * src/pic/device.c,
10956         * src/pic/device.h,
10957         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
10958
10959 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10960
10961         * src/mcs51/gen.c (emitcode): fixed bug #992819
10962
10963 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
10964
10965         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
10966           there's no need to make it worse
10967
10968 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10969
10970         * src/mcs51/ralloc.c (deassignLR),
10971         * src/ds390/ralloc.c (deassignLR),
10972         * src/hc08/ralloc.c (deassignLR),
10973         * src/z80/ralloc.c (deassignLR),
10974         * src/pic/ralloc.c (deassignLR),
10975         * src/pic16/ralloc.c (deassignLR),
10976         * src/avr/ralloc.c (deassignLR),
10977         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
10978         rlivePoint): fixed another part of bug #971834
10979
10980 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10981
10982         * src/z80/main.c: enabled "critical" keyword
10983         * src/z80/mappings.i,
10984         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
10985         functions (fixes bug #979646)
10986         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
10987
10988 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10989
10990         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
10991           such as c:\mydir.
10992
10993 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
10994
10995         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
10996           doesn't disable too much optimizations
10997
10998 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
10999
11000         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
11001
11002 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
11003
11004         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
11005
11006 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
11007
11008         * src/pic/gen.c tidied up tabs
11009         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
11010         * src/pic/main.c tidied up tabs
11011         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
11012         * src/pic/pcoderegs.c tidied up tabs
11013         * src/pic/ralloc.c tidied up tabs
11014
11015 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
11016
11017         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
11018         to S_FIXED for pic16 port and when symbol is not in level 0,
11019         allocate for S_REGISTER storage class and pic16 port, too,
11020         * src/pic16/device.h: prototype for checkSym,
11021         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
11022         * (pic16_assignConfigWordValue): test the value and the mask to
11023         validate that the value is suitable for the configuration word,
11024         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
11025         collect extern declared symbols, don't emit symbol twice, check
11026         first if symbol is in publics set first,
11027         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
11028         * added command line '--fstack' which enables an experimental
11029         feature for stack access, too buggy to be used yet...
11030         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
11031         * (pic16_allocDirReg): when register has storage class S_REGISTER
11032         allocate in pic16_dynAccessRegs,
11033         * device/include/pic16/pic18f????.h: modified configuration word
11034         naming convention, words started as CONFIG0H but should be CONFIG1H
11035
11036 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
11037
11038         * device/include/mcs51reg.h: fixed bug 970993
11039
11040 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
11041
11042         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
11043         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
11044         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
11045         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
11046         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
11047         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
11048           error/warning numbers,
11049           added function setWarningDisabled()
11050         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
11051         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
11052           _memcmp.c _memmove.c calloc.c realloc.c free.c
11053         * support/regression/tests/malloc.c: added tests for new functionality
11054         * support/regression/tests/zeropad.c: added tests for truncated initializers
11055           and initialized char arrays starting with '\x0'
11056         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
11057
11058 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
11059
11060         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
11061
11062 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11063
11064         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
11065         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
11066         peephole 177.e. Thanks to anonymous
11067
11068 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
11069
11070         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
11071         function isn't used in the source but referenced as a
11072         variable initializer then declare it as extern in .asm file
11073
11074 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
11075
11076         * .version: increased version number to 2.4.3
11077
11078         Adding version extension according to ChangeLog CVS revision
11079         * src/Makefile.in (target all): added dependency 'version.h'
11080         * (rule version.h): added rule to create version.h from ChangeLog,
11081         * (rule dep): added dependency version.h,
11082         * src/version.awk: AWK script to create version.h
11083         * src/SDCCdwarf2.c (dwWriteModule),
11084         * src/SDCCglue.c (initialComments),
11085         * src/SDCCmain.c (printVersionInfo): modified to write after
11086         version string the version extension number,
11087         * src/SDCCutil.c: included "version.h"
11088         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
11089         number,
11090         * src/SDCCutil.h: added prototype for getBuildNumber
11091
11092         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
11093         includeDirsSet, too,
11094         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
11095         const char [] is found in function prototype...
11096
11097         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
11098         moving to WREG with source is already in WREG,
11099         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
11100         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
11101         * (aopForSym): stack'ed symbols are partially supported, added
11102         if-clause to support symbols in FARSPACE,
11103         * (sameRegs): added test for AOP_ACC to see if registers are same,
11104         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
11105         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
11106         * (pic16_popRegFromString): will not allocate a new register if it
11107         doesn't find one by name, bug may have introduced...
11108         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
11109         * (genIpush): revived to use pic16 port's stack,
11110         * (genAddrOf): added incomplete case for stack'ed operand,
11111         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
11112         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
11113         can handle multibyte operands,
11114         * src/pic16/glue.c (pic16_printIval*): some debug info added,
11115         * (pic16initialComments): added message for MPLAB compatibility
11116         mode enabled,
11117         * src/pic16/main.h: prototype for pic16_mplab_comp,
11118         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
11119         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
11120         * (_pic16_linkEdit): NEW, handles link stage, transferred here
11121         because of increased complexity of procedure,
11122         * (_process_pragma): stack pragma changed to format 'stack pos len',
11123         emit symbol '_stack_end' to conform with gplink,
11124         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
11125         to search for register,
11126         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
11127         PO_GPR_REGISTER,
11128         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
11129         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
11130         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
11131         case for PO_GPR_REGISTER,
11132         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
11133         dies, the new era is ahead !...
11134         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
11135         pic16_dynInternalRegs,
11136         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
11137         * (pic16_allocDirReg): minor optimizations and bug fixes,
11138         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
11139
11140         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
11141         load stack and frame pointer with address of 'stack_end' symbol
11142
11143 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
11144
11145         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
11146         without source code but only variable initializers
11147
11148 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
11149
11150         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
11151         external are not declared as extern to reduce overhead while linking
11152
11153 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
11154
11155         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
11156
11157 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
11158
11159         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
11160           Yee Keat for the patch
11161         * src/SDCCast.c (decorateType): fixed bug #979599
11162         * src/ds390/gen.h: removed local fReturnSizeDS390
11163         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
11164         * src/ds390/gen.c (genAnd, genOr, genXor),
11165         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
11166
11167 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
11168
11169         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
11170         add relFilesSet to $3, manipulate $2 to handle linking of object
11171         files without source files in command line,
11172         * device/include/pic16 (all headers): added ID location macros,
11173         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
11174         entries for ID location bytes,
11175         * (pic16_assignIdByteValue): NEW,
11176         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
11177         added field dumpcalltree to pic16_options_t,
11178         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
11179         is used instead of pic16_Gstack_base_addr, check if (ifx) before
11180         emitting rFalseIfx label after check_carry label,
11181         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
11182         pic16_emitDIRegs), NEW
11183         * (pic16glue): dump .calltree file when option --calltree found,
11184         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
11185         * (_pic16_genAssemblerPreamble): emit ID locations after
11186         configuration registers,
11187         * (pic16_linkCmd): modifications of the link command,
11188         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
11189         * (pic16_pCodeInitRegisters): don't init stack registers,
11190         * (pic16_findPrevInstruction): fixed bug,
11191         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
11192         bug with immediate registers,
11193         * (buildCallTree): traces stack push and pop,
11194         * (pct2): dump also stack usage for each function,
11195         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
11196         * (pic16_allocDirReg): various modifications,
11197         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
11198         fixed to 1,
11199
11200 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
11201
11202         * src/pic16/pcode.c: removed buggy double colon
11203
11204 2004-07-01 Borut Razem <borut.razem AT siol.net>
11205
11206         * support/scripts/sdcc.nsi: added include/pic16 to setup
11207
11208 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
11209
11210         * device/lib/Makefile.in: fixed bug in target objects-pic16,
11211         * device/lib/pic16/Makefile: prefixed with dash (-) command under
11212         target 'clean',
11213         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
11214         specific command line arguments. Also added sample lkr script
11215         for placing a variable at a specific memory bank.
11216         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
11217         at a specific memory bank,
11218         * (pic16_dump_isection): fixed bug which caused string literals to
11219         be omitted when dumping idata section,
11220         * (pic16_groupRegistersInSection): added code to handle registers
11221         in specific memory banks,
11222         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
11223         public, all references are renamed too,
11224         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
11225         AOP_DPTR2,
11226         * (pic16_storeForReturn): added case to handle when dest is WREG,
11227         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
11228         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
11229         pic16_rel_udata, check to see if that register is marked as being
11230         a member of a specific memory bank,
11231         * (pic16_printIvalCharPtr): added code to add string literals either
11232         to code or the idata sections,
11233         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
11234         also accept the 'udata' pragma,
11235         * src/pic16/main.h: new structure types sectName and sectSym
11236         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
11237         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
11238         * (pic16_findPrevInstruction): fixed, it returned nothing,
11239         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
11240         instruction combinations,
11241         * (pic16_FixRegisterBanking): heavily reorganised,
11242         * (pic16_AnalyzeBanking): if generating banksel directives is
11243         disabled, then don't call FixRegisterBanking at all,
11244         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
11245         completely removed,
11246         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
11247
11248 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
11249
11250         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
11251         Phuah Yee Keat <yk.phuah AT nestac.com>
11252
11253 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
11254
11255         * src/pic16/glue.c (pic16createInterruptVect): function now emits
11256         correctly the IVT even if it is relocated to some other location
11257
11258 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
11259
11260         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
11261         * device/include/pic16/pic18f2220.h: NEW,
11262         * device/lib/pic16/libdev/pic18f2220.c: NEW,
11263         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
11264         * src/pic16/device.c (struct Pics16): added info for 18f2220,
11265         * src/pic16/device.h (struct pic16_options): added ivt_loc and
11266         nodefaultlibs, ivt_loc is the location of the interrupt vector
11267         table, and nodefaultlibs signs that default libraries should not be
11268         linked in link stage,
11269         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
11270         according to --ivt-loc argument,
11271         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
11272         when pragma stack is found,
11273
11274 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11275
11276         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
11277         256 (range check), 257 (do while), 258.a-f (bit banging
11278         f.e. on 3-wire SPI bus)
11279
11280 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11281
11282         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
11283         variables used exclusively within a loop
11284
11285 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
11286
11287         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
11288
11289 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11290
11291         * src/SDCClrange.c (computeClash): fixed bug #971834
11292
11293 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11294
11295         * src/mcs51/gen.c (genCmp): fixed bug #975903
11296         * src/hc08/gen.c (operandsEqu),
11297         * src/ds390/gen.c (operandsEqu),
11298         * src/z80/gen.c (operandsEqu),
11299         * src/pic/gen.c (operandsEqu),
11300         * src/pic16/gen.c (operandsEqu),
11301         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
11302         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
11303
11304 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11305
11306         * src/SDCCcse.c (cseBBlock): fixed bug #966963
11307
11308 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
11309
11310         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
11311         default case in switch statement,
11312         * glue.c (pic16_initPointer): expr is initialised via decoarteType
11313         to eliminate problem with initialisation of pointers, but problem
11314         still exists,
11315         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
11316         * (emitStaticSegment): removed various lines emitting debug info,
11317         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
11318         added processor registers for utilizing EEPROM,
11319         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
11320         configurable and set 8
11321
11322 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
11323
11324         * .version: increased version number to 2.4.2,
11325
11326         Cumulative patch for pic16 port
11327         * src/pic16/device.c: changed scheme to dump initial values for
11328         variables in idata segment, all print_idata* functions were removed,
11329         now the pic16_printIval* will be called,
11330         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
11331         * _pic16_printPointerType, pic16_printPointerType,
11332         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
11333         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
11334         NEW, similar to the respective functions in SDCCglue.c,
11335         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
11336         way, emitting hex bytes,
11337         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
11338
11339 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11340
11341         * src/avr/ralloc.c (serialRegAssign),
11342         * src/xa51/ralloc.c (serialRegAssign),
11343         * src/pic/ralloc.c (serialRegAssign),
11344         * src/pic16/ralloc.c (serialRegAssign),
11345         * src/hc08/ralloc.c (serialRegAssign),
11346         * src/z80/ralloc.c (serialRegAssign),
11347         * src/ds390/ralloc.c (serialRegAssign),
11348         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
11349
11350 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11351
11352         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
11353         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
11354
11355 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
11356
11357         Cumulative patch for pic16 port:
11358         * src/pic16/device.h (typedef PIC16_device) modified fields for
11359         defining microcontrollers,
11360         * src/pic16/device.c: added new info for all devices in Pics16 array,
11361         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
11362         to be optimised out by the pCode optimiser,
11363         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
11364         specially, bug reported by G.M. Gallant,
11365         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
11366         as force'd so that cannot be optimised out by pCode optimiser,
11367         * src/pic16/pcode.c,
11368         * src/pic16/pcodepeeph.c,
11369         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
11370         they are disabled by default, but can be enabled explicit with
11371         command argument --denable-peeps, for testing,
11372         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
11373         --pomit-ivt in COMPILE_FLAGS
11374
11375 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
11376
11377         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
11378           compilation on MSVC
11379
11380 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
11381
11382         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
11383
11384 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11385
11386         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
11387         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
11388
11389 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
11390
11391         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
11392         would only assign 0x300001 register.
11393
11394 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
11395
11396         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
11397         in COMPILE_FLAGS. Thanks to G. Gallant for report.
11398
11399 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11400
11401         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
11402         for ds80c400
11403         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
11404         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
11405         added peephole 254 (left shift), 255 (jump table)
11406
11407 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
11408
11409         * device/lib/Makefile.in: removed comment line with model-pic16,
11410         * (target port-specific-objects-pic16): the libraries and objects
11411         are copied to the build directory form the device/lib/pic16/bin
11412         directory
11413
11414         Cumulative patch concerning pic16 port:
11415         * library directory has been re-organized,
11416         * added support for PIC18F1220,
11417         * added headers and library sources for chips 18f1220,18f6520,
11418         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
11419
11420         * configuration registers setting has changed, now each supported
11421         device has a complete description of the registers it uses,
11422         * all initialisations are moved to idata sections, these section
11423         can be absolute or relocatable,
11424         * fixed initialisation of codespace variables,
11425         * fixed warning about PCLATU and gpsim,
11426         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
11427         * (genAssign): use table reads when assigning from variables in codespace,
11428         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
11429         char/int variables placed in codespace,
11430         * (pic16_emitConfigRegs): NEW, emits a list with configuration
11431         registers set in .asm file, no need for --pomit-config-words anymore,
11432         * (pic16glue): some 8051 legacy segments are commented out
11433         (to be removed completely),
11434         * added support for alternative assembler and linker with --asm=
11435         and --link= command line arguments,
11436         * peepholes are disabled automatically in the port, no need to
11437         specify on command line,
11438         * port supports natively char/int/long multiplication, but converts
11439         all divisions to support functions,
11440         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
11441         to the file set in variable $2,
11442         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
11443         strings in ASCII format and not in hex,
11444         * ralloc.c (serialRegAssign): added a triplet of conditional calls
11445         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
11446         allocate proper register if iCodes aren't temporary,
11447
11448 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
11449
11450         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
11451
11452 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
11453
11454         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
11455         is commented out
11456
11457 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11458
11459         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
11460         computed address is reused
11461         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
11462         multi-byte bitfields
11463
11464 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11465
11466         * src/z80/gen.c: (genArrayInit): must check for pointers too
11467
11468 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11469
11470         * support/regression/tests/zeropad.c: never meant to commit the
11471           nestedstruct test: removed, added check for GCC version
11472
11473 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
11474
11475         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
11476         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
11477         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
11478           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
11479           bugs 928906 and 954082 half-empty initializers
11480         * src/SDCCsymt.h,
11481         * src/SDCCsymt.c (getAllocSize): added for above fix
11482         * src/z80/gen.c (genArrayInit): fixed bug 741044
11483         * support/regression/tests/zeropad.c: added tests
11484
11485 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
11486
11487         * src/pic16/device.c (pic16_dump_section): corrected bug which
11488         caused some symbols of the libraries to be misplaced
11489
11490 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11491
11492         * src/pic16/glue.c,
11493         * src/pic16/ralloc.h,
11494         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
11495         to fix conflict with pic port
11496
11497 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11498
11499         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
11500         externs configuration variables,
11501         * src/pic16/ralloc.h,
11502         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
11503         prototype in header, commented out some debug messages
11504
11505 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
11506
11507         * src/pic16/glue.c,
11508         * src/pic16/main.c,
11509         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
11510         for gpasm COFF object generation. Thanks to D. Hawkins for
11511         his patch info
11512
11513 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11514
11515         * src/ds390/main.c,
11516         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
11517         Brock for spotting this)
11518         * src/ds390/gen.c (genEndFunction),
11519         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
11520         interrupt handler and critical. Disable push/pop optimizations when
11521         peephole optimizations disabled.
11522
11523 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11524
11525         Updated pic16 library sources and headers.
11526         * device/lib/pic16/pic18f*/ ,
11527         * device/include/pic16/*.h: modified to handle structured SFR
11528         definitions
11529
11530 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11531
11532         * src/port.h (PORT structure): added hook initPaths, now each
11533         port can declare its own default search paths,
11534         which can been seen with the --print-search-dirs option,
11535         see pic16 port for example,
11536         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
11537         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
11538         * (doPrintSearchDirs): NEW, replaces in a central manner the
11539         printing of search dirs which was split in set*Paths functions,
11540         * (main): added call to port->initPaths and doPrintSearchDirs,
11541         * src/avr/main.c,
11542         * src/ds390/main.c,
11543         * src/hc08/main.c,
11544         * src/izt/i186.c,
11545         * src/izt/tlcs900h.c,
11546         * src/mcs51/main.c,
11547         * src/pic/main.c,
11548         * src/pic16/main.c: modified port structures to reflect addition of
11549         initPaths hook,
11550
11551         * src/pic16/device.c (regCompare): registers are finally sorted by name,
11552         * (pic16_dump_section): for registers in same address reserve memory once,
11553         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
11554         to no_banksel,
11555         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
11556         result is greater in size than right or left,
11557         * (pic16_genUMult8X8_8): there are some cases where the result can
11558         be 16 bits size, so handle these,
11559         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
11560         * (pic16_outBitC): modified to emit pcodes,
11561         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
11562         or not,
11563         * (genDivOneByte): implemented algorithm to divide 8-bits,
11564         * (genCmp): uncommented goto, but issues still exist,
11565         * (genAnd): fixed a bug with variables >8bits,
11566         * (genPackBits): optimization added that uses BCF/BSF to change a
11567         single bit,
11568         * (genAssign): fixed bug when assigning floating point literals,
11569         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
11570         __sdcc_gsinit_startup label,
11571         * src/pic16/main.c (_pic16_init): removed search directory
11572         initialisations,
11573         * (_pic16_initPaths): NEW, used to initialise search directories,
11574         * (_hasNativeMulFor): support functions for all except char/int
11575         multiplication, and char division,
11576         * (PIC16_port struct): modified entry for native mul support,
11577         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
11578         no_banksel option,
11579         * (buildCallTree): call to register_usage is ifdef'ed out,
11580
11581 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11582
11583         * device/include/string.h: applied Stas Sergeev's patch to make this
11584         header file compatible with the preprocessor -Wundef option
11585         * src/SDCCmain.c (main): abort compilation if preprocessor reports
11586         failure (fixes bug #941458)
11587
11588 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11589
11590         * src/SDCCopt.c (killDeadCode): fixed bug #907733
11591         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
11592         that the variable, not the function, should be static
11593         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
11594         to be consistent with non-literal case
11595
11596 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11597
11598         * src/SDCCast.c (isConformingBody): fixed bug #949967
11599         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
11600         convilong): fixed bug #952086
11601
11602 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11603
11604         * src/SDCCmem.c (allocVariables): fixed bug #955321
11605
11606 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11607
11608         * src/hc08/main.c (_hc08_genAssemblerEnd),
11609         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
11610         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
11611         completely eliminated the use of a temporary file
11612         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
11613         when more than one file linked
11614         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
11615
11616 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11617
11618         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
11619         which fixes bug #543481
11620         * support/regression/tests/bug-751703.c: fixed comments left from a
11621         cut and paste error
11622         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
11623         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
11624         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
11625         scopes
11626         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
11627         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
11628         are now changed to underscores in moduleName
11629
11630 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11631
11632         * as/mcs51/lkmem.c: better fix for bug #954173
11633
11634 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
11635         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11636
11637         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
11638         * device/include/c8051f000.h,
11639         * device/include/c8051f120.h,
11640         * device/include/c8051f300.h,
11641         * device/include/c8051f310.h,
11642         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
11643         PWM16) and detab'ed
11644
11645 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11646
11647         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
11648         and mailing lists, doc'ed --no-peep-comments, removed reference
11649         to knoppix (newest version has no LyX/LaTeX), other minor changes
11650         * src/SDCCglue.c (glue): save 2 bytes stack space with
11651         option --main-return. The ljmp could probably be avoided too
11652
11653 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11654
11655         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
11656
11657 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11658
11659         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
11660         * src/SDCCopt.c (isLocalWithoutDef),
11661         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
11662         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
11663         (credit to Maarten Brock for patch #949363, on which this is based)
11664         * support/regression/tests/bug-751703.c: some test cases of extern used
11665         within inner scopes.
11666
11667 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11668
11669         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
11670         SPEC_STRUCT
11671         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
11672         struct definitions
11673         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
11674         dwWriteLabel): fix to create valid debugger symbols even when
11675         the module name has non-alphanumeric symbols in it
11676         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
11677         when a variable's allocation has been optimized away
11678
11679
11680 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11681
11682         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
11683         * src/hc08/main.c,
11684         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
11685         * src/mcs51/main.c,
11686         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
11687         * src/ds390/main.c,
11688         * src/z80/gen.c (z80_emitDebuggerSymbol),
11689         * src/z80/main.c,
11690         * src/pic/gen.c (pic14_emitDebuggerSymbol),
11691         * src/pic/main.c,
11692         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
11693         * src/pic16/main.c,
11694         * src/avr/gen.c (avr_emitDebuggerSymbol),
11695         * src/avr/main.c,
11696         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
11697         * src/xa51/main.c,
11698         * src/SDCCdebug.c (emitDebuggerSymbol),
11699         * src/SDCCdebug.h,
11700         * src/port.h: added a debugger struct to the port struct. Added a
11701         callback for defining debugger symbols
11702
11703         * src/SDCCast.c (createLabel),
11704         * src/SDCC.y (labeled_statement): mark all compiler generated labels
11705         with isitmp = 1
11706         * src/SDCCicode.h,
11707         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
11708         iCode back to the ast for the function
11709
11710         * src/hc08/ralloc.c (hc08_assignRegisters),
11711         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
11712         unneeded fields from the regs struct.
11713         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
11714         pushReg() & pullReg() functions instead of emitcode()
11715
11716         * src/hc08/gen.c (genLabel, genhc08Code),
11717         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
11718
11719         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
11720         debugger hooks
11721
11722         * src/hc08/gen.c (genEndFunction, genhc08Code),
11723         * src/hc08/gen.h,
11724         * src/mcs51/gen.c (genEndFunction, gen51Code),
11725         * src/mcs51/gen.h,
11726         * src/ds390/gen.c (genEndFunction, gen390Code),
11727         * src/ds390/gen.h,
11728         * src/z80/gen.c (genEndFunction, genZ80Code),
11729         * src/z80/gen.h,
11730         * src/z80/z80.h,
11731         * src/pic/gen.c (genEndFunction, genpic14Code),
11732         * src/pic/gen.h,
11733         * src/pic16/gen.c (genEndFunction, genpic16Code),
11734         * src/pic16/gen.h,
11735         * src/avr/gen.c (genEndFunction, genAVRCode),
11736         * src/avr/gen.h,
11737         * src/xa51/gen.c (genEndFunction, genXA51Code),
11738         * src/xa51/gen.h,
11739         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
11740         specific code to cdbFile.c and out of the backend code generators
11741
11742         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
11743         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
11744         starting address is now 0
11745
11746         * as/hc08/asm.h,
11747         * as/hc08/m08pst.c,
11748         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
11749         assembler directive for DWARF support
11750         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
11751
11752         * src/src.dsp,
11753         * src/Makefile.in,
11754         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
11755
11756 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11757
11758         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
11759         and inappropriate peephole optimization in jump tables
11760
11761 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11762
11763         * as/hc08/m08pst.c,
11764         * src/SDCCglue.c: sdccopt works for the hc08 port now
11765
11766 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
11767
11768         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
11769
11770 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11771
11772         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
11773
11774 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11775
11776         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
11777         rules
11778         * src/SDCCmain.c,
11779         * src/SDCCglobl.h,
11780         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
11781         comments from the peephole optimizer replacement rules
11782         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
11783         symbols
11784         * src/SDCCcse.c (updateSpillLocation),
11785         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
11786         equivalents
11787         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
11788         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
11789         objects far pointers
11790
11791 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11792
11793         * src/SDCCsymt.h: a missing part of my last change
11794         * src/pic/ralloc.c (regTypeNum),
11795         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
11796
11797 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11798
11799         * src/SDCCicode.h,
11800         * src/SDCCicode.c (aggrToPtrDclType),
11801         * src/SDCCptropt.h,
11802         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
11803         ptrPseudoSymConvert),
11804         * src/pic/ralloc.c (regTypeNum),
11805         * src/pic16/ralloc.c (regTypeNum),
11806         * src/hc08/ralloc.c (regTypeNum),
11807         * src/ds390/ralloc.c (regTypeNum),
11808         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
11809         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
11810
11811 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11812
11813         * link/z80/lkmain.c (afile),
11814         * as/hc08/lkmain.c (afile),
11815         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
11816         prevent a pointer problem when a filename has no directory and
11817         no extension specified.
11818
11819 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11820
11821         * link/z80/lkmain.c (afile): allow periods in directory names
11822         * link/z80/lkmain.c (afile),
11823         * as/mcs51/lkmain.c (afile),
11824         * as/hc08/lkmain.c (afile): allow linker script file to have an
11825         extension other than ".lnk"
11826         * link/z80/lklex.c (getfid),
11827         * link/z80/lkmain.c (parse),
11828         * as/mcs51/lklex.c (getfid),
11829         * as/mcs51/lkmain.c (parse),
11830         * as/hc08/lklex.c (getfid),
11831         * as/hc08/lkmain.c (parse): Support comments in the linker script
11832         file on lines by themselves and after filenames
11833
11834 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11835
11836         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
11837
11838 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11839
11840         * src/z80/peeph-z80.def: removed some peephole rules that don't
11841         work with multibyte arithmetic (fixed bug #937126)
11842         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
11843         to registers and not global variables
11844         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
11845         geniCodePreInc, geniCodePostDec, geniCodePreDec,
11846         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
11847         checking for assignments not internally generated (fixed bug #931895)
11848         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
11849         structure member (fixed bug #930072)
11850
11851 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11852
11853         * src/SDCCmain.c (linkEdit),
11854         * src/hc08/main.c (_hc08_parseOptions),
11855         * as/hc08/Makefile.in,
11856         * as/hc08/aslink.h,
11857         * as/hc08/asm.h,
11858         * as/hc08/m08pst.c,
11859         * as/hc08/lkrloc.c (relr, rele),
11860         * as/hc08/lkarea.c (lnkarea)
11861         * as/hc08/lkmain.c (afile, parse),
11862         * as/hc08/lkelf.c: support for ELF output
11863         * as/hc08/lks19.c (s19),
11864         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
11865
11866 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11867
11868         * as/mcs51/lkihx.c: Fixed bug #899105.
11869
11870 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11871
11872         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
11873         .dsp files from Unix to DOS.
11874
11875 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11876
11877         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
11878         function pointers; we have been compliant for several months now.
11879         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
11880         change that was accidently commented out
11881         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
11882         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
11883         bug #922319
11884
11885 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11886
11887         * src/hc08/gen.c: output of all of the internal debugging information
11888         is now controlled by the D() macro; it is disabled by default
11889
11890 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11891
11892         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
11893         harder to keep the same registers during a CAST iCode
11894         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
11895         long via int can be done in a single cast, if the signedness is
11896         correct.
11897         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
11898         putchar() in tinibios.c in ds390's library
11899
11900 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
11901
11902         * src/SDCCast.c (decorateType): fixed bug #898889,
11903         cast result of a literal complement too
11904         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
11905         fixed check for bitfields
11906
11907 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
11908
11909         * src/SDCCicode.c (geniCodeLogic): made it static,
11910         (geniCodeLogicAndOr): added in order to fix bug #905492,
11911         (ast2iCode): fixed bug #905492
11912         * support/regression/tests/bug-905492.c: added
11913         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
11914         (processParms): fixed bug #927659: don't copy parms, this will clear
11915         decorated flag
11916         * support/regression/tests/bug-927659.c: added
11917
11918 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
11919
11920         * src/SDCCast.c (addCast): don't cast float to char
11921         * device/lib/libsdcc.lib: added _memmove
11922
11923 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
11924
11925         * device/lib/large/Makefile: fixed parallel execution by
11926         replacing `make` by `$(MAKE)`
11927
11928 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11929
11930         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
11931         offsets (fixes bug #923936)
11932
11933 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
11934
11935         * device/lib/small/Makefile: fixed parallel execution by
11936         replacing `make` by `$(MAKE)`
11937
11938 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
11939
11940         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
11941
11942 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
11943
11944         * src/pic/gen.c (genCpl): multi-byte complements were not working.
11945         * src/regression/Makefile: Regression test was not running.
11946
11947 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
11948
11949         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
11950         complement if possible
11951         * src/SDCCval.c (valComplement),
11952         * src/SDCCicode.c (operandOperation): fixed complement of literal
11953         * support/regression/tests/onebyte.c (testComplement): added
11954
11955 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
11956
11957         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
11958         return an optimized tree; actually replace actParm with the new tree
11959         * src/SDCCast.h: added some parantheses to remove side effects
11960         * support/regression/tests/bug-920866.c
11961
11962 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
11963         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
11964         Bit operands were not being handled properly in the pic14 port.
11965         (now src/regression/add.c passes again).
11966
11967 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11968
11969         * src/SDCC.y (labeled_statement): case and default no longer require
11970         a following statement (RFE #893037)
11971
11972 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11973
11974         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
11975         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
11976         disabled (fixes bug #916294)
11977         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
11978         "mov a,acc"; patch provided by Lenny Story
11979         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
11980
11981 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11982
11983         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
11984         functions
11985         * src/ds390/gen.c (genFunction, genEndFunction),
11986         * src/ds390/ralloc.c (ds390_assignRegisters),
11987         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
11988         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
11989         pushed if there are parameters passed on the stack. Also, a cleaner
11990         way to decide if r0/r1 should be pushed/popped. (Together they fix
11991         bug #918693)
11992
11993 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11994
11995         * doc/sdccman.lyx,
11996         * device/lib/mcs51/crtpagesfr.asm,
11997         * device/lib/mcs51/crtxinit.asm,
11998         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
11999         to avoid confusion with Si Lab's SFRPAGE register.
12000
12001 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12002
12003         * src/SDCCglue.c (emitMaps): allow public sfr variables
12004         * src/SDCCglue.c (initialComments): include compiler build date
12005         with compiler version and put the timestamp of the generated
12006         assembly file on a serperate line to be less confusing.
12007         * src/port.h: added genInitStartup hook
12008         * src/avr/main.c,
12009         * src/ds390/main.c,
12010         * src/hc08/main.c,
12011         * src/pic/main.c,
12012         * src/pic16/main.c,
12013         * src/xa51/main.c,
12014         * src/z80/main.c: genInitStartup initialize as NULL (default to
12015         historical behaviour)
12016         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
12017         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
12018         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
12019         library instead of hard coding it into the compiler.
12020         * support/regression/ports/mcs51-stack-auto/spec.mk,
12021         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
12022         * device/lib/mcs51/Makefile,
12023         * device/lib/small/Makefile,
12024         * device/lib/large/Makefile,
12025         * device/lib/mcs51/crtpagesfr.asm,
12026         * device/lib/mcs51/crtstart.asm,
12027         * device/lib/mcs51/crtxclear.asm,
12028         * device/lib/mcs51/crtxinit.asm,
12029         * device/lib/mcs51/crtclear.asm,
12030         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
12031         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
12032         and into user configurable files.
12033         * device/lib/clean.mk: clean mcs51 directory too
12034         * support/regression/tests/longlit.c: added static to T1 declaration
12035         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
12036         accesses in the initialization code
12037
12038 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12039
12040         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
12041         OSCTRIMVAL as noted in bug #916008
12042
12043 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12044
12045         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
12046         in loops with multiple exits (reported as incorrect registers
12047         used by Martin Helmling in Sdcc-user list)
12048
12049 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12050
12051         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
12052         made ds390 register extensions look less like error messages
12053
12054 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12055
12056         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
12057         reported by Adam Wozniak in Sdcc-user list
12058
12059 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
12060
12061         * src/SDCCast.c (decorateType): fixed with bug and promotion in
12062         arithmetic optimizations, added debug output
12063
12064 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
12065
12066         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
12067         * sdcc.spec: updated and split sdcc into 3 rpms
12068         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
12069         needed for literals of LEFT_OP and '+'
12070         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
12071         introduced RESULT_TYPE_NOPROM
12072         (geniCodeMultiply): fixed logic for decision if mul is optimized to
12073         left shift
12074         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
12075         limited promotion to int only for '*'
12076         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
12077
12078 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
12079
12080         * src/pic16/gen.c (genSkip),
12081         (genc16bit2lit), (gencjneshort): commented out
12082         (is_LitOp): new helper function, checks operand type
12083         (genCmpEq): rewritten
12084
12085 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
12086
12087         * support/regression/tests/bug-908454.c: added
12088
12089 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
12090
12091         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
12092         * src/SDCCicode.c (usualBinaryConversions): op needs int type
12093         (geniCodeCast): cosmetic, don't preserve bit storage class
12094         (geniCodeLeftShift): added promotion
12095         (geniCodeLogic): fixed regression
12096         * src/SDCCsymt.c (computeTypeOr): accept bits too
12097         (compareType): 2nd part of fix for bug #908454, needed for bitfields
12098
12099 2004-03-07  Borut Razem <borut.razem AT siol.net>
12100
12101         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
12102
12103 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
12104
12105         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
12106         version of pic16_genPackRegisters which does not check if ic is a
12107         CAST operator,
12108         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
12109         function cause string1.c regression test fails
12110
12111 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
12112
12113         * sim/ucsim/configure.in,
12114         * sim/ucsim/configure,
12115         * sim/ucsim/doc/Makefile.in: use docdir
12116         * src/SDCC.y: fixed sbit atrributes
12117         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
12118         * src/SDCCast.c (decorateType): |^& need special promotion handling
12119         * src/SDCCast.h,
12120         * src/SDCCsymt.h: moved definition of RESULT_TYPE
12121         * src/SDCCsymt.h (computeType),
12122         * src/SDCCicode.c: computeType() needs op
12123         * src/SDCCsymt.c (checkTypeSanity),
12124         * doc/sddman.lyx: "plain" bitfields are unsigned
12125         * src/SDCCsymt.c (computeTypeOr): added
12126         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
12127         |^& ops
12128         * src/SDCCval.c (val*): computeType() needs op
12129         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
12130         * support/regression/tests/onebyte.c: added tests for |^&
12131
12132 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
12133
12134         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
12135         for writing icode into asm output.
12136
12137 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
12138
12139         * src/pic16/device.c: added some debug lines enabled
12140         with macro DEBUG_CHECK,
12141         * src/pic16/genarith.c: more debug in genPlus,
12142         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
12143         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
12144         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
12145         * (aopForSym): onStack symbols are re-placed in data memspace,
12146         and onStack flag is cleared,
12147         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
12148         copy temporary pcodeop,
12149         * (genPcall): added warning for not updating PCLATU,
12150         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
12151         always true for pic16 port,
12152         * (genMultOneWord): NEW, supports integer multiplication,
12153         * (genMult): modified to call genMultOneWord,
12154         * (ifxForOp): added warning when return NULL,
12155         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
12156         flag is set before call to operandFromSymbol for implicit
12157         added structures,
12158         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
12159         options.intlong_rent are set by default,
12160         * (_hasNativeMulFor): modified to allow port generation of integer
12161         multiplication,
12162         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
12163         set regtype to REG_SFR for all registers, restricting seting the
12164         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
12165
12166 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12167
12168         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
12169         more than 500 times in the regression tests
12170
12171 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12172
12173         * support/Util/SDCCerr.h,
12174         * support/Util/SDCCerr.c,
12175         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
12176         enumerator_list),
12177         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
12178         for symbol conflicts.
12179         * support/valdiags/tests/enum.c,
12180         * support/valdiags/tests/tentdecl.c,
12181         * support/valdiags/tests/struct.c: expect possible error messages
12182         referring to original symbol definitions.
12183         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
12184         * src/SDCCsymt.h,
12185         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
12186
12187 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
12188
12189         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
12190
12191 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
12192
12193         * src/pic16/ralloc.c (newReg): fixed bug #908929
12194
12195 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12196
12197         * src/ds390/gen.c: added missing #include "main.h"
12198
12199 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
12200
12201         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
12202         checking if symbol is already in set,
12203         * src/pic16/device.h: prototype for checkAddSym,
12204         * src/pic16/gen.c: (_G): added entry interruptvector,
12205         * (assignResultValue): removed some commented out lines,
12206         * (genFunction): check for ISR via sym->type, absolute section for
12207         interrupt code is created via a new pBlock, the goto instruction is
12208         placed now correctly at the interrupt vector position, changed all
12209         references from ivec to _G.interruptvector,
12210         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
12211         is the interrupt is a high priority one, same for return from ISR,
12212         * src/pic16/glue.c: changed all calls of addSetHead for publics and
12213         externs to calls of checkAddSym,
12214         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
12215         pic16_pcode_verbose flag is set,
12216         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
12217         * src/pic16/pcoderegs.c: message about how many registers are saved
12218         will only be emitted if pic16_pcode_verbose flag is set,
12219
12220 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12221
12222         * src/ds390/ralloc.h,
12223         * src/ds390/ralloc.c (ds390_regWithIdx),
12224         * src/ds390/gen.c (emitcode),
12225         * src/ds390/main.h,
12226         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
12227         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
12228         ds390operandCompare, getRegsRead, getRegsWritten,
12229         initializeAsmLineNode): customized instruction size calculation for
12230         ds390, started basis for some register optimizations
12231         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
12232         corresponding assembly output
12233         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
12234         missing push/pop of r0/r1. Optimized push/pops
12235
12236 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12237
12238         * src/mcs51/main.c (instructionSize): fixed ACALL size
12239         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
12240
12241 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
12242
12243         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
12244         the sorting of rlist with NULL elements
12245         * (print_idataType, print_idata): NEW to create idata sections
12246         * src/pic16/device.h: idataSymSet new variable
12247         * src/pic16/gen.c (genFunction): fixed some bugs in string
12248         comparing, improved the absolute section creation for ISRs,
12249         added FSR0L/FSR0H in registers that are saved in an ISR,
12250         * (genInline): fixed the processing of inline snippets,
12251         now they undergo no process by the peephole optimizer
12252         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
12253         are placed in idataSymSet,
12254         * (pic16emitStaticSeg): extern symbols are added in externs,
12255         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
12256         switching when aboslute variables are placed in access bank memory
12257         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
12258         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
12259         commented out with #if,
12260         * (pic16_packRegisters): reintroduce the check for CAST because some
12261         symbols are not correctly handled,
12262         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
12263         pCodeInstruction instead of pCode,
12264         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
12265         pCodeAsmDir definition,
12266         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
12267         directive, then the argument directive is emitted without the leading
12268         tab, hack for inline labels which must be in the first column,
12269         * (compareLabel,pic16_findNextInstruction),
12270         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
12271         * (insertBankSwitch): modified for the new pCodeAsmDir,
12272
12273 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12274         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
12275
12276         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
12277         instance,
12278         * (pushSide): commented out with #if,
12279         * (assignResultValue): fixed some typos in saving
12280         registers,
12281         * (genPcall): FIXED and sync'ed with genCall,
12282         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
12283         * (genNearPointerGet): fixed to handle some more cases,
12284         implementation scheme via table reads,
12285         * (genConstPointerGet): modified to access code memory correct,
12286         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
12287         and improved to handle some cases
12288         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
12289         instead of "RETLW" for init data
12290         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
12291         not IN_DIRSPACE, work around to reduce bank switching when aboslute
12292         variables are placed in access bank memory (<0x80 and >=0xf80),
12293         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
12294         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
12295         TBLWT_POSTDEC,TBLWT_PREINC
12296         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
12297         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
12298         directives
12299         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
12300         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
12301         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
12302         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
12303
12304 2004-02-29  Borut Razem <borut.razem AT siol.net>
12305
12306         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
12307         support/Util/findme.h, support/Util/system.h: enhance binary relative
12308         search for lib and include by using findProgramPath()
12309
12310 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12311
12312         * src/SDCCpeeph.h,
12313         * src/SDCCpeeph.c (pcDistance),
12314         * src/port.h,
12315         * src/mcs51/ralloc.h,
12316         * src/mcs51/ralloc.c (mcs51_regWithIdx),
12317         * src/mcs51/main.h,
12318         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
12319         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
12320         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
12321         size calculation port specific, started basis for some register
12322         optimizations
12323         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
12324         missing push/pop of r0/r1. Optimized push/pops
12325         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
12326         * device/lib/_modsint.c (_modsint),
12327         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
12328         and stack version so regression tests pass
12329
12330 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
12331
12332         * src/Makefile.in (dep): include SLIBOBJS in dependency check
12333         * src/SDCCast.c (decorateType): catch another small optimization
12334         with '?' operator
12335         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
12336         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
12337         modified to finally use computeType() all over SDCC,
12338         see Feature Request #877103
12339         * src/SDCCval.h: cosmetic
12340         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
12341         valCompare(); regression tested in muldiv.c
12342         * support/regression/tests/muldiv.c (testMod): mod sign follows
12343         dividend only
12344
12345 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
12346
12347         * src/SDCCast.c (decorateType): fixed bug #902362
12348         * doc/INSTALL.txt: fixed install instructions for win32
12349
12350 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
12351
12352         * device/include/Makefile.in (install): fixed by replacing spaces
12353         by tabs
12354         * doc/README.txt,
12355         * doc/INSTALL.txt: updated for release
12356         * doc/sdccman.lyx: added warning for --xstack being buggy
12357
12358 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
12359
12360         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
12361         to eliminate build warnings.
12362         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
12363
12364 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
12365            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12366
12367         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
12368         removed -penable-stack, added comment for stack pragma, added
12369         warning for not initializing the stack/frame registers, removed
12370         comment at interrupts section
12371
12372         Stack is made permanent, there is no ability to disable stack usage.
12373         * src/pic16/device.h,
12374         * src/pic16/device.c: removed all references to USE_STACK macro,
12375         * src/pic16/device.c (pic16_dump_section): when no elements in
12376         rlist, free rlist before return,
12377         * (pic16_dump_int_registers): NEW, internal registers are a new set
12378         of general purpose registers reused by each function,
12379         * (checkAddReg): returns 1 if registers is added to set,
12380         * (pic16_groupRegistersInSection): when a registers is of type
12381         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
12382         * src/pic16/device.h: memRange and Assigned Memory are deleted,
12383         SRCASECMP macro is moved here from device.c
12384         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
12385         PO_PCLATU, PO_PRODL, PO_PRODH,
12386         * (pic16_pCodeOpType, genMinus,
12387         changed compares to "a" register, with AOP_ACC,
12388         * (pic16_genPlus): fixed some bugs and indented properly,
12389         * (pic16_addSign): changed size to size+offset in the MOVWF
12390         instruction,
12391         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
12392         multiply 8-bit operand by literal, result is 8-bit,
12393         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
12394         multiply 2 8-bit operand, result is 8-bit,
12395         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
12396         genUMult8X*_16,
12397         * src/pic16/gen.c: changed accUse to contain WREG only,
12398         * (pic16_emitcomment): renamed to pic16_emitpcomment,
12399         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
12400         true, do not use immediate addressing any more unless sym is a
12401         pointer in codespace,
12402         * (aopForRemat): do not use immediate addressing when symbol not in
12403         codespace and when symbol's address is requested,
12404         * (aopOp): for-loop in if(sym->accUse) is modified for the new
12405         accUse size (= 1),
12406         * (aopGet): added case for AOP_ACC and don't return "accumulator
12407         bug" but WREG instead,
12408         * (popGetTempReg): pushes contents of temporary register in stack,
12409         * (popReleaseTempReg): pops contents of temporary register from
12410         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
12411         * (pic16_popGet): separated case AOP_ACC to return register WREG
12412         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
12413         or PO_IMMEDIATE and initializes their instance/offset appropriately,
12414         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
12415         the use of immediate pointers to certain cases only.
12416
12417         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
12418         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
12419         * (assignResultValue, genCall, genRet): modified to use the new
12420         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
12421         genPcall is still broken,
12422         * (genFunction): added code to create 'A' type pBlocks when
12423         interrupt functions are generated, code not extensively tested yet,
12424         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
12425         * (genEndFunction): modified so ISRs pop stored registers from stack,
12426         * (genMultOneByte): cleanup,
12427         * (AccRsh): added flag andmask, to and result with appropriate mask,
12428         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
12429         * (genDataPointerGet): fixed and reenabled its use,
12430         * (genNearDataPointerGet): bugs fixed,
12431         * (genDataPointerSet): bugs fixed,
12432         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
12433         pic16_DumpSymbol, pic16_DumpOp,
12434         * src/pic16/genutils.h: function prototypes for the above functions,
12435         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
12436         pointers,
12437         * (pic16emitRegularMap): many many many improvements, but needs a
12438         major cleanup,
12439         * src/pic16/main.c: enable_stack in pic16_options is removed,
12440         * (_pic16_parseOptions): removed command line options -penable-stack,
12441         * (_process_pragma): emit stack symbol only when stack pragma is
12442         processed,
12443         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
12444         redirected to FSR0L/FSR0H pair,
12445         * (pic16_get_op, pic16_get_op2): modifications and improvements,
12446         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
12447         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
12448         for immediates,
12449         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
12450         * (dumpPicOptype): NEW,
12451         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
12452         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
12453         with movff instruction,
12454         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
12455         added pic16_int_regs, some packRegsFor* functions are commented out,
12456         because produce errors,
12457         * src/pic16/NOTES: minor modifications
12458
12459 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12460
12461         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
12462         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
12463         --pack-iram.
12464         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
12465         * as/mcs51/lkaomf51.c: fixed bug #895763
12466
12467 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
12468
12469         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
12470
12471 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12472
12473         * doc/sdccman.lyx: added details about the HC08 storage classes and
12474         interrupts, fixed the register usage info for z80 & gbz80
12475
12476 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
12477
12478         * doc/sdccman.lyx: added more pic16 port documentation
12479         * device/include/pic16/: added header pic18fregs.h
12480
12481 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
12482
12483         * doc/sdccman.lyx: added Vangelis' contribution
12484
12485 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12486
12487         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
12488         extend to the next CALL or PCALL, not just to the next CALL.
12489
12490 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
12491
12492         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
12493
12494 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12495
12496         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
12497         bug #895752 and a better fix for bug #716790
12498
12499 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12500
12501         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
12502
12503 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12504
12505         * doc/sdccman.lyx: minor changes, minor changed
12506
12507 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
12508
12509         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
12510         which can't handle SDCC_NEWONEBYTEOPS,
12511         (geniCodeMultiply): removed conversion from mult to shift for pic14
12512         and pic16
12513
12514 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12515
12516         * src/hc08/gen.h,
12517         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
12518         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
12519         thus fixing bug #895406
12520
12521 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
12522
12523         * device/lib/_modsint.c,
12524         * device/lib/_modslong.c: sign follows divisor only
12525         * src/hc08/gen.c (genMultOneByte): if result size is 1,
12526         signs or signedness can be ignored
12527         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
12528         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
12529         added optimization for IFX,
12530         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
12531         arguments;
12532         reenabled optimization for IFX, which was removed on 2004-01-11
12533         * src/SDCCast.h: added return type IFX
12534         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
12535         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
12536         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
12537         SDCC_OLDONEBYTEOPS selects the old behaviour
12538         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
12539         changed again and commented promotion rule
12540         * src/SDCCval.c (valDiv): promotion no longer necessary
12541         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
12542         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
12543         rewritten
12544         * support/regression/tests/onebyte.c: added
12545
12546 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
12547
12548         * gen.c (genInline): reverted to old code for assemnling inline
12549         code because of bug reported James Chadd
12550
12551 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
12552
12553         * ralloc.h: missing declarations from previous patch,
12554         seems that patch for ralloc.h was never applied, fixed
12555
12556 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12557            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
12558
12559         * pcode.c,
12560         * pcode.h,
12561         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
12562         indirect addressing. Marked FSR0 as deprecated
12563         * gen.c (pointerCode): commented out, not needed now
12564         (pic16_popGet2p): new MOVFF helper function
12565         (genGenPointerGet),
12566         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
12567         (shiftRLong): removed duplicate debugging info
12568
12569 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12570
12571         * src/ds390/gen.c (genNearPointerGet),
12572         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
12573         optimization with bits, but not bitfields.
12574         * src/ds390/ralloc.c (packRegisters),
12575         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
12576
12577 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
12578
12579         * src/SDCCcse.c (algebraicOpts): copy operands before modification
12580
12581 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12582
12583         * src/SDCCsymt.h,
12584         * src/SDCCicode.c (operandFromSymbol),
12585         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
12586         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
12587         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
12588         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
12589         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
12590         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
12591         bug #892038
12592         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
12593         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
12594         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
12595         * src/SDCCsymt.c (newSymbol),
12596         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
12597         enumerator_list),
12598         * src/SDCCval.h,
12599         * src/SDCCval.c (newiList): fixed bug #885705
12600
12601 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12602
12603         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
12604         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
12605
12606 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12607
12608         * device/include/c8051f120.h,
12609         * device/include/c8051f300.h,
12610         * device/include/c8051f310.h: added/updated header files for Silicon
12611         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
12612         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
12613         in new section Submitting patches
12614
12615 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12616
12617         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
12618         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12619         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12620         genGenPointerSet),
12621         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
12622         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12623         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12624         genGenPointerSet),
12625         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
12626         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12627         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12628         genGenPointerSet),
12629         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
12630         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12631         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12632         genGenPointerSet): fixed bug #892400
12633         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
12634         to eliminate build warnings.
12635         * src/SDCCast.c (processParms),
12636         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
12637         fixed bug 751859
12638         * support/valdiag/valdiag.py: added GCC to the list of defines active
12639         when compiling with gcc
12640
12641 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12642
12643         * support/Util/SDCCerr.h,
12644         * support/Util/SDCCerr.c,
12645         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
12646         with an incomplete type (fixed bug #883734)
12647         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
12648
12649 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12650
12651         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
12652
12653 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12654
12655         * src/SDCCast.c (decorateType),
12656         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
12657         function pointer implementation
12658         * support/regression/tests/funptrs.c: added tests to verify both forms
12659         of function pointers work correctly. Added tests to verify parameters
12660         are passed in the correct order.
12661
12662 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
12663
12664         * device.c (regCompare): registers are sorted by ascending
12665         address and increasing size,
12666         * main.c (_pic16_finaliseOptions): removed the declaration
12667         of compiler macro MCU. Now a macro of the format pic18fxxxx
12668         will be defined from the command line
12669
12670 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12671             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
12672
12673         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
12674         PCOP_RLCF was overwritten!
12675         * gen.c (genSkip): commented out calls to pic16_emitcode,
12676         * (genCmpEQ): fixed "long" compares, only high word did get compared,
12677         * (genlshTwo),
12678         * (genRRC): added debugging info,
12679         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
12680         overwritten while shifting,
12681         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
12682         overwritten while shifting,
12683         * (AccLsh),
12684         * (AccRsh),
12685         * (shiftLLeftOrResult),
12686         * (shiftRLeftOrResult),
12687         * (shiftRLong),
12688         * (shiftLLong): Implemented with pic16_emitpcode
12689         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
12690         * (genLeftShift): Fixed bug, operand for shift by variable always
12691         was "and"ed with 0x0f,
12692         * (genLeftShiftLiteral),
12693         * (genrshTwo),
12694         * (genRightShiftLiteral): added debugging info,
12695         * (genrshFour): added comment,
12696         * (genRightShift): determined signedness from operand "left"
12697         instead of "result"
12698
12699 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12700
12701         * src/SDCCicode.c (geniCodeParms),
12702         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
12703         function pointers, fixed function pointer bugs #861242 and #861896
12704
12705 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12706
12707         * device/include/c8051f000.h,
12708         * device/include/c8051f120.h,
12709         * device/include/c8051f300.h: added header files for Silicon
12710         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
12711
12712 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
12713
12714         * src/SDCCast.c (processParams): added new type flow and restructured
12715         (gatherAutoInit): added new type flow
12716         (addCast): cosmetic changes
12717         (getLeftResultType): added new type flow for array indices, patch
12718         provided by Stas, see FR #877103
12719         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
12720         array index patch by Stas
12721         * src/SDCCast.h: added prototype getResultTypeFromType()
12722         * src/SDCCval.h,
12723         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
12724         * src/pic/glue.c (pic14emitStaticSeg),
12725         * src/pic16/glue.c (pic16emitStaticSeg),
12726         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
12727         for initialization of symbols
12728         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
12729         * support/Util/SDCCerr.h:
12730         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
12731         * .version: bumped version number to 2.3.8
12732         * device/include/Makefile.in (install),
12733         * doc/Makefile (install): changed to 'rm `find ...`' construct to
12734         avoid warnings
12735
12736 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
12737
12738         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
12739         Slade Rich fixed an optimization bug
12740         * src/pic/pcodepeep.c,
12741         * src/pic/pcoderegs.c
12742         * doc/Makefile (install): added test for directory
12743
12744 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12745
12746         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
12747         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
12748         * src/pic/ralloc.c (getRegPtr, getRegGpr),
12749         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
12750         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
12751         * as/mcs51/asexpr.c (term),
12752         * as/hc08/asexpr.c (term): fixed bug #887146
12753
12754 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12755
12756         * src/z80/gen.c (genMult): handle single byte result product
12757         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
12758         DUMMY_READ_VOLATILE (fixed bug #886367)
12759
12760 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
12761
12762         * support/regression/tests/libmullong.c: fixed logic, on little endian
12763         hosts we ended without a mullong_wrapper()
12764
12765 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12766
12767         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
12768         virus/worm forged address usage.
12769
12770 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
12771
12772         Fixed promotion, it should be done on AST level:
12773         * src/SDCCast.c (addCast): added promotion to int
12774         (decorateType): updated call to upCast()
12775         * src/SDCCicode.c (geniCodeLeftShift): removed call to
12776         usualUnaryConversions()
12777
12778 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
12779
12780         * support/regression/tests/literalop.c (mulWrapper): Added a
12781         wrapper to remove integer overflow warnings.
12782
12783         * support/regression/tests/float_trans.c: Made work on host.
12784
12785         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
12786         location of sz80.
12787
12788         * support/regression/generate-cases.py (main): Changed from inline
12789         to a main method.
12790
12791         * doc/Makefile (install): Changed to depth first to get rid of
12792         missing directory install warning.
12793
12794         * as/Makefile (install-doc): Made work on Mac.
12795
12796 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
12797
12798         * src/SDCCast.c: added an additional type flow in decorateType() of
12799         opposite direction, see feature request #860006; it's enabled at runtime
12800         by setting the environment variable SDCC_NEWTYPEFLOW
12801         * src/SDCCast.h: changed prototype of decorateType()
12802         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
12803         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
12804         'char' to 'int' can be omitted, if both operands are 'unsigned char';
12805         see feature request #877103
12806         * src/SDCCval.c: updated call of decorateType()
12807         (valBitwise): fixed bug #882876
12808         (valMinus): added promotion
12809         (valLogicAndOr): result is unsigned
12810         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
12811         * src/SDCCsymt.c (computeType),
12812         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
12813         must not cause an unsigned operation
12814         * src/pic/glue (pic14emitRegularMap),
12815         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
12816
12817 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
12818
12819         * src/pic/pcode.c (PCodeID): commented out left over debug code
12820
12821 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
12822
12823         * support/valdiag/tests/overflow.c: added shift tests
12824         * src/pic/device.c,
12825         * src/pic/gen.c,
12826         * src/pic/gen.h,
12827         * src/pic/glue.c,
12828         * src/pic/main.c,
12829         * src/pic/pcode.c,
12830         * src/pic/pcode.h,
12831         * src/pic/pcodepeep.c,
12832         * src/pic/pcoderegs.c,
12833         * src/pic/ralloc.c,
12834         * src/pic/ralloc.h: applied patch from Slade Rich;
12835         added support for multiple code pages and multiple RAM banks on the
12836         PIC 14 port. The ASM files now no longer simply assume all the
12837         code / RAM are in the same page / bank. This means the linker can
12838         safely allocate code/RAM of separate ASM files to different pages/banks.
12839         * doc/sdccman.lyx: added Slade's tips
12840         * src/mcs51/peeph.def: fixed bug #880768
12841
12842 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12843
12844         * src/hc08/ralloc.c (rematStr): fixed bug #879282
12845         * src/SDCCast.c (decorateType): fixed bug #880197
12846
12847 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
12848
12849         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
12850         getopt.h.
12851
12852         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
12853         strtof is not part of C89 and isn't included with Mac OS X.
12854
12855 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12856
12857         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
12858         shiftL2Left2Result): fixed bug #879326
12859         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
12860         (genMultOneByte): fixed bug in signed vs unsigned multiplication
12861         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
12862         address fetch for clr instruction
12863         * device/lib/hc08/_mulint.c: created optimized assembly version
12864         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
12865
12866 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
12867
12868         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
12869         proposed in FR #877103
12870
12871 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
12872
12873         * src/SDCCval.c (cheapestVal): added missing checks
12874         * src/SDCCicode.c (usualBinaryConversions): fixed condition
12875         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
12876
12877 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
12878
12879         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
12880         equal operands
12881
12882 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
12883
12884         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
12885         loaded with the linker search paths (-L arguments) and the libraries
12886         to be linked with the current source (-l arguments). Changes
12887         currently will affect only the pic16 port.
12888         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
12889         include path the port specific paths and port specific libraries,
12890         * gplink command now contains the $3 argument,
12891         * src/pic16/device.h,
12892         * src/pic16/device.c,: structure PIC_device is made public and
12893         renamed to PIC16_device, the same for variable Pics which is renamed
12894         to Pics16. Updated all references to them.
12895         * src/pic16/glue.c (pic16glue): corrected bug with code
12896         initialization which bypassed the variable initializations block.
12897
12898         * device/lib/pic16/Makefile.rules: removed --penable-stack from
12899         COMPILE_FLAGS and added the --nostdinc option
12900
12901 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12902
12903         * device/include/mc68hc908jb8.h: Register defs for another member
12904         of the hc08 family. Contributed by Bjorn Bringert - thanks!
12905
12906 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
12907
12908         Documenting changes from previous commits.
12909         * configure.in (version 1.56),
12910         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
12911         when generating output files to configure the pic16 library,
12912         but now I've commented it out, since gputils aren't installed in the
12913         SF compile farm, so library won't compile
12914
12915         * device/lib/Makefile.in (version 1.56): initially I've added in
12916         target 'all' the prerequestive 'model-pic16' so it compiled the
12917         pic16 library, but now I've commented it out for the same reasons
12918         above,
12919         * added targets 'model-pic16' and 'objects-pic16' to compile the
12920         library
12921         * added target 'port-specific-objects-pic16' to handle the
12922         generated libraries and copy them into the build/ directory
12923         * added target 'clean-intermediate-pic16' to clean intermediate
12924         files into pic16 directory
12925         * in target 'installdirs' added line to create directory pic16 in
12926         the installation path
12927
12928         * device/include/Makefile.in (version 1.11): in target 'install'
12929         added lines to copy all header files to installation path,
12930         * in target 'installdirs' added line create directory for pic16
12931         headers in the installation path
12932
12933 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
12934
12935         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
12936          a function call
12937
12938 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
12939
12940         * configure,
12941         * device/lib/configure.in,
12942         * device/lib/configure: fixed for autoconf 2.57
12943
12944 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12945
12946         * src/z80/main.c (_parseOptions): fixed the portmode= command line
12947         option so that it actually works. Made it specific to the z80, since
12948         the gbz80 doesn't have these kinds of I/O ports.
12949
12950 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12951
12952         * device/include/z180.h,
12953         * device/lib/_memcpy.c,
12954         * device/lib/_memmove.c,
12955         * device/lib/_mulint.c,
12956         * device/lib/ser_ir.c,
12957         * device/lib/ser_ir_cts_rts.c,
12958         * device/lib/_strcmp.c,
12959         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
12960         * src/z80/main.c (_process_pragma): add support for pragmas bank and
12961         portmode; added deprecation warning for bank= and protmode= forms.
12962         Also, guard against buffer overflow.
12963         * src/z80/gen.c (aopGet): generate better code for sfr banked read
12964
12965 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12966
12967         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
12968         changed interrupt vector table generation to only emit declared vectors.
12969         * device/include/Makefile.in: added missing backslash
12970         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
12971
12972 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
12973
12974         Mainly changes to support compilation of the device libraries
12975         * src/pic16/device.c: stack is allocated via symbol and not
12976         via literal number. The symbol is placed in the corresponding
12977         position of the data ram
12978         * (pic16_dump_section): relocatable and absolute uninitialized
12979         data are now emitted in sorted order to reduce section naming,
12980         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
12981         weren't marked as being in the access bank,
12982
12983 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
12984
12985         Added portion of GNU PIC Library under the directory
12986         device/include/pic16 and device/lib/pic16. These files
12987         contain the declarations of SFRs for the PIC18Fxx2 devices.
12988         The directory is initialized via configure from toplevel.
12989
12990 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
12991
12992         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
12993         the spilllocations to be compared correctly
12994
12995 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
12996
12997         * src/SDCCast.c (decorateType): fixed bug introduced today
12998
12999 2004-01-12  Borut Razem <borut.razem AT siol.net>
13000
13001         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
13002         doc/sdccman.lyx: upper case pragmas are deprecated
13003
13004 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
13005
13006         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
13007         in simpler and even better code
13008
13009 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
13010
13011         * src/SDCCicode.c (operandOperation): fixed bug #874819
13012         * src/SDCCast.c (decorateType): fixed
13013         char foo (unsigned long ul) { return ul > 0; }
13014
13015 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13016
13017         * doc/sdccman.lyx: Moved and added some sections, small changes
13018         all over. Telling LaTeX to be less strict with word spacing
13019         to better keep the right margin. Changed some notes about
13020         maintainance of the ports in section 3.2.1 - is it OK like this?
13021
13022 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
13023
13024         SDCC source changes:
13025         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
13026         convilong): modified to inform the pic16 port that builtin functions
13027         are external
13028
13029         PIC16 PORT specific changes:
13030         * src/pic16/device.c pic16_dump_equates() added,
13031         processor registers declared internally by the port are emitted in
13032         the translation as equates,
13033         * src/pic16/gen.c: inline code is passed unprocessed to the
13034         translation,
13035         * (pic16_popGetLit2): fnuction modified to take second operand as
13036         pCodeOp pointer and not as literal,
13037         * (popRegFromIdx): prefixed with pic16_,
13038         * (pic16_popCombine2): modified to receive already allocated pCode
13039         operands,
13040         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
13041         * (genFunction): initializes local stack frame and pushes on stack
13042         all the registers used by this function,
13043         * (genEndFunction): restores all registers from stack and restores
13044         stack frame,
13045         * src/pic16/glue.c (pic16emitRegularMap): various changes and
13046         improvements,
13047         * (pic16glue): changed the program startup sequence,
13048         * added new dbName code 'A' for functions placed in absolute section
13049         * src/pic16/main.c: added function attribute _naked,
13050         * added pragma 'code' to place a fnuction at an absolute address,
13051         * added command line arguments --debug-ralloc and --pcode-verbose,
13052         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
13053         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
13054         * (pic16_newpCodeOpLit2): modified to take the second operand as
13055         pCodeOp pointer,
13056         * (pic16_printpBlock): modified to emit each function in a separate
13057         section,
13058         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
13059         UPPER for immediate operands,
13060         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
13061         instruction,
13062         * src/pic16/peeph.def: all peepholes with movff are commented out,
13063         because there is a problem in the pcode peep optimizer,
13064         * src/pic16/ralloc.c: the register allocator can now reuse local
13065         function symbols for another function. This saves register usage.
13066         * src/pic16/ralloc.h: added flag isLocal in structure regs,
13067
13068         Added file src/pic16/NOTES with information about program writing on
13069         the current port version.
13070
13071 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13072
13073         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
13074         and peephole 252 (array access)
13075
13076 2004-01-09  Borut Razem <borut.razem AT siol.net>
13077
13078         * src/SDCCmain.c : fixed #872250: -l command line defined library
13079           files are scanned before standard library files
13080
13081 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13082
13083         * src/SDCCast.c (decorateType): fixed bug #874046
13084
13085 2004-01-09  Borut Razem <borut.razem AT siol.net>
13086
13087         * support/scripts/sdcc.nsi: remove previous installation
13088
13089 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13090
13091         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
13092         bytes for last interrupt vector (mcs51)
13093         * sdcc.spec: fixed typo
13094
13095 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13096
13097         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
13098         gen51Code): more efficient parameter receive for --model-large
13099         ("bug" #845294)
13100
13101 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13102
13103         * src/ds390/main.c,
13104         * src/z80/main.c: added missed needLinkerScript flags (more than
13105         one port structure defined in these file)
13106         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
13107         bug #795325
13108
13109 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
13110
13111         * src/SDCCmain.c: removed various references to DEFAULT_PORT
13112         * src/port.h: added flag needLinkerScript in port->linker
13113         structure to inform whether to create a .lnk file or not,
13114         * src/avr/main.c,
13115         * src/ds390/main.c,
13116         * src/hc08/main.c,
13117         * src/mcs51/main.c,
13118         * src/pic/main.c,
13119         * src/pic16/main.c,
13120         * src/xa51/main.c,
13121         * src/z80/main.c: changed appropriately to configure
13122         needLinkerScript flag
13123         * src/pic/gen.c,
13124         * src/pic16/gen.c (genAddrOf): fixed bug #863624
13125         * src/pic/glue.c: added variable udata_section_name to
13126         override default uninitialized data segment definition for
13127         devices only with SHAREBANK memory (reported from Erik Epetrich)
13128         * (pic14emitOverlay): modified to emit a commented overlay segment
13129         directive when no overlay data exist
13130         * (picglue): modified to emit uninitialized data segment
13131         according to udata_section_name
13132         * src/pic/main.c (_pic14_parseOptions): added command line
13133         options --udata-section-name=[name] to override default
13134         udata definition name
13135         * modified _linkCmd and _asmCmd to include compiler passed
13136         arguments via -W option
13137         * src/pic16/main.c: added $l in _asmCmd, changed extension for
13138         object file from '.rel' to '.o' in port->linker structure,
13139         changed size of fptr from 2 to 3 in port structure
13140
13141 2004-01-07  Borut Razem <borut.razem AT siol.net>
13142
13143         * support/scripts/sdcc.nsi: update PATH
13144         * support/scripts/sdcc.ico: craeted
13145
13146 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
13147
13148         * device/include/Makefile.in: fix install
13149         * doc/Makefile: fix install
13150
13151 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13152
13153         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
13154         in bug #860505
13155         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
13156         how the function variable allocation summary is displayed; also
13157         include information about variables allocated to the overlay
13158         segment
13159
13160 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13161
13162         * as/mcs51/lkmain.c: Help about -Y option
13163         * as/mcs51/lkarea.c: Fixed gcc warnings
13164
13165 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
13166
13167         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
13168         fixed warning
13169         * support/valdiag/tests/overflow.c: added
13170         * src/SDCCast.c (decorateType),
13171         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
13172         LEFT_OP (left shift)
13173
13174 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13175
13176         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
13177         (default behaviour).
13178
13179 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13180
13181         A python script to validate compiler diagnostic messages. It can be
13182         used to verify that sdcc complains about bad c source code and
13183         gives a good location of the error.
13184         * support/valdiag/Makefile,
13185         * support/valdiag/valdiag.py,
13186         * support/valdiag/tests/*
13187
13188 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13189
13190         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
13191         * src/SDCCsymt.c (newEnumType),
13192         * src/SDCCsymt.h
13193         * support/Util/SDCCerr.c,
13194         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
13195         enum related bugs.
13196         * support/regression/tests/enum.c: added test for enum values that
13197         require at least 2 bytes of storage.
13198
13199 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
13200
13201         * src/common.h: added ifndef/define/endif macros
13202         around the header file.
13203         Bug reported from Jesus Calvino-Fraga
13204
13205 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
13206
13207         * sdcc.spec: updated
13208         * device/include/Makefile.in: don't install CVS directories
13209         * device/lib/Makefile.in: added removal of CVS directories after install
13210         * doc/Makefile: fixed install, added local_icons
13211         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
13212         * src/mcs51/gen.c (genRightShift): fixed bug #870788
13213         * src/ds390/gen.c (genRightShift): fixed bug #870788
13214         * src/SDCCast.c (decorateType): fixed bug #870781
13215
13216 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
13217
13218         PIC16 port related changes:
13219         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
13220         added variable stackPos,
13221
13222         * gen.c: genCall, assignResultValue: added support for
13223         pushing/retrieving function parameters to/from stack,
13224         genFunction,genEndFunction: setup stack frame for the
13225         generated function,
13226         genAddrOf: will be changed according to bug 863624
13227
13228         * added files genutils.c and genutils.h which contain gen*
13229         debugged and optimised functions extracted from gen.c
13230
13231         * glue.c: added variable 'externs' which holds extern symbols,
13232         pic16emitRegularMap: is modified to properly handle relocatable
13233          symbols under the new scheme,
13234         pic16createInterruptVect: is modified
13235         pic16printPublics: is modified to emit 'global' assembler directives,
13236         added pic16_printExterns to print extern symbols,
13237         pic16glue: initializes stack/frame pointer in the beginning of
13238         the assembly output. Temporary hack, will be corrected later,
13239         because gplink yet does not support stack and SDCC does not
13240         yet support a type of crt0.o object to create the final binary.
13241
13242         * Removed many lines that contain 8051 legacy code.
13243         * The code is finally placed under a 'code' directive.
13244         * Added port specific options.
13245
13246         * _process_pragma: simplified since now we do not need *special*
13247         include file to define SFR registers. But a separate header
13248         will be needed. This will be developed later.
13249         * _pic16_parseOptions: added, parses port specific options:
13250         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
13251         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
13252         --preplace-udata-with=
13253
13254         * _pic16_setDefaultOptions: modified to initialize section names,
13255         but hack is temporarly out of order since it needs improvement.
13256         * _pic16_genAssemblerPreamble: configuration words are emitted by
13257         their address instead of their name. This part is incomplete and
13258         supports only the 18Fxx2 devices. Other devices will emit an error
13259         during assembly since they do not contain the same set of config
13260         registers
13261         * _pic16_genIVT: is modified,
13262
13263         * pcode.c: added definitions for some hardware registers that are needed
13264         for stack support
13265         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
13266         All PCI entries are updated. Now LFSR is supported.
13267         * Removed pic16_pciTRIS is mentioned by mdubuc in source
13268         * added pic16_newpCodeOpLit2 to support instructions with
13269         two literal arguments
13270         * pic16_pCode2str: corrected code that emits assembler instructions
13271         with two literal operands and those that have an access bit modifier
13272         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
13273         this fixes a bug which caused some labels to be lost, when an
13274         assembler directive was added, i.e. banksel,
13275         * pic16_FixRegisterBanking: improved logic that causes the insertion
13276         of bank switching,
13277         * InlineFunction: functions that are called once, are not any more
13278         inlined. This can be a port option in the future,
13279
13280         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
13281
13282         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
13283         hold the corresponding uninitialized symbols,
13284         * pic16_allocProcessorRegister: registers have explicit marked the
13285         accessBank field,
13286         * pic16_allocInternalRegister: registers are explicit marked as
13287         not used,
13288         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
13289         processing list, so bit registers were lost,
13290         *
13291
13292         * ralloc.h: added field 'accessBank' and original symbol operand
13293         in register definition,
13294         * removed the field isMapped from register definition,
13295
13296         ** Several functions have been removed from various sources:
13297         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
13298         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
13299         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
13300         pic16_assignRelocatableRegisters
13301
13302         ** others have been introduced:
13303         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
13304         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
13305
13306 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
13307
13308         * support/scripts/inc2h.pl: changed definition of BIT_AT
13309         to emit 'sbit at' instead of 'bit at'. This was a request.
13310
13311         PIC16 port related preliminary changes:
13312         * gen.c: prefixed function popRegFromString with
13313         pic16_ and all references to it corrected
13314         * pcode.c: all pic16_pc_* hardware registers prefixed
13315         with underscore (_),
13316         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
13317         * ralloc.c: newReg(): when register is REG_SFR then
13318         set address to rIdx,
13319         pic16_allocProcessorRegister(): marks register wasUsed=0
13320         pic16_writeUsedRegs(): added a call to assign processor
13321         registers via pic16_assignFixedRegisters
13322
13323 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13324
13325         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
13326         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
13327         variables in unused register banks.  Also the SSEG is placed
13328         wherever there is enough space for it, and IDATA can be anywhere
13329         in internal RAM.  For now compile using -Wl-Y[stack_size].
13330         The mem file is different for this option as well, since it
13331         makes no sense of talking about DSEG lenght.
13332
13333 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
13334
13335         * src/SDCClrange.c: fixed bug 869095 that caused segfault
13336         in certain cases, e.g. when ROM assignment, patch provided
13337         from Albert den Haan.
13338
13339 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
13340
13341         Many signedness and type propagation fixes:
13342         * src/SDCCicode.c: made geniCodeCast() static
13343         replaced SPEC_ by IS_ (cosmetic)
13344         (operandOperation): fixed div and mod operation
13345         (usualBinaryConversions): added support for promotion of char
13346         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
13347         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
13348         (geniCodeAdd): an array index will stay unsigned, even if promoted
13349         from char to int
13350         (geniCodeArray): ditto
13351         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
13352         * src/SDCCsymt.c (computeType): added more support for char;
13353         promotion of char is selectable by promoteCharToInt, fixed signedness
13354         for all cases
13355         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
13356         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
13357         * src/SDCCval (val*): replaced signedness calculation by
13358         computeType()
13359         rearranged if-branches (cosmetic)
13360         (valShift): added warning W_SHIFT_CHANGED
13361         (valCompare): fixed problem with different types
13362         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
13363         * support/regression/tests/literalop.c: added many cases
13364         * support/regression/tests/ast_constant_folding.c: changed finally to
13365         'unsigned int'
13366         * .version: new year, new version: 2.3.7
13367         * src/SDCCmain.c (main): applied patch #866468
13368         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
13369         provided by Scott Bronson
13370         * doc/sdccman.lyx: updated documentation for sdcdb
13371         updated and added chapter tips
13372
13373 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13374
13375         * src/SDCCsymt.h: missing from yesterday's commits
13376
13377 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13378
13379         * src/SDCC.y (struct_or_union_specifier),
13380         * support/Util/SDCCerr.c,
13381         * support/Util/SDCCerr.h: verify that struct & union tags are used
13382         as declared.
13383
13384 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13385
13386         * src/SDCCglobl.h: missing from yesterday's commits
13387
13388 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13389
13390         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
13391         sft_attributes, struct_declaration, parameter_declaration,
13392         type_name, start_block, declaration_list),
13393         * src/SDCC.lex (check_type): support redefinition of typedef names
13394
13395 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13396
13397         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
13398         aligned xdata arrays. Erik helped me with the if clause.
13399
13400 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13401
13402         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
13403         warning
13404
13405 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13406
13407         * src/SDCCast.h,
13408         * src/SDCCast.c (newAst_),
13409         * src/SDCCicode.h,
13410         * src/SDCCicode.c (ast2iCode, newiCode),
13411         * src/SDCCglobl.h,
13412         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
13413         expr, statement, expression_statement, selection_statement,
13414         iteration_statement, expr_opt, jump_statement): foundation for tracking
13415         sequence points
13416         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
13417         point code too)
13418
13419 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13420
13421         * support/Util/SDCCerr.c,
13422         * src/SDCCast.h,
13423         * src/SDCCast.c (createCase, createDefault, decorateType),
13424         * src/SDCClabel.c (labelUnreach),
13425         * src/SDCC.y (labeled_statement, jump_statement): More improvements
13426         to error messages.
13427         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
13428         (with thanks to Stas Sergeev)
13429         * device/include/time.h,
13430         * device/lib/time.c (CheckTime): suppress unreachable code warning
13431
13432 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13433
13434         * src/SDCCast.c (createIvalCharPtr),
13435         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
13436         bug #753752)
13437         * support/regression/tests/nullstring.c: tests for these two bugs
13438
13439 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13440
13441         * support/Util/SDCCerr.h,
13442         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
13443         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
13444         about storage class and 'at' used inside struct or union
13445         * src/SDCCBBlock.c (iCodeFromeBBlock),
13446         * src/SDCCcse.c (ifxOptimize),
13447         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
13448         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
13449         printIval, emitStaticSeg, emitOverlay),
13450         * src/SDCClabel.c (deleteIfx),
13451         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
13452         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
13453         gatherAutoInit, processParms),
13454         * support/Util/SDCCerr.h,
13455         * support/Util/SDCCerr.c (werrorfl): Support for better error location
13456         reporting for post-parse errors.
13457
13458 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13459
13460         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
13461         implicit casts via union; they don't work on big endian systems
13462         (possible fix for bug #861138)
13463
13464 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13465
13466         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
13467         * src/mcs51/main.c: fixed the fix for bug #737001
13468
13469 2003-12-15  Borut Razem <borut.razem AT siol.net>
13470
13471         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
13472
13473 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13474
13475         * support/makebin/makebin.c: put output in binary mode
13476
13477 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13478
13479         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
13480         xdata and data memory on startup. Set the environment variable
13481         SDCC_NOGENRAMCLEAR to disable this.
13482         * src/mcs51/peephole.def,
13483         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
13484         (allows non-interrupt and interrupt code to safely compete for a resource
13485         without the non-interrupt code having to disable interrupts)
13486
13487 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13488
13489         * src/SDCCicode.c (geniCodeAdd),
13490         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
13491         with valFromType if type might be a pointer and host is big endian).
13492         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
13493         types, not just integer types.
13494         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
13495         multiply defined with mismatching "at" address.
13496
13497 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13498
13499         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
13500         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
13501         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
13502         with embedded nulls (fixed bug #753752)
13503
13504 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13505
13506         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
13507         Apparently this did not see much testing (endless loop)
13508
13509 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13510
13511         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
13512
13513 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13514
13515         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
13516         gracefully handle NULL memmap pointers
13517
13518 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13519
13520         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
13521         instead of deleting the iCode when an operand is volatile
13522         * src/z80/gen.c (genDummyRead),
13523         * src/mcs51/gen.c (genDummyRead),
13524         * src/ds390/gen.c (genDummyRead),
13525         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
13526         not just IC_RIGHT
13527         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
13528         * src/SDCC.y: fixed bug #850420
13529
13530 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13531
13532         Applied z80 i/o port patch from Peter Townson and fixed some operators
13533         to better handle operands in A register.
13534         * device/include/z180.h
13535         * src/SDCC.y
13536         * src/SDCCglue.c
13537         * src/z80/gen.c
13538         * src/z80/gen.h
13539         * src/z80/main.c
13540         * src/z80/peeph-z80.def
13541         * src/z80/peeph.def
13542         * src/z80/z80.h
13543
13544 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13545
13546         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
13547
13548 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13549
13550         * device/lib/hc08/_mullong.c: Removed extra #endif
13551
13552 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13553
13554         * sim/ucsim/hc08.src/inst.cc,
13555         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
13556         carries from x to h
13557         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
13558         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
13559         * device/include/stdarg.h: fixed varargs for hc08
13560         * device/lib/Makefile.in,
13561         * device/lib/hc08/Makefile,
13562         * device/lib/hc08/_mulint.c,
13563         * device/lib/hc08/_mullong.c: fixed some endian problems
13564
13565 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13566
13567         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
13568         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
13569         * device/lib/_gptrget.c,
13570         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
13571
13572 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13573
13574         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
13575         * src/SDCCast.c (astErrors): fixed bug #846007
13576         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
13577
13578 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13579
13580         * src/SDCCast.c (decorateType): disabled a transformation I added in
13581         revision 1.188 (access to fields of a structure at an absolute address);
13582         it breaks with bitfields, extern declarations, and gcse analysis.
13583         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
13584         could be assigned through a pointer, so don't complain.
13585         * src/SDCCast.c (astErrors),
13586         * src/SDCCast.h,
13587         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
13588
13589 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
13590
13591         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
13592         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
13593         output of __config directives, since gpasm now supports them
13594         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
13595         pre-processor macro, i.e. -DMCU=p18f452
13596         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
13597         and modified to handle 'cast' icode similarly to '=' icode
13598         * src/pic16/device.h (typedef struct PIC_device): added field
13599         'extMIface' to indicate that chip has external memory interface
13600         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
13601         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
13602         18F8720
13603
13604 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13605
13606         * src/SDCC.y (pointer): fixed bug #846006
13607         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
13608         * src/SDCCast.c (decorateType): fixed bug #846009
13609         * src/ds390/peeph.def,
13610         * src/ds390/gen.c (genAnd, genOr),
13611         * src/mcs51/peeph.def,
13612         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
13613
13614 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13615
13616         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
13617         * src/SDCCdflow.c
13618         * src/SDCCcse.c
13619         * src/SDCCcse.h
13620         * src/SDCCBBlock.h
13621         * src/SDCCBBlock.c
13622
13623 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
13624
13625         fixed bug #845089
13626         * src/SDCCbitv.h,
13627         * src/SDCCbitv.c: added function to free a bitvector
13628         * src/SDCClrange.h,
13629         * src/SDCClrange.c: added function to recompute the liveranges
13630         * src/avr/ralloc.c,
13631         * src/ds390/ralloc.c,
13632         * src/hc08/ralloc.c,
13633         * src/mcs51/ralloc.c,
13634         * src/pic/ralloc.c,
13635         * src/pic16/ralloc.c,
13636         * src/xa51/ralloc.c,
13637         * src/z80/ralloc.c: recompute the liveranges after register packing
13638
13639 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
13640
13641         * src/SDCCloop.c (newInduction): fixed bug #845630
13642
13643 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13644
13645         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
13646         inadvertantly left behind from my 2003-11-12 change
13647
13648 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13649
13650         Updated headers I neglected to commit yesterday.
13651         * src/SDCClrange.h,
13652         * src/SDCCicode.h
13653
13654 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13655
13656         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
13657         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
13658         * src/SDCCopt.c (eBBlockFromiCode),
13659         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
13660         the creation of the key hash table from the sequencing so it can be used
13661         earlier (for some GCSE bug fixes still pending)
13662
13663 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13664
13665         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
13666         * support/regression/tests/addsub.c: testing genPlus shortcut
13667
13668 2003-11-15  Borut Razem <borut.razem AT siol.net>
13669
13670         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
13671
13672 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13673
13674         * src/SDCCcse.c (cseBBlock): fixed bug #527779
13675         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
13676         ordering is immaterial.
13677         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
13678
13679 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13680
13681         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
13682         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
13683         (SIGSEV) of bug #840381
13684         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
13685         unlink new file before rename if new and old filenames are the same)
13686
13687 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13688
13689         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
13690         uninitialized variables) for the mcs51. Set environment variable
13691         SDCC_GENRAMCLEAR to test.
13692         xdata initialization slightly shorter
13693
13694 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13695
13696         * src/SDCCsymt.h,
13697         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
13698         #838241 & 780691 (basicly the same bug)
13699         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
13700         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
13701
13702 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
13703
13704         * src/SDCCmain.c (linkEdit): "fix" #834252
13705
13706 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13707
13708         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
13709         * src/SDCCast.h,
13710         * src/SDCC.y: fixed bug #819403
13711
13712 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13713
13714         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
13715         the reentrant attribute.
13716         * src/hc08/gen.c (genPackBits): added missing stack readjustment
13717         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
13718         simulation
13719         * src/SDCCast.c (decorateType): fixed bug with storage class not being
13720         updated during pointer dereference; f.e. ~(((char *)1)*) was being
13721         erroneously reduced to a literal.
13722         * src/hc08/ralloc.c (packRegisters, rematStr),
13723         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
13724         some cases
13725
13726 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13727
13728         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
13729         * doc/sdccman.lyx: changed from 'article' to 'book'
13730         * doc/Makefile: readded test_suite_spec and cdbfileformat
13731
13732 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
13733
13734         * device/include/stdlib.h: include malloc.h to comply with ANSI
13735         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
13736
13737 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13738
13739         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
13740         * doc/clean.mk: also remove *.out files
13741         * doc/sdccman.lyx: some additions, larger top/bottom margins
13742
13743 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13744
13745         * src/SDCC.y: fixed bug #837365
13746         * support/regression/tests/bitopcse.c
13747         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
13748         a symbol (might be valop instead)
13749         * device/lib/Makefile.in: added errno.c to HC08SOURCES
13750         * device/lib/clean.mk: added hc08 to the cleaning list
13751
13752 2003-11-04  Borut Razem <borut.razem AT siol.net>
13753
13754         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
13755           made 2003-11-04
13756         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
13757           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
13758           malloc is declared in standard stdlib.h
13759
13760 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13761
13762         * device/lib/hc08/Makefile: need to clean .rel not .o files
13763         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
13764
13765 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13766
13767         * src/port.h,
13768         * src/hc08/main.c,
13769         * src/mcs51/main.c,
13770         * src/ds390/main.c,
13771         * src/z80/main.c,
13772         * src/avr/main.c,
13773         * src/pic/main.c,
13774         * src/pic16/main.c,
13775         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
13776         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
13777         tests (which uses the port's oclsExpense function)
13778         * src/SDCC.y,
13779         * src/SDCCast.c,
13780         * src/SDCCicode.c,
13781         * src/hc08/gen.c,
13782         * src/ds390/gen.c,
13783         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
13784
13785 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13786
13787         * src/SDCCcse.c (ifxOptimize),
13788         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
13789         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
13790         deleting the IFX iCode.
13791         * src/hc08/ralloc.c: reduced unneeded slocs
13792         * src/hc08/gen.c: fixed bug in asmopToBoolean
13793
13794 2003-11-04  Borut Razem <borut.razem AT siol.net>
13795
13796         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
13797           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
13798           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
13799           transferred to configure
13800
13801 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
13802
13803         Use headers defined in the C[++] standards:
13804         * sim/ucsim/gui.src/serio.src/fileio.cc
13805         * sim/ucsim/gui.src/serio.src/frontend.cc
13806         * sim/ucsim/gui.src/serio.src/main.cc
13807         * sim/ucsim/gui.src/serio.src/posix_signal.cc
13808         * support/Util/NewAlloc.c
13809         * as/hc08/lklibr.c
13810         * as/mcs51/lklibr.c
13811         * as/z80/aslist.c
13812         * as/z80/assym.c
13813
13814 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13815
13816         * Added MSVC projects for hc08 assembler and linker:
13817         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
13818         /as/hc08/link_hc08.dsp
13819
13820 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
13821
13822         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
13823
13824 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
13825
13826         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
13827
13828 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13829
13830         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
13831
13832 2003-10-31  Borut Razem <borut.razem AT siol.net>
13833
13834         * support/cpp2/cpplib.h,
13835           support/cpp2/cpplib.c,
13836           support/cpp2/cpplex.c,
13837           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
13838           to switch _asm block preprocessing on / off. Default is
13839           #pragma preproc_asm +
13840
13841 2003-10-31  Borut Razem <borut.razem AT siol.net>
13842
13843         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
13844           when outputting comment blocks (when executed with -C option) and
13845           _asm (SDCPP specific) blocks
13846
13847 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13848
13849         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
13850
13851 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
13852
13853         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
13854
13855 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
13856
13857         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
13858         * src/SDCCast.c (decorateType): fixed bug #832664
13859
13860 2003-10-31  Borut Razem <borut.razem AT siol.net>
13861
13862         * support/cpp2/cpplex.c: fixed for SDCPP:
13863           comments(when executed with -C option) and _asm blocks
13864           were included even if they where in skipped #if block.
13865           Applied solution from GCC cpp 3.3.2
13866
13867 2003-10-31  Borut Razem <borut.razem AT siol.net>
13868
13869         * src/SDCC.lex: sdcc now understands both formats:
13870           '# <line_number> <file_name>' and
13871           '#line <line_number> <file_name>'
13872         * support/cpp2/cppmain.c: sdcpp now generates the standard
13873           '# <line_number> <file_name>' instead of former
13874           '#line <line_number> <file_name>'
13875
13876 2003-10-30  Borut Razem <borut.razem AT siol.net>
13877
13878         * support/cpp2/cpphash.h,
13879         * support/cpp2/cpplib.h
13880         * support/cpp2/cpplex.c,
13881         * support/cpp2/cppmain.c,
13882         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
13883
13884 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13885
13886         Fixed a number of problems revealed by bug #827883.
13887         * src/SDCCloop.c (loopInvariants): Spill location of the
13888         result operand should be recomputed if extracted from
13889         a loop. Also, don't extract assignments of an iTemp
13890         from a literal.
13891         * src/SDCCast.c (isConformingBody): loop reversal should
13892         not occur if the control variable is involved with a
13893         relational operator.
13894
13895 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
13896
13897         * .version: bumped to 2.3.6 to reflect the big improvements
13898         made by Erik and Klaus. Thanks!
13899
13900 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
13901
13902         Replaced the livrange code.
13903         * src/SDCClrange.c: added new LR code
13904         * src/SDCCloop.c,
13905         * src/SDCCBBlock.h: removed remainig parts from old LR code
13906         * src/ds390/ralloc.c,
13907         * src/ds390/gen.c: minor fixes to make it work with new code
13908
13909 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13910
13911         * as/hc08/asm.h,
13912         * as/hc08/lkrloc.c,
13913         * src/hc08/gen.c,
13914         * src/hc08/ralloc.c: Fix various warnings related to the hc08
13915         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
13916         (tweaked fix for bug #818696)
13917
13918 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13919
13920         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
13921
13922 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13923
13924         * src/SDCCmain.c,
13925         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
13926         * src/mcs51/gen.c (gencjneshort),
13927         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
13928         more efficient (per Scott Bronson's suggestion)
13929
13930 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13931
13932         Extended the semantics of the critical keyword to include
13933         individual statements. See RFE #827755 and #799831
13934         * src/SDCC.y
13935         * src/SDCCicode.c
13936         * src/SDCCopt.c
13937         * src/SDCCast.c
13938         * support/Util/SDCCerr.c
13939         * support/Util/SDCCerr.h
13940         * src/mcs51/gen.c
13941         * src/ds390/gen.c
13942         * src/hc08/gen.c
13943
13944 2003-10-19  Borut Razem <borut.razem AT siol.net>
13945
13946         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
13947
13948 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13949
13950         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
13951         Fixed bug #818696
13952         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
13953         and predecrement operand is displayed
13954
13955 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
13956
13957         * src/SDCCval.c (valMinus): fixed bug #826041
13958
13959 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13960
13961         Some hc08 related updates that I missed earlier
13962         * sim/ucsim/stypes.h
13963         * support/regression/ports/hc08/spec.mk
13964
13965 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13966
13967         New target "hc08" for the Motorola 68hc08 family of micros
13968
13969         * configure
13970         * configure.in
13971         * Makefile
13972         * src/hc08/*
13973         * src/SDCCmain.c
13974         * src/port.h
13975         * sim/ucsim/hc08.src/*
13976         * sim/ucsim/configure.in
13977         * src/ucsim/configure
13978         * sim/ucsim/packages_in.mk
13979         * as/hc08/*
13980         * as/Makefile
13981         * device/include/mc68hc908qy.h
13982         * device/lib/hc08/*
13983         * device/lib/Makefile.in
13984         * support/regression/ports/hc08/*
13985         * support/regression/Makefile
13986
13987 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13988
13989         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
13990         regression test
13991         * src/ds390/gen.c (genCast): fixed bug #821957
13992
13993 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
13994
13995         * device/lib/logf.c: "fixed" overlay bug
13996         * support/regression/ports/host/spec.mk: added m library
13997         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
13998         * support/regression/tests/float_trans: added (for Eric)
13999
14000 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
14001
14002         * src/mcs51/gen.c (genCpl): fixed bug
14003         http://sf.net/mailarchive/message.php?msg_id=6263915
14004
14005 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
14006
14007         * src/SDCCast.c (decorateType): added extended constant folding
14008         * src/SDCCsymt.c (computeType): cleanup
14009         * src/SDCCval.c (valShift): minor optimization
14010         * support/regression/tests/ast_constant_folding.c: added
14011
14012 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14013
14014         * src/SDCCmain.c: removed some unintended changes
14015
14016 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14017
14018         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
14019         * src/z80/gen.c: fixed part of bug #817589
14020         * src/SDCCsymt.c (checkFunction): fixed bug #817895
14021
14022 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
14023
14024         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
14025         * src/SDCCcflow.c
14026         * src/SDCCcse.c
14027         * src/SDCCdflow.c
14028         * src/SDCClabel.c
14029         * src/SDCClrange.c
14030         * src/SDCCmem.c
14031         * src/SDCCopt.c
14032         * src/SDCCpeeph.c
14033         * src/SDCCset.c
14034         * src/avr/ralloc.c
14035         * src/ds390/ralloc.c
14036         * src/izt/ralloc.c
14037         * src/mcs51/ralloc.c
14038         * src/pic/ralloc.c
14039         * src/pic16/ralloc.c
14040         * src/xa51/ralloc.c
14041         * src/z80/ralloc.c
14042         * src/z80/gen.c: removed unused label "release:"
14043
14044 2003-10-06  Borut Razem <borut.razem AT siol.net>
14045
14046         * src/SDCC.lex: removed definition of unused variables
14047           save_optimize and save_options
14048
14049 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
14050
14051         * clean.mk: removed '=' in "-maxdepth=1"
14052         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
14053         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
14054
14055 2003-10-06  Borut Razem <borut.razem AT siol.net>
14056
14057         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
14058           my_unput() replaced by unput()
14059
14060 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
14061
14062         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
14063         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
14064         type-punned pointer will break strict-aliasing rules"
14065         Old LR behaviour is again default; Klaus' LR can be choosen by
14066         defining the environment variable LRKLAUS
14067         * src/SDCCBBlock.h
14068         * src/SDCCloop.c
14069         * src/SDCClrange.c
14070         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
14071         * clean.mk: fixed removal of files in bin/CVS/
14072         * device/lib/clean.mk: fixed removal of directories small and large
14073         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
14074         * src/SDCCicode.c,
14075         * src/SDCCval.c: removed superflous test for pedantic
14076
14077 2003-10-05  Borut Razem <borut.razem AT siol.net>
14078
14079         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
14080           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
14081           message "unmatched #pragma SAVE and #pragma RESTORE"
14082
14083 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14084
14085         * doc/sdccman.lyx: various additions and updates (interrupts, inline
14086           assembly, critical functions, atomic, nojtbound)
14087
14088 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
14089
14090         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
14091         * src/SDCCBBlock.h
14092         * src/SDCCloop.c
14093         * src/SDCCloop.h
14094         * src/SDCClrange.c
14095
14096 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14097
14098         * src/z80/gen.h,
14099         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14100         * src/mcs51/gen.h
14101         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14102         * src/ds390/gen.h
14103         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14104         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
14105         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
14106
14107 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14108
14109         * src/z80/gen.c (genRet): fixed bug #524753
14110         * src/z80/gen.c (genCast): fixed internal error on cast from
14111         pointer to long
14112         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
14113         fix for bug #477835 to the z80
14114         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
14115         for tracking iCodes in the peephole optimizer for z80
14116
14117 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14118
14119         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
14120         the other part of bug #814548
14121         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
14122
14123 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
14124
14125         * src/SDCCcse.c: fixed part of bug #814548
14126
14127 2003-09-28  Borut Razem <borut.razem AT siol.net>
14128
14129         * src/asm.c: rewrite of printILine() to use temporary file instead
14130           a pipe
14131         * src/xa51/main.c: commented out declaration of int rewinds
14132
14133 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14134
14135         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
14136
14137 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14138
14139         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
14140         * src/asm.c (printILine): Fixed bug #811015
14141
14142 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14143
14144         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
14145         freeing.
14146
14147 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14148
14149         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
14150         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
14151         to correctly handle general case of AOP_PAIRPTR
14152         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
14153
14154 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14155
14156         * src/mcs51/ralloc.c (fillGaps),
14157         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
14158         register positioning bug)
14159
14160 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
14161
14162         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
14163
14164 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14165
14166         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
14167         genCodePointerGet, genGenPointerGet, genFarPointerSet,
14168         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
14169         (ralloc doesn't intentionally do this now, but perhaps later)
14170         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
14171         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
14172         register positioning bugs (Fixed bug #762602 and #795325)
14173         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
14174         (Fixed bug #808779)
14175         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
14176         lines that --i-code-in-asm generates
14177
14178 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14179
14180         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
14181         trying to fclose a FILE* that was already closed.
14182
14183 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14184
14185         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
14186         of const struct should be treated as if const themselves)
14187
14188 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
14189
14190         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
14191
14192 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14193
14194         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
14195         Unix (/n) and DOS (/r/n) line terminations.
14196
14197 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14198
14199         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
14200         bug #613775
14201
14202 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14203
14204         * src/mcs51/gen.c (genFunction, genEndFunction),
14205         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
14206         and restore of EA so that stack offsets to parameters are
14207         correct when using both critical and reentrant/stack-auto.
14208         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
14209         size (can be triggered in error if sloc is shared between
14210         different sized objects)
14211         * device/include/float.h: fixed macros to explicitly use
14212         unsigned long where needed
14213
14214 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
14215
14216         Feature req. 799831: added code to allow nesting of critical functions
14217         * src/mcs51/gen.c (genFunction, genEndFunction)
14218         * src/ds390/gen.c (genFunction, genEndFunction)
14219
14220 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14221
14222         * src/SDCCsymt.c (sclsFromPtr),
14223         * src/SDCCsymt.h,
14224         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
14225         support for standard C idiom of memory mapped variables; for
14226         example, *((xdata int*)0x1234) = 1 is now internally equivalent
14227         to xdata int at 0x1234 tempvar = 1.
14228         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
14229         provided by Akiya ISHIDA
14230
14231 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
14232
14233         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
14234         * src/SDCCval.c (constVal): added reduction from int to char
14235         * src/SDCCval.c (valMult, valDiv): fixed sign handling
14236         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
14237         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
14238         to ignore the sign
14239         * support/regression/tests/shifts.c: fixed
14240
14241 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14242
14243         * src/z80/gen.c (genXor): Fixed bug #805445
14244
14245 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14246
14247         Fixed bug #621531 (const & volatile confusion in the type chain).
14248         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
14249         refer to the const or volatile state of the pointer itself.
14250
14251         * src/SDCCast.c
14252         * src/SDCCglue.c
14253         * src/SDCCicode.c
14254         * src/SDCCsymt.c
14255         * src/SDCCval.c
14256         * src/SDCC.y
14257         * src/SDCCsymt.h
14258         * src/pic/gen.c
14259         * src/pic/ralloc.c
14260         * src/pic16/gen.c
14261         * src/pic16/ralloc.c
14262         * support/regression/tests/const.c
14263
14264 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14265
14266         When checking for duplicated modules, use absolute paths
14267         instead of relative paths.  Files changed:
14268
14269         * as/mcs51/lklib.c
14270         * link/z80/lklib.c
14271
14272 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14273
14274         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
14275
14276 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14277
14278         * device/include/string.h: added size_t typedef, changed
14279         prototypes to use size_t, eliminated separate reentrant and
14280         non-reentrant declarations, added _memmove declaration
14281         * device/lib/_memcpy.c: changed to use size_t instead of int,
14282         changed /4 to >>2 to avoid division library call
14283         * device/lib/_memcmp.c,
14284         * device/lib/_memset.c,
14285         * device/lib/_strncat.c,
14286         * device/lib/_strncpy.c,
14287         * device/lib/_strncmp.c: changed to use size_t instead of int
14288         * device/lib/_memmove.c: new file (fixed bug #772294)
14289         * device/lib/Makefile.in: added _memmove.c
14290         * device/lib/z80/asm_strings.s: fixed bug #772290
14291         * support/regression/tests/bitfields.c: attempt to fix host assertion
14292         failure on amd64-unknown-linux2.2
14293
14294 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14295
14296         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
14297         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
14298         * as/z80/asmain.c (main): fixed bug #801766
14299
14300 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
14301
14302         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
14303         compilers
14304
14305 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14306
14307         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
14308         reported in bug #800609
14309
14310 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
14311
14312         * Top header beautifications in src/pic16 directory:
14313           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
14314           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
14315           pcoderegs.h, ralloc.c, ralloc.h
14316         * main.c: added top header and GPL license notice
14317         * pcode.c: fixed the if-conditional warning
14318
14319 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
14320
14321         * device/lib/_mullong.c: replaced int by short for gcc
14322
14323 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14324
14325         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
14326         and JUMPTABLE iCodes properly now (worked by accident before)
14327         * src/mcs51/gen.c (leftRightUseAcc),
14328         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
14329         iCode properly now. Use getSize instead of nRegs since a & b
14330         aren't part of the nRegs tally.
14331
14332 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
14333
14334         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
14335         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
14336           before instructions that use the _STATUS register
14337
14338 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
14339
14340         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
14341         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
14342         fetching of the pointer
14343         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
14344         copied from genNearPointerSet()
14345         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
14346         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
14347         If they pop r0/r1 they must be called in the opposite order than aopOp().
14348         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
14349         (resp. --stack-auto), prepared for --xstack
14350
14351 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14352
14353         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
14354
14355 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
14356
14357         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
14358         these ports have their own __sdcc_external_start()
14359
14360 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
14361
14362         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
14363         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
14364         type for bits was changed. It resulted in bit variables becoming
14365         global, which is not permitted in PIC 14 assembly output.
14366
14367 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14368
14369         * doc/sdccman.lyx: various additions and updates. Rearranged sections
14370
14371 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14372
14373         Z80 and MCS51 linkers complaint if a public symbol is defined
14374         in more than one library module:
14375
14376         * as/mcs51/lklib.c
14377         * link/z80/lklib.c
14378         * as/mcs51/Makefile.in
14379
14380 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14381
14382         A few small changes that speed up the peephole optimizer.
14383
14384         * src/SDCCpeeph.c
14385
14386 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14387
14388         Try to make the peephole optimizer smarter by maintaining
14389         an association between the assembly source code and the
14390         iCodes that originated them. Put this information to use
14391         with a new peephole rule condition "notVolatile" so that
14392         the rules can be aggressive yet still safe.
14393
14394         * src/SDCCpeeph.c
14395         * src/SDCCpeeph.h
14396         * src/mcs51/gen.c
14397         * src/mcs51/peeph.def
14398
14399 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14400
14401         Fixed bug #741761
14402
14403         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
14404         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
14405         if the left or right operand symbols have the accuse flag set.
14406
14407 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14408
14409         Changed the type of the result of the ! (NOT) operator to char;
14410         previously it returned the same type as the source. This allows
14411         us to eliminate all the genFloatNot functions (all of its target
14412         implementations were very buggy) since !float can use the same
14413         code as !long now.
14414
14415         * src/SDCCicode.c (ast2iCode): ! returns char
14416         * src/mcs51/gen.c (genNot, genNotFloat),
14417         * src/ds390/gen.c (genNot, genNotFloat),
14418         * src/z80/gen.c (genNot, genNotFloat),
14419         * src/pic/gen.c (genNot, genNotFloat),
14420         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
14421
14422 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
14423
14424         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
14425         1. Interrupt would not compile properly. Ensure PCLATH register is saved
14426            during interrupts. Ensure WSAVE is located at a shared bank address.
14427         2. Fixed page selection in some places
14428         3. Fixed BTFSS/C to where necessary use registers directly and not simply
14429            the registers name strings.
14430         4. Fixed "signed / unsigned compare" compiler warnings.
14431         5. The PIC port manages its own allocation of the general purpose
14432            registers, but makes no attempt to reuse them. As a result when
14433            compiling it soon runs out of general purpose registers. Some
14434            additional code was added to the files pcode.c and device.c to walk
14435            through the function call tree and rename the registers so that they
14436            get reused.
14437
14438         * src/pic/device.c
14439         * src/pic/gen.c
14440         * src/pic/glue.c
14441         * src/pic/pcode.c
14442         * src/pic/pcode.h
14443         * src/pic/ralloc.c
14444         * src/pic/ralloc.h
14445         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
14446         genPlus() & genMinus() when the result is the same as left or right
14447
14448 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14449
14450         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
14451
14452 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14453
14454         Made bitfield a distinct type from bit so that bitfields
14455         convert as per ANSI C and bits retain their traditional
14456         boolean style behaviour. Implemented bitfield support in
14457         the z80 port.
14458
14459         * src/SDCCsymt.h,
14460         * src/SDCCsymt.c,
14461         * src/SDCCast.c,
14462         * src/cdbFile.c,
14463         * src/mcs51/gen.c,
14464         * src/ds390/gen.c: bit v bitfield split
14465         * src/z80/gen.c: New support for bitfields
14466         * support/regression/tests/bitfields.c: reenabled z80,
14467         added more tests
14468
14469 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14470
14471         Rules 246.x, 247.x relate to bitfields, the others speed up
14472         access to xdata mapped I/O devices.
14473
14474         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
14475
14476 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14477
14478         Cleaned up genPackBits and genUnpackBits and added two helper
14479         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
14480         for literal assignments in genPackBits (thanks to Frieder for
14481         reminding me).
14482
14483         * src/mcs51/gen.c
14484         * src/ds390/gen.c
14485
14486 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14487
14488         Fixed bug #748310 (pointer to function type mishandled when the
14489         function name is omitted). Also fixed a SIGSEGV when a function
14490         attribute (reentrant, etc) is used on a non-function or on a
14491         function but misplaced before the parameter list.
14492
14493         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
14494         bug #748310
14495         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
14496         * support/Util/SDCCerr.h,
14497         * support/Util/SDCCerr.c: Added func attr misuse error msg
14498
14499 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
14500
14501         Fixed bug #787649 by anonymous
14502         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
14503         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
14504
14505 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14506
14507         Fixed numerous bitfield problems.
14508
14509         * src/SDCC.y: More bitfield related error checking
14510         * src/SDCCsymt.h,
14511         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
14512         * support/Util/SDCCerr.h,
14513         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
14514         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14515         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14516         * support/regression/tests/bitfields.c: tests added
14517
14518 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14519
14520         Made the constant following the "interrupt" keyword optional. If
14521         omitted, the function will not automatically be given an entry
14522         in the interrupt vector table (similar to #pragma NOIV, but
14523         less syntacticly kludgy). The interrupt number is also now
14524         range checked. Also fixed a bug in the high order bit example
14525         in the manual.
14526
14527         * src/SDCC.y
14528         * src/SDCCmem.c
14529         * src/SDCCglue.c
14530         * src/SDCCsymt.h
14531         * support/Util/SDCCerr.c
14532         * support/Util/SDCCerr.h
14533         * doc/sdccman.lyx
14534
14535 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
14536
14537         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
14538         * src/SDCCicode.c (operandOperation): rewritten some ops
14539         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
14540         * src/SDCCsymt.c (computeType): literals are handled the same way as any
14541         other type
14542         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
14543         be re-activated by defining REDUCE_LITERALS)
14544         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
14545         unsigned, but are signed by default
14546         * src/SDCCval.c (constVal): rearranged
14547         * src/SDCCval.c (valMod): preliminary fix
14548         * src/SDCCval.c (valCastLiteral): use TYPE_* types
14549         * support/regression/literalop.c: added, work in progress
14550
14551 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14552
14553         Generate warnings for useless declarations like "char data;"
14554         that don't do what new users expect.
14555
14556         * src/SDCC.y
14557         * support/Util/SDCCerr.h
14558         * support/Util/SDCCerr.c
14559
14560 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
14561
14562         * src/SDCCval.c (valMult): fix overflow detection of negative int
14563
14564 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14565
14566         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
14567
14568         Changes to support big endian targets:
14569
14570         * src/ports.h
14571         * src/SDCCglue.c
14572         * src/avr/main.c
14573         * src/ds390/main.c
14574         * src/izt/i186.c
14575         * src/mcs51/main.c
14576         * src/pic/main.c
14577         * src/pic16/main.c
14578         * src/xa51/main.c
14579         * src/z80/main.c
14580
14581 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
14582
14583         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
14584         * device/lib/time.c: fixed warning "integer overflow in expression"
14585
14586 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
14587
14588         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
14589         * src/SDCCval.c (constVal): changed default to signed; hex and octal
14590         constants are unsigned; added recognition of "u" flag for unsigned
14591         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
14592         * src/SDCCval.c (valDiv, valMod): fixed signdness
14593         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
14594         signedness of modulo, left and right shift
14595         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
14596         * support/Util/SDCCerr.h: added warning W_INT_OVL
14597         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
14598         * src/SDCCast.c (ast_print): improved output of constants
14599
14600 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14601
14602         Fixed some warnings when building with MSVC:
14603
14604         * as/mcs51/asdata.c
14605         * as/z80/asdata.c
14606         * as/mcs51/asm.h
14607         * as/z80/asm.h
14608         * link/z80/aslink.h
14609         * link/z80/lkdata.c
14610         * link/z80/lkeval.c
14611         * link/z80/lkgb.c
14612         * link/z80/lkihx.c
14613         * link/z80/lks19.c
14614         * link/z80/lksym.c
14615         * support/cpp2/cpplib.c
14616         * src/ds390/gen.c
14617         * src/mcs51/gen.c
14618
14619 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
14620
14621         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
14622
14623 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14624
14625         * support/librarian/clean.mk: Do not remove Makefile.
14626         * support/librarian/Makefile: added.
14627
14628 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14629
14630         Added librarian to MSVC build:
14631         * all.dsp
14632         * sdcc.dsw
14633         * support/librarian/librarian.dsp
14634
14635         'configure' not needed for librarian, removed:
14636         * support/librarian/configure
14637         * support/librarian/configure.in
14638         * support/librarian/config_in.h
14639         * support/librarian/Makefile.in
14640
14641         Hopefully these ones built the librarian and the rest of sdcc properly:
14642         * Makefile
14643         * Makefile.common.in
14644
14645         Messed up 'configure', so revert to previous version:
14646         * configure
14647         * configure.in
14648
14649 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
14650
14651         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
14652         there, while the mantissa of a double is "only" 53 bits wide.
14653
14654 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14655
14656         Adding sdcclib to the build.  MSVC project coming soon.
14657         Files added/changed:
14658
14659         * support/librarian/clean.mk
14660         * support/librarian/configure
14661         * support/librarian/configure.in
14662         * support/librarian/config_in.h
14663         * support/librarian/Makefile.bcc
14664         * support/librarian/Makefile.in
14665         * support/librarian/sdcclib.c
14666         * Makefile.bcc
14667         * Makefile
14668         * Makefile.common.in
14669         * configure
14670         * configure.in
14671
14672 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14673
14674         Linker now complaints if linked modules have conflicting options, for
14675         example, one compiled using --model-large and another one compiled with
14676         --model-small.  The following files were modified:
14677
14678         * as/mcs51/asdata.c
14679         * as/mcs51/aslink.h
14680         * as/mcs51/asm.h
14681         * as/mcs51/asmain.c
14682         * as/mcs51/asout.c
14683         * as/mcs51/i51pst.c
14684         * as/mcs51/lkdata.c
14685         * as/mcs51/lklibr.c
14686         * as/mcs51/lkmain.c
14687         * as/z80/asdata.c
14688         * as/z80/asm.h
14689         * as/z80/asmain.c
14690         * as/z80/asout.c
14691         * as/z80/z80pst.c
14692         * link/z80/aslink.h
14693         * link/z80/lkdata.c
14694         * link/z80/lklibr.c
14695         * link/z80/lkmain.c
14696         * src/SDCCglue.c
14697
14698 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14699
14700         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
14701         as/mcs51/lklibr.c: Generate a warning when a library is not found.
14702
14703 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
14704
14705         * src/z80/mappings.i: fix _mul[us][int,long] entries
14706
14707 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14708
14709         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
14710
14711 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
14712
14713         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
14714         * support/regression/tests/bitopcse.c: added
14715         fixed warning:
14716         * src/avr/gen.c:
14717         * src/pic/gen.c:
14718         * src/pic16/gen.c:
14719         * src/z80/gen.c:
14720         * src/xa51/gen.c:
14721
14722 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14723
14724         added support for new library format to z80, gbz80 linkers:
14725         *link/z80/aslink.h
14726         *link/z80/lklex.c
14727         *link/z80/lklib.c
14728         *link/z80/lklist.c
14729
14730 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
14731
14732         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
14733         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
14734
14735 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
14736
14737         added DUMMY_READ_VOLATILE:
14738         * src/SDCC.y:
14739         * src/avr/gen.c:
14740         * src/xa51/gen.c:
14741         * src/z80/gen.c:
14742         * src/pic/gen.c:
14743         * src/pic16/gen.c:
14744         * src/mcs51/gen.c:
14745         * src/ds390/gen.c:
14746         * src/SDCCcse.c (algebraicOpts): many improvements
14747         * src/SDCCcse.h: removed algebraicOpts()
14748         * src/SDCCicode.c (picDummyRead): added
14749
14750 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14751
14752         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
14753         "Insufficient space in data memory".
14754
14755 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14756
14757         * src/mcs51/gen.c: fixed bug #771358
14758         * src/z80/gen.c: fixed bug #759087
14759
14760 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
14761
14762         * src/pic16/glue.c: minor cleanup by Vangelis
14763
14764 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14765
14766         * device/include/regc515c.h: fixed #758477
14767         * device/lib/_gptrget.c: saving some cycles in generic pointer get
14768         * device/lib/_gptrput.c: saved a few bytes
14769         * my tab spacing is 8, yours too?)
14770         * device/lib/_ser.c: process RX bytes earlier than TX bytes
14771         * device/lib/serial.c: process RX bytes earlier than TX bytes
14772         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
14773
14774 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14775
14776         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
14777
14778 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14779
14780         * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
14781
14782 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
14783
14784         * device/lib/Makefile.in: bad fix, reverted to 1.43
14785
14786 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
14787
14788         * device/lib/Makefile.in: added missing z80 object files
14789
14790 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
14791
14792         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
14793         pic16 progress by Vangelis:
14794         * src/SDCCglobl.h:
14795         * src/SDCCmain.c:
14796         * src/pic/Makefile:
14797         * src/pic:
14798         * pic/Makefile:
14799         * pic16/device.c:
14800         * pic16/device.h:
14801         * pic16/gen.c:
14802         * pic16/gen.h:
14803         * pic16/genarith.c:
14804         * pic16/glue.c:
14805         * pic16/main.c:
14806         * pic16/pcode.c:
14807         * pic16/pcode.h:
14808         * pic16/pcodepeep.c:
14809         * pic16/peeph.def:
14810
14811 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14812
14813         * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
14814
14815 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14816
14817         * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
14818         added gbz80 build to MSVC project.
14819         * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
14820         link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
14821         from 8051 stuff and setup so it links using a .lnk file.
14822
14823 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14824
14825         * support/librarian/sdcclib.c: sdcc librarian.
14826         * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
14827         with sdcclib.
14828
14829 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14830
14831         * as/mcs51/lkmain.c: properly handle extensions in function afile.
14832
14833 2003-07-02  Borut Razem <borut.razem AT siol.net>
14834
14835         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
14836         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
14837         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
14838         src/xa51/main.c, src/z80/main.c:
14839         virtualization of glue() function: each port has it's own glue function,
14840         which is accessed by do_glue function pointer in PORT.general structure
14841
14842 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
14843
14844         * DS800C400 fun, improved ROM interface and tinibios.
14845
14846 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
14847
14848         * More support for DS80C400. Now includes beginning of interface to ROM.
14849
14850 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
14851
14852         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
14853
14854 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14855
14856         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
14857
14858 2003-06-19  Borut Razem <borut.razem AT siol.net>
14859
14860         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
14861
14862 2003-06-19  Borut Razem <borut.razem AT siol.net>
14863
14864         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
14865         fixed Z80 port - crt0.o: cannot open.
14866
14867 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
14868
14869         * support/Util/MySystem.c (merge_command): revert bad fix
14870
14871 2003-06-18  Borut Razem <borut.razem AT siol.net>
14872
14873         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
14874
14875 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14876
14877         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
14878         option --use-stdout sends errors to stdout instead of stderr.
14879
14880 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
14881
14882         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
14883
14884 2003-06-15  Borut Razem <borut.razem AT siol.net>
14885
14886         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
14887         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
14888         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
14889         fixed width array of pointers replaced with sets;
14890         multiple include and lib paths ared transferred to preprocessor and linker
14891         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
14892         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
14893         fixed width array of pointers
14894         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
14895         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
14896         fixupPath(), getPathDifference()
14897         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
14898         fixed width array of pointers
14899
14900 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
14901
14902         * src/pic16/ralloc.c: fix warnings
14903         * src/pic16/pcode.c: fix warning
14904
14905 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
14906
14907          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
14908         know all the details, but essentially this set of changes enable
14909         the pic16 port to generate movff instructions and generate assembler
14910         directives,
14911         * src/SDCCmain.c:
14912         * src/pic16/gen.c:
14913         * src/pic16/glue.c:
14914         * src/pic16/pcode.c:
14915         * src/pic16/device.c:
14916         * src/pic16/main.c:
14917         * src/pic16/pcode.h:
14918         * src/pic16/pcoderegs.c:
14919         * src/pic16/ralloc.c:
14920         * src/pic16/ralloc.h:
14921
14922 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14923
14924         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
14925         added option --vc, so sdcc errors and warnings are compatible with
14926         Microsoft Visual Studio.
14927
14928 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14929
14930         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
14931           device/lib/libfloat.lib: added atof function.
14932
14933 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
14934
14935         * doc/sdccman.lyx: updated to Lyx 1.3
14936         * doc/cdbfileformat.lyx: updated to Lyx 1.3
14937         * doc/test_suite_spec.lyx: updated to Lyx 1.3
14938         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
14939
14940 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
14941
14942         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
14943
14944 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14945
14946         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
14947           additions to the "related tools/documentation" section
14948
14949 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
14950
14951         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
14952
14953 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
14954
14955         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
14956         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
14957
14958 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
14959
14960         * doc/sdccman.lyx: fix double dash and other minor things
14961         * doc/Makefile: fix double dash
14962
14963 2003-05-28  Karl Bongers(patches from Martin Helmling)
14964         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
14965           condition and ignore commands.
14966
14967 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14968
14969         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
14970           is in parts still quite out of date, I did changes as far as I felt makes sense
14971           for a non-native english speaker.
14972           Please feel free to add to the manual or to correct my changes.
14973         * doc/Makefile: undid touching the date of intermediate tex files.
14974
14975 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14976
14977         * doc/sdccman.lyx: Manual has an index now
14978
14979 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
14980
14981         Finalize muluint/mulsint and mululong/mulslong merging:
14982         * device/lib/_mulint.c
14983         * device/lib/_mullong.c
14984         * device/lib/gbz80/mul.s
14985         * device/lib/gbz80/stubs.s
14986         * device/lib/z80/mul.s
14987         * device/lib/z80/stubs.s
14988         * src/SDCCsymt.c (initCSupport)
14989
14990 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14991
14992         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
14993         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
14994           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
14995           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
14996           instead of /Zm500.
14997
14998 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14999
15000         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
15001           the regression tests I'm not brave enough to enable 245.b, 245.c
15002         * doc/sdccman.lyx: added latex preamble for hyperref package.
15003           Using pdflatex this will give you a hyperlinked pdf file with
15004           bookmarks. (prepend '%' before /usepackage if this breaks something)
15005
15006 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15007
15008          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
15009
15010 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
15011
15012         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
15013
15014 2003-05-21    <johan AT balder>
15015
15016         * src/SDCCglue.c (printIval): fixed bug #739934
15017
15018 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
15019
15020         Applied patch from bug 737905 (renamed yylineo to mylineno):
15021         * src/altlex.c
15022         * src/SDCCast.c
15023         * src/SDCglobl.h
15024         * src/SDCC.lex
15025         * src/SDCCsymt.c
15026         * src/SDCCval.c
15027         * src/pic16/pcode.c: Cleaned warnings
15028         * src/pic16/pcodeflow.c: Cleaned warnings
15029         * src/pic16/pcoderegs.c: Cleaned warnings
15030
15031 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
15032
15033         * src/pic16/pcode.c: Cleaned warnings
15034         * src/pic16/pcodepeep.c: Cleaned warnings
15035         * src/pic16/ralloc.c: Cleaned warnings
15036
15037 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
15038
15039         * doc/sdccman.lyx: fixed bug 739745
15040         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
15041
15042 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
15043
15044         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
15045         it can be defined with CFLAGS when running configure
15046         * src/SDCCmain.c: fixed compiling + linking with object files
15047
15048 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
15049
15050         * configure.in: configure for pic16 port,
15051             added --disable-pic16-port
15052         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
15053         * src/SDCCmain.c: linkOptions is changed to set *,
15054             added if/endif conditional macros to remove options help
15055             messages from optionsTable when a port is not configured, added
15056             support for the PIc16 port in the ports table, when executing
15057             the compiler with no port specified on command line, a default
15058             port is selected with the new macro DEFAULT_PORT which is
15059             defined in port.h, in setDefaultOptions() linkOptions is removed
15060             from initialization assignment, since now it is a set,
15061             parseCmdLine uses setParseWithComma for linkOptions, in
15062             linkEdit() linkOptions are accessed with new function indexSet()
15063             which returns the i'th item of a set variable. See SDCCset.c, in
15064             linkEdit() when calling buildCmdLine(), added linkOptions as
15065             last argument. Now users can pass arguments to gplink via the
15066             -Wl option, main() uses pic16glue() to glue up pic16 programs
15067         * src/SDCCpeeph.c: various changes to support pic16
15068         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
15069             return the i'th item of the set
15070         * src/SDCCset.h: added function prototype for indexSet()
15071         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
15072         * src/clean.mk: added pic16 in CLEANALLPORTS variable
15073         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
15074             added macro DEFAULT_PORT
15075         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
15076         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
15077             generated
15078         * src/pic16/glue.c: commented out some error producing lines
15079         * src/pic16/main.c: __config directives are commented out to stop
15080             gpasm complaining and test the linkage with gplink, _linkCmd and
15081             _asmCmd changed to be more gplink and gpasm friendly
15082         * src/pic16/peeph.def: peep rule 3 is commented out, since it
15083             produced an error when parsed, peep rule 12 is added to utilize
15084             movff, but it is commented out since the pCode does not support
15085             yet a command with 2 address arguments
15086
15087 2003-05-18    <johan AT balder>
15088
15089         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
15090         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
15091 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
15092
15093         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
15094         Added feature to script commands from file.
15095
15096 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
15097
15098         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
15099         * src/SDCCutil.c: include ctype.h for win32
15100
15101 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
15102
15103         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
15104
15105 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
15106
15107         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
15108         Fixed so you can set breakpoints prior to run, run does not stop
15109         on entry now.  Add tbreak.  Other enhancements and fixes for use
15110         with ddd.
15111
15112 2003-05-12  Borut Razem <borut.razem AT siol.net>
15113
15114         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
15115
15116 2003-05-11  Borut Razem <borut.razem AT siol.net>
15117
15118         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
15119         the path of bin directory, so that PATH is the only env. variable, which has to be set
15120         in case of standard installation.
15121         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
15122         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
15123         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
15124
15125 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
15126
15127         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
15128         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
15129         temp files are in the port dir; clean the gen/test directory when
15130         generating new test.c
15131         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
15132         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
15133         * support/regression/tests/zeropad.c: added
15134
15135 2003-05-09    <johan AT balder>
15136
15137         * src/SDCCglue.c: fixed bug #597940
15138
15139 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
15140
15141         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
15142         cache sfr, optimize next,step, fix off by one sourceline,
15143         support ddd list function.
15144         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
15145
15146 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
15147
15148         * support/regression/HTMLgen.py: added compare_s2f()
15149         * support/regression/Makefile: redo 1.27
15150         * support/regression/generate-cases.py: redo 1.5
15151
15152 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
15153
15154         * support/regression/tests/float.c: workaround 33 bit hex constant
15155         * support/regression/tests/simplefloat.c: fix division for host
15156
15157 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
15158
15159         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
15160         that tame's the PIC's over-aggressive optimizer.
15161
15162 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15163
15164          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
15165          support for MSVC.
15166
15167 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
15168
15169         Initial support for DS80C400. "Hello world" runs on TINIm400
15170         (with polled I/O).
15171
15172 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
15173
15174          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
15175          * Some notes on ddd usage added in debugger/README
15176          Martin Helmling adding more features and fixes for ddd GUI debugger.
15177          Code added for nexti, stepi, up, down, and other adjustments.
15178
15179 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
15180
15181         * src/pic/pCodepeep.c non-wildcard asmops are now handled
15182         * src/pic/peeph.def Added two rules to optimize carry manipulation
15183         * src/pic/* removed debug printfs
15184
15185 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
15186
15187         * debugger/mcs51/cmd.c: added header newalloc.h
15188
15189 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
15190
15191         * as/Makefile: new EXEEXT
15192         * as/z80/Makefile: remove trailing slash of BUILDIR
15193         * as/z80/clean.mk: new EXEEXT
15194         * Makefile.common.in: add to CFLAGS (and others), don't replace it
15195         * support/cpp2/Makefile.in: new EXEEXT
15196         * src/pic/glue.c (pic14emitRegularMap): fixed warning
15197
15198 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
15199
15200         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
15201         EXEEXT was introduced to fix all related problems with targets
15202         "clean", "install" and "uninstall"; a couple of further flaws
15203         especially with "clean" have been fixed too
15204         * as/mcs51/Makefile.in
15205         * as/mcs51/clean.mk
15206         * as/z80/Makefile
15207         * Makefile
15208         * clean.mk
15209         * debugger/mcs51/Makefile.in
15210         * debugger/mcs51/clean.mk
15211         * link/z80/Makefile
15212         * link/z80/Makefile.in
15213         * link/z80/clean.mk
15214         * link/Makefile
15215         * packihx/Makefile.in
15216         * packihx/clean.mk
15217         * sim/ucsim/Makefile
15218         * sim/ucsim/clean.mk
15219         * sim/ucsim/avr.src/Makefile.in
15220         * sim/ucsim/avr.src/clean.mk
15221         * sim/ucsim/s51.src/Makefile.in
15222         * sim/ucsim/s51.src/clean.mk
15223         * sim/ucsim/xa.src/Makefile.in
15224         * sim/ucsim/xa.src/clean.mk
15225         * sim/ucsim/z80.src/Makefile.in
15226         * sim/ucsim/z80.src/clean.mk
15227         * sim/ucsim/main_in.mk
15228         * sim/ucsim/packages_in.mk
15229         * sim/ucsim/gui.src/Makefile.in
15230         * sim/ucsim/gui.src/serio.src/Makefile.in
15231         * sim/ucsim/gui.src/serio.src/clean.mk
15232         * src/Makefile.in
15233         * src/clean.mk
15234         * support/cpp2/Makefile.in
15235         * support/cpp2/clean.mk
15236         * support/makebin/Makefile
15237         * support/makebin/clean.mk
15238         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
15239         * doc/sdccman.lyx: --program-suffix no longer needed
15240
15241 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
15242
15243          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
15244          Martin Helmling added support for ddd GUI debugger.
15245          Code added to display assembly, set variables, and other commands
15246          to interface to ddd.
15247
15248 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
15249
15250         * as/Makefile: fix target clean
15251         * as/clean.mk: fix target clean
15252         * as/z80/clean.mk: fix target clean
15253
15254 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
15255
15256         * Makefile.common.in: added  AT EXEEXT AT
15257         * configure.in: removed all mingw32 stuff
15258         * configure: rebuilt from configure.in
15259         * doc/sdccman.lyx: updated section "installation"
15260         * support/scripts/sdcc_mingw32: adapted to configure
15261         * support/scripts/sdcc_cygwin_mingw32: added
15262
15263 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
15264
15265         * src/pic Added object file support for the PIC port
15266         * src/pic Applied patch from Craig Franklin (this started the object file support)
15267         * src/regression Updated the PIC regression tests for object files
15268
15269 2003-04-20  Borut Razem <borut.razem AT siol.net>
15270
15271         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
15272           lklex.c: In function `getfid':
15273           lklex.c:203: warning: array subscript has type `char'
15274         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
15275           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
15276         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
15277           stack handling macros
15278
15279 2003-04-19  Borut Razem <borut.razem AT siol.net>
15280
15281         * "handling space characters in file path" task:
15282         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
15283         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
15284         * support/Util/MySystem.h: make it self-sufficient
15285         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
15286           src/z80/main.c, sdcc/as/mcs51/lklex.c:
15287           handling space characters in file path
15288         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
15289           (it will be used by assemblers, which have their own includes, e.g. gpasm)
15290         * support/Util/MySystem.c: handling space characters in executable's path
15291
15292 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
15293
15294         * as/z80/Makefile: fix permanent rebuild of z80
15295         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
15296         * support/regression/tests/bitfields.c: added Johan's bitfields.c
15297
15298 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
15299
15300         * src/SDCCopt.c: add special case optimization to replace modulo by
15301           a power of two with a bitwise AND.
15302
15303 2003-04-18    <johan AT balder>
15304
15305         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
15306
15307 2003-04-17    <johan AT balder>
15308
15309         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
15310         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
15311
15312 2003-04-13  Borut Razem <borut.razem AT siol.net>
15313
15314         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
15315         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
15316           fixed mingw problem in adl_NORMALIZE_PATH
15317
15318 2003-04-12  Borut Razem <borut.razem AT siol.net>
15319
15320         * fixed "#pragma SAVE/RESTORE can not be nested":
15321         * src/SDCC.lex: reworked pragma handling functions
15322         * sdcc/src/SDCCglobl.h: reworked stack handling macros
15323         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
15324
15325 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
15326
15327         * src/SDCCutil.c (pathEquivalent): defined but not used
15328         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
15329         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
15330         * configure: rebuilt from configure.in
15331         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
15332         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
15333         * device/include/Makefile.in: replace sdcc_datadir
15334         * device/lib/Makefile.in: replace sdcc_datadir
15335         * Makefile.common.in: add LDFLAGS from configure
15336         * packihx/Makefile.in: use LDFLAGS
15337         * src/Makefile.in: use LDFLAGS
15338         * support/cpp2/Makefile.in: add LDFLAGS from configure
15339         * support/makebin/Makefile: use LDFLAGS
15340         * .version: bumped version number to 2.3.5
15341
15342 2003-04-12  Borut Razem <borut.razem AT siol.net>
15343
15344         * completed "different paths" task:
15345         * src/SDCCmacro.c: fixed bug in handling quotes
15346         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
15347         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
15348
15349 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
15350
15351         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
15352
15353 2003-04-11 kevin Vigor <kevin AT vigor.nu>
15354
15355         * ds390/gen.c ds390/peeph.def: fix bug 706781
15356
15357 2003-04-11  Borut Razem <borut.razem AT siol.net>
15358
15359         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
15360
15361 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
15362
15363         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
15364         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
15365          set - this bit used to not be set...).
15366         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
15367           bad code in PIC Port
15368         * src/regression/and2.c added to test bug 609268
15369         * src/regression/Makefile added and2.c to regression test
15370
15371
15372 2003-04-08    <johan AT CP255758-A>
15373
15374         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
15375         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
15376         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
15377
15378 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
15379
15380         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
15381         fix bug #487815
15382         * support/cpp2/Makefile.in: fix bug #487815
15383         * configure: rebuilt from configure.in
15384         * Makefile.common.in: docdir changed, new path suffixes
15385         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15386         * sdcc_vc_in.h: reflect changes from sdccconf.h
15387         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
15388         * src/SDCCutil.h: remove BINDIR hack
15389         * doc/sdccman.lyx: update new path hierarchy
15390
15391 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15392
15393         * src/SDCCpeeph.c: added okToRemoveSLOC test
15394
15395 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15396
15397         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
15398
15399 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15400
15401         * src/SDCCpeeph.c: added labelIsReturnOnly test
15402         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
15403
15404 2003-04-05    <johan AT balder>
15405
15406         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
15407         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
15408         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
15409         * src/SDCCast.c: fixed a warning
15410         * src/SDCCast.h: fixed a warning
15411         * src/SDCCicode.c (operandFromAst): fixed a warning
15412
15413 2003-04-04    <johan AT balder>
15414
15415         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
15416         * src/SDCCast.c (decorateType): fixed bug #715076
15417         * src/SDCC.y: fixed bug #702907
15418
15419 2003-04-03    <johan AT balder>
15420
15421         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
15422         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
15423         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
15424         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
15425         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
15426
15427 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
15428
15429         * _decdptr.c: fix return values
15430         * _gptrget.c: fix return values
15431         * _gptrgetc.c: fix return values
15432         * _gptrput.c: fix return values
15433         * _mulint.c: fix return values
15434         * as/z80/Makefile: fix 'make -j' problem
15435
15436 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
15437
15438         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
15439         * configure.in: big cleanup, updated to autoconf 2.5x
15440         * configure: rebuilt from configure.in
15441         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15442         * sdcc_vc_in.h: reflect changes from sdccconf.h
15443         * doc/Makefile: fixed a flaw in "make install"
15444
15445 2003-04-02    <johan AT balder>
15446
15447         * src/ds390/gen.c (genCmp): no comments
15448         * src/mcs51/gen.c (genCmp): no comments
15449         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
15450         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
15451
15452 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
15453
15454         * support/regression/generate-cases.py: place generated file in given sub directory
15455         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
15456         * support/regression/Makefile: improvements for 'make -j';
15457         side effect: it's simpler and faster now
15458
15459 2003-03-31  Borut Razem <borut.razem AT siol.net>
15460
15461         * src/z80/main.c: link-{port} and as-{port} defined without path
15462         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
15463
15464 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
15465
15466         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
15467
15468 2003-03-30  Borut Razem <borut.razem AT siol.net>
15469
15470         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
15471           changed type of list parameter to set
15472         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
15473         * src/port.h: changed type of do_assemble() parameter to set
15474         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
15475           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
15476           definition of "cppoutfilename" macro with NULL value in preProcess()
15477         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
15478         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
15479         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
15480           replaced with set *binPathSet
15481         * shash_add() deallocates the item, if allready exsists, before adding the new one
15482         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
15483
15484 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
15485
15486         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
15487           a nested for loop bug in the PIC port
15488         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
15489           for loops
15490
15491 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
15492
15493         * support/Util/dbuf.h: remove C++ stuff to make it portable
15494
15495 2003-03-28  Borut Razem <borut.razem AT siol.net>
15496
15497         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
15498           literal strings in stringLiteral()
15499         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
15500         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
15501           to the project
15502
15503 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
15504
15505         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
15506
15507 2003-03-26    <johan AT balder>
15508
15509         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
15510         * src/ds390/gen.c (saveRegisters): catched symbol abuse
15511         * src/SDCCast.c (decorateType): fixed " -v < 3"
15512
15513 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
15514
15515         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
15516         Added Lenny Story's debug infrastructure changes:
15517         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
15518         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
15519         * src/cdbFile.c: added
15520         * src/SDCCdebug.c: added
15521         * src/SDCCdebug.h: added
15522         * src/SDCCast.c (createFunction)
15523         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
15524         * src/SDCCmain.c (parseCmdLine, main)
15525         * src/SDCCmem.c (redoStackOffsets)
15526         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
15527         * src/SDCCsymt.h
15528         * src/common.h
15529         * src/avr/gen.c (genAVRCode)
15530         * src/ds390/gen.c (gen390Code)
15531         * src/mcs51/gen.c (gen51Code)
15532         * src/pic/gen.c (genpic14Code)
15533         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
15534         * src/xa51/gen.c (genXA51Code)
15535         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
15536
15537 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15538
15539         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
15540         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
15541
15542 2003-03-22    <johan AT balder>
15543
15544         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
15545
15546 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
15547
15548         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
15549         * doc/cdbfileformat.lyx: added, written by Lenny Story
15550         * doc/Makefile: added cdbfileformat.lyx
15551         * doc/clean.mk: added cdbfileformat.lyx
15552
15553 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
15554
15555         * src/mcs51/peeph.def: fix bug #705773
15556
15557 2003-03-20    <johan AT balder>
15558
15559         An sfr/sbit can have an "at #" AND an initializer
15560         * src/SDCCsymt.c (checkSClass):
15561         * src/SDCCmem.c (allocGlobal):
15562         * src/SDCCmem.c (allocLocal):
15563         * src/SDCCast.c (createBlock):
15564
15565 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
15566
15567         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
15568
15569 2003-03-16    <johan AT balder>
15570
15571         Undid the hackup of const and volatile, the problem is much bigger
15572         * src/SDCC.y:1.65
15573         * src/SDCCast.c:1.171
15574         * src/SDCCglue.c:1.138
15575         * src/SDCCicode.c:1.146
15576         * src/SDCCsymt.c:1.150
15577         * src/SDCCval.c:1.65
15578
15579 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
15580
15581         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
15582         * src/ds390/gen.c (genAddrOf): fixed bug #704087
15583
15584 2003-03-13    <johan AT balder>
15585
15586         Hackup const and volatile modifiers in type chains a bit:
15587         * src/SDCC.y:1.63
15588         * src/SDCCast.c:1.169
15589         * src/SDCCglue.c:1.136
15590         * src/SDCCicode.c:1.143
15591         * src/SDCCsymt.c1.146
15592         * src/SDCCsymt.h1.59
15593         * src/SDCCval.c:1.63
15594
15595 2003-03-12    <johan AT balder>
15596
15597         * src/SDCCBBlock.h: more LRH debugging junk
15598         * src/SDCCcflow.h: more LRH debugging junk
15599         * src/SDCCloop.c: more LRH debugging junk
15600         * src/SDCC.y (struct_declaration): fixed bug #697590
15601         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
15602         * src/ds390/gen.c (aopForRemat): fixed bug #700031
15603         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
15604
15605 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15606         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
15607         test function names must now match exactly).
15608         * src/SDCCcse.c: added special case in findCheaperOp to allow
15609         extending a short integer. Makes less awful code for bug 700121 test case.
15610
15611 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15612
15613         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
15614         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
15615
15616 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15617
15618         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
15619         actually called (operandsNotEqual() was called for all
15620         operandsNotEqualX tests).
15621
15622 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15623
15624         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
15625         with shorter literals. Fixes bug 700121.
15626
15627 2003-03-11    <johan AT balder>
15628
15629         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
15630
15631 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
15632
15633         * src/SDCCloop.c (mergeRegions): an evil beast is dead
15634         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
15635
15636 2003-03-10  Borut Razem <borut.razem AT siol.net>
15637
15638         * src/SDCCmain.c: pipe preprocessor's output
15639         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
15640         * sdcc_vc_in.h: define pclose as _pclose for WIN32
15641         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
15642         which closes all pipes in pipeSet set
15643         * src/SDCCset.c: free deleted item in function deleteSetItem()
15644         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
15645         moved from z80 to src subproject
15646         * .version: increased version number to 2.3.4
15647
15648 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
15649
15650         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
15651         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
15652         * support/regression/ports/xa51/spec.mk: fix typo
15653
15654 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
15655
15656         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
15657
15658 2003-03-09  Borut Razem <borut.razem AT siol.net>
15659
15660         * src/SDCCmain.c: pipe preprocessor's output
15661         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
15662         * sdcc_vc_in.h: define pclose as _pclose for WIN32
15663         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
15664         which closes all pipes in pipeSet set
15665         * src/SDCCset.c: free deleted item in function deleteSetItem()
15666         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
15667         moved from z80 to src subproject
15668
15669 2003-03-09  Borut Razem <borut.razem AT siol.net>
15670
15671         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
15672         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
15673         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
15674         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
15675         * src/SDCCglobl.h: unification of WIN32 native definitions
15676
15677 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15678
15679         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
15680
15681 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
15682
15683         * src/configure.in:   check for endianess (even while cross-compiling)
15684         * src/configure:      check for endianess (even while cross-compiling)
15685         * src/configure_in.h: check for endianess (even while cross-compiling)
15686         * src/avr/gen.c:        remove old endianess stuff
15687         * src/mcs51/gen.c:      remove old endianess stuff
15688         * src/ds390/gen.c:      remove old endianess stuff
15689         * src/pic/gen.c:        remove old endianess stuff
15690         * src/pic/genarith.c:   remove old endianess stuff
15691         * src/pic/glue.c:       fix endianess check
15692         * src/pic16/gen.c:      remove old endianess stuff
15693         * src/pic16/genarith.c: remove old endianess stuff
15694         * src/pic16/glue.c:     fix endianess check
15695         * src/xa51/gen.c:       remove old endianess stuff
15696         * src/z80/gen.c:        fix endianess check
15697         * src/SDCCglue.c:       fix endianess check
15698         * src/ds390/peeph.def: fix bug 700036
15699
15700 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
15701
15702         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
15703         * src/configure: find appropriate data-types on host for SDCC's int and long
15704         * src/configure.in: find appropriate data-types on host for SDCC's int and long
15705         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
15706         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
15707
15708 2003-03-07    <johan AT balder>
15709
15710         Just a big NOOP:
15711                 some minor cleanups before the big shot
15712                 OP_DEFS and OP_USES now use Kevin's protection
15713                 new option --nolabelopt
15714
15715         * src/SDCCBBlock.c:
15716         * src/SDCCast.c,:
15717         * src/SDCCcflow.c:
15718         * src/SDCCcse.c:
15719         * src/SDCCicode.c:
15720         * src/SDCCicode.h:
15721         * src/SDCClabel.c:
15722         * src/SDCCloop.c:
15723         * src/SDCCmain.c:
15724         * src/ds390/ralloc.c:
15725         * src/mcs51/ralloc.c:
15726         * src/pic/ralloc.c:
15727         * src/xa51/ralloc.c:
15728         * src/z80/ralloc.c:
15729
15730 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
15731
15732         * src/pic/pcode.c (get_op): fix 64 bit warnings
15733         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
15734         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
15735         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
15736         * support/regression/tests/malloc.c: fix 64 bit warnings
15737
15738 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
15739
15740         * src/mcs51/gen.c (genMinus): fixed bug 696436
15741
15742 2003-03-02  Borut Razem <borut.razem AT siol.net>
15743
15744         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
15745
15746 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
15747
15748         * configure.in: test for mkstemp
15749         * sdccconf_in.h: add HAVE_MKSTEMP
15750
15751 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
15752
15753         * device/include/ctype.h: removed warning while using --stack-auto
15754         * device/include/malloc.h: removed warning while using --stack-auto
15755         * device/include/string.h: removed warning while using --stack-auto
15756
15757 2003-02-23  Borut Razem <borut.razem AT siol.net>
15758
15759         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
15760         because NDEBUG is defined (see man assert)
15761         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
15762
15763 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15764
15765         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
15766         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
15767
15768 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15769
15770         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
15771         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
15772
15773 2003-02-18    <johan AT balder>
15774
15775         * as/mcs51/asmain.c (asmbl): module can start with a digit
15776         * as/z80/asmain.c (asmbl): module can start with a digit
15777
15778 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
15779
15780         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
15781         * src/asm.c: fix pipe() for Mingw32
15782
15783 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
15784
15785         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
15786         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
15787         make -V work again; --c1mode reads now from stdin
15788         * doc/sdccman.lyx: added --c1mode
15789         * support/Util/SDCCerr.c: new messages for c1 mode
15790         * support/Util/SDCCerr.h: new messages for c1 mode
15791         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
15792
15793 2003-02-15    <johan AT balder>
15794
15795         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
15796
15797 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
15798
15799         * doc/sdccman.lyx: Environment variables, -o and other minor things
15800
15801 2003-02-14    <johan AT balder>
15802
15803         * src/xa51/main.c: before anyone really tries to use it :)
15804
15805         * Install doc's in share/sdcc/doc
15806         * removed some obsolete files
15807         * Do a proper make distclean and uninstall
15808         M Makefile.common.in
15809         R sdccbuild.sh
15810         M as/Makefile
15811         M device/include/Makefile.in
15812         M device/lib/Makefile.in
15813         M doc/sdccman.lyx
15814         M link/Makefile
15815         M sim/ucsim/doc/Makefile.in
15816         M src/clean.mk
15817         R src/avr/peeph.rul
15818         R src/xa51/peeph.rul
15819         M support/cpp2/Makefile.in
15820         M support/makebin/Makefile
15821
15822
15823 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
15824
15825         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
15826
15827 2003-02-10  Borut Razem <borut.razem AT siol.net>
15828
15829         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
15830         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
15831         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
15832         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
15833         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
15834         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
15835         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
15836         src/z80/Makefile.bcc: Borland Makefile cleanup
15837         * as/z80/Makefile.bcc: Added Borland Makefile
15838         * support/cpp2/borland.h: Removed
15839
15840 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
15841
15842         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
15843         * src/SDCC.lex: new pragma NOIV
15844         * src/SDCCglobl.h: new pragma NOIV
15845         * src/SDCCmem.c: new pragma NOIV
15846
15847 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
15848
15849         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
15850
15851 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
15852
15853         * src/SDCCmain.c: signal handling is switched off by --debug
15854         * doc/Makefile: small fix for install; use clean.mk again
15855         * doc/clean.mk: clean *.pdf and *.html too
15856
15857 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
15858
15859         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
15860         * device/lib/printfl.c: fix a ds390 bug by making it portable
15861         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
15862         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
15863         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
15864         * debugger/mcs51/cmd.c: converted multi-line string literals
15865         * sim/ucsim/globals.cc: converted multi-line string literals
15866         * src/SDCCmain.c: introduced signal handler to remove temp files
15867         * doc/Makefile: small tweaks, implement clean
15868         * doc: removed generated files
15869
15870 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15871
15872         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
15873         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
15874         Address Record is not correctly generated for DS390."
15875
15876 2003-02-02  Borut Razem <borut.razem AT siol.net>
15877
15878         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
15879         * as/mcs51/asm.h: fixed compilation with Borland C
15880         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
15881         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
15882         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
15883         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
15884         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
15885         src/z80/Makefile.bcc: delete $(LIB) only if exist
15886         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
15887
15888 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
15889
15890         * device/include/malloc.h: introduced NULL
15891         * device/include/string.h: introduced NULL
15892         * device/include/stdlib.h: introduced NULL
15893         * device/lib/_memcpy.c: removed NULL
15894         * device/lib/_strcat.c: removed NULL
15895         * device/lib/_strchr.c: removed NULL
15896         * device/lib/_strcmp.c: removed NULL
15897         * device/lib/_strcpy.c: removed NULL
15898         * device/lib/_strcspn.c: removed NULL
15899         * device/lib/_strlen.c: removed NULL
15900         * device/lib/_strncat.c: removed NULL
15901         * device/lib/_strncmp.c: removed NULL
15902         * device/lib/_strncpy.c: removed NULL
15903         * device/lib/_strpbrk.c: removed NULL
15904         * device/lib/_strrchr.c: removed NULL
15905         * device/lib/_strspn.c: removed NULL
15906         * device/lib/_strstr.c: removed NULL
15907         * device/lib/_strtok.c: removed NULL
15908         * device/lib/malloc.c: removed NULL, include own header
15909
15910 2003-02-02    <johan AT balder>
15911
15912         * 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
15913         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
15914         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
15915         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
15916         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
15917         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
15918
15919 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15920
15921         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
15922         area 'DATA'"
15923
15924 2003-02-01    <johan AT balder>
15925
15926         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
15927
15928 2003-01-31    <johan AT CP255758-A>
15929
15930         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
15931
15932 2003-01-30    <johan AT balder>
15933
15934         * src/SDCCBBlock.c: automatic bug detection
15935         * src/SDCCicode.c: automatic bug detection
15936
15937 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15938
15939         * src/SDCCglobl.h:   now --xram-size 0 works
15940         * src/SDCCmain.c:    now --xram-size 0 works
15941
15942 2003-01-29    <johan AT balder>
15943
15944         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
15945
15946 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15947
15948         * as/mcs51/aslink.h: Added options --xram-size and --code-size
15949         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
15950         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
15951         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
15952         * src/SDCCglobl.h:   Added options --xram-size and --code-size
15953         * src/SDCCmain.c:    Added options --xram-size and --code-size
15954
15955 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
15956
15957         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
15958         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
15959
15960 2003-01-27    <johan AT balder>
15961
15962         * src/SDCC.y: fixed bug #613764
15963
15964 2003-01-26    <johan AT balder>
15965
15966         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
15967         * src/SDCCsymt.h: fixed bug #673374
15968         * src/SDCCglue.c: fixed bug #661910
15969         * src/SDCCast.c: fixed bug #458099 and 673374
15970
15971 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
15972
15973         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
15974         * as/mcs51/strcmpi.h: added
15975         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
15976         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
15977         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
15978         * as/mcs51/assym.c: strcmpi -> as_strcmpi
15979         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
15980         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
15981         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
15982         * as/mcs51/Makefile.aslink: new module strcmpi
15983         * as/mcs51/Makefile.asx8051: new module strcmpi
15984         * as/mcs51/Makefil.bcc: new module strcmpi
15985         * as/mcs51/Makefile.in: new module strcmpi
15986         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
15987
15988 2003-01-26    <johan AT balder>
15989
15990         * src/SDCCglue.c: reverted back to 1.124
15991         * src/SDCCast.c: reverted back to 1.156
15992         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
15993
15994 2003-01-25    <johan AT balder>
15995
15996         * src/SDCCglue.c: A better fix for bug #661910
15997         * src/SDCCast.c: A better fix for bug #661910
15998         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
15999
16000 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
16001
16002         * src/Makefile.in: remove spawn.o
16003         * src/SDCCmain.c: remove spawn.h
16004         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
16005         * src/spawn.c: removed
16006         * src/spawn.h: removed
16007         * support/regression/ports/ds390/spec.mk: link with -r
16008
16009 2003-01-24    <johan AT CP255758-A>
16010
16011         * src/ds390/gen.c (aopOp): fixed bug #667458
16012         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
16013         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
16014         (createIvalCharPtr): an ival doesn't always have a storage class anymore
16015
16016 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
16017
16018         * src/mcs51/peeph.def: better assembler identation by Frieder
16019         * src/mcs51/gen.c: better assembler identation by Frieder
16020
16021 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
16022
16023         * as/z80/string.h: removed for gcc 3.2
16024         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
16025         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
16026
16027 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
16028
16029         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
16030         * src/SDCCpeeph.c (replaceRule): fix bug #663503
16031         * support/regression/Makefile: separate temp files for ports
16032         * support/regression/generate-cases.py: separate temp files for ports
16033         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
16034         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
16035
16036 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
16037
16038         * moved tinitalk to device/examples/ds390
16039
16040 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
16041
16042         * as/mcs51/lkmem.c: rflag is for DS390
16043         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
16044         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
16045                          (linkEdit): move mem- and map-files the same way as ihx-files
16046         * src/z80/main.c (_setDefaultOptions): removed --generic
16047         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
16048         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
16049         * src/pic/glue.c (picglue): --c1mode works again
16050         * src/pic16/glue.c (pic16glue): --c1mode works again
16051         * src/asm.c (printCLine): fix #660034
16052
16053 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
16054
16055         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
16056         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
16057         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
16058         * as/mcs51/lkmem (summary): better fix for sp problem
16059         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
16060         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
16061         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
16062                                               remove --stack-after-data
16063
16064 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
16065
16066         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
16067         * src/SDCCutil.c (join): ugly bug: missing '\0'
16068         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
16069
16070 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
16071
16072         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
16073         * src/port.h: typo
16074         * src/pic/main.c (_asmCmd): gpasm supports -o
16075         * src/z80/main.c: more general macros
16076         * device/lib/Makefile.in: remove intermediate files
16077
16078 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
16079
16080         * .version: Bumped version number to 2.3.3
16081         * src/SDCCBBlock.c: new option -o
16082         * src/SDCCglobl.h: new option -o
16083         * src/SDCCglue.c: new option -o
16084         * src/SDCCmain.c: new option -o
16085         * src/asm.c: new option -o
16086         * src/ds390/main.c: new option -o
16087         * src/pic/glue.c: new option -o
16088         * src/pic/pcode.c: new option -o
16089         * src/pic/ralloc.c: new option -o
16090         * src/pic16/glue.c: new option -o
16091         * src/pic16/pcode.c: new option -o
16092         * src/pic16/ralloc.c: new option -o
16093         * src/z80/main.c: new option -o
16094         * device/lib/Makefile.in: use -o
16095         * support/regression/ports/ds390/spec.mk: use -o
16096         * support/regression/ports/gbz80/spec.mk: use -o
16097         * support/regression/ports/mcs51/spec.mk: use -o
16098         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
16099         * support/regression/ports/z80/spec.mk: use -o
16100         * support/regression/ports/ucz80/spec.mk: use -o
16101         * support/regression/ports/xa51/spec.mk: use -o
16102         * support/regression/fwk/lib/timeout.c: fix usage string
16103
16104 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
16105         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
16106
16107 2003-01-07    <johan AT balder>
16108
16109         * src/SDCCast.c (decorateType): fixed bug #600035
16110
16111 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
16112         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
16113         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
16114         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
16115         * src/pic/pcode.c: outcommented unused variable to remove warnings
16116         * src/pic/ralloc.c: outcommented unused variable to remove warnings
16117
16118 2003-01-06    <karl AT turbobit.com>
16119         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
16120         regression tests.
16121
16122 2003-01-06    <johan AT balder>
16123
16124         * src/SDCCicode.c: fixed array add
16125
16126 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
16127         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
16128         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
16129
16130 2003-01-04    <johan AT balder>
16131
16132         * src/SDCCval.c (getNelements): fixed the initialized array of structures
16133
16134 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16135         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
16136
16137 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
16138         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
16139         * support/regression/tests/bug-524697.c: fit mem usage into 8032
16140
16141 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
16142         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
16143
16144 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
16145         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
16146
16147 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
16148         * src/mcs51/main.c: removed {bindir}{sep} from aslink
16149
16150 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16151
16152         * in /sdcc/as/mcs51/ changed these files in order to create an
16153         aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
16154         lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
16155         following files to include the previous two files: aslink.dsp,
16156         Makefile.aslink, Makefile.bcc, and Makefile.in.
16157
16158         * Changed /sdcc/src/SDCCmain.c so it creates files with extension
16159         .adb instead of .cdb
16160
16161 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16162
16163         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
16164         value from option --iram-size.
16165
16166 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16167
16168         * /sdcc/as/mcs51/lklist.c: added boundary check before using
16169         dram[] array.
16170
16171 2002-09-18    <wiml AT hhhh.org>
16172
16173         * SDCClrange.h: exposed setFromRange() and setToRange()
16174         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
16175           packRegsForAccUse() (bug 542397)
16176         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
16177           multiple times and emitting the fetch operations more than once
16178           added aopGetUsesAcc() function to allow binary operators to
16179           fetch their operands in the correct order; made genMinus() emit
16180           compact code for X = LITERAL - Y
16181
16182 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16183         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
16184         sprintf() in line 1267.
16185
16186 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16187         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
16188         like ports.
16189
16190 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16191         Changes to aslink (All the changes are marked with 'JCF'):
16192
16193         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
16194         summary().
16195
16196         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
16197         area BSEG.  Also moves, if possible, the DATA area down into the internal
16198         ram so more space is available.
16199
16200         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
16201         sflag.
16202
16203         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
16204         not bytes.  Function summary() which creates a memory usage summary
16205         file with extension .mem.  Reports of overlaping stack and small stack
16206         size.  If the space for the stack is less than 16 bytes aslink trows a
16207         warning.
16208
16209         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
16210         the 8051.  Option 'y' for memory summary output file.
16211
16212         Changes to sdcc (All the changes are marked with 'JCF'):
16213
16214         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
16215
16216         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
16217         overlaying area for it (uses RegBankUsed[4]).
16218
16219         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
16220         bank zero as used by default.  By default aslink locates the stack
16221         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
16222         the creation of the .mem file.  Delegates the allocation of data area
16223         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
16224         the begining of the stack area to aslink.
16225
16226         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
16227         glue() in SDCCglue.c creates an area for it.
16228
16229 2002-09-03  Borut Razem <borut.razem AT siol.net>
16230         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
16231         sdcc/src/pic/glue.c:
16232         introduced atexit() handler for teporay files removal in case of
16233         errors, assertions, ...
16234
16235 2002-08-29  Borut Razem <borut.razem AT siol.net>
16236         * sdcc/support/cpp2/auto-host_vc_in.h:
16237         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
16238         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
16239         Maybe there is a similar problem with BORLANDC? It should be checked!
16240
16241         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
16242         corrected improper use of assert: the assignment to clr variable was done inside the assert.
16243         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
16244         was not executed, and the compiler (cl) launched a warning:
16245         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
16246
16247 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
16248         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
16249
16250 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
16251         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
16252
16253         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
16254           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
16255           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
16256           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
16257           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
16258           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
16259           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
16260         - added Release configuration in VS projects
16261         - review of compiler an linker options
16262         - VC .exe files are generated in bin_vc directory, not to interfere
16263           with binaries generated from other projects (cygwin, mingw, bcc ...)
16264
16265         * sdcc/src/yacc.dsp: added
16266
16267         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
16268         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
16269         and insert the version number definitions from .version
16270
16271         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
16272
16273         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
16274         added - genarate auto-host.h using auto-host_vc_in.h as template
16275
16276         * sdcc/sdcc_vc.h,
16277         removed from CVS, generated automatically
16278
16279 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
16280         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
16281
16282 2002-08-11  Borut Razem <borut.razem AT siol.net>
16283         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
16284
16285 2002-08-10  Borut Razem <borut.razem AT siol.net>
16286         * src/SDCCmain.c (main):
16287         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
16288         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
16289         The consequence was that some temporary files were not removed.
16290
16291         * src/SDCCglue.c:
16292         unification of code in functions tempfilename() and tempfile():
16293         function tempnam() is defined in Visual Studio 6.0 and .NET
16294
16295         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
16296
16297         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
16298           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
16299         - removed compiler command line option /WX: Treats all warnings as errors
16300         - update a list of source files, included into the project
16301
16302         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
16303           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
16304         changed project type to Generic Project so that can be correcly converted to VS.NET project
16305
16306         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
16307
16308         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
16309
16310         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
16311
16312         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
16313         added return 0 statements after assert() to make compiler happy
16314
16315         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
16316         added newline in the def file to keep MSC compiler satisfied
16317
16318         * sdcc/src/z80/gen.c:
16319         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
16320           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
16321         - solved MSC error in function aopDump()
16322
16323         * sdcc_vc.h: define PREFIX as "\\sdcc"
16324
16325 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
16326         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
16327
16328 2002-06-22  Scott Dattalo <scott AT dattalo.com>
16329         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
16330         - Rewrote the register banking algorithm.
16331         - Added pCode live-range analysis to registers (for now, only non-used and
16332         singly-used registers optimized away)
16333
16334         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
16335
16336         * 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.
16337
16338 2002-05-10  Scott Dattalo <scott AT dattalo.com>
16339         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
16340
16341 2002-04-22  Michael Hope  <michaelh AT vroom>
16342
16343         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
16344
16345         * configure.in (DD_COPT): Added include support required for gbdk.
16346
16347         * .version: Bumped version number just to increase it.
16348
16349         * src/SDCCmain.c: Added -nostdinc to the default options.
16350
16351 2002-04-15  Michael Hope  <michaelh AT vroom>
16352
16353         * device/lib/z80/printf.c (sprintf): Added.
16354
16355         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
16356
16357         * src/z80/peeph.def: Added transpose redundent load rule.
16358
16359         * src/z80/main.c: Added force callee saves for jaune.
16360
16361         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
16362
16363         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
16364
16365 2002-03-28  Johan Knol  <johan AT balder>
16366
16367         * src/SDCCval.c: fixed bug #532436
16368
16369 2002-03-14  Scott Dattalo <scott AT dattalo.com>
16370         * /src/port.h:
16371         Added "char *Processor" field to the port structure.
16372
16373         * /src/SDCCmain.c:
16374         Added -p option. Allows port dependent processor to be specified.
16375
16376         * all ports:
16377         Initialized the new field char *Processor field to NULL in all ports
16378
16379         * /src/pic/*:
16380         Compiler generated registers for interrupt context saving
16381         were not getting allocated.
16382
16383 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
16384
16385         * /src/SDCCast.c:
16386         Fixed left shift. Will promote the left side of a left shift
16387         if a) left shifting more than size of operand or b) when assigned
16388         to something size > size of left side
16389
16390 2002-03-14  Scott Dattalo <scott AT dattalo.com>
16391         * src/pic/*
16392         tons of changes. Register allocation has been
16393         rewritten. Added customization for the various PICs. Flow
16394         analysis is restructured. ...
16395
16396         * src/pic/device.h:
16397         Added
16398
16399         * src/pic/device.c:
16400         Added. device.c is a PIC port hack to accomodate variations
16401         in PIC devices.
16402
16403 2002-03-13  Michael Hope  <michaelh AT vroom>
16404
16405         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
16406
16407 2002-03-04  johanknol  <johanknol AT manik>
16408
16409         * /src/SDCCval.c: fixed
16410
16411         const unsigned char arr[][2] = { { 0, 1 } };
16412         t18.c:1: error: Initializer element is not constant
16413
16414 2002-03-04  bela  <bela AT manik>
16415
16416         * /device/include/mcs51reg.h:
16417         ds89c420 register definition update
16418
16419 2002-03-03    <johan AT FRIJA>
16420
16421         * support/Util/SDCCerr.c: did something, but don't no why anymore
16422
16423         * support/regression/tests/bug-524691.c: made it a little less shy
16424
16425         * src/SDCCast.c (decorateType): fixed bug #524697
16426
16427         * src/SDCCast.c: made some lineno improvements
16428
16429         * src/SDCCval.c (getNelements): changed warning to error
16430
16431         * src/SDCCglue.c (printIvalArray): changed warning to error
16432
16433         * src/SDCCicode.c: fixed a warning for mingw
16434
16435         * src/SDCCast.c (decorateType): fixed the << promotion for ops
16436
16437         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
16438
16439 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
16440
16441         * src/ds390/peeph.def:
16442         Added some more peephole rules
16443
16444         * src/ds390/gen.c: Various fixes & enhancements
16445
16446         * src/SDCClrange.c, src/SDCClrange.h:
16447         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
16448
16449         * src/ds390/ralloc.c:
16450         various fixes & enhancements (ds390) specific
16451
16452         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
16453         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
16454         from rallocs.
16455
16456         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
16457
16458 2002-03-02    <johan AT FRIJA>
16459
16460         * src/SDCCast.c (decorateType): fixed bug #524708
16461
16462         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
16463
16464         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
16465
16466 2002-03-01  Michael Hope  <michaelh AT vroom>
16467
16468         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
16469
16470         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
16471
16472 2002-03-01    <johan AT FRIJA>
16473
16474         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
16475
16476         * src/SDCCast.c (decorateType): fixed bug #524209
16477
16478         * src/SDCCval.c (valNot): fixed bug #524195
16479
16480 2002-02-26    <johan AT balder>
16481
16482         * src/xa51/gen.c: fixed a warning
16483
16484         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
16485
16486         * src/SDCCast.c (decorateType): fixed bug #522534
16487
16488 2002-02-23    <johan AT balder>
16489
16490         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
16491
16492 2002-02-22    <johan AT balder>
16493
16494         * src/SDCCast.c: fixed bug #514865
16495
16496         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
16497
16498 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
16499
16500         * sdcc/src/SDCCloop.c:
16501         Previous fix was not good. basic blocks that have "break" or "return" are
16502         not really partof a loop , but live ranges used in these blocks should
16503         be live thru the entire loop, so set partOfLoop but don't add them to
16504         loop region
16505
16506 2002-02-21    <johan AT FRIJA>
16507
16508         * src/SDCCcse.c: fixed bug #514308
16509
16510 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
16511
16512         * src/SDCCloop.c:
16513         Fixed BUG #519583. If a conditional block ended in a return/break
16514         statement inside a loop, it was not being considered part of the loop.
16515
16516         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
16517
16518 2002-02-10  Karl Bongers <karl AT turbobit.com>
16519
16520         * debugger/*:
16521         Fixed up SDCDB debugger somewhat.  Updated debugger/README
16522         with lots of comments and notes.
16523
16524         * device/examples/test2.c:
16525         Fix bug, "red" variable not being initialized(compiler complained).
16526
16527         * device/examples/Makefile, examples/test3.c:
16528         Add Makefile in device/examples folder, compiles test3.c
16529         for use as a multiple module SDCDB test case.
16530
16531         * sim/ucsim/cmd.src/cmdset.cc:
16532         Took out debug printfs in ucsim "next" command.
16533
16534         * sim/ucsim/xa.src:
16535         Karl and Johan start ucsim XA support.  Most dissassembly working,
16536         about 75% emulation done(plenty of work remaining).
16537
16538         * sim/ucsim/z80.src:
16539         Add Z80 support to ucsim, add test-ucz80 regression test,
16540         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
16541         Notice z80 compiler fails on examples/test3.c/crc code.
16542
16543 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
16544
16545         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
16546         Added support for --parms-in-bank1
16547
16548         * src/ds390/peeph.def:
16549         added a few more peephole optimzations
16550
16551         * src/ds390/main.c:
16552         1) added __builtin_inp & __builtin_outp used to read in data of given length
16553            from a memory mapped port
16554         2) added __builtin_memcmp
16555         3) added __builtin_swapw swap bytes of a short
16556
16557         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
16558         1) handle multiple send & receives from register bank1
16559         2) ralloc can now allocate DPTR1 to some liveRanges
16560
16561         * src/SDCCsymt.c, src/SDCCsymt.h:
16562         changes to handle multiple sends & receives
16563
16564         * src/SDCCptropt.h:
16565         added some pointer arithmetic optimization
16566
16567         * src/SDCCptropt.c:
16568         added some pointer arithmetic optimizations but not stable yet so not
16569         called from anywhere (will get this working shortly)
16570
16571         * src/SDCCopt.c: fixed for multiple sends & receives
16572
16573         * src/SDCCmain.c:
16574         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
16575         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
16576            set preprocessor defines (depending on options)
16577
16578         * src/SDCCicode.c, src/SDCCicode.h:
16579         changes made to handle multiple sends & receives
16580
16581         * src/SDCCglobl.h:
16582         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
16583
16584         * src/SDCCcse.c, src/SDCCcse.h:
16585         added function findbackward def (to be used in upcoming optimization)
16586
16587         * src/SDCCcflow.c, src/SDCCcflow.h:
16588         added function returnAtEnd - to determine if a basic block terminates with
16589         a RETURN iCode
16590
16591         * src/SDCCast.c, src/SDCCast.h:
16592         added option parms-in-bank1
16593
16594         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
16595         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
16596         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
16597         adjusted for --parms-in-bank1 option
16598
16599         * device/include/string.h:
16600         donot redefine "reentrant" keyword
16601
16602         * device/include/ds80c390.h: Added some more SFRs
16603
16604 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
16605
16606         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
16607
16608 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
16609
16610         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
16611
16612 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
16613
16614         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
16615
16616 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
16617
16618         * Added --xram-movc option
16619
16620 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
16621
16622         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
16623
16624 2002-01-11  Johan Knol
16625
16626         * Added math lib of Jesus Calvino-Fraga
16627
16628 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
16629
16630         * src/SDCCmain.c (processFile): fix processing of ../../src.c
16631         * support/regression/Makefile: new target test-mcs51-stack-auto
16632         * support/regression/ports/mcs51-stack-auto/spec.mk: added
16633
16634 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
16635
16636         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
16637
16638 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
16639
16640         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
16641
16642 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
16643
16644         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
16645
16646         * src/SDCCglue.h: add definition for printIvalChar()
16647
16648 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
16649
16650         * src/SDCCast.c: fix #498138 by Johan
16651
16652         * src/SDCCglue.c: fix #498138 by Johan
16653
16654 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
16655
16656         * support/regression/Makefile: fix clean
16657
16658         * support/regression/ports/ds390/support.c: fix transmission of last character
16659
16660 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
16661
16662         * /sdcc/src/ds390/gen.c:
16663         a) improved computing address of stack variable
16664         b) took out some #if 0 code
16665         c) improved parmBytes adjustment
16666         d) improved genPlusIncr & genMinusIncr
16667         e) genCmp could generate bad code (when left assigned to DPTR)
16668         f) Fixed bug in hasInc
16669
16670         * /sdcc/src/ds390/ralloc.c:
16671         a) packRegsForSupport could mess up live information (Fixed)
16672         b) packRegsDPTRuse could be incorrect for left & right shift
16673
16674         * /sdcc/src/mcs51/ralloc.c:
16675         packRegsForSupport could mess up the live information (Fixed)
16676
16677         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
16678
16679         * /sdcc/src/SDCCast.c:
16680         can reverse a loop even if function call is present as long
16681         as the loop control variable is local & is not passed as parameter
16682
16683 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16684
16685         * /sdcc/ChangeLog: *** empty log message ***
16686
16687         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
16688         More builtin function additions for TININative
16689
16690         * /sdcc/src/ds390/ralloc.c:
16691         Had broken the regression testsuite
16692
16693         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
16694
16695         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
16696         Added funcattr hasStackParms will be set for reentrant functions when there
16697         are paramteres on the stack, this helps in minimizing frame pointer generation
16698         typeFromStr can handle function pointers now
16699
16700         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
16701         *** empty log message ***
16702
16703 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16704
16705         * /src/ds390/gen.c, /src/ds390/main.c:
16706         More builtin function additions for TININative
16707
16708         * /src/ds390/ralloc.c:
16709         Had broken the regression testsuite
16710
16711         * /src/SDCCast.c: Fixed a bug in dumptree
16712
16713         * /src/SDCCsymt.c, /src/SDCCsymt.h:
16714         Added funcattr hasStackParms will be set for reentrant functions when there
16715         are paramteres on the stack, this helps in minimizing frame pointer generation
16716         typeFromStr can handle function pointers now
16717
16718         * /doc/builtins.txt, /doc/TININative.txt:
16719         *** empty log message ***
16720
16721
16722 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16723
16724         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
16725         ALPHA version for -mTININative
16726
16727         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
16728         updated to reflect changes in the port structure
16729
16730         * /src/port.h:
16731         added function do_assemble (similar to do_link) if non-null this function
16732         will be called to do assembly (-mTININative) requires a multi command
16733         assembly
16734         added function genAssemblerEnd will be called to generate assembler Epilogue
16735
16736         * /src/SDCCsymt.c:
16737         added _JavaNative to debug info printing
16738
16739         * /src/SDCCmain.c: added option --tini-libid
16740         added port->do_assemble function (-mTININative) has a multi command assemble
16741
16742         * /src/SDCCglue.c: Disabled "constExpr" check
16743         added port->genAssemblerEnd function
16744
16745         * /src/SDCCglobl.h: Added option --tini-libid value
16746
16747         * /src/SDCCast.h:
16748         tookout optimizeCompare from the header (has no external references)
16749
16750         * /src/SDCCast.c: made one more function "static"
16751
16752 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
16753
16754         * src/z80/mappings.i: Added z80asm support.
16755
16756         * src/z80/main.c: Added z80asm support on --asm=z80asm
16757
16758         * src/z80/gen.c: Fixed asm portability issues.
16759
16760         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
16761
16762         * src/SDCCglue.c (printExterns): Added global/extern split.
16763
16764 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
16765
16766         * support/regression/Makefile: added test for mcs51 model large
16767
16768         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
16769
16770         * support/regression/ports/gbz80/spec.mk: added -mgbz80
16771
16772 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
16773
16774         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
16775
16776 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
16777
16778         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
16779
16780         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
16781
16782 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
16783
16784         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
16785
16786         * support/regression/tests/simplefloat.c: Port to mcs51.
16787
16788 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
16789         * support/regression/tests/bug-485362.c: Added.
16790
16791         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
16792
16793         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
16794
16795         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
16796
16797         * src/z80/gen.c (aopDump): Added a dump function.
16798
16799 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
16800         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
16801
16802         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
16803
16804         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
16805
16806         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
16807
16808         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
16809
16810         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
16811
16812         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
16813
16814         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
16815
16816         * support/regression/ports/ds390/support.c: Use tinibios.
16817
16818         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
16819
16820 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
16821
16822         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
16823         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
16824
16825         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
16826
16827         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
16828
16829 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
16830
16831         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
16832
16833         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
16834         (packRegsForIYUse): Created and optimised.
16835
16836 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
16837
16838         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
16839 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
16840
16841         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
16842
16843         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
16844
16845         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
16846
16847 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
16848
16849         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
16850
16851         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
16852
16853 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
16854
16855         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
16856
16857         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
16858
16859         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
16860
16861 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
16862
16863         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
16864         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
16865         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
16866
16867         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
16868
16869         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
16870         (genNotFloat): Added.
16871         (genUminusFloat): Added.
16872
16873         * device/lib/z80/Makefile: Added floating pt stubs.
16874
16875         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
16876
16877         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
16878
16879         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
16880
16881 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
16882
16883         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
16884
16885         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
16886
16887         * sdcc/support/regression/Makefile: Add port ds390.
16888
16889         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
16890
16891         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
16892
16893         * sdcc/support/regression/ports/ds390/spec.mk: Added.
16894
16895         * sdcc/support/regression/ports/ds390/support.c: Added.
16896
16897         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
16898
16899         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
16900
16901         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
16902
16903 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
16904
16905         * device/include/malloc.h: Added z80 and gbz80 support.
16906
16907         * device/lib/gbz80/heap.s: Added.
16908
16909         * device/lib/z80/heap.s: Added.
16910
16911         * device/lib/malloc.c: Added z80 and gbz80 support.
16912
16913         * support/regression/tests/malloc.c (testMalloc): Added.
16914
16915         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
16916
16917         * support/regression/tests/bug-478094.c: Added.
16918
16919         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
16920
16921 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
16922
16923         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
16924
16925         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
16926
16927         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
16928
16929         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
16930
16931         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
16932
16933 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
16934
16935         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
16936
16937 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
16938
16939         * support/regression/tests/bug-477927.c: Added.
16940
16941         * src/z80/peeph.def: Added minor rules.
16942
16943         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
16944
16945         * src/z80/peeph.def: Added jump optimisation modification.
16946
16947 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
16948
16949         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
16950
16951 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
16952
16953         * support/regression/tests/funptrs.c: Added.
16954
16955 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
16956
16957         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
16958
16959 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
16960
16961         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
16962
16963         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
16964
16965         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
16966         (movLeft2ResultLong): Created.
16967
16968         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
16969         (joinPushes): Added.  Joins two char pushes into a word push.
16970
16971 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
16972
16973         * support/cpp2/Makefile.in (install): Added creation of dest dir.
16974
16975         * support/makebin/Makefile (install): Added creation of dest dir.
16976
16977 2001-10-24 Karl Bongers <karl AT turbobit.com>
16978
16979         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
16980
16981 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
16982
16983         * src/z80/ralloc.c: Turned off faulty pack for one use.
16984
16985         * src/z80/peeph-gbz80.def: Removed redundent restart options.
16986
16987         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
16988
16989 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
16990
16991         * support/regression/Makefile: Improved clean
16992
16993         * support/regression/ports/gbz80/spec.mk: Added clean
16994
16995         * support/regression/ports/host/spec.mk: Added clean
16996
16997         * support/regression/ports/z80/spec.mk: Added clean
16998
16999         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
17000
17001         * support/regression/ports/mcs51/timeout.c: little improvements
17002
17003 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
17004
17005         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
17006
17007         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
17008
17009         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
17010
17011 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
17012
17013         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
17014
17015         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
17016
17017 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
17018         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
17019
17020         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
17021
17022         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
17023
17024         * src/mcs51/main.c (_linkCmd): Added bin path to command.
17025
17026         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
17027
17028         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
17029
17030         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
17031
17032         * support/regression/tests/longor.c: Added.
17033
17034 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
17035
17036         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
17037
17038         * as/mcs51/aslink.h: define PATH_MAX
17039
17040         * as/mcs51/asm.h: define PATH_MAX
17041
17042         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
17043
17044         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
17045
17046         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
17047
17048         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
17049
17050         * src/SDCCglobl.h: define PATH_MAX
17051
17052         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
17053
17054         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
17055
17056 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
17057
17058         * src/z80/gen.c (gencjneshort): Fixed
17059
17060         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
17061
17062 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
17063
17064         * support/regression/tests/bug-469671.c: Added.
17065
17066         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
17067
17068 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
17069
17070         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
17071
17072         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
17073
17074 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
17075
17076         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
17077
17078         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
17079
17080         * src/device/lib/_mullong.c : removed hint: nooverlay bug
17081
17082         * src/device/lib/_divuint.c : removed hint: nooverlay bug
17083
17084         * src/device/lib/_divulong.c: removed hint: nooverlay bug
17085
17086         * src/device/lib/_moduint.c : removed hint: nooverlay bug
17087
17088         * src/device/lib/_modulong.c: removed hint: nooverlay bug
17089
17090 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
17091
17092         * 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.
17093
17094         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
17095
17096         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
17097
17098 2001-10-07    <johan AT FRIJA>
17099
17100         * device/lib/gets.c (gets): fixed the return value.
17101
17102 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
17103         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
17104
17105         * 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.
17106
17107         * 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.
17108
17109         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
17110
17111         * src/pic/gen.c: Removed Safe_strdup.
17112
17113         * configure.in: Added option to enable libgc support.
17114
17115         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
17116         (bitVectUnion): Optimised.
17117         (bitVectIntersect): Optimised.
17118         (bitVectBitsInCommon): Optimised.
17119         (bitVectCplAnd): Optimised.
17120
17121         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
17122
17123 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17124
17125         * src/SDCCmain.c: distinguish between assembler debug and plain options
17126
17127         * src/avr/main.c:   remove standard assembler options
17128
17129         * src/ds390/main.c: remove standard assembler options
17130
17131         * src/mcs51/main.c: remove standard assembler options
17132
17133         * src/port.h: removed "PENDING" comment
17134
17135 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17136
17137         * src/device/lib/_mulint.c  : new, with assember functions
17138
17139         * src/device/lib/_mullong.c : new, with assember functions
17140
17141         * src/device/lib/_divuint.c : with assember functions
17142
17143         * src/device/lib/_divsint.c : with assember functions
17144
17145         * src/device/lib/_divulong.c: with assember functions
17146
17147         * src/device/lib/_divslong.c: with assember functions
17148
17149         * src/device/lib/_moduint.c : with assember functions
17150
17151         * src/device/lib/_modsint.c : with assember functions
17152
17153         * src/device/lib/_modulong.c: with assember functions
17154
17155         * src/device/lib/_modslong.c: with assember functions
17156
17157         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
17158
17159         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
17160
17161         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
17162                                       replaced _mululong.c and _mulslong.c by _mullong.c
17163
17164 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17165
17166         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
17167
17168 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
17169
17170         * src/SDCCglue.c: test, if win32api is available for MINGW
17171
17172 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
17173
17174         * src/SDCCsymt.c: no more _modifier in printTypeChain()
17175         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
17176         * support/regression/ports/gbz80/spec.mk: removed GENERIC
17177         * support/regression/ports/host/spec.mk: removed GENERIC
17178         * support/regression/ports/mcs51/spec.mk: removed GENERIC
17179         * support/regression/ports/z80/spec.mk: removed GENERIC
17180
17181 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
17182
17183         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
17184
17185         * support/regression/tests/bug-467035.c: Created.
17186
17187 2001-10-01    <johan AT FRIJA>
17188
17189         * src/SDCC.y: fixed bug #466586 part 1
17190
17191 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
17192
17193         * SDCCicode.c: z80 has no generic pointers
17194         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
17195
17196 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
17197
17198         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
17199
17200 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
17201
17202         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
17203
17204         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
17205
17206 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
17207
17208         * configure.in: Fixed up so that ucsim is only configured once.
17209
17210         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
17211
17212         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
17213         (getPathDifference): As above.
17214
17215         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
17216
17217         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
17218
17219 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
17220         * .version: Updated to 2.3.1
17221
17222         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
17223         Added copyright header.
17224
17225         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
17226         (assemble): Added support for macro based assembler commands.
17227         (linkEdit): Added support for macro based linker commands.
17228         (preProcess): Changed the pre-processor to use macros.
17229         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
17230         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
17231
17232         * device/lib/z80/crt0.s: Added module name for debugging.
17233
17234 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
17235
17236         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
17237
17238         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
17239
17240         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
17241
17242         * src/Makefile.in: Added SDCCmacro and SDCCutil
17243
17244 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
17245
17246         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
17247
17248 2001-09-16    <johan AT FRIJA>
17249
17250         * 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.
17251
17252 2001-09-15    <johan AT FRIJA>
17253
17254         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
17255         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
17256
17257 2001-09-11    <johan AT FRIJA>
17258
17259         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
17260
17261 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
17262
17263         * support/regression/tests/bug-460444.c: Added test case.
17264
17265         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
17266         (genCast): Added justification for all of the asserts.
17267
17268 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
17269
17270         * support/regression/support.c: _xdata replaced by xdata
17271
17272         * support/regression/spec.mk: removed _generic
17273
17274 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
17275
17276         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
17277
17278         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
17279         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
17280
17281         * src/z80/peeph.def: Added a rule to optimise shift then compare.
17282
17283         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
17284
17285         * support/regression/tests/bug-460010.c: Added test case.
17286
17287         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
17288
17289 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
17290
17291         * support/regression/Makefile: inter-port-clean adjusted for mcs51
17292
17293         * support/regression/testfwk.c: removed workaround for bug #436344
17294
17295         * support/regression/tests/bp.c: use less memory with mcs51
17296
17297         * support/regression/tests/bug-441448.c: use less memory
17298
17299         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
17300
17301         * support/regression/collate-results.py: typo
17302
17303 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
17304
17305         * support/regression/tests/fetchoverlap.c: Added new test case.
17306
17307         * support/regression/tests/bp.c: Added new test case.
17308
17309         * support/regression/tests/bug-448984.c: Added new test case.
17310
17311         * support/regression/tests/pow2shifts.c: Added new test case.
17312
17313         * src/z80/gen.c: Turned off the noise it normally generates for the release.
17314         (genlshTwo): Fixed right shift for count > 8.
17315
17316         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
17317
17318 2001-09-08    <johan AT FRIJA>
17319
17320         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
17321
17322 2001-09-07    <johan AT FRIJA>
17323
17324         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
17325
17326         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
17327
17328 2001-09-06    <johan AT FRIJA>
17329
17330         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
17331         * bernhard noted me at this: "() equals to (void)" (1.38)
17332
17333 2001-09-05    <johan AT FRIJA>
17334
17335         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
17336
17337 2001-09-04    <johan AT FRIJA>
17338
17339         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
17340
17341
17342 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
17343
17344         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
17345
17346 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
17347
17348         * link/z80/aslink.h: Fixed path for PATH_MAX
17349
17350 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
17351
17352         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
17353
17354         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
17355
17356         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
17357
17358         * 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.
17359
17360 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
17361
17362         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
17363         (genCmp): Fixed up genCmp for the GB with longs.
17364
17365         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
17366
17367         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
17368
17369         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
17370
17371         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
17372
17373 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
17374
17375         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
17376
17377 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
17378
17379         * 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.
17380
17381         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
17382
17383 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
17384
17385         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
17386
17387         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
17388
17389 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
17390
17391         * sim/ucsim/configure:    little improvement of Cygwin-detection
17392         * sim/ucsim/configure.in: little improvement of Cygwin-detection
17393         * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
17394         * support/regression/tests/bug-221100.c: small changes for mcs51
17395         * support/regression/tests/bug-221168.c: small changes for mcs51
17396         * support/regression/tests/bug-227710.c: small changes for mcs51
17397         * support/regression/tests/staticinit.c: small changes for mcs51
17398         * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
17399         * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
17400         * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
17401
17402 $Revision$