* device/include/pic16/pic18f*.h: add bit aliases in INTCONbits_t
[fw/sdcc] / ChangeLog
1 2008-02-10 Raphael Neider <rneider AT web.de>
2
3         * device/include/pic16/pic18f*.h: add bit aliases in INTCONbits_t
4
5 2008-02-09 Raphael Neider <rneider AT web.de>
6
7         * src/pic16/pcode.c (assignToSameBank): add force argument to ignore
8           artificial bank size limits for compound data (structs, arrays),
9           avoids assert if --obanksel=N, N > 1, is given
10
11 2009-02-09 Borut Razem <borut.razem AT siol.net>
12
13         * as/asranlib/asranlib.c, link/lkar.c: don't check the padding bytes since
14           the openSUSE GNU ar (GNU Binutils; openSUSE 11.0) 2.18.50.20080409-11.1
15           uses '`' character instead '\n' for padding
16         * as/asranlib/asranlib.c: made it more robust
17
18 2009-02-08 Borut Razem <borut.razem AT siol.net>
19
20         * as/COPYING3: added
21         * support/scripts/sdcc.nsi: added COPYING3.txt to the package
22         * device/lib/Makefile.in: reenable floating point in model-xstack-auto
23           libraries
24
25 2009-02-07 Borut Razem <borut.razem AT siol.net>
26
27         * as/asranlib/asranlib.c: fixed BSD header length calculation
28         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.9
29           due sdcc asxxxx license change to GPLv3
30
31 2009-02-05 Borut Razem <borut.razem AT siol.net>
32
33         * as/asranlib/asranlib.c, link/lkar.h, link/lkar.c:
34           added support for BSD (Mac OS X) ar format
35         * as/asxxsrc/aslex.c, as/as/asxxsrc/asnoice.c, as/as/asxxsrc/assym.c,
36           as/as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/aslist.c,
37           as/hc08/asm.h, as/hc08/asmain.c, as/hc08/asout.c, as/hc08/assubr.c,
38           as/hc08/m08adr.c, as/hc08/m08ext.c, as/hc08/m08mch.c,
39           as/hc08/m08pst.c, as/hc08/m6808.h, as/link/aslink.h,
40           as/link/hc08/lkarea.c, as/link/hc08/lkelf.c, as/link/hc08/lkihx.c,
41           as/link/hc08/lkmain.c, as/link/hc08/lkmem.c, as/link/hc08/lkrloc.c,
42           as/link/hc08/lks19.c, as/link/lkaomf51.c, as/link/lkdata.c,
43           as/link/lkeval.c, as/link/lkhead.c, as/link/lklex.c, as/link/lklib.c,
44           as/link/lklibr.c, as/link/lklibr.h, as/link/lklist.c,
45           as/link/lknoice.c, as/link/lkrel.c, as/link/lkrel.h,
46           as/link/lksdcclib.c, as/link/lkstore.c, as/link/lksym.c,
47           as/link/mcs51/lkarea.c, as/link/mcs51/lkihx.c,
48           as/link/mcs51/lkmain.c, as/link/mcs51/lkmem.c,
49           as/link/mcs51/lkrloc.c, as/link/mcs51/lks19.c, as/link/z80/lkarea.c,
50           as/link/z80/lkgb.c, as/link/z80/lkgg.c, as/link/z80/lkihx.c,
51           as/link/z80/lkmain.c, as/link/z80/lkrloc.c, as/link/z80/lks19.c,
52           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/aslist.c,
53           as/mcs51/asm.h, as/mcs51/asmain.c, as/mcs51/asout.c,
54           as/mcs51/assubr.c, as/mcs51/i51adr.c, as/mcs51/i51ext.c,
55           as/mcs51/i51mch.c, as/mcs51/i51pst.c, as/mcs51/i8051.h,
56           as/xa51/xa_link.c, as/xa51/xa_main.c, as/xa51/xa_main.h,
57           as/xa51/xa_rasm.l, as/xa51/xa_rasm.y, as/xa51/xa_version.h,
58           as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c, as/z80/asm.h,
59           as/z80/asmain.c, as/z80/asout.c, as/z80/assubr.c, as/z80/z80.h,
60           as/z80/z80adr.c, as/z80/z80ext.c, as/z80/z80mch.c, as/z80/z80pst.c:
61           changed license to GPL either version 3, or (at your option) any
62           later version
63
64 2009-02-05 Borut Razem <borut.razem AT siol.net>
65
66         * as/asranlib/asranlib.c, link/lkar.h, link/lkar.c:
67           added support for BSD (Mac OS X) ar format
68
69 2009-02-02 Borut Razem <borut.razem AT siol.net>
70
71         * device/lib/gbz80/Makefile.in, device/lib/hc08/Makefile.in,
72           device/lib/z80/Makefile.in:
73           chose source files in the PORT directory if they are available
74
75 2008-02-01 Raphael Neider <rneider AT web.de>
76
77         * device/lib/pic16/libdev/pic18f1220.c,
78         * device/lib/pic16/libdev/pic18f4450.c:
79           define SSPBUF to allow use of printf
80
81 2009-02-01 Borut Razem <borut.razem AT siol.net>
82
83         * device/lib/Makefile.in, device/lib/gbz80/Makefile.in,
84           device/lib/hc08/Makefile.in, device/lib/incl.mk,
85           device/lib/z80/Makefile.in:
86           don't remake libraries
87         * support/regression/tests/snprintf.c:
88           reenable floating point in small-xstack-auto library
89
90 2008-01-26 Raphael Neider <rneider AT web.de>
91
92         * src/pic16/ralloc.c (packForPush): disabled to fix #2496919
93
94 2008-01-25 Raphael Neider <rneider AT web.de>
95
96         * src/pic16/main.c (_pic16_linkEdit): prepend -L paths to linker
97           search path instead of appending them
98
99 2009-01-24 Borut Razem <borut.razem AT siol.net>
100
101         * as/asranlib/asranlib.h: changed type of offset to unsigned int to
102           make it work on ppc Mac OS X (off_t is 64 bit and is not converted
103           to 32 bit unsigned int when calling sputl() since it is a macro
104         * as/link/lkar.c: changed the initialization of This->loaded
105
106 2009-01-23 Borut Razem <borut.razem AT siol.net>
107
108         * as/link/lkar.h: changed type of ar_size to size_t to make it work on
109           ppc Mac OS X (off_t is 64 bit and is not converted to 32 bit
110           unsigned int when calling new(), since asxxxx doesn't use function
111           prototypes)
112
113 2009-01-21 Borut Razem <borut.razem AT siol.net>
114
115         * as/link/lkar.h: sgetl and sputl are independent of endianness
116         * as/link/sdxxxx_config.h.in: removed endianness detection
117
118 2009-01-20 Borut Razem <borut.razem AT siol.net>
119
120         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.8
121           due creation of ar format libraries
122         * support/scripts/sdcc.nsi:
123           don't add nonexistent object files to the package
124
125 2009-01-19 Borut Razem <borut.razem AT siol.net>
126
127         * Makefile.in, configure.in, configure,
128           device/lib/Makefile.in, device/lib/ds390/Makefile.in,
129           device/lib/ds400/Makefile.in, device/lib/gbz80/Makefile.in,
130           device/lib/hc08/Makefile.in, device/lib/large/Makefile.in,
131           device/lib/mcs51/Makefile.in, device/lib/medium/Makefile.in,
132           device/lib/small/Makefile.in,
133           device/lib/z80/Makefile.in: create ar format libraries
134         * support/regression/ports/mcs51-xstack-auto/spec.mk:
135           use device/lib/Makefile to create library
136         * support/regression/tests/snprintf.c:
137           floating point is not enabled in small-xstack-auto library
138         * device/lib/libfloat.lib, device/lib/libint.lib,
139           device/lib/liblong.lib, device/lib/libsdcc.lib: removed
140
141 2009-01-18 Borut Razem <borut.razem AT siol.net>
142
143         * support/cpp/auto-host.h: fixed warning: "__STDC__" redefined,
144           warning: extra tokens at end of #endif directive
145
146 2009-01-11 Borut Razem <borut.razem AT siol.net>
147
148         * Makefile.in: added SDCC_ASRANLIB to PKGS
149
150 2009-01-10 Borut Razem <borut.razem AT siol.net>
151
152         * support/scripts/sdcc.nsi: added asranlib.exe to the install package
153         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.7
154           due added support for ar format libraries
155
156 2009-01-09 Borut Razem <borut.razem AT siol.net>
157
158         * as/asranlib/Makefile.in, as/asranlib/asranlib.dsp,
159           as/asranlib/asranlib.c: added asranlib
160         * as/link/lkar.c, as/link/lkar.h: added support for ar format libraries
161         * Makefile.in, as/link/hc08/Makefile.in,
162           as/link/hc08/link_hc08.dsp, as/link/lklib.c, as/link/lklibr.c,
163           as/link/lklibr.h, as/link/lkrel.c, as/link/lkrel.h,
164           as/link/lksdcclib.c, as/link/mcs51/Makefile.in,
165           as/link/mcs51/aslink.dsp, as/link/z80/Makefile.in,
166           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp, configure,
167           configure.in, sdcc.dsw: modified to support ar format libraries
168
169 2009-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
170
171         * src/SDCCast.c (decorateType RETURN): use RESULT_TYPE_GPTR for generic
172           pointer return
173
174 2009-01-05 Philipp Klaus Krause <pkk AT spth.de>
175
176         * sim/ucsim/z80.src/inst_ed.cc:
177           Fixed bug #2488074, which made regression tests fail.
178
179 2009-01-05 Philipp Klaus Krause <pkk AT spth.de>
180
181         * device/lib/z80/mod.s,
182           device/lib/z80/div.s,
183           device/lib/z80/mulchar.s,
184           device/lib/z80/mul.s,
185           device/lib/z80/divsigned.s,
186           device/lib/z80/Makefile.in:
187           Implemented RFE #1702376.
188
189 2009-01-05 Borut Razem <borut.razem AT siol.net>
190
191         * as/link/lksdcclib.c:
192           fixed linker hanging in INDEXLIB is not defined (hc08)
193
194 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
195
196         * src/z80/gen.c:
197           Implemented RFE #2485684, and some further improvements of HL caching
198           including a bugfix.
199         * src/z80/peeph-z80.def:
200           Fixed a bug exposed by implementing RFE #2485684.
201
202 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
203
204         * src/z80/peeph-z80.def:
205           Peephole improvements.
206         * src/z80/gen.c,
207           src/z80/main.c,
208           device/include/string.h,
209           device/lib/z80/memmove.s:
210           Minor code cleanup.
211         * device/lib/z80/Makefile.in,
212           device/lib/Makefile.in,
213           support/regression/tests/memory.c,
214           device/lib/z80/strlen.s:
215           Partially implemented RFE #2471534.
216
217 2009-01-04 Borut Razem <borut.razem AT siol.net>
218
219         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.6
220           due changes in sdcc asxxxx linkers - it sholud be done 2 days ago :(
221         * doc/README.txt: updated John Hartman's e-mail address
222         * as/link/lkrel.c, as/link/lksdcclib.c:
223           fixed bug #2484677: Linker hangs
224         * src/z80/peep.c: fixed msvc warning C4047:
225           'return' : 'int ' differs in levels of indirection from 'char *'
226         * config.dsp: as/lib corrected to as/link
227
228 2009-01-04 Philipp Klaus Krause <pkk AT spth.de>
229
230         * src/z80/peep.c:
231           Implemented RFE #2484693.
232         * src/z80/peeph-z80.def:
233           Some peephole improvements.
234
235 2009-01-03 Borut Razem <borut.razem AT siol.net>
236
237         * as/link/lklibr.c:
238           fixed warning: 'ret' may be used uninitialized in this function
239
240 2009-01-02 Borut Razem <borut.razem AT siol.net>
241
242         * as/link/lklib.c, as/link/lksdcclib.c, as/link/lklibr.h,
243           as/link/getline.[ch], as/link/lkrel.[ch]: added,
244           made support for differnet library formats more flexible,
245           preparation for support of ar format
246         * as/link/lklibr.c, as/link/z80/Makefile.in,
247           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
248           as/link/hc08/link_hc08.dsp, as/link/hc08/Makefile.in,
249           as/link/mcs51/aslink.dsp, as/link/mcs51/Makefile.in,
250           as/link/hc08/lkelf.c, as/link/aslink.h:
251           made support for differnet library formats more flexible,
252           preparation for support of ar format
253
254 2009-01-01 Borut Razem <borut.razem AT siol.net>
255
256         * as/link/asxxxx_config.h.in:
257           fixed warning: extra tokens at end of #endif directive
258         * src/z80/peep.c:
259           fixed warning: suggest parentheses around && within ||
260         * device/lib/Makefile.in: allow whitespaces at the end of lines in
261           ports.build, in order to make it work on cygwin - it seems to be a
262           bug in cygwin grep: CR is not treated as part of end-of-line
263
264 2008-12-31 Borut Razem <borut.razem AT siol.net>
265
266         * configure, configure.in, config.dsp, config_vc.awk,
267           as/link/asxxxx_config.h.in, as/link/hc08/lkelf.c, as/link/aslink.h,
268           as/link/hc08/Makefile.in, as/link/mcs51/Makefile.in:
269           introduced asxxxx_config.h.in
270
271 2008-12-30 Philipp Klaus Krause <pkk AT spth.de>
272
273         * src/z80/gen.c,
274           src/z80/peeph-z80.def:
275           Minor addition improvement.
276
277 2008-12-30 Raphael Neider <rneider AT web.de>
278
279         * as/link/hc08/lkelf.c, as/link/lkaomf51.c, as/link/lklibr.c,
280           as/link/z80/lkgb.c, debugger/mcs51/cmd.c, sim/ucsim/utils.cc,
281           src/SDCCasm.c, support/Util/dbuf_string.c, support/cpp/c-ppoutput.c,
282           support/cpp/libcpp/lex.c, support/cpp/libcpp/macro.c,
283           support/librarian/sdcclib.c, support/makebin/makebin.c:
284           partially revert changes from r5293..r5295
285
286 2008-12-29 Philipp Klaus Krause <pkk AT spth.de>
287
288         * src/z80/peeph-z80.def:
289           Minor peephole improvement.
290
291 2008-12-29 Raphael Neider <rneider AT web.de>
292
293         * src/pic/pcode.c (insertBankSel, FixRegisterBanking): emit
294           incorrectly discarded BANKSELs
295
296 2008-12-29 Philipp Klaus Krause <pkk AT spth.de>
297
298         * support/regression/tests/memory.c:
299           Added simple test for memset(), memcpy() and memmove()
300
301 2008-12-29 Borut Razem <borut.razem AT siol.net>
302
303         * sdcc/support/scripts/sdcc.nsi: removed $INSTDIR\lib\src\z80\*.c
304
305 2008-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
306
307         * src/mcs51/peeph.def (177.e): replaced notVolatile(%3) with
308           operandsNotRelated(%1 %3), had to change (a)r%1 to (a)%1 for this to work
309           (177.j): added new rule
310         * src/SDCCsymt.h: added RESULT_TYPE_GPTR
311         * src/SDCCast.c (processParms): use RESULT_TYPE_GPTR for generic ptr parms,
312           (decorateType CAST): propagate storage class to generic pointer results
313
314 2008-12-27 Philipp Klaus Krause <pkk AT spth.de>
315
316         * device/lib/z80/string.c,
317           device/lib/z80/printf.c,
318           device/lib/z80/mul.s:
319           z80 library cleanup
320         * src/z80/gen.c:
321           Fixed code generation bug exposed by builtin memcpy().
322
323 2008-12-27 Philipp Klaus Krause <pkk AT spth.de>
324
325         * device/lib/_memcpy.c:
326           fixed conflict with builtin memcpy()
327
328 2008-12-26 Borut Razem <borut.razem AT siol.net>
329
330         * support/librarian/sdcclib.c:
331           fixed bug 2466950: "sdcclib broken"
332           by removing fgets return value check
333
334 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
335         * src/z80/main.c,
336           src/z80/gen.c,
337           device/include/string.h: Implemented RFE #1914254
338
339 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
340         * device/lib/z80/Makefile.in,
341           device/lib/Makefile.in,
342           device/lib/z80/memmove.s: Implemented RFE #1914256
343
344 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
345
346         * src/z80/peeph-z80.def: fixed a bug in peephole 0zf
347         * src/z80/peep.c: improved checks for unused data
348         * src/z80/gen.c,
349           src/z80/main.c: Implemented RFE #1899189
350
351 2008-12-25 Borut Razem <borut.razem AT siol.net>
352
353         * support/regression/Makefile.in:
354           add -I$(INC_DIR) to SDCCFLAGS only if INC_DIR is defined
355
356 2008-12-25 Philipp Klaus Krause <pkk AT spth.de>
357
358         * src/z80/peeph-z80.def: minor peephole improvements
359
360 2008-12-21 Borut Razem <borut.razem AT siol.net>
361
362         * support/librarian/sdcclib.c: fixed build failure on Mac OS X
363           due to redefinition of symbol __assert
364           sdcclib.c:53:1:warning: "__assert" redefined
365           /Xcode2.5/SDKs/MacOSX10.4u.sdk/usr/include/assert.h:80:1:
366           warning: this is the location of the previous definition
367
368 2008-12-20 Raphael Neider <rneider AT web.de>
369
370         * debugger/mcs51/break.c, debugger/mcs51/cmd.c,
371           debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
372           support/cpp/libcpp/macro.c: fix format string errors
373
374         * sim/ucsim/s51.src/timer2.cc: add clarifying parens
375
376         * src/pic/device.c: partial rewrite using strtok,
377           quieten compiler warnings, adopt SDCC coding style
378
379         * as/link/hc08/lkelf.c, as/link/lkaomf51.c, as/link/lklibr.c,
380           as/link/z80/lkgb.c, as/z80/asout.c, debugger/mcs51/cmd.c,
381           sim/ucsim/utils.cc, src/SDCCasm.c, support/Util/dbuf_string.c,
382           support/cpp/c-ppoutput.c, support/cpp/libcpp/lex.c,
383           support/librarian/sdcclib.c, support/makebin/makebin.c:
384           quieten most compiler warnings
385
386         * sim/ucsim/avr.src/arith_inst.cc: quieten compiler warnings,
387           probably fix operator precedence bug
388
389         * doc/clean.mk: quieten rm if no .lyx is present
390
391 2008-12-19 Borut Razem <borut.razem AT siol.net>
392
393         * doc/sdccman.lyx, doc/random-notes.txt, doc/avr/avr_design.txt,
394           doc/TININative.txt, doc/macro-sys-design.txt, doc/libdoc.txt,
395           doc/README.txt, doc/test_suite_spec.lyx:
396           applied patch 2446381: Dcoumentation spelling correcitons
397           thanks to Steven Borley
398
399 2008-12-16 Raphael Neider <rneider AT web.de>
400
401         * device/include/pic/pic12f629.h,
402           device/include/pic/pic12f675.h,
403           device/lib/pic/libdev/pic12f629.c,
404           device/lib/pic/libdev/pic12f675.c: consolidated, added TRISIO bits
405
406 2008-12-14 Borut Razem <borut.razem AT siol.net>
407
408         * doc/sdccman.lyx, cdbfileformat.lyx, test_suite_spec.lyx:
409           converted to LyX 1.5.7 (\lyxformat 276) format
410
411 2008-12-07 Borut Razem <borut.razem AT siol.net>
412
413         * support/regression/tests/bitfields.c:
414           added test case for bug #2366757
415
416 2008-12-07 Raphael Neider <rneider AT web.de>
417
418         * src/pic16/glue.c (pic16_printIvalBitFields): prevent
419           NULL pointer dereference, closes #2366757
420
421 2008-11-25 Raphael Neider <rneider AT web.de>
422
423         * device/include/pic16/pic16devices.txt,
424           sdcc/src/pic16/device.c,
425           sdcc/src/pic16/device.h: implicitly disable XINST
426           whenever CONFIG4L is set via an additional optional
427           argument to the configword directive in pic16devices.txt
428
429 2008-11-24 Raphael Neider <rneider AT web.de>
430
431         * device/lib/pic16/configure.ac,
432           device/lib/pic16/Makefile.common: fixed quoting issues
433
434         * device/lib/pic16/configure,
435           device/lib/pic16/debug/Makefile.in,
436           device/lib/pic16/libc/Makefile.in,
437           device/lib/pic16/libdev/Makefile.in,
438           device/lib/pic16/libio/Makefile.in,
439           device/lib/pic16/libm/Makefile.in,
440           device/lib/pic16/libsdcc/Makefile.in,
441           device/lib/pic16/Makefile.in,
442           device/lib/pic16/startup/Makefile.in: regenerated
443
444         * src/pic16/main.c (_pic16_finaliseOptions): revert to
445           variant of r5216
446
447 2008-11-24 Raphael Neider <rneider AT web.de>
448
449         * src/pic16/main.c (_pic16_finaliseOptions): do not quote the
450           argument of --asm= or --link= to allow for
451           --asm="sh script --options", the user can double quote the
452           argument if needed: --asm="'c:/program files/gpasm' -q",
453           also fix some potential buffer overflows
454
455 2008-11-19 Borut Razem <borut.razem AT siol.net>
456
457         * doc/sdccman.lyx:
458           fixed 2314467: sdccman.lyx: fix "--" in command line parameters
459           thanks Mauro Giachero
460
461 2008-11-16 Borut Razem <borut.razem AT siol.net>
462
463         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.5
464         * doc/sdccman.lyx: documented fixed unnamed bit-field initialization
465
466 2008-11-15 Borut Razem <borut.razem AT siol.net>
467
468         * src/pic16/glue.c, src/SDCC.y, src/SDCCast.c, src/SDCCglue.c,
469           src/SDCCsymt.c, src/SDCCsymt.h:
470           fixed RFE #2291335 : Unnamed bit-field initialization
471         * support/regression/tests/bitfields.c:
472           added test case for RFE #2291335
473         * support/regression/tests/bug-1981238.c:
474           don't initialize unnamed bit-fields
475
476 2008-11-11 Raphael Neider <rneider AT web.de>
477
478         * device/include/pic16/pic18f25j10.h,
479           device/include/pic16/pic18f45j10.h: remove useless boilerplate
480
481         * device/include/pic16/adc.h,
482           device/lib/pic16/libio/adc/adcbusy.c,
483           device/lib/pic16/libio/adc/adcclose.c,
484           device/lib/pic16/libio/adc/adcconv.c,
485           device/lib/pic16/libio/adc/adcopen.c,
486           device/lib/pic16/libio/adc/adcread.c,
487           device/lib/pic16/libio/adc/adcsetch.c: generalized, documented,
488           and fixed ADC routines to work for more target devices,
489           incorporates patch #2036130 by Nick Materer
490
491 2008-11-10 Steven Borley <steven.borley AT partnerelectronics.com>
492
493         * device/include/ctype.h,
494         * device/include/ds400rom.h,
495         * device/include/ds80c390.h,
496         * device/include/float.h,
497         * device/include/math.h,
498         * device/include/serial.h,
499         * device/include/stdbool.h,
500         * device/include/tinibios.h: replaced non-C89 '//' with '/* */',
501           patch 2195343
502         * device/include/mcs51/C8051F336.h,
503         * device/include/mcs51/C8051T600.h,
504         * device/include/mcs51/C8051T610.h,
505         * device/include/mcs51/C8051T630.h: new, added, patch 2183334
506           (svn commit by Maarten Brock <sourceforge.brock AT dse.nl>)
507
508 2008-11-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
509
510         * device/include/mcs51/P89LPC922.h: fixed #2255989, thanks kubi57
511
512 2008-11-10 Raphael Neider <rneider AT web.de>
513
514         * device/lib/pic16/libdev/mkmk.sh: obey pics.all
515         * device/lib/pic16/libio/mkmk.sh: properly match whole lines in
516           .ignore files, fixes IO libs for 18f242, 18f252, 18f442, and 18f452
517           (patch by Nick Materer, #2253980)
518
519         * device/lib/pic16/libio/adc.ignore,
520           device/lib/pic16/libio/i2c.ignore,
521           device/lib/pic16/libio/usart.ignore,
522           device/lib/pic16/pics.all: updated to build more device libs
523
524         * device/lib/pic16/libdev/Makefile.am,
525           device/lib/pic16/libdev/Makefile.in,
526           device/lib/pic16/libio/Makefile.am,
527           device/lib/pic16/libio/Makefile.in: regenerated
528
529         * src/pic16/device.c (pic16_dump_usection): fixed output of multiple
530           names per memory location, applied SDCC style to more functions
531
532 2008-11-09 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
533
534         * device/include/mcs51/p89lpc933_4.h: new NXP header file
535         * device/include/mcs51/p89lpc935_6.h: new NXP header file
536         * device/include/mcs51/p89v66x.h: minor changes
537           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
538
539 2008-11-09 Raphael Neider <rneider AT web.de>
540
541         * device/include/pic/pic14devices.txt: fixed memory description for
542           12f629 and 12f675, closes #2236240
543
544 2008-11-06 Borut Razem <borut.razem AT siol.net>
545
546         * src/SDCCmain.c: fixed bug #2224960: sdcc -MM no working correctly
547           pass system include paths with -isystem to sdcpp
548         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c: removed unneeded
549           functions (closePipes), (closeTmpFiles) and (rmTmpFiles)
550
551 2008-11-02 Raphael Neider <rneider AT web.de>
552
553         * doc/sdccman.lyx: updated the sections on the library build process
554           and on how to add support for new devices, and documented known
555           problems with the extended instruction set including a workaround
556
557 2008-11-01 Raphael Neider <rneider AT web.de>
558
559         * device/include/pic16/adc.h,
560           device/include/pic16/pic16devices.txt,
561           device/include/pic16/pic18f2410.h,
562           device/include/pic16/pic18f2510.h,
563           device/include/pic16/pic18f2515.h,
564           device/include/pic16/pic18f2610.h,
565           device/include/pic16/pic18f4410.h,
566           device/include/pic16/pic18f4510.h,
567           device/include/pic16/pic18f4515.h,
568           device/include/pic16/pic18f4610.h,
569           device/include/pic16/pic18fregs.h,
570           device/lib/pic16/libdev/Makefile.am,
571           device/lib/pic16/libdev/Makefile.in,
572           device/lib/pic16/libdev/pic18f2410.c,
573           device/lib/pic16/libdev/pic18f2510.c,
574           device/lib/pic16/libdev/pic18f2515.c,
575           device/lib/pic16/libdev/pic18f2610.c,
576           device/lib/pic16/libdev/pic18f4410.c,
577           device/lib/pic16/libdev/pic18f4510.c,
578           device/lib/pic16/libdev/pic18f4515.c,
579           device/lib/pic16/libdev/pic18f4610.c,
580           device/lib/pic16/libio/Makefile.am,
581           device/lib/pic16/libio/Makefile.in,
582           device/lib/pic16/pics.all: added support for 18f[24][456]10
583           and 18f[24]515 devices
584         * doc/sdccman.lyx: updated list of supported PIC16 devices
585
586         * src/pic/glue.c, src/pic/pcode.c, src/pic/pcodeflow.c,
587           src/pic16/glue.c, src/pic16/pcode.c, src/pic16/pcodeflow.c,
588           src/xa51/gen.c: avoid compiler warnings
589         * support/scripts/inc2h-pic16.pl: removed trailing whitespace
590
591 2008-10-22 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
592
593         * device/include/mcs51/p89v66x.h: NXP header file
594         * device/include/mcs51/p89c66x.h: fixed an SBIT definition
595           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
596
597 2008-10-14 Raphael Neider <rneider AT web.de>
598
599         * device/lib/pic16/libdev/Makefile.am,
600           device/lib/pic16/libio/Makefile.am: enable building libraries for
601           18f2321, 18f4321, 18f2523, 18f4620, 18f66j60, 18f66j65, 18f67j60,
602           18f86j60, 18f86j65, 18f87j60, 18f96j60, 18f96j65, and 18f97j60
603         * device/lib/pic16/libdev/Makefile.in,
604           device/lib/pic16/libio/Makefile.in: regenerated
605
606 2008-10-14 Raphael Neider <rneider AT web.de>
607
608         * device/include/pic16/pic18f2450.h,
609           device/include/pic16/pic18f4450.h,
610           device/lib/pic16/libdev/pic18f2450.c,
611           device/lib/pic16/libdev/pic18f4450.c,
612           device/include/pic16/adc.h,
613           device/include/pic16/pic16devices.txt,
614           device/include/pic16/pic18fregs.h,
615           device/lib/pic16/libdev/Makefile.am,
616           device/lib/pic16/libdev/Makefile.in,
617           device/lib/pic16/libio/Makefile.am,
618           device/lib/pic16/libio/Makefile.in,
619           device/lib/pic16/pics.all: added 18f2450 and 18f4450, closes #1844525
620
621         * device/lib/pic16/libsdcc/stack/stack.S: there is no need to pin the
622           stack to a fixed location, relax it to automatically work with all
623           but the smallest devices (256 byte RAM devices need #pragma stack)
624
625 2008-10-09 Maarten Brock <sourceforge.brock AT dse.nl>
626
627         * debugger/mcs51/break.c: bugfix from patch 1989966, thanks Risto Huotari
628         * debugger/mcs51/simi.c: bugfix from patch 1989972, thanks Risto Huotari
629         * device/lib/_strcspn.c: fixed bug 2140931
630
631 2008-10-06 Raphael Neider <rneider AT web.de>
632
633         * device/include/pic16/stdio.h,
634           device/lib/pic16/libc/stdio/putchar.c: putchar should not be
635           declared __naked for convenience, named all arguments
636         * device/lib/pic16/libc/stdio/strmgpsim.c,
637           device/lib/pic16/libc/stdio/strmmssp.c,
638           device/lib/pic16/libc/stdio/strmusart.c: cosmetic changes
639
640         * src/pic16/pcode.c (createReachingDefinitions): avoid segfault on
641           empty __naked functions,
642         * (pCodeLabelDestruct, pic16_unlinkpCode, pic16_pCodeUnlink): fix
643           corner cases (unlink first/last pCode in list), reuse more code
644
645 2008-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
646
647         * src/ds390/main.c (_ds390_genInitStartup): added
648         * src/SDCCpeeph.c (getPatternVar): new, added,
649           (labelInRange): fixed bug 2115959
650         * src/mcs51/peeph.def (rules 193.x to 198.x): check for labelInRange
651         * src/SDCCicode.h: added newiTempOperand
652         * src/SDCCcse.c (algebraicOpts): fixed bug for x*-1,
653           added optimizations for 0/x and x/-1, see also patch 2142900
654         * support/regression/tests/onebyte.c (testMul): added test cases
655
656 2008-09-20 Borut Razem <borut.razem AT siol.net>
657
658         * src/pic16/glue.c:
659           definition of absolute address symbols without initial value,
660           fixed SDCC crash "do not know how to intialize symbol"
661
662 2008-09-16 Maarten Brock <sourceforge.brock AT dse.nl>
663
664         * device/lib/z80/mul.s (__mulsuchar_rrx_s, __muluschar_rrx_s),
665         * device/lib/z80/div.s (__divsuchar_rrx_s, __modsuchar_rrx_s,
666           __divuschar_rrx_s, __moduschar_rrx_s): added mixed signedness versions
667         * device/lib/z80/stubs.s: added stubs for above functions
668         * src/SDCCopt.c (convilong),
669         * src/SDCCsymt.c (initCSupport): fixed bug 1900961
670         * src/SDCCsymt.h (__muldiv): enlarged for mixed signedness
671         * src/z80/main.c (_hasNativeMulFor): fixed bug, I think
672         * support/regression/tests/onebyte.c: enabled all tests for z80
673
674 2008-09-15 Borut Razem <borut.razem AT siol.net>
675
676         * device/include/pic16/stdio.h, device/lib/pic16/libc/stdio/streams.c,
677           device/lib/pic16/libc/stdio/printf.c,
678           device/lib/pic16/libc/stdio/strmusart.c,
679           device/lib/pic16/libc/stdio/printf_tiny.c,
680           device/lib/pic16/libc/stdio/sprintf.c,
681           device/lib/pic16/libc/stdio/strmgpsim.c,
682           device/lib/pic16/libc/stdio/putchar.c,
683           device/lib/pic16/libc/stdio/fprintf.c,
684           device/lib/pic16/libc/stdio/strmmssp.c,
685           device/device/lib/pic16/libc/stdio/vprintf.c,
686           device/lib/pic16/libc/stdio/printf_small.c,
687           device/lib/pic16/libc/stdio/vsprintf.c,
688           device/lib/pic16/libc/stdio/strmputchar.c,
689           device/lib/pic16/libc/Makefile.am,
690           device/lib/pic16/libc/Makefile.in:
691           *printf now returns int, puchar.c moved from stdlib to stdio,
692           *printf format parameter type changed from char * to const char *,
693           added GNU link excetion text to library source files,
694           applyed GNU coding style, removed useless svn ids,
695           added BINARY_SPECIFIER macro re-enables the use of the removed 'b'
696           binary specifier: "%b", "%hb" and "%lb"
697         * device/lib/pic16/libc/stdio/vfprintf.c:
698           applied patch #2044424: PIC16: vfprintf
699           thanks Mauro Giachero
700         * support/regression/tests/bug1057979.c:
701           removed old pic16 sprintf specifics
702         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.4
703         * doc/sdccman.lyx: documented 'b' binary format specifier removal
704
705 2008-09-15 Raphael Neider <rneider AT web.de>
706
707         * src/pic16/device.c (pic16_dump_usection): force udata sections
708           into the addressable range (0..0xFFF), workaround for a gpsim
709           bug preventing simulation of regtest bug1750318
710         * src/pic16/ralloc.c (deassignLRs): cosmetic changes,
711           (serialRegAssign): fixed regtest bug-971834,
712           (pic16_packRegisters): avoid null-pointer dereference
713
714 2008-09-14 Raphael Neider <rneider AT web.de>
715
716         * src/pic16/gen.c, src/pic16/ralloc.c: use
717           SYM_SPIL_LOC/SPIL_LOC macros, no functional changes
718         * src/pic16/ralloc.c (rematStr): reimplemented, fixes #1818857
719
720 2008-09-12 Borut Razem <borut.razem AT siol.net>
721
722         * support/regression/fwk/testfwk.h:
723           define pdata as data for pic16 target
724           thanks Mauro Giachero
725
726 2008-09-11 Borut Razem <borut.razem AT siol.net>
727
728         * support/regression/tests/bug-221100.c, support/regression/shifts.c,
729           support/regression/absolute.c:
730           applied patch #2105615: Some PIC16 testcase fixlets
731           thanks Mauro Giachero
732
733 2008-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
734
735         * src/z80/gen.c (genCmpGt, genCmpLt): fixed bug 2094505
736         * support/regression/tests/bug2094505.c: new, added
737
738 2008-09-07 Borut Razem <borut.razem AT siol.net>
739
740         * src/SDCCglue.c, src/SDCCast.c:
741           fixed throw of "excess elements" warning for char arrays
742         * support/regression/tests/nullstring.c:
743           disable warning about excess elements in array of chars initializer
744
745 2008-09-07 Maarten Brock <sourceforge.brock AT dse.nl>
746
747         * as/z80/aslist.c (lstsym): changed old K&R to ANSI
748         * src/SDCCicode.c (geniCodeCritical): fixed bug for hc08
749         * src/z80/gen.c (genCritical, genEndCritical): fixed bug 2077267
750         * support/regression/tests/bug2077267.c: new, added
751
752 2008-09-05 Raphael Neider <rneider AT web.de>
753
754         * configure.in, Makefile.common.in: add support for ccache,
755           remove spurious $VERSION output, detect doc-tools even without
756           --enable-doc to facilitate later manual doc-builds, minor cleanup
757         * configure: regenerated
758
759         * doc/Makefile.in: quieten pdflatex, makeindex, and latex2html,
760           avoid races in parallel VPATH builds
761         * doc/clean.mk: remove .lyx files in the builddir for VPATH builds
762         * doc/sdccman.lyx: mention --without-ccache configure option
763
764 2008-09-01 Raphael Neider <rneider AT web.de>
765
766         * src/pic16/gen.c (pic16_derefPtr): handle CPOINTERs as well
767         * (genConstPointerGet): fix reading bitfields from __code space
768         * src/pic16/glue.c (pic16_printIvalBitFields): correctly mask
769           bitfield initializers (fix regression test bug1856409.c)
770         * (pic16_printIvalCharPtr,pic16_printIvalPtr): generalized to support
771           arbitrary sizes
772
773 2008-08-31 Raphael Neider <rneider AT web.de>
774
775         * src/pic16/gen.c (genAssign): removed useless compiler output
776         * (genPointerGet,genPointerSet,genCast),
777           src/pic16/glue.c (pic16_printGPointerType):
778           also handle PPOINTERs just to avoid spurious asserts
779         * (pic16_printIvalType,pic16_printIvalBitFields):
780           generalized to arbitrary type/bitfield sizes, allows compilation of
781           regression test bug-1981238.c
782         * (pic16_printIvalChar): fix regression test structflexarray.c
783         * (pic16_printIvalArray): avoid SIGSEGV on uninitialized strings
784           in initialized structs and fix #1843745
785         * (pic16_printIvalStruct): always output initializers for all fields,
786           even those not explicitly given, fixes zeropad.c regression test
787         * (pic16_printIvalUnion): fix union initializers (bug1426356.c,
788           #2073635, #1567098, and #1485812)
789         * src/pic16/main.c (_pic16_keywords): remove unsupported 'pdata'
790
791 2008-08-31 Borut Razem <borut.razem AT siol.net>
792
793         * support/regression/tests/bug-895992.c,
794           support/regression/tests/onebyte.c:
795           enabled pic16 regression testing since the bugs
796           1511794: pic16: regression test bug-895992.c fails
797           1444425: onebyte.c regression tes fails on pic16
798           are fixed, probably by fixing
799           2048464: PIC16: fix genUminus - addresses not.c regression test
800         * src/SDCCsymt.c, src/SDCCglue.c,
801           support/regression/tests/bug-1981238.c:
802           applied patch 2076664: fix #1981238 + SIGSEGV in SDCCGlue.c
803           thanks to RvS
804
805 2008-08-30 Borut Razem <borut.razem AT siol.net>
806
807         * support/cpp/libcpp/files.c: SDCPP synchronized with GCC CPP
808           release version 4.3.2
809
810 2008-08-24 Raphael Neider <rneider AT web.de>
811
812         * device/lib/pic16/configure, device/lib/pic16/configure.ac:
813           always use the sdcc from the current build tree (ignore $CC from
814           the environment, fixes compile farm builds)
815         * device/lib/Makefile.in: rename .a into .lib for compatibility,
816           remove more build products from install directory
817         * sdcc/src/pic16/main.c (_pic16_linkEdit,_pic16_finaliseOptions)
818         * sdcc/support/scripts/sdcc.nsi: revert to .lib extension for libs
819
820 2008-08-24 Borut Razem <borut.razem AT siol.net>
821
822         * src/SDCC.y: applied patch
823           2050245: Fix # 1963382
824           for bug
825           1963382: Listing File - C file comment is incorrect
826           thanks to RvS
827
828 2008-08-23 Borut Razem <borut.razem AT siol.net>
829
830         * src/pic16/gen.c: applied patch
831           2048464: PIC16: fix genUminus - addresses not.c regression test
832           thanks Mauro Giachero
833
834 2008-08-22 Borut Razem <borut.razem AT siol.net>
835
836         * device/lib/pic16/configure, device/lib/pic16/configure.ac,
837           src/pic16/main.c: allow spaces in gpasm and gplink paths
838
839 2008-08-15 Philipp Klaus Krause <pkk AT spth.de>
840
841         * src/z80/peep.c,
842         * src/z80/peeph-z80.def: minor peephole improvement
843
844 2008-08-15 Raphael Neider <rneider AT web.de>
845
846         * src/z80/gen.c (_vemit2): suppress compiler warning
847
848         * src/pic/*.[ch]: make proper use of header files and avoid
849           ad-hoc extern declarations, mark module-local helpers 'static',
850           removed dead/replaced code, no functional changes
851         * src/pic16/pcode.c: disentangled from pic14 backend
852
853 2008-08-14 Philipp Klaus Krause <pkk AT spth.de>
854
855         * src/z80/gen.c: fixed #2051348
856         * support/regression/tests/bug-2051348.c: regression test for #2051348
857
858 2008-08-10 Raphael Neider <rneider AT web.de>
859
860         * configure.in,
861         * Makefile.common.in: export PACKAGE for $docdir,
862           fixes #1957036, avoid some "underquoted definition" warnings
863         * configure: regenerated
864
865 2008-08-10 Raphael Neider <rneider AT web.de>
866
867         * device/lib/pic16/**: build pic16 library using autotools for
868           improved dependency tracking
869
870         * device/lib/Makefile.in,
871         * src/pic16/main.c,
872         * support/scripts/sdcc.nsi: adapt to changes in filenames (s/.lib/.a/)
873
874 2008-08-10 Raphael Neider <rneider AT web.de>
875
876         * src/pic/pcode.c (ReuseReg): do not overlay the registers used for
877           local variables if --nooverlay is given, workaround for #2023121
878
879 2008-08-08 Raphael Neider <rneider AT web.de>
880
881         * src/pic16/genarith.c (genAddLit): fix structure access (#1888004)
882
883 2008-08-08 Raphael Neider <rneider AT web.de>
884
885         * src/pic/pcoderegs.c,
886         * src/pic/pcode.c,
887         * src/pic16/pcode.c: replace own SAFE_snprintf with common SNPRINTF
888
889 2008-08-07 Borut Razem <borut.razem AT siol.net>
890
891         * src/SDCCval.c, src/SDCCmain.c, src/SDCC.lex,
892           device/lib/pic/Makefile.rules, device/lib/ds390/Makefile.in,
893           device/lib/ds400/Makefile.in, device/lib/hc08/Makefile.in,
894           support/cpp/libcpp/lex.c,  doc/sdccman.lyx:
895           applied modified patch 2038174: Add support for binary constants v2
896           thanks Mauro Giachero
897         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.3
898
899 2008-08-04 Raphael Neider <rneider AT web.de>
900
901         * doc/sdccman.lyx,
902         * src/pic16/device.h,
903         * src/pic16/glue.c,
904         * src/pic16/main.c: enable --optimize-goto by default
905
906         * device/lib/pic16/Makefile.common.in: suppress removed option
907
908         * src/pic16/gen.c,
909         * src/pic16/genutils.c: avoid too long relative branches (#2031890)
910
911 2008-07-30 Borut Razem <borut.razem AT siol.net>
912
913         * src/pic16/device.c, src/pic16/glue.c, src/pic16/pcode.c:
914           applied patch 22032433: PIC16: fix constant strings,
915           thanks Mauro Giachero
916
917 2008-07-29 Borut Razem <borut.razem AT siol.net>
918
919         * src/pic16/gen.c: applied patches:
920           2030306: [1/3] PIC16: fix failing rotate.c tests on 16-bit variables,
921           2030307: [2/3] PIC16: fix failing rotate.c tests for 32-bit var (1),
922           2030310: [3/3] PIC16: fix failing rotate.c tests for 32-bit var (2),
923           thanks Mauro Giachero
924
925 2008-07-13 Philipp Klaus Krause <pkk AT spth.de>
926
927         * src/port.h: Fixed typo in comment
928
929 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
930
931         * src/z80/mappings.i: Implemented RFE #1919415
932         * src/z80/peeph-z80.def: Implemented RFE #1919415, #1861376,
933           #1880202, #1914434, prepared for RFE #1703943
934
935 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
936
937         * src/z80/peeph.def,
938         * src/z80/peeph-z80.def,
939         * src/z80/peeph-gbz80.def: separate Z80 from GBZ80 peepholes in
940           preparation for Z80 peephole improvements
941
942 2008-06-21 Raphael Neider <rneider AT web.de>
943
944         * device/include/pic16/pic18f66j60.h,
945         * device/include/pic16/pic18f66j65.h,
946         * device/include/pic16/pic18f67j60.h,
947         * device/include/pic16/pic18f86j60.h,
948         * device/include/pic16/pic18f86j65.h,
949         * device/include/pic16/pic18f87j60.h,
950         * device/include/pic16/pic18f96j60.h,
951         * device/include/pic16/pic18f96j65.h,
952         * device/include/pic16/pic18f97j60.h,
953         * device/lib/pic16/libdev/pic18f66j60.c,
954         * device/lib/pic16/libdev/pic18f66j65.c,
955         * device/lib/pic16/libdev/pic18f67j60.c,
956         * device/lib/pic16/libdev/pic18f86j60.c,
957         * device/lib/pic16/libdev/pic18f86j65.c,
958         * device/lib/pic16/libdev/pic18f87j60.c,
959         * device/lib/pic16/libdev/pic18f96j60.c,
960         * device/lib/pic16/libdev/pic18f96j65.c,
961         * device/lib/pic16/libdev/pic18f97j60.c,
962         * device/include/pic16/pic16devices.txt,
963         * device/include/pic16/pic18fregs.h,
964         * device/lib/pic16/pics.all: added new devices
965
966         * device/include/pic16/adc.h,
967         * device/lib/pic16/libio/adc/adcbusy.c,
968         * device/lib/pic16/libio/adc/adcopen.c,
969         * device/lib/pic16/libio/adc/adcsetch.c,
970         * device/lib/pic16/libio/i2c/i2copen.c,
971         * device/lib/pic16/libio/usart/uopen.c: adapted to new devices,
972           all changes from a patch by Anton Strobl
973
974 2008-06-12 Borut Razem <borut.razem AT siol.net>
975
976         * sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/bp.cc,
977           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
978           sim/ucsim/z80.src/z80cl.h, sim/ucsim/z80.src/z80.cc,
979           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
980           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
981           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/uc390.cc,
982           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/uc390cl.h,
983           sim/ucsim/avr.src/avrcl.h, sim/ucsim/avr.src/avr.cc:
984           fixed bug 1990586: s51 simulator, uc::disass() unimplemented
985           by applying the modified patch from Risto Huotari
986
987 2008-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
988
989         * .version,
990         * doc/sdccman.lyx: bumped sdcc version to 2.8.2
991         * src/ds390/gen.c (aopPutUsesAcc, genAddrOf): fixed bug 1015185
992         * src/mcs51/gen.c (genNearPointerGet, genNearPointerSet): fixed bug 1938300
993         * support/regression/tests/bug1938300.c: new, added
994
995 2008-06-03 Maarten Brock <sourceforge.brock AT dse.nl>
996
997         * device/include/asm/ds390/features.h,
998         * device/include/asm/mcs51/features.h,
999         * device/include/mcs51/regc515c.h: inserted LGPL notice
1000
1001 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1002
1003         * device/lib/gbz80/div.s,
1004         * device/lib/z80/div.s: fixed bug 1904314 by applying a modified part of
1005           patch 1597883, Thanks Robert Ramey
1006
1007 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1008
1009         * src/SDCCast.c (createIvalType, createIvalStruct, createIvalArray,
1010           createIvalCharPtr, createIvalPtr, createIval),
1011         * src/SDCCval.h
1012         * src/SDCCval.c (convertIListToConstList, list2expr): handle incomplete
1013           initializers for local auto variables
1014         * support/regression/tests/zeropad.c: added testcase for auto initializers
1015
1016 2008-05-26 Raphael Neider <rneider AT web.de>
1017
1018         * device/lib/pic16/startup/crt0.c,
1019         * device/lib/pic16/startup/crt0i.c,
1020         * device/lib/pic16/startup/crt0iz.c: clean up, make use of access bank
1021           explicit, fixed curr_entry loop for >= 256 initializer records,
1022           removed debug code (write to 0xf7e)
1023
1024 2008-05-25 Raphael Neider <rneider AT web.de>
1025
1026         * device/include/pic/pic16f627a.h,
1027         * device/include/pic/pic16f628a.h,
1028         * device/include/pic/pic16f648a.h: added missing ports
1029
1030 2008-05-20 Maarten Brock <sourceforge.brock AT dse.nl>
1031
1032         * device/include/float.h: added __INFINITY
1033         * device/lib/_fsadd.c: handle overflows
1034         * device/lib/_fsmul.c,
1035         * device/lib/_fsdiv.c: use __INFINITY
1036         * device/lib/_fseq.c,
1037         * device/lib/_fsneq.c: handle -0.0
1038         * sim/ucsim/s51.src/uc89c51r.cc,
1039         * sim/ucsim/s51.src/uc89c51rcl.h: fixed bug 1385430
1040         * sim/ucsim/sim.src/hwcl.h: */* confuses VC
1041         * src/mcs51/gen.c (genSend): fixed bug with --xstack
1042         * support/regression/ports/mcs51-xstack-auto/spec.mk: print floats
1043         * support/regression/tests/snprintf.c: test bug with --xstack
1044
1045 2008-05-19  Philipp Klaus Krause <pkk AT spth.de>
1046
1047         * src/SDCCpeeph.c (callFuncByName):
1048           Support nested parenthesis in peephole function arguments (#1967300)
1049
1050 2008-05-19 Raphael Neider <rneider AT web.de>
1051
1052         * src/pic16/gen.c (pic16_emitpLabel,pic16_emitpLabelFORCE):
1053           fixed duplicate labels (#1911325)
1054
1055 2008-05-19 Raphael Neider <rneider AT web.de>
1056
1057         * src/regression/empty.c: suppress warning
1058         * src/regression/pointer1.c: enabled index_by_pointer()
1059         * src/regression/inline.c: now works for pic16 as well
1060
1061         * src/pic16/device.c: include dbuf declarations
1062         * src/pic16/device.h: removed obsolete prototypes
1063
1064         * src/pic16/gen.c, src/pic16/gen.h: moved generic pointer tags
1065         * src/pic16/glue.c: made purely local functions static,
1066           (pic16_printGPointerType, pic16_printIvalCharPtr,
1067           pic16_printIvalFuncPtr, pic16_printIvalPtr): fixed initialized
1068           generic pointers' tags (#1961866)
1069
1070         * src/pic16/pcode.c (assignValnums): optimize literal assignments
1071
1072 2008-05-19 Borut Razem <borut.razem AT siol.net>
1073
1074         * support/scripts/sdcc.nsi: remove uninstall.exe after uninstallation,
1075           fixed typo, uninstall include/pic16/pic16devices.txt
1076
1077 2008-05-18 Borut Razem <borut.razem AT siol.net>
1078
1079         * support/Utils/dbuf_string.[ch]: added dbuf_chomp(),
1080           the buffer is null terminated
1081         * src/device/pic16.c:
1082           applied modified patch 1965676: Patch for Win32 16 bit PIC
1083         * sdcc_vc_in.h: defined YY_NO_UNISTD_H
1084
1085 2008-05-16 Maarten Brock <sourceforge.brock AT dse.nl>
1086
1087         * src/SDCC.lex (check_type),
1088         * src/SDCC.y (type_specifier2 TYPE_NAME): fixed bug 1925942
1089         * as/hc08/clean.mk,
1090         * as/mcs51/clean.mk,
1091         * as/z80/clean.mk: also clean *.dep
1092         * device/lib/pic16/libsdcc/stack/Makefile,
1093         * sim/ucsim/libtool: removed as they are rebuild by configure
1094         * src/clean.mk: removed izt, so Makefile is not deleted for distclean
1095
1096 2008-05-13 Maarten Brock <sourceforge.brock AT dse.nl>
1097
1098         * src/SDCCast.c (fixupInline, createFunction): save currBlockno in
1099           fixupInline instead of createFunction to fix bug 1864577
1100           (inlineFindMaxBlockno): removed, use global blockNo
1101         * src/SDCCglobl.h: added blockNo
1102         * src/z80/peep.c,
1103         * src/z80/peep.h: modified properties
1104         * support/regression/tests/bug1864577.c: new, added
1105
1106 2008-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
1107
1108         * as/mcs51/asdata.c,
1109         * as/mcs51/asm.h: added org_cnt
1110         * as/mcs51/asmain.c (main, asmbl): fixed bug 1957716, changed old K&R to ANSI
1111         * as/mcs51/asout.c: changed old K&R to ANSI
1112         * as/mcs51/Makefile.in: use common identifiers
1113         * as/hc08/asdata.c,
1114         * as/hc08/asexpr.c,
1115         * as/hc08/asm.h,
1116         * as/hc08/asmain.c,
1117         * as/hc08/asout.c,
1118         * as/hc08/Makefile.bcc,
1119         * as/hc08/Makefile.in: synchronized with as/mcs51/*
1120         * sdcc_vc_in.h: added define __func__
1121         * src/SDCCast.c (expandInlineFuncs): applied patch 1957148 to fix bug 1717305,
1122           Thanks Ruud van Silfhout
1123         * support/regression/tests/bug1717305.c: new, added
1124
1125 2008-05-05 Borut Razem <borut.razem AT siol.net>
1126
1127         * support/regression/Makefile.in,
1128           support/regression/ports/ds390/spec.mk,
1129           support/regression/ports/hc08/spec.mk,
1130           support/regression/ports/mcs51-common/spec.mk,
1131           support/regression/ports/pic14/spec.mk,
1132           support/regression/ports/pic16/spec.mk,
1133           support/regression/ports/ucz80/spec.mk,
1134           support/regression/ports/z80/spec.mk:
1135           added INC_DIR and LIBDIR paths
1136         * src/ds390/gen.c: removed duplicated selicolon
1137
1138 2008-05-04 Borut Razem <borut.razem AT siol.net>
1139
1140         * support/regression/Makefile.in,
1141           support/regression/fwk/lib/testfwk.c,
1142           support/regression/ports/ds390/spec.mk,
1143           support/regression/ports/hc08/spec.mk,
1144           support/regression/ports/mcs51-common/spec.mk,
1145           support/regression/ports/mcs51-large/spec.mk,
1146           support/regression/ports/mcs51-medium/spec.mk,
1147           support/regression/ports/mcs51-small/spec.mk,
1148           support/regression/ports/mcs51-stack-auto/spec.mk,
1149           support/regression/ports/mcs51-xstack-auto/spec.mk,
1150           support/regression/ports/pic14/spec.mk,
1151           support/regression/ports/pic16/spec.mk,
1152           support/regression/ports/ucz80/spec.mk:
1153           added possibility to define the sdcc binary directory SDCC_BIN_PATH
1154           used to run regeression tests
1155
1156 2008-05-01 Raphael Neider <rneider AT web.de>
1157
1158         * doc/sdccman.lyx, support/scripts/inc2h-pic16.pl: updated list of
1159           supported devices and instructions to add new ones
1160
1161 2008-05-01 Raphael Neider <rneider AT web.de>
1162
1163         * device/include/pic16/adc.h,
1164           device/lib/pic16/libio/adc/adcbusy.c,
1165           device/lib/pic16/libio/adc/adcopen.c,
1166           device/lib/pic16/libio/adc/adcsetch.c: support old 18f242 and new
1167           18f2455 style ADC devices, based on patch #1776197
1168         * device/lib/pic16/libio/adc/adcclose.c,
1169           device/lib/pic16/libio/adc/adcconv.c,
1170           device/lib/pic16/libio/adc/adcread.c: cosmetic changes
1171         * device/include/pic16/{pic18f2331.h,pic18f2431.h},
1172           device/lib/pic16/libdev/{pic18f2331.c,pic18f2431.c}: reuse 18f4331
1173         * device/include/pic16/pic18f4431.h,
1174           device/lib/pic16/libdev/pic18f4431.c: remove outdated comments
1175         * device/lib/pic16/libio/adc.ignore: forbid unhandled devices
1176
1177 2008-05-01 Raphael Neider <rneider AT web.de>
1178
1179         * src/pic16/device.h: removed unused field PIC16_device.sfrRange,
1180           moved xinst flag into pic16_options_t
1181         * src/pic16/device.c (default_device, pic16_list_devices,
1182           pic16_find_device): removed references to sfrrange
1183         * src/pic16/gen.c (genFunction),
1184           src/pic16/glue.c (pic16initialComments),
1185           src/pic16/main.c (pic16_optionsTable),
1186           src/pic16/ralloc.c (newReg, pic16_writeUsedRegs): updated references
1187           to xinst
1188         * device/include/pic16/pic16devices.txt: removed sfrrange lines
1189
1190 2008-04-29 Raphael Neider <rneider AT web.de>
1191
1192         * src/pic16/devices.inc,
1193           device/include/pic16/pic16devices.txt: replaced compiled-in list
1194           of devices with a variant parsed at runtime
1195         * src/pic16/device.c: added support for parsing pic16devices.txt,
1196           clean up
1197         * src/pic16/device.h: removed (now) unused fields from PIC_device
1198         * src/pic16/main.c: removed #pragma maxram,
1199           (_pic16_initPaths): removed bogus generation of search paths,
1200           setup the port proper only after the search paths (for
1201           pic16devices.txt) are set up,
1202           (_pic16_finaliseOptions): moved processor dependant code here
1203           from _pic16_initPaths(), clean up
1204         * src/pic16/ralloc.c (pic16_init_stack),
1205         * src/pic16/ralloc.h,
1206         * src/pic16/pcode.c: clean up
1207         * device/include/Makefile.in,
1208           support/scripts/sdcc.nsi: also install/package pic16devices.txt
1209         * support/scripts/inc2h-pic16.pl: updated instructions
1210
1211 2008-04-29 Raphael Neider <rneider AT web.de>
1212
1213         * device/include/pic16/{pic18f2480.h, pic18f2580.h, pic18f4423.h,
1214           pic18f4480.h, pic18f4523.h, pic18f4580.h, pic18f6585.h, pic18f8585.h},
1215           device/lib/pic16/libdev/{pic18f2480.c, pic18f2580.c, pic18f4423.c,
1216           pic18f4480.c, pic18f4523.c, pic18f4580.c, pic18f6585.c, pic18f8585.c}:
1217           added missing family members and 18f2480/2580/4480/4580 family
1218         * device/include/pic16/{pic18f2423.h, pic18f2523.h}: use 18f4523.h
1219         * device/include/pic16/pic18f2525.h: use 18f4620.h
1220         * device/include/pic16/pic18f6680.h: use 18f8680.h
1221         * device/include/pic16/pic18fregs.h,
1222           device/lib/pic16/pics.all,
1223           src/pic16/devices.inc: add new devices
1224         * device/lib/pic16/libdev/{pic18f2423.c, pic18f2523.c}: use 18f4523.c
1225         * device/lib/pic16/libdev/pic18f2525.c: use 18f4620.c
1226         * device/lib/pic16/libdev/pic18f6680.c: uso 18f8680.c
1227         * device/lib/pic16/libio/{adc.ignore, i2c.ignore, usart.ignore}:
1228           prevent attempting to build the libio for some new devices
1229
1230 2008-04-29 Raphael Neider <rneider AT web.de>
1231
1232         * debugger/mcs51/Makefile.in: fixed paths to sources
1233
1234 2008-04-25 Borut Razem <borut.razem AT siol.net>
1235
1236         * as/link/lklibr.c: moved from as/link/z80/lklibr.c
1237         * as/link/hc08/lklibr.c, as/link/mcs51/lklibr.c: deleted
1238         * as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
1239         * as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
1240           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
1241           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
1242           as/link/z80/linkz80.dsp: lklibr.c moved
1243         * doc/INSTALL.txt: binary archives in bz2 format
1244         * support/cpp/auto-host_vc_in.h: CPP2 replaced with CPP
1245
1246 2008-04-23 Maarten Brock <sourceforge.brock AT dse.nl>
1247
1248         * src/SDCCglue.c (printIvalType, printIvalBitFields): fixed bug 1856409
1249         * support/regression/tests/bug1856409.c: new, added
1250
1251 2008-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
1252
1253         * src/z80/peep.c,
1254         * src/mcs51/peep.c: Use werror for error messages.
1255         * src/SDCCicode.c (geniCodeConditional),
1256         * src/SDCCsymt.c (structElemType): fixed bug 1839321
1257         * src/z80/Makefile.bcc,
1258         * src/z80/z80.dsp: added src/z80/peep.c/h
1259         * support/regression/tests/bug1839321.c: new, added
1260
1261 2008-04-20 Raphael Neider <rneider AT web.de>
1262
1263         * device/include/pic16/pic18f2455.h: added bitfields for port C
1264
1265 2008-04-20 Philipp Klaus Krause <pkk AT spth.de>
1266
1267         * src/z80/peep.c: Use werror for error messages.
1268
1269 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
1270
1271         * src/z80/peep.h (declaration of notUsed()),
1272         * src/z80/main.c (enabled notUsed() for z80 port, documented z80_port
1273           struct),
1274         * src/z80/z80.h (added dependency on peep.h),
1275         * src/z80/peep.c (definition of notUsed()): Implemented RFE #1880202
1276           for Z80.
1277
1278 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
1279
1280         * src/SDCCpeeph.c (added support for notUsed()),
1281         * src/mcs51/main.c (added dependency on peep.h, documented mcs51_port
1282           struct),
1283         * src/port.h (removed dependency on mcs51/peep.h, added declaration
1284           for notUsed()): Implemented generic (that is not port-specific) part
1285           of RFE #1880202.
1286
1287 2008-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
1288
1289         * as/link/mcs51/lkmem.c (summary2): fixed bug 1796077
1290         * device/lib/libsdcc.lib,
1291         * device/lib/Makefile.in,
1292         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1293         * device/lib/calloc.c: renamed to _calloc.c
1294         * device/lib/free.c: renamed to _free.c
1295         * device/lib/malloc.c: renamed to _malloc.c
1296         * device/lib/realloc.c: renamed to _realloc.c
1297         * src/ds390/gen.c (aopGet, aopPut, genPlusBits, genDataPointerSet,
1298           genNearPointerSet, genPagedPointerSet): synchronized with mcs51/gen.c
1299         * src/ds390/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq, ifxForOp,
1300           genAnd, genOr, genXor, genIfx, gen390Code): fixed bug 1509084
1301         * src/mcs51/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq,
1302           ifxForOp, genAnd, genOr, genXor, genNearPointerGet,
1303           genPagedPointerGet, genFarPointerGet, genCodePointerGet,
1304           genGenPointerGet, genIfx, gen51Code): fixed bug 1509084
1305         * src/ds390/gen.c,
1306         * src/mcs51/gen.c: throughout cosmetic changes for syncing both
1307         * src/SDCCsymt.h: updated IS_OP_RUONLY, IS_OP_ACCUSE
1308         * support/regression/tests/bug1509084.c: new, added
1309
1310 2008-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
1311
1312         * device/include/mcs51/cc2510fx.h: added _XPAGE
1313         * device/include/mcs51/compiler.h: cosmetic changes
1314
1315 2008-03-31 Maarten Brock <sourceforge.brock AT dse.nl>
1316
1317         * sdcc.dsw: adapted for moved cpp2, added dependency for as_z80 on
1318           config
1319
1320 2008-03-31 Borut Razem <borut.razem AT siol.net>
1321
1322         * support/cpp2 renamed to support/cpp
1323         * support/cpp2/libiberty/filenames.h, support/cpp2/libiberty/hex.c,
1324           support/cpp2/libiberty/splay-tree.c,
1325           support/cpp2/libiberty/splay-tree.h, support/cpp2/libcpp/macro.c,
1326           support/cpp2/libcpp/directives.c,
1327           support/cpp2/libcpp/include/cpplib.h,
1328           support/cpp2/libcpp/include/symtab.h,
1329           support/cpp2/libcpp/include/line-map.h,
1330           support/cpp2/libcpp/line-map.c, support/cpp2/libcpp/files.c,
1331           support/cpp2/libcpp/init.c, support/cpp2/libcpp/traditional.c,
1332           support/cpp2/libcpp/expr.c, support/cpp2/libcpp/internal.h,
1333           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/system.h,
1334           support/cpp2/libcpp/charset.c: SDCPP synchronized with GCC CPP
1335           release version 4.3.0
1336         * configure.in, configure, Makefile.in, Makefile.bcc:
1337           adapted for moved cpp2
1338
1339 2008-03-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1340
1341         * device/include/hc08/mc68hc908jkjl.h: committed fix for bug #1929739,
1342           thanks Alejandro Pustowka <alejo_pustowka AT yahoo.com.mx>
1343
1344 2008-03-30 Maarten Brock <sourceforge.brock AT dse.nl>
1345
1346         * src/SDCCloop.c (loopInvariants): applied fix for bug 1717943, thanks
1347           Robert Larice
1348         * support/regression/tests/bug1717943.c: new, added
1349
1350 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1351
1352         * src/z80/gen.c (assignResultValue): Reverted reversal of order of
1353           bytewise return value assignments introduced in last commit.
1354
1355 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1356
1357         * src/z80/gen.c (emitDebug, assignResultValue, genPlus, genMinus,
1358           genMult, genJumpTab):
1359           Use 16-bit instructions for addition in some additional cases,
1360           implemented RFEs #1914251, #1914245, #1922090, #1921382, #1918323.
1361
1362 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1363
1364         * src/z80/ralloc.c (serialRegAssign, allocReg, tryAllocatingRegPair):
1365           Implemented RFE #1921450, changed some debug messages.
1366
1367 2008-03-30 Borut Razem <borut.razem AT siol.net>
1368
1369         * Small Device C Compiler 2.8.0 released
1370         * .version, doc/sdccman.lyx: changed sdcc version to 2.8.1
1371         * support/scripts/sdcc.nsi: added finish page; this version
1372           was used for 2.8.0 release
1373         * doc/knownbugs.html: removed; magically generated by the build
1374           process using gen_known_bugs.pl from now on
1375
1376 2008-03-23 Borut Razem <borut.razem AT siol.net>
1377
1378         * src/pic/gen.h: Q&D solution for the bug, found by Jim Paris
1379           and reverted it, since it was already fixed by Raphael ;-)
1380         * doc/knownbugs.html: updated for RC2
1381
1382 2008-03-22 Raphael Neider <rneider AT web.de>
1383
1384         * src/SDCCicode.c (getPtrType): avoid unnecessary extra assignments
1385           for PIC16 targets
1386
1387 2008-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
1388
1389         * src/mcs51/gen.c (adjustArithmeticResult): fixed bug 1839299
1390         * support/regression/tests/bug1839277.c: added related testBug1839299
1391
1392 2008-03-21 Maarten Brock <sourceforge.brock AT dse.nl>
1393
1394         * src/ds390/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign),
1395         * src/mcs51/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign):
1396           fixed bug 1839277
1397         * src/mcs51/gen.c: throughout only output hex constants
1398         * src/SDCCicode.c (getPtrType, geniCodeCast): fixed code size regression
1399         * support/regression/tests/bug1839277.c: new, added
1400
1401 2008-03-21 Philipp Klaus Krause <pkk AT spth.de>
1402
1403         * src/z80/ralloc.c (callFuncByName): Used // instead of /**/ to fix
1404           compilation warning about nested comments.
1405
1406 2008-03-20 Maarten Brock <sourceforge.brock AT dse.nl>
1407
1408         * src/SDCCsymt.c (comparePtrType): fixed bug 1921073
1409         * support/regression/tests/bug1921073.c: new, added
1410
1411 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
1412
1413         * src/z80/SDCCpeeph.c.c (callFuncByName):
1414           Commented function parameters.
1415
1416 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
1417
1418         * src/z80/ralloc.c (packRegsForAccUse2):
1419           disabled a broken accumulator packing optimization (fixed #1292721).
1420         * support/regression/tests/bug-1292721: Regression test for #1292721.
1421
1422 2008-03-16 Raphael Neider <rneider AT web.de>
1423
1424         * src/pic/gen.c (SetIrp,genNearPointerGet,genNearPointerSet):
1425           fixed code bloat regression using a variant of patch #1915618
1426
1427 2008-03-16 Borut Razem <borut.razem AT siol.net>
1428
1429         * support/scripts/sdcc.nsi: added section debugging macros, added SDCC
1430           icon, changed startup menu for release distribution, code cleaning,
1431           create url files instead links in startup menu
1432
1433 2008-03-16 Maarten Brock <sourceforge.brock AT dse.nl>
1434
1435         * src/SDCCcse.c (algebraicOpts): fixed bug 1579949
1436         * support/regression/tests/bug1579949.c: new, added
1437
1438 2008-03-14 Paul Stoffregen <paul AT pjrc.com>
1439
1440         * device/lib/printf_fast.c: fixed bug 1255403
1441
1442 2008-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
1443
1444         * doc/sdccman.lyx: enhanced paragraph about bankswitching for mcs51
1445         * src/cdbFile.c (cdbWriteBasicSymbol): fixed bug 1909409 for locals
1446
1447 2008-03-14 Borut Razem <borut.razem AT siol.net>
1448
1449         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated link-xx and aslink
1450           command line options
1451         * as/link/hc08/lkmain.c: converted tabs to spaces so that the usage
1452           is correctly displayed
1453         * as/link/z80/lkmain.c: usage line commented out
1454
1455 2008-03-13 Borut Razem <borut.razem AT siol.net>
1456
1457         * doc/sdccman.lyx: corrected to be able to convert to PDF,
1458           updated the list pf supported pic14 devices
1459
1460 2008-03-12 Maarten Brock <sourceforge.brock AT dse.nl>
1461
1462         * doc/sdccman.lyx: added paragraph about bankswitching for mcs51
1463
1464 2008-03-12 Borut Razem <borut.razem AT siol.net>
1465
1466         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated command line options,
1467           fixed documentation request #1718191
1468         * as/hc80/asmain.c, as/mcs51/asmain.c: added option -c to usage
1469         * doc/sdccman.lyx: added description of --no-std-crt0 gbz80
1470           command line option
1471
1472 2008-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
1473
1474         * src/SDCCast.c (isConformingBody): fixed bug 1505811, thanks Robert Larice
1475         * support/regression/tests/bug1505811.c: new, added
1476
1477 2008-03-09 Raphael Neider <rneider AT web.de>
1478
1479         * device/include/pic16/pic18f2620.h,
1480         * device/include/pic16/pic18f4620.h,
1481         * device/lib/pic16/libdev/pic18f2620.c,
1482         * device/lib/pic16/libdev/pic18f4525.c,
1483         * device/lib/pic16/libdev/pic18f4620.c: merged 18f2525/2620/4525/4620
1484           family to consistently use pic18f4620.[ch], fixes #1832562
1485
1486 2008-03-09 Borut Razem <borut.razem AT siol.net>
1487
1488         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
1489           changed sdcc version to 2.8.0
1490         * knownbugs.html: regenerated
1491         * support/scripts/gen_known_bugs.pl: added number of open bugs
1492
1493 2008-03-09 Raphael Neider <rneider AT web.de>
1494
1495         * src/pic16/gen.c (pic16_mov2w_volatile): NEW, read volatile operands,
1496           (genOr): read volatile operand even if the result is known,
1497           closes #1511838
1498           (genOr,genXor): removed unused legacy code,
1499           (genDummyRead): use pic16_mov2w_volatile()
1500
1501 2008-03-08 Borut Razem <borut.razem AT siol.net>
1502
1503         * src/SDCCglue.c: fixed bug #1864582: multiple definition of char
1504           cons w. --model-large
1505         * support/regression/staticinit.c: added regression test for bug
1506           #1864582
1507
1508 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1509
1510         * src/ds390/gen.c (pushSide, genPcall),
1511         * src/hc08/gen.c (pushSide, genPcall): synchronized with mcs51
1512         * src/mcs51/gen.c: cosmetic changes
1513         * support/regression/fwk/include/testfwk.h: added macro reentrant
1514         * support/regression/tests/bug1908493.c: new, added
1515
1516 2008-03-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1517
1518         * src/SDCCdebug.c:, as/link/lkaomf51.c: Fixed bug 1909409: Pdata in OMF file
1519
1520 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1521
1522         * src/mcs51/gen.c (pushSide, genPcall): fixed bug 1908493
1523         * src/SDCCmain.c (preProcess): removed -DSDCC_PARMS_IN_BANK1 because it is
1524           already set in ds390/main.c and mcs51/main.c
1525
1526 2008-03-07 Raphael Neider <rneider AT web.de>
1527
1528         * src/regression/init0.c: new test for initialized arrays of function
1529           pointers
1530         * src/regression/Makefile: made a bit more flexible, added init0.c
1531         * src/pic/glue.c (emitIvals): hacky fix for initializing from function
1532           pointers, closes #1427663
1533
1534 2008-03-05 Borut Razem <borut.razem AT siol.net>
1535
1536         * dos/sdccman.lyx: docummented predefined macros SDCC_REVISION,
1537           SDCC_PARMS_IN_BANK1, SDCC_FLOAT_REENT and SDCC_INT_LONG_REENT
1538
1539 2008-03-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1540
1541         * support/librarian/sdcclib.c:Added feature request 1908061:
1542           Synchronise sdcclib commands with ar.
1543
1544 2008-03-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1545
1546         * src/SDCCmain.c: added predefined macros SDCC_REVISION (RFE #1907229),
1547           and (depending on corresponding compiler option) SDCC_PARMS_IN_BANK1,
1548           SDCC_FLOAT_REENT, SDCC_INT_LONG_REENT
1549         * device/include/mcs51/compiler.h: removed umlauts, added double
1550           underscore
1551
1552 2008-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
1553
1554         * src/SDCCptropt.c (ptrPseudoSymConvert): fixed bug 1536762
1555         * support/regression/tests/bug1536762.c: new, added
1556         * src/SDCCutil.c,
1557         * src/SDCCutil.h: added getBuildDate()
1558         * src/SDCCmain.c (printVersionInfo),
1559         * src/SDCCglue.c (initialComments): use getBuildDate() instead of
1560           __DATE__
1561         * src/*/ralloc.c: removed IS_OP_RUONLY macro
1562         * src/ds390/ralloc.c (packRegisters),
1563         * src/mcs51/ralloc.c (packRegisters),
1564         * src/z80/ralloc.c (packRegisters): applied fix for bug 1618050, thanks
1565           Robert Larice
1566         * support/regression/tests/bug1618050.c: new, added
1567         * src/SDCCsymt.h: fixed typo in DECLSPEC2TXT
1568         * support/regression/fwk/include/testfwk.h,
1569         * support/regression/tests/bug1838000.c: moved _AUTOMEM and _STATMEM to
1570           testfwk.h
1571
1572 2008-03-04 Raphael Neider <rneider AT web.de>
1573
1574         * src/pic/gen.c: removed unused prototypes, prevent internal errors
1575           on accessing OP_SYM_TYPE(op)
1576         * src/pic/gen.h: removed unused prototype of genMinusDec()
1577         * src/pic/genarith.c (genMinus): cosmetic changes, rewritten to
1578           fix #1876953 (invalid subtraction code), removed unused code
1579
1580 2008-03-03 Raphael Neider <rneider AT web.de>
1581
1582         * src/pic/gen.c,
1583         * src/pic/gen.h,
1584         * src/pic/genarith.c,
1585         * src/pic/ralloc.c,
1586         * src/pic/ralloc.h: removed AOP_R0, AOP_R1, AOP_DPTR, AOP_DPTR2,
1587           AOP_ACC, and *_IDX and adjusted code, removed unused legacy code
1588
1589 2008-03-03 Raphael Neider <rneider AT web.de>
1590
1591         * src/pic/device.c (find_device): search user-specified paths first
1592           for pic14devices.txt, fixes #1900827
1593
1594 2008-03-02 Borut Razem <borut.razem AT siol.net>
1595
1596         * support/scripts/sdcc.nsi: fixed bug in IsNT, LogicLib-isation of
1597           AddToPath and RemoveFromPath
1598
1599 2008-03-01 Borut Razem <borut.razem AT siol.net>
1600
1601         * support/scripts/sdcc.nsi: reverted MULTIUSER page since it didn't
1602           work correctly, added debugging support if -DSDCC.DEBUG command line
1603           option is defined
1604
1605 2008-02-28 Borut Razem <borut.razem AT siol.net>
1606
1607         * doc/sdccman.lyx: cosmetic changes
1608
1609 2008-02-28 Maarten Brock <sourceforge.brock AT dse.nl>
1610
1611         * src/mcs51/ralloc.c (fillGaps): fixed bug 1839671
1612         * doc/sdccman.lyx: fixed unmeant removal of spaces
1613
1614 2008-02-27 Borut Razem <borut.razem AT siol.net>
1615
1616         * support/scripts/sdcc.nsi: corrected installation directory for
1617           current user installation mode
1618         * doc/README.txt: added Philipp Klaus Krause to the developers list
1619
1620 2008-02-27 Maarten Brock <sourceforge.brock AT dse.nl>
1621
1622         * src/mcs51/gen.c (genUnpackBits): don't generate ifxJump, instead
1623           return ifx condition
1624           (genNearPointerGet, genPagedPointerGet, genFarPointerGet,
1625           genCodePointerGet, genGenPointerGet): cleanup aop before generating
1626             ifxJump to fix bug 1838000
1627         * src/SDCCsymt.c (aggregateToPointer): fix problem for xstack
1628         * support/regression/tests/bug1838000.c: new, added
1629         * device/include/mcs51/cc1110.h: new, added, thanks to Pravin Angolkar
1630
1631 2008-02-26 Borut Razem <borut.razem AT siol.net>
1632
1633         * src/SDCCast.c, doc/sdccman.lyx: fixed RFE #1901171: inerger promotion
1634           of casted varargs
1635         * support/scripts/sdcc.nsi: added MULTIUSER page,
1636           NSIS upgraded to version 2.35
1637
1638 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1639
1640         * src/mcs51/ralloc.c (isSpiltOnStack): fixed bug 1565152
1641         * support/regression/tests/bug1565152.c: new, added
1642
1643 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1644
1645         * src/mcs51/gen.c (genPagedPointerSet): fixed bug 1670148
1646         * support/regression/ports/mcs51-xstack-auto/spec.mk: added expf.c
1647         * support/regression/tests/bug1670148.c: new, added
1648
1649 2008-02-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1650
1651         * device/include/mcs51/at89c51ed2.h: fixed bug 1901469.
1652
1653 2008-02-24 Borut Razem <borut.razem AT siol.net>
1654
1655         * src/SDCCast.c, src/SDCCast.h: fixed bug #1874922: explicit typecast
1656           is ineffective for unsigned char parameter
1657
1658 2008-02-24 Maarten Brock <sourceforge.brock AT dse.nl>
1659
1660         * src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
1661         * src/SDCCglue.c (printIvalBitFields): fixed bug 1806631
1662         * support/regression/tests/bitopcse.c: removed hc08 exception, see testfwk.h
1663         * support/Util/MySystem.c (my_system): output errorcode when verbose
1664
1665 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
1666
1667         * src/z80/gen.c (genMult): Rewrote 8-bit multiplication by constant,
1668           implements #1898231
1669
1670 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
1671
1672         * device/lib/z80/mul.s: Rewrote __muluchar_rrx_s, to improve 8-bit mult.,
1673           implements #1896290
1674
1675 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
1676
1677         * src/SDCCast.c (createIvalStruct): fixed bug 1466761
1678
1679 2008-02-21 Borut Razem <borut.razem AT siol.net>
1680
1681         * support/regression/Makefile.in,
1682           support/regression/ports/ds390/spec.mk,
1683           support/regression/ports/hc08/spec.mk,
1684           support/regression/ports/mcs51-common/spec.mk,
1685           support/regression/ports/pic14/spec.mk,
1686           support/regression/ports/pic16/spec.mk,
1687           support/regression/ports/ucz80/spec.mk,
1688           support/regression/ports/xa51/spec.mk:
1689           added CFLAGS when compiling timeout
1690
1691 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1692
1693         * support/regression/tests/bugs-1596270-1736867.c: Regression test for
1694           #1596270, #1736867
1695
1696 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
1697
1698         * src/SDCClrange.c (findPrevUse): fixed bug 1888147
1699         * support/regression/tests/bug1888147.c: new, added
1700
1701 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1702
1703         * src/z80/gen.c: fixed bugs #1596270, #1736867
1704
1705 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1706
1707         * src/z80/gen.c: fixed bug in register pair loading when swapping register
1708           contents, mostly fixes #1596270
1709
1710 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1711
1712         * src/z80/peeph.def,
1713         * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific
1714           peepholes, fixes #1806565
1715
1716 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
1717
1718         * src/SDCCpeeph.c (operandBaseName): added check for @Ri
1719         * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
1720           fixes bug 1739475, thanks Robert Larice
1721           (rule 271): new, added
1722
1723 2008-02-18 Borut Razem <borut.razem AT siol.net>
1724
1725         * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
1726
1727 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
1728
1729         * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
1730
1731 2008-02-17 Raphael Neider <rneider AT web.de>
1732
1733         * src/pic16/genarith.c,
1734         * src/pic16/gen.c,
1735         * src/pic16/gen.h,
1736         * src/pic16/genutils.c: removed unused legacy code,
1737           removed unused fields from struct asmop and struct _G
1738
1739 2008-02-17 Raphael Neider <rneider AT web.de>
1740
1741         * src/pic16/gen.c (AccRsh): cosmetic changes,
1742           (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
1743           genRightShiftLiteral): fixed to work with SFRs as result by
1744           assigning only once to result,
1745           removed a lot of unused/excluded code fragments
1746
1747 2008-02-17 Raphael Neider <rneider AT web.de>
1748
1749         * device/include/pic/pic16f88.h,
1750         * device/include/pic/pic16f886.h,
1751         * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
1752
1753 2008-02-17 Borut Razem <borut.razem AT siol.net>
1754
1755         * src/z80/peeph.def: applied patch
1756           #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
1757         * src/z80/gen.c, src/z80/peeph.def: applied patch
1758           #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
1759         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1760           sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
1761           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
1762           sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
1763           enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
1764
1765 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
1766
1767         * as/link/mcs51/aslink.dsp: removed SDK define
1768         * as/link/z80/clean.mk: brought in sync with other ports
1769         * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
1770         * as/hc08/Makefile.bcc,
1771         * as/mcs51/Makefile.bcc,
1772         * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
1773         * src/z80/main.c (_setValues): use the now capitalized -Z,
1774           (z80_port, gbz80_port): generate debug information when asked
1775
1776 2008-02-16 Borut Razem <borut.razem AT siol.net>
1777
1778         * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
1779           as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
1780           as/z80/Makefile.in. as/z80/Makefile.bcc:
1781           applied patch #1893393: patch for as-z80 and link-z80 to generate
1782           cdb, thanks to Armin Diehl
1783         * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
1784           as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
1785           asnoice.c moved to as/asxxsrc/asnoice.c
1786         * src/z80/peeph-gbz80.def: applied patch
1787           #1880235: Z80 return peephole, thanks to Philipp Krause
1788
1789 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
1790
1791         * .version,
1792         * doc/sdccman.lyx: bumped version to 2.7.5
1793         * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
1794
1795 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
1796
1797         * device/include/pic16/stdlib.h,
1798         * device/lib/pic16/libc/stdlib/ltoa.c,
1799         * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
1800
1801 2008-02-13 Borut Razem <borut.razem AT siol.net>
1802
1803         * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
1804         * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
1805           src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
1806           src/SDCCopt.c,  src/SDCCval.c:
1807           fixed bug #1890273: SDCC Warning 154 shows wrong filename
1808
1809 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
1810
1811         * src/SDCCsymt.c (compareType): fixed bug 1309013
1812
1813 2008-02-09 Borut Razem <borut.razem AT siol.net>
1814
1815         * src/SDCCval.c, src/SDCCval.h:
1816           code cleaning, added function constChrVal()
1817         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
1818           call constChrVal() instead constVal()
1819
1820 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
1821
1822         * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
1823           of function pointer
1824         * src/SDCCerr.h,
1825         * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
1826         * support/regression/tests/absolute.c: added TestStruct TestVar (see also
1827           bug 1859853)
1828
1829 2008-02-01 Raphael Neider <rneider AT web.de>
1830
1831         * device/include/pic/pic16f886.h,
1832         * device/include/pic/pic16f887.h: added RA6 and RA7
1833
1834 2008-01-24 Raphael Neider <rneider AT web.de>
1835
1836         * device/include/pic/pic16f88.h: added RA6 and RA7
1837         * device/lib/pic/libdev/disabled_pic16f886.c,
1838         * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
1839
1840         * src/pic16/devices.inc,
1841         * device/include/pic16/pic18f2423.h,
1842         * device/include/pic16/pic18f2523.h,
1843         * device/include/pic16/pic18fregs.h,
1844         * device/lib/pic16/pics.all
1845         * device/lib/pic16/libdev/pic18f2423.c,
1846         * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
1847         * device/lib/pic16/libio/i2c.ignore,
1848         * device/lib/pic16/libio/usart.ignore,
1849         * device/lib/pic16/libio/adc.ignore: ignore new devices
1850
1851 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
1852
1853         * src/SDCCast.c (createRMW): fixed bug 1582651
1854
1855 2008-01-20 Borut Razem <borut.razem AT siol.net>
1856
1857         * src/SDCCcse.c: partially fixed enhancement request
1858           #1793872 - multiply by -1 not collapsed
1859         * support/regression/tests/arithcsi.c: added regression test
1860
1861 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
1862
1863         * as/mcs51/asx8051.dsp: removed define SDK
1864         * as/mcs51/i51mch.c (machine): fixed bug 1865114
1865         * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
1866         * as/link/lklex.c,
1867         * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
1868           cosmetic changes, brought more in sync, changed old K&R to ANSI
1869
1870 2008-01-13 Borut Razem <borut.razem AT siol.net>
1871
1872         * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
1873         * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
1874
1875 2007-12-30 Borut Razem <borut.razem AT siol.net>
1876
1877         * src/pic16/gen.c: fixed implementation of bitwise operations for
1878           pic16 target
1879         * support/regression/tests/bitwise.c: added test cases
1880
1881 2007-12-29 Borut Razem <borut.razem AT siol.net>
1882
1883         * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
1884         * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
1885           src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
1886         * support/Util/dbuf_string.[ch]: added function dbuf_getline()
1887         * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
1888           src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
1889           src/pic16/pcode.[ch]: added const qualifier
1890         * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
1891           as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
1892           as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
1893           as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
1894         * as/asxxsrc/aslex.c: use dbuf_getline()
1895         * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
1896           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
1897           as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
1898           as/z80/asm.h, as/z80/z80adr.c:
1899           changed type of ib and ip to const char *
1900
1901 2007-12-28 Borut Razem <borut.razem AT siol.net>
1902
1903         * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
1904           introduced (readlin) - long lines are turuncated
1905         * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
1906           as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
1907           as/z80/Makefile.in: moved aslex.c to asxxsrc
1908         * as/hc08/aslex.c, as/z80/aslex.c: deleted
1909         * as/hc08/asmain.c, as/mcs51/asmain.c:
1910           added missing initialization of a_addr field
1911         * support/regression/tests/long_asm_line.c: added regtest for long
1912           assembler line
1913
1914 2007-12-22 Borut Razem <borut.razem AT siol.net>
1915
1916         * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
1917
1918 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
1919
1920         * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
1921
1922 2007-12-16 Borut Razem <borut.razem AT siol.net>
1923
1924         * device/include/pic16/stdbool.h: removed, since already exists in
1925          device/include/; this also fixes bitopcse.c regression test for pic16
1926          target
1927         * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
1928         * src/pic16/glue.c: fixed bug #1851855: generic static pointer
1929           dereference doesn't work; covered by regression test bug1399290
1930
1931 2007-12-05 Borut Razem <borut.razem AT siol.net>
1932
1933         * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
1934           Adding new PIC16
1935
1936 2007-12-01 Borut Razem <borut.razem AT siol.net>
1937
1938         * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
1939           corrected handling of the highest_valid_address
1940
1941 2007-11-17 Raphael Neider <rneider AT web.de>
1942
1943         * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
1944         * src/pic/glue.c (picglue): emit .file if --debug is given
1945
1946 2007-11-17 Raphael Neider <rneider AT web.de>
1947
1948         * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
1949         care when left or right operand resides in result, fixes #1830220
1950
1951 2007-11-17 Borut Razem <borut.razem AT siol.net>
1952
1953         * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
1954           #983491 - "Merge duplicate strings function is ineffective"
1955         * support/regression/tests/bug-983491.c: regtest disabled
1956         * as/asxxsrc: created
1957           as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
1958           as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
1959           as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
1960           as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
1961           as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
1962           as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
1963           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
1964           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
1965           as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
1966           as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
1967           as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
1968           as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
1969           created as/asxxsrc directory, assym.c and strcpi.c moved into it
1970
1971 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
1972
1973         * device/include/stdarg.h: added and removed some casts
1974         * src/SDCCsymt.c (compareType): Fully check types between generic and
1975           non-generic pointers, also accept ptr-ptr to void-ptr assignments
1976
1977 2007-11-13 Borut Razem <borut.razem AT siol.net>
1978
1979         * support/regression/tests/bug-1817005.c:
1980           added regtest for bug #1817005 - as-z80 chokes on long labels
1981
1982 2007-11-12 Borut Razem <borut.razem AT siol.net>
1983
1984         * as/z80/asmain.c, as/z80/asm.h, as/z80/assym.c, as/z80/asdata.c,
1985           as/z80/asout.c, as/z80/aslist.c:
1986           fixed bug #1817005 - as-z80 chokes on long labels
1987
1988 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
1989
1990         * as/hc08/asmain.c,
1991         * as/z80/asmain.c: cosmetic changes
1992         * as/hc08/alloc.h,
1993         * as/mcs51/alloc.h,
1994         * as/z80/alloc.h: removed
1995         * as/hc08/assym.c,
1996         * as/mcs51/assym.c: replaced alloc.h with stdlib.h
1997         * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
1998         * as/link/hc08/Makefile.in,
1999         * as/link/mcs51/Makefile.in,
2000         * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
2001         * as/link/lklex.c,
2002         * as/link/mcs51/lkarea.c,
2003         * as/link/mcs51/lkmain.c: cosmetic changes
2004         * as/link/hc08/lklibr.c,
2005         * as/link/z80/lklibr.c,
2006         * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
2007           used cygwin_conv_to_full_posix_path,
2008           added warnings, cosmetic changes, brought more in sync
2009           changed old K&R into ANSI function declarations
2010         * as/link/z80/lklibr.c (loadAdb): added
2011         * as/link/z80/lkmain.c: removed -- option from usage text
2012
2013 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
2014
2015         * src/mcs51/gen.c (outBitC): optimized for no result
2016
2017 2007-10-31 Borut Razem <borut.razem AT siol.net>
2018
2019         * src/SDCCsymt.c: fixed (hopeful properly) bug
2020           #1805702 - order of extern matters
2021         * support/regression/tests/bug-1805702.c: enabled regtest for bug
2022           #1805702
2023
2024 2007-10-29 Borut Razem <borut.razem AT siol.net>
2025
2026         * src/SDCCsymt.c: reverted bad fixed of bug #1805702
2027           - order of extern matters
2028         * support/regression/tests/bug-1805702.c: disabled regtest for bug
2029           #1805702
2030
2031 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
2032
2033         * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
2034           24bitMode, portIsDS390
2035         * src/mcs51/gen.c (genOr): optimized for RFE 1750727
2036         * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
2037           (notVolatileVariable): also check sloc names,
2038           (callFuncByName): moved ftab[] out of function and sorted it by use
2039
2040 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
2041
2042         * device/include/stdarg.h: fixed bug in va_start macro for --xstack
2043         * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
2044           aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
2045         * src/SDCCicode.c (geniCodeCast): fixed bug 880197
2046         * support/regression/tests/bug-880197.c: new, added
2047
2048 2007-10-28 Borut Razem <borut.razem AT siol.net>
2049
2050         * support/regression/Makefile.in,
2051           support/regression/ports/mcs51-large/spec.mk,
2052           support/regression/ports/mcs51-xstack-auto/spec.mk,
2053           support/regression/ports/mcs51-stack-auto/spec.mk,
2054           support/regression/ports/mcs51-medium/spec.mk,
2055           support/regression/ports/mcs51-common/spec.mk,
2056           support/regression/ports/mcs51-common/*,
2057           support/regression/ports/mcs51-small/*:
2058           mcs51 renamed to mcs51-common, created mcs51-small
2059         * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
2060         * support/regression/tests/bug-1805702.c: added regtest for bug
2061           #1805702
2062
2063 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
2064
2065         * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
2066           added new rules 265 - 270
2067         * support/regression/tests/bug1721024.c:new, added
2068         * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
2069           introduced new test-mcs51 to run all mcs51 tests
2070
2071 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
2072
2073         * support/regression/tests/bug1816470.c: new, added
2074
2075 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
2076
2077         * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
2078           propagate for *,+,- with float, fixed bug 1816470
2079           (decorateType): cast to resultTypeProp instead of resultType
2080
2081 2007-10-19 Borut Razem <borut.razem AT siol.net>
2082
2083         * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
2084           function is ineffective" for pic16 tareget
2085         * support/scripts/listerr.c: corrected include path
2086         * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
2087           adjacent memory
2088
2089 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
2090
2091         * support/regression/tests/using.c: new, added
2092         * support/regression/tests/vaargs.c: fixed and enabled test
2093
2094 2007-10-18 Borut Razem <borut.razem AT siol.net>
2095
2096         * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
2097           is ineffective
2098         * support/regression/tests/bug-983491.c: added regtest for bug #983491
2099
2100 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
2101
2102         * doc/sdccman.lyx: documented option --Werror
2103         * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
2104           RegBankUsed[] earlier
2105
2106 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
2107
2108         * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
2109         * src/pic/glue.c,
2110         * src/SDCCval.c,
2111         * src/SDCCast.c,
2112         * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
2113           AST_ULONG_VALUE
2114         * src/SDCCast.c (decorateType): improved optimization of tri-op
2115         * src/SDCCerr.c (vwerror, setWError),
2116         * src/SDCCerr.h,
2117         * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
2118           warnings as errors, thanks Stas Sergeev for PATCH 1813211
2119
2120 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
2121
2122         * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
2123         * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
2124         * support/regression/tests/bug-223113.c,
2125         * support/regression/tests/bug-426632.c,
2126         * support/regression/tests/bug-468811.c,
2127         * support/regression/tests/bug-477835.c,
2128         * support/regression/tests/bug-478094.c,
2129         * support/regression/tests/bug-499644.c,
2130         * support/regression/tests/bug-524209.c,
2131         * support/regression/tests/bug-524211.c,
2132         * support/regression/tests/packcast.c,
2133         * support/regression/tests/structidx.c: added empty tests
2134         * support/regression/tests/bug-607243.c: enabled test
2135
2136 2007-10-06 Borut Razem <borut.razem AT siol.net>
2137
2138         * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
2139            support of universal binaries on Mac OS X
2140
2141 2007-10-02 Borut Razem <borut.razem AT siol.net>
2142
2143         * src/SDCCval.h: unified double2ul macro for all platforms
2144         * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
2145         * support/regression/tests/bitwise.c: added regtest for bug #1777758
2146
2147 2007-09-30 Borut Razem <borut.razem AT siol.net>
2148
2149         * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
2150           platforms
2151         * sdcc_vc_in.h: enabled warnings
2152         * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
2153           unsigned type, result still unsigned
2154         * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
2155
2156 2007-09-28 Raphael Neider <rneider AT web.de>
2157
2158         * src/pic/device.c (find_device): prevent buffer underflow error
2159         * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
2160           the just destroyed list entry
2161
2162 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2163
2164         * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
2165           Alexander Neundorf
2166
2167 2007-09-18 Borut Razem <borut.razem AT siol.net>
2168
2169         * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
2170          applied to unsigned type, result still unsigned
2171
2172 2007-09-17 Borut Razem <borut.razem AT siol.net>
2173
2174         * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
2175           src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
2176           src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
2177           src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
2178           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
2179           src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
2180           src/z80/gen.c, src/z80/ralloc.c:
2181           fixed bug #1739860 - sdcc does not work correctly on some platforms
2182           (not finished)
2183           introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
2184
2185 2007-09-17 Raphael Neider <rneider AT web.de>
2186
2187         * src/pic16/device.c: reverted to previous version
2188         * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
2189
2190 2007-09-16 Raphael Neider <rneider AT web.de>
2191
2192         * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
2193           as this raises a ton of gpasm warnings, just emit a second label
2194         * src/pic16/devices.inc,
2195         * device/lib/pic16/pics.all,
2196         * device/lib/pic16/libdev/pic18f2585.c,
2197         * device/lib/pic16/libdev/pic18f2680.c,
2198         * device/lib/pic16/libdev/pic18f2682.c,
2199         * device/lib/pic16/libdev/pic18f2685.c,
2200         * device/lib/pic16/libdev/pic18f4585.c,
2201         * device/lib/pic16/libdev/pic18f4680.c,
2202         * device/lib/pic16/libdev/pic18f4682.c,
2203         * device/lib/pic16/libdev/pic18f4685.c,
2204         * device/include/pic16/pic18f2585.h,
2205         * device/include/pic16/pic18f2680.h,
2206         * device/include/pic16/pic18f2682.h,
2207         * device/include/pic16/pic18f2685.h,
2208         * device/include/pic16/pic18f4585.h,
2209         * device/include/pic16/pic18f4680.h,
2210         * device/include/pic16/pic18f4682.h,
2211         * device/include/pic16/pic18f4685.h,
2212         * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
2213           18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
2214           patch contributed by Anton Strobl, applied with changes
2215
2216 2007-09-16 Raphael Neider <rneider AT web.de>
2217
2218         * device/include/pic16/pic18f2431.h,
2219         * device/include/pic16/pic18f25j10.h,
2220         * device/include/pic16/pic18f4431.h,
2221         * device/include/pic16/pic18f45j10.h: adopted common include style
2222         * device/include/pic16/pic18f1320.h,
2223         * device/include/pic16/pic18f2320.h,
2224         * device/include/pic16/pic18f2525.h,
2225         * device/include/pic16/pic18f4320.h,
2226         * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
2227         * device/include/pic16/pic18fregs.h: prepared for automatic include
2228           file selection by having DEVICE.h for every DEVICE
2229         * device/lib/pic16/libdev/pic18f2320.c,
2230         * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
2231
2232         * device/lib/pic16/configure.in,
2233         * device/lib/pic16/configure: use rm -rf instead of rmdir
2234         * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
2235         * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
2236
2237 2007-09-09 Borut Razem <borut.razem AT siol.net>
2238
2239         * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
2240           distingush between i386 and ppc Mac OS X versions
2241
2242 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
2243
2244         * src/mcs51/gen.c (genReceive): fixed bug 1788177
2245         * support/regression/tests/bug1788177.c: new, added
2246
2247 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2248
2249         * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
2250         * device/include/mcs51/lint.h added keyword __naked
2251
2252 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
2253
2254         * src/pic16/glue.c,
2255         * src/pic/glue.c,
2256         * src/SDCCmem.h: removed maxRegBank
2257         * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
2258           RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
2259         * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
2260         * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
2261           name and behaviour to handle banked functions
2262           (scan4op): and use it to fix bug 1786213
2263
2264 2007-09-03 Raphael Neider <rneider AT web.de>
2265
2266         * device/include/pic16/pic18f248.h,
2267         * device/include/pic16/pic18f258.h,
2268         * device/include/pic16/pic18f448.h,
2269         * device/lib/pic16/libdev/pic18f248.c,
2270         * device/lib/pic16/libdev/pic18f258.c,
2271         * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
2272           added T0CONbits, fixes #1786891
2273
2274 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
2275
2276         * src/ds390/gen.c (genFarPointerSet),
2277         * src/hc08/ralloc.c (packRegisters),
2278         * src/mcs51/ralloc.c (packRegisters),
2279         * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
2280           bug 1750318
2281         * src/SDCCicode.h: POINTER_SET can be true for literals too
2282         * support/regression/tests/bug1750318.c: new, added
2283
2284 2007-08-23 Borut Razem <borut.razem AT siol.net>
2285
2286         * debugger/mcs51/sdcdb.c: fixed compilation with older readline
2287           library versions without the completition functionality
2288
2289 2007-08-22 Raphael Neider <rneider AT web.de>
2290
2291         * device/include/pic16/pic18f1220.h,
2292         * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
2293
2294 2007-08-12 Borut Razem <borut.razem AT siol.net>
2295
2296         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
2297
2298 2007-08-11 Borut Razem <borut.razem AT siol.net>
2299
2300         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
2301           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
2302           support/Util/SDCCerr.[ch] moved to src
2303         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
2304           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
2305           device/examples/ds390/tinitalk/tinitalk.dsp,
2306           device/examples/serialcomm/windows/serialcomm.dsp,
2307           support/librarian/librarian.dsp:
2308           removed linking of unused odbc32.lib and odbccp32.lib
2309         * support/scripts/winres.h:
2310           added for compilation with Visual C++ 2005 Express Edition
2311
2312 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2313
2314         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
2315           and CKCON1.
2316
2317 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2318
2319         * sdccconf_in.h: update the endian test so that SPARC Solaris
2320           does not throw syntax errors
2321
2322 2007-08-06 Borut Razem <borut.razem AT siol.net>
2323
2324         * doc/sdccman.lyx: removed two index entries which prevented the
2325           generation of sdcc doc archive
2326
2327 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2328
2329         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
2330           instead of lyx 1.5.0.
2331
2332 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2333
2334         * device/include/hc08/mc68hc908apxx.h: new header contributed by
2335           Lucas Loizaga, with minor modifications. Thanks!
2336
2337 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2338
2339         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
2340           in sdcclib.
2341
2342 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2343
2344         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
2345           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
2346           with acall/ajmp.
2347
2348 2007-07-22 Borut Razem <borut.razem AT siol.net>
2349
2350         * configure.in, configure: re-introduced .version
2351         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
2352           the version reverted to 2.7.0
2353
2354 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
2355
2356         * configure.in,
2357         * doc/sdccman.lyx: bumped version to 2.7.3
2358         * device/include/mcs51/compiler.h: fixed elif->else
2359         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
2360         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
2361           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
2362            enable accuse for bit operands
2363         * src/SDCCmain.c (printVersionInfo),
2364         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
2365           environment descriptor
2366         * src/SDCCutil.h: added getBuildEnvironment
2367         * src/SDCCglue.c (initialComments): use getBuildEnvironment
2368         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
2369         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
2370         * support/regression/tests/bug1348008.c,
2371         * support/regression/tests/bug1496419.c,
2372         * support/regression/tests/bug1503067.c,
2373         * support/regression/tests/preproc.c: added empty tests
2374
2375 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
2376
2377         * support/regression/tests/bug1678803.c: new, added
2378
2379 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
2380
2381         * as/link/aslink.h,
2382         * as/link/hc08/lkihx.c,
2383         * as/link/hc08/lkrloc.c,
2384         * as/link/mcs51/lkihx.c,
2385         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
2386           ihxExtendedLinearAddress
2387         * as/link/mcs51/lkrloc.c (relr),
2388         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
2389           acall/ajmp, see bug 830513
2390
2391 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
2392
2393         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
2394           (cseBBlock): remember aggr2ptr has been used
2395         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
2396           (geniCodeAssign): fixed bug 868103
2397         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
2398           added operandSize prototype
2399         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
2400           (genDataPointerSet): use max of size of right and result,
2401           (gencjne): added parameter useCarry for optimization,
2402           (genCmpEq): use carry if appropriate,
2403           (genXor): check if operand already in carry
2404         * support/regression/tests/bug-868103.c: enabled test
2405
2406 2007-07-12 Raphael Neider <rneider AT web.de>
2407
2408         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
2409
2410 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
2411
2412         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
2413           from Robert Larice, thanks
2414         * support/regression/tests/bitopcse.c,
2415         * support/regression/tests/bitvars.c,
2416         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
2417         * support/regression/tests/bug-927659.c: enabled test for z80
2418         * support/regression/tests/bug1738367.c: added extra tests by Frieder
2419         * support/regression/tests/bug1745717.c: new, added
2420         * support/regression/tests/literalop.c,
2421         * support/regression/tests/nullstring.c: removed storage definitions that
2422           are now in testfwk.h
2423
2424 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
2425
2426         * device/include/stdbool.h: do not define __bool_true_false_are_defined
2427           and bool for targets that do not fully support it.
2428         * support/regression/tests/bug1546986.c,
2429         * support/regression/tests/bug1723128.c,
2430         * support/regression/tests/bug1734654.c,
2431         * support/regression/tests/bug1738367.c,
2432         * support/regression/tests/constantRange.c: only use bool if allowed
2433
2434 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
2435
2436         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
2437           Larice, also handle function pointers
2438         * support/regression/tests/bug1749275.c: new, added
2439
2440 2007-07-03 Borut Razem <borut.razem AT siol.net>
2441
2442         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
2443           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
2444           #1746528: SDCC should ignore ':' in inline assembler comments
2445         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
2446
2447 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
2448
2449         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
2450         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
2451
2452 2007-06-29 Borut Razem <borut.razem AT siol.net>
2453
2454         * src/SDCCmain.c: fixed bug
2455           #1744746: SDCC #4867: broken option --xram-size
2456
2457 2007-06-28 Borut Razem <borut.razem AT siol.net>
2458
2459         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
2460           find out the endianess of host machine for ucsim
2461
2462 2007-06-27 Borut Razem <borut.razem AT siol.net>
2463
2464         * support/regression/generate-cases.py: corrected the file name
2465           in warning
2466         * configure.in, configure, sdccconf_in.h: find out the endianess of
2467           host machine
2468         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
2469           negative size
2470
2471 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
2472
2473         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
2474
2475 2007-06-26 Borut Razem <borut.razem AT siol.net>
2476
2477         * support/regression/generate-cases.py: display warning if function
2478           list is empty; implemented more flexible rule for detection of
2479           testing functions, allowing return type 'void' in the same line as
2480           the function name in the function definition
2481         * support/regression/tests/bug-1654060.c: corrected test
2482         * support/librarian/sdcclib.c: fixed warning:
2483           format '%s' expects type 'char *', but argument 2 has type 'int'
2484
2485 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2486
2487         * support/librarian/sdcclib.c: Added feature Requests [1510635]
2488           Multiple infiles for sdcclib.
2489
2490 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2491
2492         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
2493           bug 1731741
2494
2495 2007-06-18 Borut Razem <borut.razem AT siol.net>
2496
2497         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
2498           how to handle comments, so they have to be removed by the
2499           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
2500         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
2501           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
2502           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
2503           table driven option hadling
2504
2505 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
2506
2507         * src/SDCCast.c (decorateType),
2508         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
2509           iCode to ast level to fix bug 1738367
2510         * support/regression/tests/bug1738367.c: new, added
2511
2512 2007-06-15 Raphael Neider <rneider AT web.de>
2513
2514         * src/pic16/devices.inc,
2515         * device/lib/pic16/pics.all,
2516         * device/include/pic16/pic18fregs.h,
2517         * device/include/pic16/pic18f[24][45]20.h,
2518         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
2519           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
2520         * device/lib/pic16/Makefile.in: faster cleanup
2521
2522 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2523
2524         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
2525
2526 2007-06-13 Raphael Neider <rneider AT web.de>
2527
2528         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
2529
2530 2007-06-12 Raphael Neider <rneider AT web.de>
2531
2532         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
2533           suppress bit defines if NO_BIT_DEFINES is #define'd
2534         * device/include/pic/pic*.h: recreated all headers to include
2535           conditional bit defines
2536         * device/include/pic/pic16f886.h,
2537         * device/include/pic/pic16f887.h: fixed based on newer .inc file
2538         * device/include/pic/recreate.sh: script to recreate the complete
2539           device library files based on the currently supported devices
2540
2541 2007-06-12 Borut Razem <borut.razem AT siol.net>
2542
2543         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
2544           support/regression/Makefile.in, support/scripts/build.mak,
2545           support/scripts/Makefile.snapshot:
2546           use new svn URL scheme
2547         * doc/sdccman.lyx: SDCC Wiki moved to
2548           http://sdcc.wiki.sourceforge.net/
2549
2550 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2551
2552         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
2553         * support/regression/tests/bug1734654.c: added
2554
2555 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
2556
2557         * src/SDCCast.c (decorateType): optimized '?' for equal operands
2558         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
2559           with literal operands
2560
2561 2007-06-10 Borut Razem <borut.razem AT siol.net>
2562
2563         * as/link/z80/lklibr.c: fixed mingw build warning
2564           lklibr.c:575: warning: implicit declaration of function 'tolower'
2565         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
2566           src/z80/main.c: move target specific options from src/SDCCmain.c
2567           to src/<target>/main.c
2568
2569 2007-06-09 Borut Razem <borut.razem AT siol.net>
2570
2571         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
2572           removed unused swap_sense; removed outBitCLong, replaced with outBitC
2573         * support/regression/tests/bug-1294691.c: added
2574
2575 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
2576
2577         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
2578           can also be static, fixes bug 1733438
2579         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
2580           have absolute address too
2581           (computeType): added optimization for 'cond ? true : false'
2582         * support/regression/tests/absolute.c: added test for static absolute var
2583
2584 2007-06-08 Raphael Neider <rneider AT web.de>
2585
2586         * src/regression/Makefile: suppress parallel builds, allow easy
2587           switching between pic14/pic16 ports
2588         * src/regression/picregs.h: added pic14/16 header file switch
2589         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
2590           inline.c,nestfor.c,string1.c}: include "picregs.h"
2591
2592 2007-06-07 Borut Razem <borut.razem AT siol.net>
2593
2594         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
2595           permanent solution to suppress GCC 4.2.0 c++ warning:
2596           deprecated conversion from string constant to `char *'
2597           use 'const char *' where ever required
2598         * support/regression/generate-cases.py: implemented more flexible rule
2599           for detection of testing functions, allowing white-spaces surrounding
2600           the function name and the 'void' parameter.
2601         * support/regression/tests/constantRange.c,
2602           support/regression/tests/scott-compare3.c: fixed failing regression
2603           tests, uncovered by implementation of more flexible rule for detection
2604           of testing functions
2605
2606 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
2607
2608         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
2609
2610 2007-06-04 Borut Razem <borut.razem AT siol.net>
2611
2612         * configure.in, configure, config_vc.awk: sdcc version number is now
2613           stored in configure.in; removed .version
2614         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
2615           doc/INSTALL.txt: version bumped to 2.7.2
2616         * sim/ucsim/configure.in, sim/ucsim/configure:
2617           use "read" to read from .version
2618
2619 2007-06-03 Borut Razem <borut.razem AT siol.net>
2620
2621         * */Makefile.in: removed annoying warning:
2622           Makefile:xx: Makefile.dep: No such file or directory
2623
2624 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
2625
2626         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
2627           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
2628         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
2629         * src/SDCCast.c (resultTypePropagate): propagate for '!',
2630           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
2631           bugfix: only use newBoolLink for bit result type
2632         * src/SDCCicode.c (geniCodeLogic): added param tree,
2633           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
2634           (geniCodeLogicAndOr): use IS_BIT,
2635           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
2636           (ast2iCode): added tree param to geniCodeLogic for comparisons
2637         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
2638         * support/regression/tests/bug1723128.c: added test NotZero
2639
2640 2007-06-01 Borut Razem <borut.razem AT siol.net>
2641
2642         * SDCPP synchronized with GCC CPP release version 4.2.0,
2643           currently the latest release:
2644         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2645           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
2646           support/cpp2/cppdefault.h, support/cpp2/except.h,
2647           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
2648           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
2649           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
2650           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
2651           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
2652           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
2653           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
2654           support/cpp2/opts.h, support/cpp2/output.h,
2655           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
2656           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
2657           support/cpp2/system.h, support/cpp2/version.c,
2658           support/cpp2/Makefile.in: modified
2659         * support/cpp2/opts-common.c: added
2660         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
2661         * device/lib/pic16/libdev/pic18f[24]5j10.c:
2662           search for included source file in local directory
2663         * sim/ucsim/configure, sim/ucsim/configure.in:
2664           temporary solution to suppress GCC 4.2.0 c++ warning:
2665           deprecated conversion from string constant to `char *'
2666
2667 2007-06-01 Raphael Neider <rneider AT web.de>
2668
2669         * device/lib/pic/libdev/pic12f683.c,
2670         * device/include/pic/pic12f683.h: added GPIO bits
2671
2672 2007-06-01 Raphael Neider <rneider AT web.de>
2673
2674         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
2675           quotation marks, clarified role of PIC14 vs. PIC16 ports
2676         * src/pic16/devices.inc,
2677         * device/include/pic16/pic18fregs.h,
2678         * device/include/pic16/pic18f[24][45]j10.h,
2679         * device/lib/pic16/pics.all,
2680         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
2681           18f24j10, 18f25j10, 18f44j10, and 18f45j10
2682         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
2683           for new devices as they are not yet supported by gputils
2684
2685 2007-05-31 Borut Razem <borut.razem AT siol.net>
2686
2687         * Small Device C Compiler 2.7.0 released
2688         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
2689           changed sdcc version to 2.7.1
2690         * support/scripts/sdcc.nsi: added How to create WIN32 release
2691           setup.exe package
2692
2693 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
2694
2695         * doc/sdccman.lyx: documented initialization and allocation of absolute
2696           variables, bit parameter passing, the need for function pointers to be
2697           reentrant and alpha quality support of inline and retrict
2698
2699 2007-05-26 Borut Razem <borut.razem AT siol.net>
2700
2701         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
2702           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
2703         * docs/knownbugs.html: updated
2704
2705 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
2706
2707         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
2708           thanks Jan Waclawek
2709         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
2710           AOP_CRY and ruonly
2711           (gencjneshort): optimized when left is AOP_DIR
2712         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
2713           initializing unions in a struct/array
2714         * support/regression/fwk/include/testfwk.h: added defines for data, near
2715           and far for host and z80
2716         * support/regression/tests/bug1723128.c: new, added
2717
2718 2007-05-22 Borut Razem <borut.razem AT siol.net>
2719
2720         * doc/knownbugs.html: updated
2721
2722 2007-05-21 Raphael Neider <rneider AT web.de>
2723
2724         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
2725           error message instead
2726         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
2727
2728 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
2729
2730         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
2731
2732 2007-05-21 Raphael Neider <rneider AT web.de>
2733
2734         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
2735           closes #1722392
2736         * src/regression/gpsim_assert.h,
2737         * src/regression/Makefile,
2738         * src/regression/pcodeopt.c: regression test for the above fix
2739
2740 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
2741
2742         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
2743           jumps to self, fixed bug 1717281
2744
2745 2007-05-10 Borut Razem <borut.razem AT siol.net>
2746
2747         * support/scripts/gen_known_bugs.pl: cosmetic fix
2748         * doc/knownbugs.html: generated by gen_known_bugs.pl
2749
2750 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2751
2752         * src/SDCCast.c (createFunction): also generate non-inlined version of
2753           function for functions declared as "static inline"
2754         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
2755           function can be inlined after non-inlined version generated.
2756
2757 2007-05-10 Borut Razem <borut.razem AT siol.net>
2758
2759         * support/scripts/gen_known_bugs.pl: added script
2760           which generates knownbugs.html
2761
2762 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
2763
2764         * doc/knownbugs.html: updated for release 2.7.0
2765
2766 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2767
2768         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
2769
2770 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
2771
2772         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
2773           (throughout): updated generating comments
2774         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
2775           (throughout): updated generating comments
2776         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
2777           rule instead of at the second, or it might skip lines when removing the
2778           complete match
2779         * support/regression/tests/bug1714204.c: changed test to foo
2780
2781 2007-05-08 Borut Razem <borut.razem AT siol.net>
2782
2783         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
2784           thanks to SDCC Distributed Compile Farm members,
2785           added Z80 and GBZ80 command line options
2786         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
2787
2788 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
2789
2790         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
2791         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
2792         * support/regression/tests/longlit.c: modified to be tested at all and
2793           to pass the actual test
2794
2795 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2796
2797         * device/include/mcs51/uPSD33xx.h: Added.
2798
2799 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
2800
2801         * device/lib/_gptrput.c,
2802         * device/lib/_gptrget.c: removed old code,
2803          (_gptrgetWord),
2804         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
2805         * support/regression/tests/bug1714204.c: new, added
2806
2807 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2808
2809         * support/regression/tests/regtrack.c: test was never executed
2810           because of the regression test being picky about white spaces.
2811         * device/lib/mcs51/crtclear.asm: added comment
2812
2813 2007-05-06 Raphael Neider <rneider AT web.de>
2814
2815         * device/lib/pic/Makefile.rules,
2816         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
2817           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
2818
2819 2007-05-06 Raphael Neider <rneider AT web.de>
2820
2821         * src/pic16/device.h,
2822         * src/pic16/main.h,
2823         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
2824           _pic16_setDefaultOptions): removed/reordered command-line args
2825         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
2826           devices, regrouped command line args, environment variables),
2827           clarified sone points, added sections on how to add devices to the
2828           PIC14/PIC16 ports
2829
2830 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
2831
2832         * src/z80/peeph.def: fixed bug in rule 2
2833
2834 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
2835
2836         * src/port.h: added TARGET_MCS51_LIKE
2837         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
2838           take advantage of it too
2839         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
2840           (shiftR2Left2Result): Optimized: don't check shifting by 0
2841         * src/z80/peeph-z80.def,
2842         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
2843           modifications, see patch 1700823
2844         * src/mcs51/peep.c (): fixed bug 1712928
2845         * support/regression/tests/bug1712928.c: new, added
2846
2847 2007-05-05 Borut Razem <borut.razem AT siol.net>
2848
2849         * device/lib/pic16/Makefile.common.in,
2850           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
2851           removed bash dependencies
2852
2853 2007-05-01 Borut Razem <borut.razem AT siol.net>
2854
2855         * src/SDCCicode.c:
2856           fixed bug #1710507: --i-code-in-asm makes compile fail
2857           all iCode comments are now one liners
2858         * src/mcs51/gen.c: fixed memory leak
2859
2860 2007-05-01 Raphael Neider <rneider AT web.de>
2861
2862         * device/lib/pic/libdev/*.c
2863         * device/include/pic/*.h: regenerated all device libs from updated
2864           .inc files
2865         * support/scripts/inc2h.pl: documented usage, now uses strict to
2866           catch more bugs
2867
2868 2007-04-30 Borut Razem <borut.razem AT siol.net>
2869
2870         * doc/sdccman.lyx:
2871           fixed bug #1669175: Problem with space in output paths
2872           documented how to use paths with spaces for Windows users
2873
2874 2007-04-29 Borut Razem <borut.razem AT siol.net>
2875
2876         * Fixed svn:eol-style and svn:keywords properties
2877         * src/SDCCval.c: fixed bug
2878           #1592871: Segfault with "large" const arrays of characters
2879           replaced recursion with iteration
2880         * Removed svn:executable property from non-executable files
2881
2882 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
2883
2884         * src/mcs51/gen.c (genRet): fixed bug 1707003
2885
2886 2007-04-27 Raphael Neider <rneider AT web.de>
2887
2888         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
2889           createReachingDefinitions,assignValnums,pic16_destructDF,
2890           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
2891           prevent NULL pointer dereferences
2892         * device/lib/pic/libdev/pic16f886.c,
2893         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
2894           prevent building them, gputils do not really support them yet
2895
2896 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2897
2898         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
2899           helps printf_small. 32 bytes more __idata mem.
2900
2901 2007-04-27 Raphael Neider <rneider AT web.de>
2902
2903         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
2904           return early when pb or pb->pcHead is NULL (patch #1708427)
2905         * src/regression/empty.c,
2906         * src/regression/Makefile: added test with empty functions
2907         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
2908
2909 2007-04-27 Borut Razem <borut.razem AT siol.net>
2910
2911         * src/SDCCast.c: fixed feature request
2912           #1547512: Redundant strings linked when using sizeof("abc")
2913
2914 2007-04-23 Borut Razem <borut.razem AT siol.net>
2915
2916         * doc/sdccman.lyx, src/SDCCmain.c:
2917           peep-hole comments are generated only if --fverbose-asm option is
2918           specified and --no-peep-comments is not, as proposed by Frieder.
2919         * support/regression/Makefile.in: compile regression tests with
2920           --fverbose-asm option so one can "grep" whether a new (or an old)
2921           peephole is (still) applied; requested by Frieder.
2922
2923 2007-04-23 Kevin Buettner <kevin AT buettner.to>
2924
2925         * device/include/pic/pic16f886.h,
2926         * device/include/pic/pic16f887.h,
2927         * device/lib/pic/libdev/pic16f886.c,
2928         * device/lib/pic/libdev/pic16f887.c,
2929         * device/include/pic/pic14devices.txt,
2930         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
2931
2932 2007-04-23 Kevin Buettner <kevin AT buettner.to>
2933
2934         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
2935           fixes #1704666
2936
2937 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2938
2939         * device/lib/_memset.c: assembler version for mcs51
2940
2941 2007-04-22 Borut Razem <borut.razem AT siol.net>
2942
2943         * support/scripts/listerr.c: program to create the list of errors and
2944           warnings list from - added
2945         * doc/sdccman.lyx: removed the note
2946           "For list of warnings and corresponding codes, see err_warn.txt"
2947         * src/SDCCsymt.c: fixed bug #1699804:
2948           Bug with some uses of sizeof(static local array) (MCS51)
2949         * support/regression/tests/bug-1699804.c: added
2950
2951 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
2952
2953         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
2954           (main): added option -i,
2955           (asmbl, case S_INCL): use search_path_fopen,
2956           mostly from patch 1579668 by Peter Miller, thanks
2957         * src/z80/main.c: fixed typo --callee-saves-bc
2958         * device/include/mcs51/compiler.h: added sfrword for Tasking
2959
2960 2007-04-20 Borut Razem <borut.razem AT siol.net>
2961
2962         * src/z80/main.c: replaced reserved keyword asm with asmblr
2963
2964 2007-04-19 Borut Razem <borut.razem AT siol.net>
2965
2966         * src/port.h: use const pointers to strings
2967         * src/SDCCargs.h: declared getStringArg() and getIntArg()
2968         * src/pic16/main.c: include SDCCargs.h
2969         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
2970           const char, since the strings are dynamically allocated
2971         * src/SDCCmain.c: options.code_seg and options.const_seg are
2972           dynamically allocated; check port specific command line options
2973           before the general ones
2974         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
2975
2976 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
2977
2978         * device/include/ds400rom.h,
2979         * device/lib/ds390/lcd390.c,
2980         * device/lib/ds390/memcpyx.c,
2981         * device/lib/ds390/rtc390.c,
2982         * device/lib/ds400/ds400rom.c,
2983         * device/lib/ds400/memcpyx.c,
2984         * device/lib/hc08/_ret.c: more replacements of keywords with their
2985           double underscore equivalents
2986         * device/lib/ds390/Makefile.in,
2987         * device/lib/ds400/Makefile.in,
2988         * device/lib/gbz80/Makefile.in,
2989         * device/lib/hc08/Makefile.in,
2990         * device/lib/mcs51/Makefile.in,
2991         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
2992
2993 2007-04-17 Borut Razem <borut.razem AT siol.net>
2994
2995         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
2996           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
2997           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
2998           to --fverbose-asm, to be gcc'ish
2999
3000 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
3001
3002         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
3003
3004 2007-04-17 Borut Razem <borut.razem AT siol.net>
3005
3006         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
3007         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
3008           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
3009           with their double underscore equivalent
3010
3011 2007-04-14 Borut Razem <borut.razem AT siol.net>
3012
3013         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
3014           source"
3015
3016 2007-04-13 Borut Razem <borut.razem AT siol.net>
3017
3018         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
3019           C99 standard
3020         * device/examples/serialcomm/windows/serial.[ch],
3021           device/examples/serialcomm/windows/test_serialcomm.cpp:
3022           updated by Bela Torok
3023         * device/examples/serialcomm/windows/serialcomm.dsw,
3024           device/examples/serialcomm/windows/serialcomm.dsp: added
3025
3026 2007-04-13 Jan Waclawek <wek AT efton.sk>
3027
3028         * doc/sdccman.lyx: additions and changes at various places
3029           (submitted as #1697136).
3030           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
3031
3032 2007-04-10 Borut Razem <borut.razem AT siol.net>
3033
3034         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
3035           LyX file format changed to 245
3036         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
3037           "FreeWare" replaced with "free open source"
3038
3039 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
3040
3041         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
3042
3043 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
3044
3045         * device/include/pic16/pic18fregs.h,
3046         * device/lib/_bp.c,
3047         * device/lib/_decdptr.c,
3048         * device/lib/_divsint.c,
3049         * device/lib/_divslong.c,
3050         * device/lib/_divuint.c,
3051         * device/lib/_divulong.c,
3052         * device/lib/_fs2schar.c,
3053         * device/lib/_fs2sint.c,
3054         * device/lib/_fs2slong.c,
3055         * device/lib/_fs2uchar.c,
3056         * device/lib/_fs2uint.c,
3057         * device/lib/_fs2ulong.c,
3058         * device/lib/_fsadd.c,
3059         * device/lib/_fscmp.c,
3060         * device/lib/_fsdiv.c,
3061         * device/lib/_fseq.c,
3062         * device/lib/_fsget1arg.c,
3063         * device/lib/_fsget2args.c,
3064         * device/lib/_fsgt.c,
3065         * device/lib/_fslt.c,
3066         * device/lib/_fsmul.c,
3067         * device/lib/_fsneq.c,
3068         * device/lib/_fsnormalize.c,
3069         * device/lib/_fsreturnval.c,
3070         * device/lib/_fsrshift.c,
3071         * device/lib/_fssub.c,
3072         * device/lib/_fsswapargs.c,
3073         * device/lib/_gptrget.c,
3074         * device/lib/_gptrgetc.c,
3075         * device/lib/_gptrput.c,
3076         * device/lib/_logexpf.c,
3077         * device/lib/_modsint.c,
3078         * device/lib/_modslong.c,
3079         * device/lib/_moduint.c,
3080         * device/lib/_modulong.c,
3081         * device/lib/_mulint.c,
3082         * device/lib/_mullong.c,
3083         * device/lib/_schar2fs.c,
3084         * device/lib/_ser.c,
3085         * device/lib/_setjmp.c,
3086         * device/lib/_sint2fs.c,
3087         * device/lib/_slong2fs.c,
3088         * device/lib/_spx.c,
3089         * device/lib/_uchar2fs.c,
3090         * device/lib/_uint2fs.c,
3091         * device/lib/_ulong2fs.c,
3092         * device/lib/asincosf.c,
3093         * device/lib/atanf.c,
3094         * device/lib/calloc.c,
3095         * device/lib/ds390/tinibios.c,
3096         * device/lib/ds400/tinibios.c,
3097         * device/lib/expf.c,
3098         * device/lib/free.c,
3099         * device/lib/hc08/_mulint.c,
3100         * device/lib/logf.c,
3101         * device/lib/malloc.c,
3102         * device/lib/printf_fast.c,
3103         * device/lib/printf_tiny.c,
3104         * device/lib/printfl.c,
3105         * device/lib/realloc.c,
3106         * device/lib/ser_ir.c,
3107         * device/lib/serial.c,
3108         * support/regression/tests/libmullong.c: replaced all special keywords
3109           with their double underscore equivalent
3110         * support/regression/ports/mcs51-xstack-auto/spec.mk,
3111         * device/lib/Makefile.in: compile libs with --std-c99 instead of
3112           --std-sdcc99
3113         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
3114           (genRet): if the bit-symbol is ruonly it already is in the carry
3115         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
3116         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
3117         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
3118           type UCHAR if dest is not bit
3119
3120 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
3121
3122         * device/include/math.h,
3123         * device/lib/cotf.c,
3124         * device/lib/expf.c,
3125         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
3126
3127 2007-04-01 Borut Razem <borut.razem AT siol.net>
3128
3129         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
3130           fixed bug #1692042: input buffer overflow...scanner uses REJECT
3131         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
3132           gcc_unreachable() called internal_error()...
3133
3134 2007-03-30 Raphael Neider <rneider AT web.de>
3135
3136         * src/pic/ralloc.c (isData): suppress garbage debug output
3137
3138 2007-03-28 Borut Razem <borut.razem AT siol.net>
3139
3140         * doc/sdccman.lyx:
3141           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
3142           is developed, built and used worldwide, and the word "night" doesn't
3143           make any sense.
3144
3145 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
3146
3147         * device/include/mcs51/C8051F360.h: new, added
3148         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
3149
3150 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3151
3152         * src/SDCC.y (declaration_specifiers, function_specifier),
3153         * support/Util/SDCCerr.c,
3154         * support/Util/SDCCerr.h,
3155         * src/SDCCsymt.h,
3156         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
3157           inline keyword
3158         * src/SDCCmem.c (deallocParms),
3159         * src/SDCCast.c: support for function inlining, not quite complete
3160         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
3161           'restrict' qualifier
3162
3163 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
3164
3165         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
3166           (saveRBank, unsaveRBank): don't save bits,
3167           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
3168         * support/regression/tests/bug1535242.c: new, added
3169         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
3170           thanks Alexey Shamrin <shamrin AT gmail.com>,
3171           made assert.h header ANSI compliant (added a check for NDEBUG macro,
3172           removed header guard)
3173         * .version,
3174         * sdcc.spec: bumped version to 2.6.5
3175         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
3176
3177 2007-03-22 Borut Razem <borut.razem AT siol.net>
3178
3179         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
3180           fixed bug #1653671: sdcdb integration into ddd is broken
3181
3182 2007-03-22 Raphael Neider <rneider AT web.de>
3183
3184         * src/pic/gen.c (popGetExternal): augmented to also create references
3185           to external variables (not only labels),
3186           (genCall): comment on plan to reduce PAGESEL overhead,
3187           (genFunction, genEndFunction): also save/restore FSR around interrupt
3188           handling code, removed lots of unused code
3189           (genDivOneByte): release acquired temp register
3190         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
3191           of popGetExternal
3192         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
3193           for registers that need to be saved during interrupts (FSR, STATUS,
3194           PCLATH; W needs special handling), currently only FSR is used
3195
3196 2007-03-22 Raphael Neider <rneider AT web.de>
3197
3198         * device/include/pic/pic14devices.txt: 16f688 has only one config word
3199
3200 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3201
3202         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
3203
3204 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
3205
3206         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
3207
3208 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
3209
3210         * as/link/aslink.h: added LKOBJEXT
3211         * as/link/hc08/link_hc08.dsp,
3212         * as/link/hc08/Makefile.bcc,
3213         * as/link/hc08/Makefile.in,
3214         * as/link/mcs51/aslink.dsp,
3215         * as/link/mcs51/Makefile.bcc,
3216         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
3217         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
3218         * as/link/lkaomf51.c: merged and moved
3219         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
3220         * as/link/z80/lkdata.c,
3221         * as/link/lkdata.c: merged and moved
3222         * as/link/hc08/lkmain.c,
3223         * as/link/mcs51/lkmain.c: cosmetic changes
3224         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
3225         * as/link/lklex.c: use LKOBJEXT
3226         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
3227           ANSI-fied functions, removed bubble-sorts
3228         * as/link/z80/lksym.c           as/link/lksym.c: merged,
3229           ANSI-fied functions
3230         * as/link/z80/linkgbz80.dsp,
3231         * as/link/z80/linkz80.dsp,
3232         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
3233           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
3234         * as/link/z80/lkhead.c,
3235         * as/link/z80/lklex.c: deleted
3236         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
3237         * as/link/z80/lkmain.c: added copyfile()
3238
3239 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3240
3241         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
3242
3243 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3244
3245         * device/lib/_strlen.c: assembler version for mcs51
3246
3247 2007-03-13 Raphael Neider <rneider AT web.de>
3248
3249         * device/include/pic16/pic18f2221.h,
3250         * device/include/pic16/pic18f2321.h,
3251         * device/include/pic16/pic18f2331.h,
3252         * device/include/pic16/pic18f4221.h,
3253         * device/include/pic16/pic18f4321.h,
3254         * device/include/pic16/pic18f4331.h: fixed config byte location names
3255         * support/scripts/inc2h-pic16.pl: removed debug output, emit
3256           consistently named config byte locations
3257
3258 2007-03-13 Borut Razem <borut.razem AT siol.net>
3259
3260         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
3261           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
3262           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
3263           as/link/z80/Makefile.in, as/z80/Makefile.in:
3264           introduced LDFLAGS
3265
3266 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3267
3268         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
3269         * device/lib/printf_large.c: pointer was converted to generic
3270         pointer for mcs51 models other than model-small (Maarten noticed)
3271
3272 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3273
3274         * device/include/mcs51/ADuC84x.h: Added.
3275
3276 2007-03-10 Borut Razem <borut.razem AT siol.net>
3277
3278         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
3279           fixed RFE #1624219: double backslashes in filenames;
3280           functions hexEscape(), octalEscape() and copyStr() moved from
3281           SDCCval.c to SDCCutil.c and made them glovbally available
3282
3283 2007-03-09 Borut Razem <borut.razem AT siol.net>
3284
3285         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
3286           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
3287           1673361: Missaligned comments in output files
3288
3289 2007-03-09 Raphael Neider <rneider AT web.de>
3290
3291         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
3292
3293 2007-03-09 Raphael Neider <rneider AT web.de>
3294
3295         * src/pic/gen.c,
3296         * src/pic/glue.c,
3297         * src/pic/ralloc.c: suppress undesired debug output
3298         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
3299
3300 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3301
3302         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
3303
3304 2007-03-07 Borut Razem <borut.razem AT siol.net>
3305
3306         * device/lib/pic16/libdev/pic18f[24][34]31.c:
3307           search include files in the current directory
3308
3309 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
3310
3311         * src/SDCCglue.c (emitMaps, glue),
3312         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
3313           absolute xdata
3314         * support/regression/tests/absolute.c: added xdata test
3315
3316 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
3317
3318         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
3319           added condition to macro, fixes bug 1666080
3320
3321 2007-03-02 Raphael Neider <rneider AT web.de>
3322
3323         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
3324
3325 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3326
3327         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
3328         be cleared. Unconditionally set __XPAGE
3329         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
3330
3331 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3332
3333         * src/SDCCglobl.h,
3334         * src/SDCCmain.c,
3335         * src/mcs51/gen.c,
3336         * src/mcs51/rtrack.c,
3337         * src/ds390/gen.c,
3338         * doc/sdccman.lyx: added --no-gen-comments
3339         * src/mcs51/peeph.def: added 192.b, disabled 185
3340
3341 2007-02-25 Raphael Neider <rneider AT web.de>
3342
3343         * src/pic16/gen.c (genCast): fixed typo
3344         * device/lib/pic16/Makefile.subdir: only install existing files
3345         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
3346
3347 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
3348
3349         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
3350         * device/lib/mcs51/crtclear.asm,
3351         * device/lib/mcs51/crtxclear.asm: renumbered labels
3352         * device/lib/mcs51/Makefile.in: added crtcall.asm
3353         * doc/sdccman.lyx: documented mcs51 crt* library startup code
3354         * src/mcs51/gen.c (movc): removed,
3355           (aopGet, genPlusBits): clear a after loading the carry (possibly from
3356             acc.x or psw.x),
3357           (toCarry, genSend, genRet): added function toCarry,
3358           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
3359           (assignBit, genAssign, genCast): added function assignBit
3360         * src/mcs51/Makefile.bcc: added rtrack.c
3361         * src/mcs51/ralloc.h: made valueKnown a bitfield
3362         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
3363           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
3364           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
3365         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
3366         * src/z80/gen.c: added AOP_IS_PAIRPTR,
3367           (_pop): only pop valid pairs, see gencjneshort,
3368           (gencjneshort): return pair that still needs to be popped, restructured,
3369           (gencjne, genCmpEq): call _pop
3370
3371 2007-02-23 Raphael Neider <rneider AT web.de>
3372
3373         * device/include/pic/pic14devices.txt: 16f684 has only one config word
3374
3375 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3376
3377         * device/include/mcs51/P89LPC925.h: Added.
3378
3379 2007-02-18 Raphael Neider <rneider AT web.de>
3380
3381         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
3382
3383 2007-02-17 Borut Razem <borut.razem AT siol.net>
3384
3385         * support/cpp2/directives.c, support/cpp2/version.c:
3386           synchronized with GCC CPP 4.1.2
3387
3388 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3389
3390         * src/mcs51/rtrack.h,
3391         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
3392           by checking the strings passed by emitcode() to the assembler.
3393           Feel free to change. This in part addresses RFE #482179.
3394           Set environment variable SDCC_RTRACK to enable.
3395         * src/mcs51/gen.c: inserted hooks
3396         * src/mcs51/ralloc.h: added two members to struct regs
3397         * support/regression/tests/regtrack.c: added
3398
3399 2007-02-14 Borut Razem <borut.razem AT siol.net>
3400
3401         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
3402         * Makefile.in: applied patch from Makefile related part of
3403           #1469393: Compiler does not initialize static data
3404
3405 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
3406
3407         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
3408           for better fix of bug 1273984, compiles pic16 rand.c
3409
3410 2007-02-12 Borut Razem <borut.razem AT siol.net>
3411
3412         * src/pic16/main.c: fixed pic16 standard library directory bug
3413
3414 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
3415
3416         * src/hc08/gen.c (genSwap): fix swap regression test
3417
3418 2007-02-10 Borut Razem <borut.razem AT siol.net>
3419
3420         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
3421           with same scope
3422         * support/regression/tests/bug-1654060.c: added regression test for
3423           #1654060
3424
3425 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
3426
3427         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
3428         bit moves in return statement
3429
3430 2007-02-09 Borut Razem <borut.razem AT siol.net>
3431
3432         * src/SDCC.y: fixed bug #1654060 typedef within function causes
3433           syntax error
3434
3435 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3436
3437         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
3438         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
3439
3440 2007-02-07 Raphael Neider <rneider AT web.de>
3441
3442         * src/pic16/devices.inc,
3443         * device/include/pic16/pic18fregs.h,
3444         * device/include/pic16/pic18f[24][34]31.h,
3445         * device/lib/pic16/libdev/pic18f[24][34]31.c,
3446         * device/lib/pic16/pics.all: added 18f[24][34]31 family
3447         * device/lib/pic16/libio/i2c.ignore: do not build i2c
3448
3449 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3450
3451         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
3452           can this have lived here for so many years?
3453         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
3454           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
3455         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
3456
3457 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
3458
3459         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
3460         appended by loop induction must be at the very end of the eBBlock
3461
3462 2007-02-05 Kevin Vigor
3463
3464         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
3465
3466 2007-02-05 Borut Razem <borut.razem AT siol.net>
3467
3468         * support/regression/fwk/lib/timeout.c: native WIN32 port,
3469           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
3470
3471 2007-02-03 Borut Razem <borut.razem AT siol.net>
3472
3473         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
3474           applied patch #1646602 option to set default signedness of char to
3475           unsigned, added -funsigned-char command line option,
3476           thanks to Gunther Jehle
3477         * device/lib/Makefile.in: added the -f option to rm so it doesn't
3478           prompt for file deletion a few hundred times (especially the
3479           subversion files, which have ro permissions so it asks for
3480           confirmation), thanks to Simon McAuliffe;
3481           added {} + option to find in order to remove multiple files from a
3482           single rm commad
3483
3484 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3485
3486         * device/include/mcs51/SST89x5xRDx.h: Added.
3487
3488 2007-02-02 Raphael Neider <rneider AT web.de>
3489
3490         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
3491         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
3492
3493 2007-02-01 Raphael Neider <rneider AT web.de>
3494
3495         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
3496           config words again
3497
3498 2007-01-31 Borut Razem <borut.razem AT siol.net>
3499
3500         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
3501           if compiled with GCC. Thanks to Raphael Neider
3502
3503 2007-01-31 Raphael Neider <rneider AT web.de>
3504
3505         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
3506             operand names, handles name and (name + n) for all n,
3507           (sameBank): restructured, also check bank allocation policy,
3508         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
3509           (pic14_operandsAllocatedInSameBank): check whether to operands
3510             will be allocated into the same bank (i.e., section) to reduce
3511             BANKSEL overhead, queried from pcode.c:sameBank,
3512           (pic14printLocals): reintroduced clustering registers into a single
3513             section: all compiler generated symbols will now reside in one
3514             bank (per file), reducing BANKSEL overhead and code size,
3515           (showAllMemmaps): use local dbuf where possible
3516
3517 2007-01-29 Raphael Neider <rneider AT web.de>
3518
3519         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
3520           (call_libraryfunc): retrieve/create symbol and mark as used,
3521           (genFunction): mark defined functions as non-extern and add again
3522            to code memmap for later output
3523         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
3524           (pic14printLocals): reworked for new symbol emission,
3525           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
3526           showAllMemmaps): reworked symbol output using dbufs, added handling
3527             of string literals (still incomplete),
3528           (picglue): removed symbol emission, moved into showAllMemmaps,
3529           (emitSymbolSet): new workhorse for symbol output,
3530           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
3531
3532 2007-01-29 Borut Razem <borut.razem AT siol.net>
3533
3534         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
3535           component contains the extension separator.
3536
3537 2007-01-28 Borut Razem <borut.razem AT siol.net>
3538
3539         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
3540           on WIN32
3541         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
3542           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
3543           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
3544           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
3545           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
3546           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
3547           src/z80/gen.c, support/Util/MySystem.c:
3548           accept slash and backslash as directory separator on WIN32 and
3549           Cygwin ports
3550
3551 2007-01-28 Raphael Neider <rneider AT web.de>
3552
3553         * src/pic16/devices.inc,
3554         * device/include/pic16/pic18f[24][23]21.h,
3555         * device/include/pic16/pic18fregs.h,
3556         * device/lib/pic16/libdev/pic18f[24][23]21.c,
3557         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
3558         * device/lib/pic16/libio/adc.ignore,
3559         * device/lib/pic16/libio/i2c.ignore,
3560         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
3561           family, as gputils do not yet support the devices
3562         * device/lib/pic16/Makefile.subdir: ignore errors on install
3563         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
3564           headers and libraries from gputils .inc files
3565
3566 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3567
3568         * doc/sdccman.lyx: add printf_fast_f precision limitation note
3569
3570 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3571
3572         * doc/sdccman.lyx: add printf benchmarks
3573
3574 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3575
3576         * device/lib/printf_fast.c: fix %c, char promoted to int
3577         * device/lib/printf_tiny.c: fix %c, char promoted to int
3578
3579 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3580
3581         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
3582
3583 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3584
3585         * support/regression/tests/swap.c: 64 bit hosts failed
3586         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
3587
3588 2007-01-25 Raphael Neider <rneider AT web.de>
3589
3590         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
3591           based on absolute register address, patch by Alex Blond
3592
3593 2007-01-22 Raphael Neider <rneider AT web.de>
3594
3595         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
3596           emitted, do not emit them again...
3597
3598 2007-01-22 Raphael Neider <rneider AT web.de>
3599
3600         * src/regression/bank1.c, src/regression/compare6.c,
3601           src/regression/add.c: cosmetic changes
3602         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
3603         * src/pic/gen.c: fixed global zero and one,
3604           (aopForSym): removed unued code,
3605           (aopGet): assert aop is defined, check and use `index' of
3606             pCodeImmd operands (fixes #1630908),
3607         * src/pic/pcode.c (get_op): added output of generic pointer tag,
3608           (register_reassign): prevent accidental register unification,
3609           (ReuseReg): cosmetic changes (also above)
3610         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
3611           pic14emitStaticSeg): do not emit initialized data,
3612           (printIval*): replaced with working versions,
3613           (pic14createInterruptVect,picglue): use idata for initialized data,
3614             now init data should work in all modules (not only main()),
3615         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
3616
3617 2007-01-21 Borut Razem <borut.razem AT siol.net>
3618
3619         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
3620           use -fPIC or -fpic if they are supported and not ignored
3621         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
3622         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
3623
3624 2007-01-20 Borut Razem <borut.razem AT siol.net>
3625
3626         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
3627           implemented RFE #1470316: allow "$" in variable names
3628
3629 2007-01-20 Raphael Neider <rneider AT web.de>
3630
3631         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
3632
3633 2007-01-20 Raphael Neider <rneider AT web.de>
3634
3635         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
3636         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
3637         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
3638         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
3639           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
3640         * device/lib/pic/libdev/pic*.c,
3641         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
3642         * device/lib/pic/libdev/Makefile.in: show progress
3643
3644 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
3645
3646         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
3647         * support/scripts/sdcc_cygwin_mingw32,
3648         * support/scripts/sdcc_mingw32,
3649         * support/scripts/build.mak: replaced --datadir by --datarootdir for
3650         conformance with autoconf 2.6
3651
3652 2007-01-19 Raphael Neider <rneider AT web.de>
3653
3654         * src/pic/device.c (register_map): fixed list construction
3655         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
3656           (genMod): removed case for genModbits,
3657           (genModbits): removed as now unused/unimplemented
3658         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
3659
3660 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3661
3662         * support/regression/tests/swap.c: added in response to #1638622
3663         * doc/sdccman.lyx: synced version, minor changes
3664
3665 2007-01-18 Borut Razem <borut.razem AT siol.net>
3666
3667         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
3668           thanks to Gunther Jehle
3669         * src/asm.c: don't die if the file drfined in #line couldn't be opened
3670         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
3671           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
3672           use filename in lineno instead.
3673         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
3674           print the file name in ast_print()
3675
3676 2007-01-18 Borut Razem <borut.razem AT siol.net>
3677
3678         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
3679           defined in MSVC
3680         * src/SDCC.lex: stringLiteral() returns const char pointer,
3681           EOF detection in stringLiteral(), fixed asmbuf memory leak,
3682           fixed column counting
3683         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
3684           accept const char pointer as parameter
3685         * src/SDCCdwarf2.c: corrected buffer size
3686
3687 2007-01-17 Borut Razem <borut.razem AT siol.net>
3688
3689         * support/Util/dbuf_string.c: fixed for amd64
3690
3691 2007-01-15 Borut Razem <borut.razem AT siol.net>
3692
3693         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
3694           removed terminal symbol ELIPSIS, since it was never generated by the
3695           lexer and it was wrongly used in parameter_identifier_list rule
3696
3697 2007-01-15 Raphael Neider <rneider AT web.de>
3698
3699         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
3700             code page and data banking description
3701         * src/pic/genarith.c,
3702         * src/pic/gen.h: removed bit arithmetic functions,
3703             updated exit(1) to exit(EXIT_FAILURE)
3704         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
3705         * device/include/pic16/pic18f2455.h,
3706         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
3707             TRISD and TRISE, fixed/added some bit names
3708         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
3709         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
3710             updated pic18f2455.{c,h} instead of duplicating them
3711
3712 2007-01-14 Borut Razem <borut.razem AT siol.net>
3713
3714         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
3715           Cannot debug files that contain spaces in the path name
3716           by converting spaces in asm file name to underscores
3717
3718 2007-01-13 Borut Razem <borut.razem AT siol.net>
3719
3720         * doc/sdccman.lyx: fixed format errors
3721
3722 2007-01-10 Borut Razem <borut.razem AT siol.net>
3723
3724         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
3725           codeseg/constseg #pragma fail
3726         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
3727         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
3728           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
3729           suppoprt/cpp2/sdcpp.[ch]: house cleaning
3730
3731 2007-01-09 Borut Razem <borut.razem AT siol.net>
3732
3733         * get rid of diagnistic.[ch], pretty-print.[ch],
3734           c-pretty-print.[ch], ... used just for error, warning, ...
3735           message formatting
3736         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
3737           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
3738           suppoprt/cpp2/pretty-print.[ch]:
3739           removed
3740         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
3741           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
3742           suppoprt/cpp2/sdcpp.dsp:
3743           changed
3744
3745 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
3746
3747         * device/lib/printf_large.c (output_float): removed recursion,
3748           use smaller buffer on stack for mcs51,
3749           fixed bug printing 1.96
3750         * support/regression/tests/snprintf.c: added test
3751
3752 2007-01-07 Borut Razem <borut.razem AT siol.net>
3753
3754         * use dynamic memory buffers instead temporary files
3755         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
3756           added
3757         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
3758           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
3759           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
3760           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
3761           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
3762           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
3763           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
3764           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
3765           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
3766           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
3767           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
3768           support/Util/dbuf.c, support/Util/dbuf.h:
3769           modified
3770         * .version, sdcc.spec: bumped version to 2.6.4
3771
3772 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
3773
3774         * src/port.h: added TARGET_Z80_LIKE macro
3775         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
3776           output PSEG location if --xram-loc or --xstack-loc was used
3777         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
3778
3779 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
3780
3781         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
3782         * as/as_z80.dsp,   as/z80/as_z80.dsp,
3783         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
3784         * sdcc.dsw: moved project files into subdir
3785         * as/hc08/as_hc08.dsp,
3786         * as/hc08/Makefile.bcc,
3787         * as/hc08/Makefile.in,
3788         * as/mcs51/Makefile.bcc,
3789         * as/mcs51/Makefile.in,
3790         * as/z80/Makefile.bcc,
3791         * as/z80/Makefile.in,
3792         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
3793         * as/hc08/asm.h,
3794         * as/mcs51/asm.h,
3795         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
3796         * as/hc08/asmain.c,
3797         * as/hc08/assym.c,
3798         * as/mcs51/asmain.c,
3799         * as/mcs51/assym.c,
3800         * as/z80/assym.c: removed include "strcmpi.h"
3801         * as/hc08/strcmpi.c,
3802         * as/hc08/strcmpi.h,
3803         * as/mcs51/strcmpi.c,
3804         * as/mcs51/strcmpi.h,
3805         * support/Util/strcmpi.c,
3806         * support/Util/strcmpi.h: removed files
3807         * as/strcmpi.c: added as_strncmpi()
3808
3809 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3810
3811         * sdcc.dsw: Added some dependencies on project config.dsp
3812
3813 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
3814
3815         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
3816           with [di]ram_start to fix a regresion
3817
3818 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
3819
3820         * configure.in: added missing mcs51 in status output
3821         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
3822         directory
3823         * debugger/mcs51/clean.mk (distclean): remove config.h
3824         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
3825         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
3826         options.h, s-options-h and options.c
3827         * support/cpp2/clean.mk: unused, removed
3828         * Makefile.common.in,
3829         * main_in.mk,
3830         * as/Makefile.in,
3831         * as/hc08/Makefile.in,
3832         * as/hc08/clean.mk,
3833         * as/mcs51/Makefile.in,
3834         * as/mcs51/clean.mk,
3835         * as/z80/clean.mk,
3836         * as/z80/conf.mk,
3837         * as/z80/Makefile.in,
3838         * as/z80/clean.mk,
3839         * as/link/Makefile.in,
3840         * as/link/hc08/Makefile.in,
3841         * as/link/hc08/clean.mk,
3842         * as/link/mcs51/Makefile.in,
3843         * as/link/mcs51/clean.mk,
3844         * as/link/z80/Makefile.in,
3845         * as/link/z80/clean.mk,
3846         * as/link/z80/conf.mk,
3847         * debugger/mcs51/Makefile.in,
3848         * debugger/mcs51/clean.mk,
3849         * device/include/Makefile.in,
3850         * device/lib/Makefile.in,
3851         * device/lib/mcs51/Makefile.in,
3852         * device/lib/pic/Makefile.in,
3853         * device/lib/pic/Makefile.common.in,
3854         * device/lib/pic/Makefile.subdir,
3855         * device/lib/pic/Makefile.rules,
3856         * device/lib/pic16/libio/Makefile.in,
3857         * device/lib/pic16/Makefile.subdir,
3858         * device/lib/pic16/libdev/Makefile.in,
3859         * device/lib/pic16/Makefile.rules,
3860         * device/lib/pic16/Makefile.common.in,
3861         * sim/ucsim/avr.src/Makefile.in,
3862         * sim/ucsim/main_in.mk,
3863         * sim/ucsim/cmd.src/Makefile.in,
3864         * sim/ucsim/doc/Makefile.in,
3865         * sim/ucsim/gui.src/Makefile.in,
3866         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
3867         * sim/ucsim/gui.src/serio.src/Makefile.in,
3868         * sim/ucsim/hc08.src/Makefile.in,
3869         * sim/ucsim/libltdl/Makefile.in,
3870         * sim/ucsim/s51.src/Makefile.in,
3871         * sim/ucsim/sim.src/Makefile.in,
3872         * sim/ucsim/sim.src/conf.mk,
3873         * sim/ucsim/xa.src/Makefile.in,
3874         * sim/ucsim/z80.src/Makefile.in,
3875         * src/Makefile.in,
3876         * src/clean.mk,
3877         * src/port.mk,
3878         * support/cpp2/Makefile.in,
3879         * support/librarian/Makefile.in,
3880         * support/librarian/clean.mk,
3881         * support/makebin/Makefile.in,
3882         * support/makebin/clean.mk,
3883         * support/packihx/Makefile.in,
3884         * support/regression/Makefile.in,
3885         * support/regression/ports/ds390/spec.mk,
3886         * support/regression/ports/gbz80/spec.mk,
3887         * support/regression/ports/hc08/spec.mk,
3888         * support/regression/ports/mcs51/spec.mk,
3889         * support/regression/ports/mcs51-large/spec.mk,
3890         * support/regression/ports/mcs51-medium/spec.mk,
3891         * support/regression/ports/mcs51-xstack-auto/spec.mk,
3892         * support/regression/ports/pic14/spec.mk,
3893         * support/regression/ports/pic16/spec.mk,
3894         * support/regression/ports/mcs51-stack-auto/spec.mk,
3895         * support/regression/ports/ucz80/spec.mk,
3896         * support/regression/ports/xa51/spec.mk,
3897         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
3898         adding a slash after $(top_builddir) and/or adding @datarootdir@
3899         * configure.in,
3900         * debugger/mcs51/configure.in,
3901         * device/lib/pic/configure.in,
3902         * device/lib/pic16/configure.in,
3903         * sim/ucsim/configure.in,
3904         * support/cpp2/configure.in,
3905         * support/packihx/configure.in: changed AC_PREREQ to 2.60
3906         * configure,
3907         * debugger/mcs51/configure,
3908         * device/lib/pic/configure,
3909         * device/lib/pic16/configure,
3910         * sim/ucsim/configure,
3911         * support/cpp2/configure,
3912         * support/packihx/configure: generated with autoconf 2.60
3913
3914 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
3915
3916         * as/link/hc08/lkihx.c (newArea),
3917         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
3918
3919 2007-01-02 Borut Razem <borut.razem AT siol.net>
3920
3921         * doc/sdccman.lyx: documented #pragma sdcc_hash
3922         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
3923           initialized to 0
3924         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
3925
3926 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
3927
3928         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
3929         empty 'while'-loop to work correctly, see regression test 'while.c'
3930         * support/regression/tests/while.c: added
3931
3932 2007-01-01 Borut Razem <borut.razem AT siol.net>
3933
3934         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
3935           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
3936           support/cpp2/libcpp/sdcpp.c:
3937           sdcpp specific pragma/directive/option handling moved to sdcpp.c
3938         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
3939         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
3940
3941 2006-12-31 Borut Razem <borut.razem AT siol.net>
3942
3943         * SDCPP synchronized with GCC CPP release version 4.1.1,
3944           currently the latest release:
3945         * support/cpp2/libcpp, support/cpp2/libcpp/include,
3946           support/cpp2/libcpp/include/cpp-id-data.h
3947           support/cpp2/libiberty/fopen_unlocked.c
3948           support/cpp2/libiberty/md5.c
3949           support/cpp2/md5.h
3950           support/cpp2/opt-functions.awk
3951           support/cpp2/opt-gather.awk
3952           support/cpp2/optc-gen.awk
3953           support/cpp2/opth-gen.awk:
3954           added
3955         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
3956           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
3957           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
3958           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
3959           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
3960           support/cpp2/diagnostic.h, support/cpp2/except.h,
3961           support/cpp2/hwint.h, support/cpp2/input.h,
3962           support/cpp2/intl.h, support/cpp2/move-if-change,
3963           support/cpp2/opts.c, support/cpp2/opts.h,
3964           support/cpp2/output.h, support/cpp2/prefix.c,
3965           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
3966           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
3967           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
3968           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
3969           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
3970           support/cpp2/version.c:
3971           modified
3972         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
3973           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
3974           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
3975           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
3976           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
3977           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
3978           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
3979           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
3980           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
3981           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
3982           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
3983           moved
3984         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
3985           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
3986           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
3987           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
3988           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
3989           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
3990           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
3991           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
3992           support/cpp2/hashtable.h, support/cpp2/line-map.c,
3993           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
3994           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
3995           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
3996           support/cpp2/system.h:
3997           deleted / moved
3998
3999 2006-12-31 Borut Razem <borut.razem AT siol.net>
4000
4001         * configure.in, configure: fixed bug #1538756: configure dies if bison
4002           and flex are not installed, 2nd try
4003
4004 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
4005
4006         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
4007         400.x for better code in RFE 899102
4008
4009 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
4010
4011         * src/SDCCpeeph.c (deadMove),
4012         * src/port.h,
4013         * src/mcs51/peep.h: renamed 'op' by 'reg'
4014         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
4015         (scan4op): small change for removeDeadMove(), added support for
4016         'callee saves' and/or PACLL function calls,
4017         (removeDeadMove): added, removes superflous 'mov r%1,%2',
4018         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
4019         left in new dispatcher mcs51DeadMove()
4020         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
4021         removeDeadMove()
4022         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
4023
4024 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4025
4026         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
4027           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
4028
4029 2006-12-30 Borut Razem <borut.razem AT siol.net>
4030
4031         * support/cpp2/spacs.h: deleted from svn
4032         * configure.in, configure: fixed bug #1538756: configure dies if bison
4033           and flex are not installed
4034
4035 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
4036
4037         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
4038           with this z80 passes printf float test when enabled
4039         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
4040
4041 2006-12-28 Borut Razem <borut.razem AT siol.net>
4042
4043         * support/cpp2/config.in, support/cpp2/configure.in,
4044           support/cpp2/configure, support/cpp2/Makefile.in:
4045           fix for the solaris build
4046
4047 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4048
4049         * src/SDCC.y (type_specifier2, pointer),
4050         * src/SDCCsymt.h,
4051         * src/SDCCsymt.c (mergeSpec, checkSClass),
4052         * support/Util/SDCCerr.c,
4053         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
4054         * support/valdiag/valdiag.py: Allow test cases to specify
4055           required language standard
4056         * support/valdiag/tests/restrict.c: New file to test restrict keyword
4057         * support/valdiag/tests/tentdecl.c: Supress empty source file error
4058
4059 2006-12-27 Borut Razem <borut.razem AT siol.net>
4060
4061         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
4062         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
4063           mbchar removed
4064         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
4065           fixed for borland C
4066         * support/cpp2/libiberty/Makefile.bcc: updated
4067         * src/pic16/main.c: fixed #pragma udata handling
4068         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
4069
4070 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
4071
4072         * src/SDCCpeeph.c: made labelHashEntry global,
4073         made pcDistance, FBYNAME static,
4074         (pcDistance): made static, use isComment and isLabel,
4075         (deadMove): added,
4076         (getLabelRef): added, extracted from labelRefCount(),
4077         (labelRefCount): use new getLabelRef(),
4078         (callFuncByName): made static, added deadMove,
4079         use isComment and isLabel,
4080         (newPeepRule): made static, set isLabel,
4081         (isLabelDefinition): added parameter isPeepRule to allow '%' in
4082         labels from peephole rules,
4083         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
4084         when isComment or isLabel is set
4085         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
4086         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
4087         to make them global
4088         * src/mcs51/peep.h: added
4089         * src/mcs51/peep.c: added, implements mcs51DeadMove()
4090         * src/port.h: added peep->deadMove to port structure
4091         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
4092         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
4093         deadMove, finally removed no. 1 and 2
4094         * src/mcs51/gen.c,
4095         * src/pic/gen.c,
4096         * src/z80/gen.c,
4097         * src/z80/ralloc.c,
4098         * src/pic16/gen.c,
4099         * src/ds390/gen.c,
4100         * src/hc08/gen.c: mark lines with isComment or isLabel
4101         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
4102         * .version,
4103         * sdcc.spec: bumped version to 2.6.3
4104
4105 2006-12-26 Borut Razem <borut.razem AT siol.net>
4106
4107         * support/cpp2/Makefile.in: added dependency on options.h
4108         * configure: regenerated
4109         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
4110         * support/cpp2/Makefile.in: added vasprintf.c
4111
4112 2006-12-25 Borut Razem <borut.razem AT siol.net>
4113
4114         * SDCPP synchronized with GCC CPP release version 3.4.6,
4115           the latest release before 4.x:
4116         * support/cpp2/Makefile.in, support/cpp2/config.h,
4117           support/cpp2/configure, support/cpp2/configure.in,
4118           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
4119           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
4120           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
4121           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
4122           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
4123           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
4124           support/cpp2/cpptrad.c, support/cpp2/except.h,
4125           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
4126           support/cpp2/hwint.h, support/cpp2/intl.h,
4127           support/cpp2/line-map.c, support/cpp2/line-map.h,
4128           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
4129           support/cpp2/output.h, support/cpp2/prefix.c,
4130           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
4131           support/cpp2/system.h, support/cpp2/version.c:
4132           modified
4133         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
4134           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
4135           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
4136           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
4137           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
4138           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
4139           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
4140           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
4141           support/cpp2/move-if-change, support/cpp2/opts.c,
4142           support/cpp2/opts.h, support/cpp2/opts.sh,
4143           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
4144           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
4145           support/cpp2/win32, support/cpp2/win32/dirent.c,
4146           support/cpp2/win32/dirent.h:
4147           added
4148         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
4149         * support/cpp2/sdcpp.h: renamed from sdcc.h
4150         * sdcppinit.c: deleted
4151
4152 2006-12-23 Borut Razem <borut.razem AT siol.net>
4153
4154         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
4155           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
4156           preproc.c: an other try to fix bug #982435: introduced
4157           -pedantic-parse-number command line option and pedantic_parse_number
4158           pragma
4159
4160 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
4161
4162         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
4163            BSEG handling,
4164           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
4165            corrected overlayed areax addresses, warn about memory overlaps
4166         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
4167         * src/avr/main.c,
4168         * src/ds390/main.c,
4169         * src/hc08/main.c,
4170         * src/mcs51/main.c,
4171         * src/pic16/main.c,
4172         * src/pic/main.c,
4173         * src/xa51/main.c,
4174         * src/z80/main.c,
4175         * src/port.h: added xabs_name and iabs_name
4176         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
4177           (glue, emitMaps): create and emit maps d_abs and i_abs
4178         * src/SDCCglue.h: cosmetic changes
4179         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
4180         * src/SDCCmem.h,
4181         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
4182           (allocDefault): put absolute, initialized globals in them
4183         * support/regression/tests/absolute.c: added absolute bdata test
4184         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
4185
4186 2006-12-20 Borut Razem <borut.razem AT siol.net>
4187
4188         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
4189         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
4190           added regression test for bug #982435
4191
4192 2006-12-18 Borut Razem <borut.razem AT siol.net>
4193
4194         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
4195         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
4196           small cosmetic changes
4197         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
4198         * support/regression/tests/bug-1351710.c: added regression test
4199
4200 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4201
4202         * doc/sdccman.lyx: added the long missed iCode table
4203           "<where is figure II?>", added links to wiki
4204
4205 2006-12-17 Borut Razem <borut.razem AT siol.net>
4206
4207         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
4208           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
4209           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
4210           unified table driven pragma handling, pragma argument type checking
4211         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
4212           current one - version 1.1.3
4213         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
4214
4215 2006-12-13 Raphael Neider <rneider AT web.de>
4216
4217         * src/pic/device.h: removed AssignedMemory structure and macros
4218         * src/pic/device.c: removed global finalMapping (linker assigns
4219             memory locations),
4220           (register_map): add SFRs to remembered memRanges
4221           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
4222           assignFixedRegisters,assignRelocatableRegisters): removed,
4223           (setMaxRAM,validAddress): adapted accordingly,
4224           (pic14_hasSharebank,pic14_getSharedStack): only report and use
4225             reasonably sized sharebanks,
4226         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
4227           (allDefsOutOfRange): removed unused code,
4228         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
4229             handling
4230         * src/pic/pcode.c (register_reassign): removed recursion warning,
4231             fired far too often,
4232         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
4233             to use existing pic14_stringInSet() to avoid duplicate symbols,
4234             tidied up the code a bit,
4235           (pic14printLocals): added in symmetry to printExterns, replaces
4236             writeUsedRegs more or less,
4237           (picglue): call new pic14_printLocals(),
4238         * device/include/pic/pic*.h: removed #pragma memmap directives,
4239             information gathered from include/pic/pic14devices.txt
4240         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
4241
4242 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
4243
4244         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
4245
4246 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4247
4248         * device/include/mcs51/cc2430.h: fixed missing ';'
4249
4250 2006-12-10 Raphael Neider <rneider AT web.de>
4251
4252         * device/lib/pic16/libc/stdio/vfprintf.c,
4253         * device/lib/pic16/libc/stdio/printf_small.c,
4254         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
4255           char arguments, as char varargs are cast to int by the caller,
4256           hopefully fixes #1604915 (other device libraries are still affected)
4257
4258 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4259
4260         * src/mcs51/ralloc.c (packRegsForAssign),
4261         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
4262
4263 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
4264
4265         * device/include/malloc.h: removed init_dynamic_memory
4266         * device/lib/malloc.c: made init_dynamic_memory static and automatically
4267           call it once from malloc. Also use _sdcc_heap[] from _heap.c
4268         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
4269         * device/lib/libsdcc.lib,
4270         * device/lib/Makefile.in,
4271         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
4272         * doc/sdccman.lyx: documented use of new _heap.c
4273         * support/regression/tests/malloc.c: removed init_dynamic_memory
4274         * src/cdbFile.c(spacesToUnderscores): new function,
4275           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
4276           1068030
4277         * device/include/tinibios.h: removed defines for putchar and getchar
4278         * device/lib/ds390/Makefile.in: added putchar.c
4279         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
4280
4281 2006-12-09 Borut Razem <borut.razem AT siol.net>
4282
4283         * support/cpp2/sdcc.h: prevent multiple inclusion
4284         * support/cpp2/options.h: deleted
4285
4286 2006-12-08 Borut Razem <borut.razem AT siol.net>
4287
4288         * support/cpp2/sdcc.h: removed x*alloc() macros
4289         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
4290         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
4291           support/cpp2/sdcpp.sdc: x*alloc files added to the project
4292         * support/cpp2/system.h: moved #include "sdcc.h"
4293         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
4294           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
4295           added
4296         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
4297           -funsigned-char options
4298         * support/cpp2/sdcppmain.c: fixed bug 1611411
4299
4300 2006-12-07 Borut Razem <borut.razem AT siol.net>
4301
4302         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
4303           directive
4304
4305 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
4306
4307         * src/SDCCsymt.c (addDecl): fixed bug 1609244
4308         * src/SDCCmain.c (linkEdit): fixed bug 1609279
4309         * doc/sdccman.lyx,
4310         * .version: bumped to 2.6.2 because a) it's been a while
4311           b) the linker sources have moved c) the preprocessor is upgraded
4312
4313 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4314
4315         * support/regression/tests/snprintf.c: some checks
4316         * lib/src/printf_large.c: %bc: read char instead of int from stack
4317
4318 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
4319
4320         * device/include/mcs51/cc2430.h: inserted _XPAGE
4321
4322 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4323
4324         * device/include/mcs51/cc2430.h: added
4325
4326 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
4327
4328         * device/include/asm/default/features.h,
4329         * device/include/asm/ds390/features.h,
4330         * device/include/mcs51/at89s53.h,
4331         * device/include/ser.h,
4332         * device/include/ser_ir.h,
4333         * device/include/serial.h: changed keywords to double underscore variants,
4334           fixes bug 1590261 some more, thanks Steven Borley
4335
4336 2006-12-01 Raphael Neider <rneider AT web.de>
4337
4338         * src/pic/pcode.c (register_reassign): do not crash on recursive code
4339           but emit warning (recursion is not supported for pic14)
4340
4341 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4342
4343         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
4344         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
4345
4346 2006-11-30 Raphael Neider <rneider AT web.de>
4347
4348         * src/pic/device.c (dump_sfr): always emit symbols
4349         * src/pic/glue.c (pic14printPublics): fixed typo
4350
4351 2006-11-30 Raphael Neider <rneider AT web.de>
4352
4353         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
4354           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
4355           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
4356            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
4357            a sharebank, use a non-shared bank for the stack if none available
4358         * src/pic/device.h (struct memRange): added linked list next field,
4359           added prototypes for above functions
4360         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
4361           (typeRegWithIdx): accept fixed and unfixed stack registers
4362         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
4363           the stack, handle shared and banked stack (except for WSAVE),
4364           (insertBankSel): removed useless optimization (will never fire),
4365           (FixRegisterBanking): added optimization for devices with only one
4366           possibly aliased bank of memory, like 16f84
4367         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
4368           devices have no SHAREBANK in the linker script
4369         * device/include/pic/pic14devices.txt: documented memmap
4370         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
4371
4372 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4373
4374         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
4375           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
4376           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
4377           genhc08Code): switched most of the D (debug) macros to DD (detailed
4378           debug) macros to better control clutter in the generated .asm file.
4379         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
4380           genRightShift): fixed bug with non-constant bit shift stored to
4381           a volatile result (SF Open Discussion forum thread #1616749).
4382           Single byte case is not yet optimized.
4383
4384 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
4385
4386         * device/include/asm/mcs51/features.h,
4387         * device/include/malloc.h,
4388         * device/include/stdio.h: changed keywords to double underscore variants,
4389           fixes bug 1590261
4390
4391 2006-11-27 Borut Razem <borut.razem AT siol.net>
4392
4393         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4394           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
4395           support/cpp2/output.h, support/cpp2/cppinit.c,
4396           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
4397           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4398           support/cpp2/cppdefault.c, support/cpp2/system.h,
4399           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
4400           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
4401           support/cpp2/prefix.c, support/cpp2/except.h,
4402           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
4403           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
4404           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4405           support/cpp2/version.c, support/cpp2/cppmain.c,
4406           support/cpp2/version.h, support/cpp2/hashtable.c,
4407           support/cpp2/cpperror.c:
4408           synchronized with GCC CPP release version 3.3.6,
4409           the latest where cppmain.c still exists.
4410         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
4411           support/cpp2/sdcppinit.c: added
4412
4413 2006-11-27 Borut Razem <borut.razem AT siol.net>
4414
4415         * support/cpp2/cpplex.c:
4416           fixed _asm ... _endasm handling bug, introduce with GCC CPP
4417           synchronization
4418         * support/cpp2/cpplib.c: removed definitions of unused variables
4419
4420 2006-11-26 Borut Razem <borut.razem AT siol.net>
4421
4422         * support/cpp2/libiberty.h: commented out x*alloc() declarations
4423           since they are redefined by macros in support/cpp2/sdcc.h
4424         * support/cpp2/sdcc.h: x*alloc macro redefinition
4425
4426 2006-11-25 Borut Razem <borut.razem AT siol.net>
4427
4428         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4429           support/cpp2/configure, support/cpp2/Makefile.in,
4430           support/cpp2/cppfiles.c, support/cpp2/output.h,
4431           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
4432           support/cpp2/config.h, support/cpp2/cpplib.h,
4433           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4434           support/cpp2/cppdefault.c, support/cpp2/config.in,
4435           support/cpp2/system.h, support/cpp2/cpplex.c,
4436           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
4437           support/cpp2/cppdefault.h, support/cpp2/prefix.c
4438           support/cpp2/hwint.h, support/cpp2/mbchar.h,
4439           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
4440           support/cpp2/configure.in, support/cpp2/intl.h,
4441           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
4442           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4443           support/cpp2/version.c, support/cpp2/cppmain.c,
4444           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
4445           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
4446           support/cpp2/cpperror.c,
4447           support/cpp2/libiberty/safe-ctype.c,
4448           support/cpp2/libiberty/safe-ctype.h,
4449           support/cpp2/libiberty/splay-tree.c,
4450           support/cpp2/libiberty/obstack.c,
4451           support/cpp2/libiberty/lbasename.c,
4452           support/cpp2/libiberty/splay-tree.h,
4453           support/cpp2/libiberty/obstack.h:
4454           synchronized with GCC CPP release version 3.2.3,
4455           the latest before integration of cpp into gcc
4456         * support/cpp2/except.h, support/cpp2/line-map.c,
4457           support/cpp2/line-map.h,
4458           support/cpp2/libiberty/hex.c,
4459           support/cpp2/libiberty/concat.c,
4460           support/cpp2/libiberty/filenames.h: added
4461         * support/cpp2/intl.c: deleted
4462
4463 2006-11-24 Borut Razem <borut.razem AT siol.net>
4464
4465         * src/SDCC.y: enabled compilation of empty source file
4466         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
4467           "ISO C forbids an empty source file"
4468         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
4469           if all the code is ifdefed out.
4470
4471 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4472
4473         * src/hc08/gen.c (genPcall): fix for bug #1601032
4474
4475 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4476
4477         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
4478         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
4479         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
4480         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
4481         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
4482         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
4483         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
4484         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
4485         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
4486         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
4487         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
4488         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
4489         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
4490         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
4491         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
4492           Renamed to all upper case as per the standard set by SiLabs
4493
4494 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4495
4496         * device/include/mcs51/C8051F520.h: new, added
4497         * device/include/mcs51/compiler.h: added link about predefined macros
4498
4499 2006-11-23 Raphael Neider <rneider AT web.de>
4500
4501         * src/regression/Makefile: add -L path to fresh library
4502         * src/regression/simulate: emphasize FAILED output
4503         * src/regression/create_stc: output _failures from gpsim
4504         * src/regression/compare4.c,
4505         * src/regression/rotate6.c: fixed char literals,
4506           all compile, all run =8-D
4507
4508         * src/pic/pcode.h: added isPCASMDIR macro
4509         * src/pic/gen.c (genAnd): fixed bit offset
4510         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
4511           packBits): unified register numbering schemes,
4512           (newReg): do not insert stack registers into hash table,
4513           (initStack): unpinned pseudo stack, simplified,
4514           (typeRegWithIdx): fixed retrieval of stack registers,
4515         * src/pic/pcode.c (addpCodeComment,sameBank): added,
4516           (pCodeReplace): removed invalid assertion,
4517           (insertPCodeInstruction): fixed newly added labels,
4518           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
4519           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
4520           DumpFlow): removed unsed (broken?) code,
4521           (insertBankSel): prevent STATUS from being BANKSELed,
4522           (FixRegisterBanking): rewritten from scratch, implemented generic
4523             optimizations (suppress BANKSELs to same register and to registers
4524             present in all banks),
4525           (AnalyzeBanking): update flow after BANKSELection
4526
4527         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
4528             sharebank, let linker place it, mark STKxx symbols as emitted
4529
4530 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4531
4532         * src/regression/arrays.c,
4533         * src/regression/bank1.c,
4534         * src/regression/bool2.c,
4535         * src/regression/compare7.c,
4536         * src/regression/compare8.c,
4537         * src/regression/compare9.c,
4538         * src/regression/compare10.c,
4539         * src/regression/configword.c,
4540         * src/regression/for.c,
4541         * src/regression/mult1.c,
4542         * src/regression/pointer1.c,
4543         * src/regression/rotate6.c,
4544         * src/regression/string1.c,
4545         * src/regression/struct1.c,
4546         * src/regression/Makefile: make PIC14 regression tests run again
4547           (3 fail, 6 won't compile)
4548
4549 2006-11-21 Raphael Neider <rneider AT web.de>
4550
4551         * device/include/pic16/pic18f4550.h,
4552         * device/include/pic16/pic18f4455.h,
4553         * device/lib/pic16/libdev/pic18f4550.c,
4554         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
4555         * configure.in: removed superfluous closing bracket
4556
4557 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4558
4559         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
4560           always positive.
4561
4562 2006-11-21 Raphael Neider <rneider AT web.de>
4563
4564         * src/pic/device.{c,h}: added pic14_getPIC()
4565         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
4566           (genAnd): added PIC code for one case, fixes #1597044
4567         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
4568           SFRs that are present in all banks (e.g., STATUS)
4569
4570 2006-11-20 Raphael Neider <rneider AT web.de>
4571
4572         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
4573           INCFSZ/INCFSZW and declared them as changing Z bit,
4574           (insertPCodeInstruction): correctly invert the above instructions,
4575           fixes #1599333,
4576           (DoBankSelect): don't panic on po_immediates
4577
4578 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4579
4580         * as/link/aslink.h,
4581         * as/link/mcs51/lkihx.c (newArea),
4582         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
4583         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
4584
4585 2006-11-11 Raphael Neider <rneider AT web.de>
4586
4587         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
4588           bitfield symbols, fixes #1579535 (once more...).
4589
4590 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4591
4592         * support/regression/generate-cases.py,
4593         * support/regression/fwk/include/testfwk.h,
4594         * support/regression/fwk/lib/testfwk.c: used code pointers,
4595           (about 50kByte less code generated for mcs51)
4596
4597 2006-11-06 Borut Razem <borut.razem AT siol.net>
4598
4599         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4600           debugger/mcs51/configure: fixed failed check because the function
4601           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
4602           who submitted the patch for gpsim.
4603         * debugger/mcs51/configure.in: removed the result message
4604         * debugger/mcs51/Makefile.in: fixed the config.status warning
4605           "... seems to ignore the --datarootdir setting"
4606
4607 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
4608
4609         * device/include/mcs51/c8051f020.h,
4610         * device/include/mcs51/c8051f040.h,
4611         * device/include/mcs51/c8051f060.h,
4612         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
4613         * src/z80/gen.c (gencjneshort),
4614         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
4615
4616 2006-10-31 Borut Razem <borut.razem AT siol.net>
4617
4618         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4619           debugger/mcs51/configure: get readline version
4620
4621 2006-10-30 Borut Razem <borut.razem AT siol.net>
4622
4623         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
4624         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4625           debugger/mcs51/configure: locate readline even when cross compiling
4626         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
4627
4628 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4629
4630         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
4631           serial port.
4632
4633 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4634
4635         * device/include/malloc.h,
4636         * device/lib/calloc.c,
4637         * device/lib/free.c,
4638         * device/lib/malloc.c,
4639         * device/lib/realloc.c: moved definition of struct into sources
4640         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
4641
4642 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4643
4644         * as/asx8051.dsp: corrected output directories
4645         * as/link/hc08: new directory for hc08 linker
4646         * as/hc08/aslink.h,             as/link/aslink.h,
4647         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
4648         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
4649         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
4650         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
4651         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
4652         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
4653         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
4654         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
4655         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
4656         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
4657         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
4658         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
4659         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
4660         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
4661         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
4662         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
4663         * as/link/hc08/conf.mk,
4664         * configure,
4665         * configure.in,
4666         * Makefile.in,
4667         * sdcc.dsw: moved hc08 linker to as/link/hc08
4668         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
4669         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
4670         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
4671         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
4672         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
4673         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
4674         * as/link/mcs51/aslink.dsp,
4675         * as/link/mcs51/Makefile.in: factored out the common files
4676         * as/hc08/lkstore.c: deleted, use the one already in as/link/
4677         * as/clean.mk: extra cleaning common files
4678         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
4679         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
4680         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
4681
4682 2006-10-29 Raphael Neider <rneider AT web.de>
4683
4684         * src/pic/ralloc.c (newReg): create aliases for registers with
4685           multiple names to fix #1579535 and #1584001,
4686           (regWithIdx,dirregWithName): resolve aliases on lookup
4687         * src/pic/pcode.c (DoBankSelect): die with error message on failing
4688           bankselect
4689         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
4690           to prevent build errors on small devices
4691
4692 2006-10-28 Raphael Neider <rneider AT web.de>
4693
4694         * src/pic/gen.c (genFunction,genCall): drop "same code page"
4695           assumption within interrupt handlers, fixes #1584940
4696         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
4697           "emitted" to avoid emitting them again in udata
4698
4699 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4700
4701         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
4702         Removed.
4703
4704 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4705
4706         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
4707         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
4708         on/off CR to CRLF conversion.
4709
4710 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4711
4712         * doc/sdccman.lyx: updated IRQ section
4713
4714 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4715
4716         * device/lib/serial_io.c: removed
4717         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
4718         replacements for serial_io.c
4719
4720 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
4721
4722         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
4723
4724 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4725
4726         * device/lib/serial_io.c: Default putchar() and getchar() for
4727           mcs51 uses serial port.
4728
4729 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
4730
4731         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
4732
4733 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4734
4735         * support/regression/ports/mcs51/support.c: smaller
4736         _sdcc_external_startup()
4737         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
4738
4739 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
4740
4741         * device/lib/gbz80/crt0.s,
4742         * device/lib/gbz80/crt0_rle.s,
4743         * device/lib/gbz80/div.s,
4744         * device/lib/gbz80/fstubs.s,
4745         * device/lib/gbz80/heap.s,
4746         * device/lib/gbz80/mul.s,
4747         * device/lib/gbz80/putchar.s,
4748         * device/lib/gbz80/stubs.s,
4749         * device/lib/z80/crt0.s,
4750         * device/lib/z80/crt0_rle.s,
4751         * device/lib/z80/div.s,
4752         * device/lib/z80/fstubs.s,
4753         * device/lib/z80/heap.s,
4754         * device/lib/z80/mul.s,
4755         * device/lib/z80/putchar.s,
4756         * device/lib/z80/stubs.s: reverted, I was mistaken
4757
4758 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4759
4760         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
4761         * support/regression/ports/mcs51/support.c: removed race
4762         condition on TI in _putchar allowing to use serial port mode 0
4763
4764 2006-10-20 Borut Razem <borut.razem AT siol.net>
4765
4766         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
4767
4768 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
4769
4770         * device/lib/gbz80/crt0.s,
4771         * device/lib/gbz80/crt0_rle.s,
4772         * device/lib/gbz80/div.s,
4773         * device/lib/gbz80/fstubs.s,
4774         * device/lib/gbz80/heap.s,
4775         * device/lib/gbz80/mul.s,
4776         * device/lib/gbz80/putchar.s,
4777         * device/lib/gbz80/stubs.s,
4778         * device/lib/z80/crt0.s,
4779         * device/lib/z80/crt0_rle.s,
4780         * device/lib/z80/div.s,
4781         * device/lib/z80/fstubs.s,
4782         * device/lib/z80/heap.s,
4783         * device/lib/z80/mul.s,
4784         * device/lib/z80/putchar.s,
4785         * device/lib/z80/stubs.s: removed all leading underscores from area names
4786
4787 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
4788
4789         * support/regression/ports/mcs51/support.c: use highest baudrate so the
4790           regression tests are not waiting in the simulator for simulated
4791           transmission of debug output
4792
4793 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4794
4795         * device/lib/printf_large.c: slightly smaller
4796         * doc/sdccman.lyx: do not use spaces within html links
4797
4798 2006-10-16 Borut Razem <borut.razem AT siol.net>
4799
4800         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
4801           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
4802           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
4803           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
4804           debugger/mcs51/configure:
4805           [ 1185668 ] add gnu readline support to sdcdb - enabled
4806
4807 2006-10-16 Raphael Neider <rneider AT web.de>
4808
4809         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
4810           fixes #1577882, removes close to all banking optimizations
4811
4812 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
4813
4814         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
4815           variables in code memory
4816         * support/regression/tests/absolute.c: added test for this
4817
4818 2006-10-15 Raphael Neider <rneider AT web.de>
4819
4820         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
4821           devices,
4822           (BankSelect): emit BANKSEL before touching linker-placed regs,
4823           fixes #1570934
4824
4825 2006-10-10 Raphael Neider <rneider AT web.de>
4826
4827         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
4828         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
4829         * src/pic/main.c (_pic14_parseOptions),
4830         * src/pic/main.h: mostly reverted to previous state, now use results
4831             from SDCCmain.c's argument parsing
4832
4833 2006-10-10 Borut Razem <borut.razem AT siol.net>
4834
4835         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
4836           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
4837           [ 1185668 ] add gnu readline support to sdcdb -
4838           prepared for READLINE, not enabled yet,
4839           thanks to <tal.bav AT gmail.com>
4840
4841 2006-10-10 Raphael Neider <rneider AT web.de>
4842
4843         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
4844         * src/pic16/devices.inc,
4845         * device/include/pic16 (pic18f[24]620.h),
4846         * device/include/pic18fregs.h,
4847         * device/lib/pic16/pics.all,
4848         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
4849             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
4850             Gary Plumbridge and Anton Strobl
4851
4852 2006-10-10 Raphael Neider <rneider AT web.de>
4853
4854         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
4855           --stack-siz=NUM options to configure the argument passing stack
4856         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
4857         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
4858           (pic14_getSharebankSize): obey --stack-siz=NUM,
4859           (pic14_getSharebankAddress): obey --stack-loc=NUM
4860
4861 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4862
4863         * doc/sdccman.lyx: added to the manual
4864         * doc/figures/ddd_example.png: added (neither pdflatex nor
4865         most browsers seem to like the .eps file)
4866
4867 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
4868
4869         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
4870         to /tmp and /var/tmp acc. LSB
4871         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
4872         RESULT_TYPE_IFX
4873         * support/regression/tests/onebyte.c: added test
4874
4875 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4876
4877         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
4878
4879 2006-10-05 Borut Razem <borut.razem AT siol.net>
4880
4881         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
4882           thanks to dfulab:
4883           - sdcc.dsw: changed property eol-style to CRLF
4884           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
4885
4886 2006-10-04 Raphael Neider <rneider AT web.de>
4887
4888         * device/include/pic/{pic16f84.h,pic16f84a.h},
4889         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
4890           from patch #1522504, thanks to Robas Teodor
4891
4892 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
4893
4894         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
4895           fixes bug 1566015
4896
4897 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
4898
4899         * src/pic16/glue.c (pic16emitMaps),
4900         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
4901         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
4902         * device/lib/pic16/libc/string/memcpypgm2ram.c,
4903         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
4904           Philipp Krause
4905         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
4906         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
4907
4908 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4909
4910         * support/librarian/sdcclib.c: Added option -l.
4911         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
4912           usage totals.
4913         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
4914           using Windows command prompt.
4915
4916 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
4917
4918         * device/lib/libsdcc.lib: added module rand
4919         * src/ds390/ralloc.c (rematStr),
4920         * src/hc08/ralloc.c (rematStr),
4921         * src/mcs51/ralloc.c (rematStr),
4922         * src/z80/ralloc.c (rematStr): made output more consistent
4923         * src/mcs51/gen.c: cosmetic changes
4924
4925 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
4926
4927         * src/port.h: added mem.cabs_name to PORT
4928         * src/ds390/main.c,
4929         * src/hc08/main.c,
4930         * src/mcs51/main.c,
4931         * src/pic16/main.c,
4932         * src/pic/main.c,
4933         * src/xa51/main.c,
4934         * src/z80/main.c: added cabs_name initializers
4935         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
4936           constants
4937           (emitMaps): emit absolutes in code memory into cabs_name
4938         * src/SDCCmem.c,
4939         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
4940         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
4941         * support/regression/fwk/include/testfwk.h: added define for at
4942         * support/regression/tests/absolute.c: added, new
4943
4944 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
4945
4946         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
4947           optimizations, see also patch 887161 by Stas Sergeev
4948         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
4949           to be necessary anymore,
4950           (102, 103, 104, 127): renamed all occurances of bp to _bp
4951
4952 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
4953
4954         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
4955           thanks Weston T. Schmidt for patch 1555221
4956         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
4957         * src/SDCCicode.c(geniCodeMultiply): small optimization
4958
4959 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
4960
4961         * device/include/stdlib.h: added rand prototypes
4962         * device/lib/rand.c: new, added
4963         * device/lib/Makefile.in: added rand.c
4964         * src/z80/peeph.def,
4965         * src/z80/peeph-gbz80.def,
4966         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
4967
4968 2006-09-20 Raphael Neider <rneider AT web.de>
4969
4970         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
4971
4972 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
4973
4974         * as/link/aslink.h: cosmetic changes
4975         * as/link/mcs51/Makefile.in,
4976         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
4977
4978 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
4979
4980         * as/link/aslink.h,
4981         * as/link/mcs51/aslink.h,
4982         * as/link/z80/aslink.h: merged and moved to as/link/
4983         * as/link/lkstore.c,
4984         * as/link/mcs51/lkstore.c: moved to as/link/
4985         * as/link/clean.mk: remove *.o
4986         * as/link/mcs51/alloc.h: deleted
4987         * as/link/mcs51/lkarea.c: added lnksect prototype
4988         * as/link/mcs51/lkdata.c,
4989         * as/link/mcs51/lklex.c,
4990         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
4991         * as/link/mcs51/lkmem.c,
4992         * as/link/mcs51/lknoice.c: removed include strcmpi.h
4993         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
4994         * as/link/mcs51/aslink.dsp,
4995         * as/link/mcs51/Makefile.aslink,
4996         * as/link/mcs51/Makefile.bcc,
4997         * as/link/mcs51/Makefile.in: updated for moved files
4998         * as/link/z80/lkarea.c,
4999         * as/link/z80/lkhead.c,
5000         * as/link/z80/lklex.c,
5001         * as/link/z80/lklibr.c,
5002         * as/link/z80/lklist.c,
5003         * as/link/z80/lkmain.c,
5004         * as/link/z80/lkrloc.c,
5005         * as/link/z80/lksym.c: synced with mcs51
5006         * as/link/z80/lkdata.c,
5007         * as/link/z80/lkeval.c,
5008         * as/link/z80/lkihx.c,
5009         * as/link/z80/lks19.c: cosmetic changes
5010         * as/link/z80/Makefile.in,
5011         * as/link/z80/linkgbz80.dsp,
5012         * as/link/z80/linkz80.dsp: updated for moved files
5013
5014 2006-09-16 Borut Razem <borut.razem AT siol.net>
5015
5016         * debugger/mcs51/sdcdb.c: partially fixed
5017           [ 1203664 ] sdcdb fails to open files w. two "." periods
5018         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
5019           debugger/mcs51/symtab.h: fixed indenting
5020         * configure.in, configure: up to date with latest Maarten's changes
5021
5022 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
5023
5024         as/link/mcs51
5025         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
5026         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
5027         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
5028         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
5029         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
5030         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
5031         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
5032         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
5033         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
5034         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
5035         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
5036         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
5037         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
5038         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
5039         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
5040         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
5041         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
5042         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
5043         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
5044         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
5045         as/link/mcs51/alloc.h,
5046         as/link/mcs51/clean.mk,
5047         as/link/mcs51/conf.mk,
5048         as/link/mcs51/Makefile.bcc,
5049         as/link/mcs51/Makefile.in,
5050         as/link/mcs51/readme.390,
5051         as/link/mcs51/strcmpi.c,
5052         as/link/mcs51/strcmpi.h,
5053         as/mcs51/clean.mk,
5054         as/mcs51/Makefile.bcc,
5055         as/mcs51/Makefile.in,
5056         configure,
5057         Makefile.in,
5058         sdcc.dsw: moved mcs51 linker to as/link/mcs51
5059
5060 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
5061
5062         * as/link,
5063         * as/link/Makefile.in,
5064         * as/link/z80/linkgbz80.dsp,
5065         * as/link/z80/linkz80.dsp,
5066         * configure,
5067         * link,
5068         * link/clean.mk,
5069         * link/Makefile.in,
5070         * link/README,
5071         * link/z80,
5072         * link/z80/aslink.h,
5073         * link/z80/clean.mk,
5074         * link/z80/conf.mk,
5075         * link/z80/linkgbz80.dsp,
5076         * link/z80/linkz80.dsp,
5077         * link/z80/lkarea.c,
5078         * link/z80/lkdata.c,
5079         * link/z80/lkeval.c,
5080         * link/z80/lkgb.c,
5081         * link/z80/lkgg.c,
5082         * link/z80/lkhead.c,
5083         * link/z80/lkihx.c,
5084         * link/z80/lklex.c,
5085         * link/z80/lklibr.c,
5086         * link/z80/lklist.c,
5087         * link/z80/lkmain.c,
5088         * link/z80/lkrloc.c,
5089         * link/z80/lks19.c,
5090         * link/z80/lksym.c,
5091         * link/z80/Makefile.in,
5092         * Makefile.in,
5093         * sdcc.dsw: moved link/ to as/link/
5094
5095 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
5096
5097         * as/mcs51/i51mch.c (machine): fixed warning
5098
5099 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
5100
5101         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
5102
5103 2006-09-09 Borut Razem <borut.razem AT siol.net>
5104
5105         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
5106           sdcdb WIN32 native port
5107         * src/clean.mk: fixed
5108
5109 2006-09-08 Borut Razem <borut.razem AT siol.net>
5110
5111         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
5112
5113 2006-09-08 Raphael Neider <rneider AT web.de>
5114
5115         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
5116         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
5117             to gplink to disable processor mismatch warning and to allow
5118             the use of devices with only aliased (shared) memory banks,
5119           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
5120
5121 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5122
5123         * doc/sdccman.lyx: Some re-formating plus example on using
5124           #pragma preproc_asm +/-
5125
5126 2006-09-07 Borut Razem <borut.razem AT siol.net>
5127
5128         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
5129           section
5130
5131 2006-09-06 Borut Razem <borut.razem AT siol.net>
5132
5133         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
5134           line at sdcc.nsi:153
5135         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
5136
5137 2006-09-05 Borut Razem <borut.razem AT siol.net>
5138
5139         * configure.in, configure: support for winsock2
5140         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
5141           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
5142           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
5143           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
5144           debugger/mcs51/symtab.h: sdcdb WIN32 native port
5145
5146 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
5147
5148         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
5149           and OP_DEFS
5150         * support/regression/tests/bug1551947.c: new, added
5151         * src/SDCCsymt.h: strings are char* not byte*
5152
5153 2006-09-05 Raphael Neider <rneider AT web.de>
5154
5155         * device/lib/pic16/libdev/pic18f4550.c,
5156           device/include/pic16/pic18f4550.h: added PORTD/TRISD
5157             declarations/definitions from patch #1520949
5158
5159 2006-09-05 Raphael Neider <rneider AT web.de>
5160
5161         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
5162           byte-aligned bitfields, fixes #1539278
5163
5164 2006-09-05 Raphael Neider <rneider AT web.de>
5165
5166         * src/pic/gen.c (genReceive): skip unreferenced arguments,
5167           fixes #1544120
5168
5169 2006-09-04 Borut Razem <borut.razem AT siol.net>
5170
5171         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
5172         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
5173           -mno-cygwin is a part of the compiler name
5174         * support/scripts/sdcc_mingw32: don't disable ucsim
5175
5176 2006-09-03 Borut Razem <borut.razem AT siol.net>
5177
5178         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
5179         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
5180
5181 2006-09-03 Raphael Neider <rneider AT web.de>
5182
5183         * src/pic/ralloc.c,
5184         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
5185           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
5186           fixes #1550049
5187
5188 2006-09-01 Borut Razem <borut.razem AT siol.net>
5189
5190         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
5191           to make ppc-osx happy
5192
5193 2006-08-31 Borut Razem <borut.razem AT siol.net>
5194
5195         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
5196         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
5197         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
5198         * support/regression/ports/ds390/spec.mk,
5199           support/regression/ports/mcs51/spec.mk,
5200           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
5201           To run regression tests in mingw environment:
5202           make DEV_NULL=NUL CC=gcc
5203
5204 2006-08-30 Borut Razem <borut.razem AT siol.net>
5205
5206         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
5207           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
5208           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
5209           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
5210           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
5211           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
5212           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
5213           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
5214           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
5215           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
5216           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
5217           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
5218           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
5219           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
5220           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
5221           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
5222           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
5223           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
5224           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
5225           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
5226           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
5227           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
5228           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
5229           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
5230           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
5231           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
5232           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
5233           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
5234           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
5235           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
5236           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
5237           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
5238           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
5239           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
5240           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
5241           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
5242           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
5243           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
5244           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
5245           ucsim WIN32 native port
5246
5247 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5248
5249         * doc/sdccman.lyx: added note on dynamic memory heap initialization
5250
5251 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5252
5253         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
5254         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
5255
5256 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
5257
5258         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
5259         * support/regression/tests/bug1546986.c: new, added
5260         * as/mcs51/.cvsignore,
5261         * debugger/mcs51/.cvsignore,
5262         * src/.cvsignore: deleted
5263
5264 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5265
5266         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
5267           definitions)
5268
5269 2006-08-20 Borut Razem <borut.razem AT siol.net>
5270
5271         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
5272           removed cl_listen_console::match(), cl_console::match(),
5273           restructured cl_commander::proc_input()
5274
5275 2006-08-16 Borut Razem <borut.razem AT siol.net>
5276
5277         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
5278           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
5279           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
5280
5281 2006-08-14 Borut Razem <borut.razem AT siol.net>
5282
5283         * support/regression/Makefile.in,
5284           support/regression/ports/pic14/gpsim.cmd,
5285           support/regression/ports/pic14/spec.mk,
5286           support/regression/ports/pic14/support.c:
5287           added pic14 regression test
5288
5289 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
5290
5291         * as/doc/asxhtm.html: documented changed ABS behaviour
5292         * as/doc/README: fixed some typos
5293
5294 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
5295
5296         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
5297           not defined on host
5298
5299 2006-08-12 Borut Razem <borut.razem AT siol.net>
5300
5301         * support/regression/fwk/include/testfwk.h,
5302           support/regression/fwk/lib/testfwk.c,
5303           support/regression/generate-cases.py,
5304           support/regression/Makefile.in:
5305           regression test framework does not depend on function pointers and
5306           variable arguments
5307
5308 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
5309
5310         * device/include/stddef.h: c temporary hack to fix bug 1518273
5311
5312 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5313
5314         * device/include/mcs51/cc2510fx.h: added
5315         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
5316           to projects.
5317
5318 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
5319
5320         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
5321         * as/z80/Makefile.in: added strcmpi.c
5322         * as/z80/z80adr.c: added upper case registers and lower case conditionals
5323         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
5324
5325 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
5326
5327         * device/lib/gbz80/asm_strings.s,
5328         * device/lib/gbz80/crt0_rle.s,
5329         * device/lib/gbz80/div.s,
5330         * device/lib/gbz80/mul.s,
5331         * device/lib/gbz80/shift.s,
5332         * device/lib/z80/asm_strings.s,
5333         * device/lib/z80/crt0_rle.s,
5334         * device/lib/z80/div.s,
5335         * device/lib/z80/mul.s,
5336         * device/lib/z80/shift.s: changed to all lower case menmonics except the
5337           flags which are all upper case
5338
5339 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
5340
5341         * as/z80/asm.h: made CASE_SENSITIVE 1
5342         * link/z80/aslink.h: made CASE_SENSITIVE 1
5343         * src/z80/gen.c (throughout): made all conditionals upper case
5344         * support/regression/tests/bug1503067.c: new
5345
5346 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
5347
5348         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
5349           (shiftIntoPair): added case 2 for PAIR_IY,
5350           (setupToPreserveCarry): replaced parameters with iCode and check if
5351            PAIR_DE is in use to fix bug 1399290,
5352           (genPlus, genMinus): updated call to setupToPreserveCarry
5353         * support/regression/tests/bug1399290.c: new
5354
5355 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
5356
5357         * device/lib/Makefile.in (Z80SOURCES): enabled float support
5358         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
5359         * src/ds390/gen.c (shiftRLong),
5360         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
5361         * src/mcs51/gen.c (sameReg): changed to sameByte,
5362           (xch_a_aopGet): new,
5363           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
5364            shiftRLong): fixed bug 1533966
5365         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
5366           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
5367         * support/regression/Makefile.in: disabled z80, enabled ucz80
5368         * support/regression/tests/float_trans.c: enabled test for z80 and host
5369         * support/regression/tests/shifts2.c: new, for testing bug 1533966
5370
5371 2006-08-01 Borut Razem <borut.razem AT siol.net>
5372
5373         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
5374           comparison is always false due to limited range of data type
5375           on PPC64 machine (openpower-linux1) where "char = unsigned char"
5376
5377 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
5378
5379         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
5380         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
5381         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
5382         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
5383
5384 2006-07-31 Borut Razem <borut.razem AT siol.net>
5385
5386         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
5387           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
5388           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
5389           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
5390           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
5391           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
5392           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
5393           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
5394           enable ucsim mingw compilation. Serial port is disabled,
5395           since it uses termios.h API, which is not available on native
5396           WIN32
5397
5398 2006-07-31 Borut Razem <borut.razem AT siol.net>
5399
5400         * Small Device C Compiler 2.6.0 released
5401         * support/scripts/sdcc.nsi: added FULL_DOC option
5402         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
5403
5404 2006-07-28 Borut Razem <borut.razem AT siol.net>
5405
5406         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
5407         * doc/INSTALL.txt: updated
5408
5409 2006-07-27 Borut Razem <borut.razem AT siol.net>
5410
5411         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
5412           device/lib/pic/libdev/Makefile.in: fixed bug
5413           [ 1438354 ] pic libsdcc: distclean doesn't work
5414         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
5415           device/lib/pic16/libio/Makefile.in: fixed bug
5416           [ 1438344 ] pic16 lib: clean doesn't work properly
5417         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
5418
5419 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
5420
5421         * device/lib/pic/libsdcc/fsdiv.c,
5422         * device/lib/pic/libsdcc/fsmul.c,
5423         * device/lib/pic16/libsdcc/float/fsdiv.c,
5424         * device/lib/pic16/libsdcc/float/fsmul.c,
5425         * device/lib/_fsdiv.c,
5426         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
5427         * support/regression/tests/bug1520966.c: added
5428         * doc/knownbugs.html: removed [ 1520966 ] from the list
5429
5430 2006-07-25 Borut Razem <borut.razem AT siol.net>
5431
5432         * configure.in, configure, sdccconf_in.h: fixed bug
5433           [ 1519095 ] regression test onebyte.c fails on ppc64 host
5434         * doc/knownbugs.html: removed [ 1519095 ] from the list
5435
5436 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
5437
5438         * doc/knownbugs.html: added, contains list of known bugs at release
5439         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
5440
5441 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
5442
5443         * device/include/mcs51/compiler.h: added SFRX for xdata based special
5444           function registers and corrected defaults with additional warning
5445         * device/lib/malloc.c: cosmetic changes
5446         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
5447         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
5448           (fillGaps): and used it
5449
5450 2006-07-20 Raphael Neider <rneider AT web.de>
5451
5452         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
5453           output unless SDCCPICDEBUG is set
5454         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
5455           output if SILENT is set
5456
5457 2006-07-11 Borut Razem <borut.razem AT siol.net>
5458
5459         * doc/README.txt: updated
5460
5461 2006-07-10 Borut Razem <borut.razem AT siol.net>
5462
5463         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
5464           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
5465           in WIN32 installation
5466         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
5467           release candidate 1
5468
5469 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
5470
5471         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
5472         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
5473
5474 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
5475
5476         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
5477
5478 2006-07-06 Borut Razem <borut.razem AT siol.net>
5479
5480         * support/regression/tests/bitfields.c:
5481           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
5482         * support/regression/tests/constantRange.c:
5483           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
5484
5485 2006-07-04 Borut Razem <borut.razem AT siol.net>
5486
5487         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
5488           src/port.mk,
5489           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5490           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5491           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5492           reverted changes from 2006-07-03
5493         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
5494         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
5495           added CPPFLAGS, used by the host port
5496
5497 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
5498
5499         * support/regression/valdiag/tests/switch.c,
5500         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
5501         * support/regression/tests/libmullong.c: fixed for host
5502         * support/regression/ports/host/spec.mk: disable all warnings for host,
5503         SDCC runs with --less-pedantic too
5504
5505 2006-07-03 Borut Razem <borut.razem AT siol.net>
5506
5507         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
5508           defined CPPFLAGS
5509         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
5510         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5511           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5512           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5513           include ../port.mk
5514         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
5515           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5516           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
5517           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
5518
5519 2006-07-02 Raphael Neider <rneider AT web.de>
5520
5521         * src/pic16/devices.inc,
5522         * device/include/pic16/pic18fregs.h,
5523         * device/include/pic16/pic18f4550.h,
5524         * device/lib/pic16/pics.all,
5525         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
5526
5527 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
5528
5529         * as/hc08/lkaomf51.c (OutputName),
5530         * as/mcs51/lkaomf51.c (OutputName),
5531         * as/z80/asmain.c (asmbl),
5532         * src/ds390/main.c (asmLineNodeFromLineNode),
5533         * src/hc08/ralloc.c (hc08_assignRegisters),
5534         * src/mcs51/main.c (asmLineNodeFromLineNode),
5535         * src/xa51/ralloc.c (checkRegMask),
5536         * src/xa51/gen.c (emitcode),
5537         * src/z80/gen.c (_emit2),
5538         * src/SDCCast.c (searchLitOp),
5539         * src/SDCCglobl.h,
5540         * support/packihx/packihx.c,
5541         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
5542         * src/ds390/gen.c (aopPutUsesAcc),
5543         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
5544         * support/regression/tests/libmullong.c (mullong_wrapper),
5545         * src/SDCCsymt.c (powof2),
5546         * src/SDCCast.c,
5547         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
5548         * src/SDCCsymt.h: added TYPE_TARGET_*
5549         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
5550         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
5551         SDCCast because 1) header problems 2) this is the right place
5552         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
5553         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
5554         prototype
5555
5556 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
5557
5558         * src/SDCCicode.h: removed buggy semicolon in unused macro
5559         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
5560         search for previous definiton of auto symbols too,
5561         (findPrevUse): fixed logic of emitWarnings
5562
5563 2006-06-26 Raphael Neider <rneider AT web.de>
5564
5565         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
5566           PCLATH and PCLATU on interrupts, potentially fixes #1505141
5567
5568 2006-06-25 Raphael Neider <rneider AT web.de>
5569
5570         * device/lib/pic/libm: NEW, added math library functions
5571         * device/lib/pic/libsdcc: NEW; added float support functions
5572         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
5573         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
5574           NEW, added math related headers
5575         * device/include/asm/pic/features.h: NEW
5576         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
5577           (popGet): allow larger offsets for AOP_PCODE,
5578           (genDataPointerSet): handle literals explicitly, more debug output,
5579           (genAssign): fixed for float using aopLiteral ;-)
5580         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
5581           GOTO initialisation routine
5582         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
5583           flag on registers, fixes #1469043 (local variables do not work)
5584         * src/pic/main.c (_pic14_do_link),
5585         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
5586           available
5587
5588 2006-06-25 Borut Razem <borut.razem AT siol.net>
5589
5590         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
5591           characters printed (not including the trailing '\0' used to end
5592           output to strings). Problem detected in regression test bug-927659.c.
5593           NOTE: printf() family functions should return int instead
5594           unsigned int!
5595         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
5596           specifier are printed as themselves
5597         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
5598           support flags, width and precision specifiers
5599
5600 2006-06-24 Borut Razem <borut.razem AT siol.net>
5601
5602         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
5603           to the list of sdcc tagrets not supporting bit type
5604         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
5605           testfor pic16 due to bug:
5606           [ 1511794 ] pic16: regression test bug-895992.c fails
5607
5608 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
5609
5610         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
5611         * src/SDCCglue.c (initPointer), fixed bug 1496419
5612         * support/regression/tests/bug1496419.c: new, added
5613
5614 2006-06-22 Borut Razem <borut.razem AT siol.net>
5615
5616         * support/regression/ports/pic16/support.c: use gpsim usart module from
5617           libgpsim_modules library
5618
5619 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5620
5621         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
5622         IP0H to IPH0.
5623
5624 2006-06-19 Raphael Neider <rneider AT web.de>
5625
5626         * src/pic/glue.h,src/pic16/glue.h: added prototypes
5627         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
5628           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
5629           (pic14printExterns,pic14printPublics,pic16printPublics,
5630           pic16_printExterns): use new functions to emit symbols
5631           (picglue,pic16glue): emit publics before emitting externs
5632         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
5633           locally defined functions to avoid bug #1443651
5634         * support/regression/tests/bug-716242.c: removed pic16 workaround
5635         * support/regression/ports/pic16/spec.mk: ignore errors during build
5636
5637 2006-06-19 Raphael Neider <rneider AT web.de>
5638
5639         * src/pic/glue.h: added pic14aopLiteral prototype
5640         * src/pic/glue.c (pic14aopLiteral): return unsigned int
5641         * src/pic/gen.c: removed stdint.h dependency
5642           (aopGet): use Safe_strdup()
5643           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
5644           (genDataPointerSet): use pic14aopLiteral()
5645         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
5646           for pic16; thanks to Bernhard and Maarten
5647
5648 2006-06-18 Borut Razem <borut.razem AT siol.net>
5649
5650         * support/regression/tests/structflexarray.c: flexible array members
5651           not supported by gcc < 3
5652         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
5653           GUI tool by default
5654         * src/pic/gen.c: don't include [p]strdin.h on solaris
5655         * support/Util/pstdint.h: addad svn attributes
5656         * support/regression/tests/constantRange.c,
5657           support/regression/tests/rotate.c: include inttypes.h instead
5658           stdint.h on solaris, addad svn attributes
5659
5660 2006-06-18 Raphael Neider <rneider AT web.de>
5661
5662         * src/SDCCsymt.c (initCSupport): change return type of divschar to
5663           int for PIC16
5664         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
5665           (pic16_genMinusBits): simplified sign-extension
5666           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
5667             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
5668             adjusted to correctly handle mixed-signed operands, disabled
5669             now unused multiplciation routines
5670         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
5671           (assignResultValue): added argument denoting the size of the result
5672             as returned by the function (fixes upcasts in assigning from
5673             function calls: char foo(); int i = foo();)
5674           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
5675             function result to assignResultValue
5676           (genMult): disabled inlined multiplication code
5677           (genDiv): augmented to also handle the modulus operator, fixed to
5678             handle mixed-signed operands correctly
5679           (genMod): simply call genDiv, disabled unused code
5680           (genAssign): fixed missing (sign-)extension on result
5681         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
5682             valid char operands, allow signed operands for native code, added
5683             division and modulo operator handling
5684         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
5685
5686         As a consequence, onebyte.c (if split into two files) and muldiv.c
5687         pass regression tests.
5688
5689 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5690
5691         * doc/Makefile.in: two runs of makeindex seem needed to get
5692         correct page references in the index of sdccman.pdf
5693         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
5694
5695 2006-06-17 Borut Razem <borut.razem AT siol.net>
5696
5697         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
5698
5699 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5700
5701         * doc/sdccman.lyx: updated, added (porting source code, debugging),
5702         mentioned ec2drv and paulmon
5703
5704 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
5705
5706         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
5707           consecutive abs areas
5708           (find_empty_space, allocate_space): added map to handle codemap or
5709            xdatamap,
5710           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
5711            absolute idata and xdata
5712         * as/mcs51/lkmem.c (summary2): updated legend
5713
5714 2006-06-16 Raphael Neider <rneider AT web.de>
5715
5716         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
5717
5718 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
5719
5720         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
5721           1208515
5722         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
5723
5724 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
5725
5726         * src/port.h (struct PORT): added field gp_tags, to hold the tag
5727         value of generic pointers,
5728         * src/avr/main.c,
5729           src/ds390/main.c,
5730           src/hc08/main.c,
5731           src/izt/i186.c,
5732           src/izt/tlcs900h.c,
5733           src/mcs51/main.c,
5734           src/pic/main.c,
5735           src/pic16/main.c,
5736           src/xa51/main.c,
5737           src/z80/main.c: PORT structure, added elements for gp_tags field,
5738         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
5739         fields in the PORT structure of each port,
5740         * src/SDCCast.c (decorateType): allow processing of generic pointers
5741         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
5742         S_FIXED symbols
5743
5744 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
5745
5746         * link/z80/lkgb.c,
5747         * link/z80/lkgg.c,
5748         * src/pic16/gen.c,
5749         * src/pic16/main.c,
5750         * src/pic16/pcode.c,
5751         * src/pic/main.c,
5752         * src/pic/pcoderegs.c,
5753         * src/SDCCicode.c,
5754         * src/SDCCmain.c,
5755         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
5756           bug 1504689 on minGW
5757
5758 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5759
5760         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
5761
5762 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
5763
5764         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
5765
5766 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
5767
5768         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
5769           for optimization
5770
5771 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
5772
5773         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
5774         to a char variable. Fixed bug #1504211
5775         * device/include/pic16/adc.h,
5776         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
5777         and fixed bug #1364390
5778
5779 2006-06-10 Borut Razem <borut.razem AT siol.net>
5780
5781         * CVSROOT: removed the CVS left-over
5782
5783 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
5784
5785         * as/hc08/asmain.c (asexit),
5786         * as/hc08/lkmain.c (lkexit),
5787         * as/mcs51/asmain.c (asexit),
5788         * as/mcs51/lkmain.c (lkexit),
5789         * src/SDCCglue.c (DEFSETFUNC),
5790         * src/SDCCmain.c (linkEdit, assemble),
5791         * support/librarian/sdcclib.c (AddRel),
5792           replaced unlink() by standard C remove()
5793         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
5794         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
5795           gatherImplicitVariables): new, added to fix bug 608752,
5796           (createFunction): added gatherImplicitVariables()
5797         * src/SDCCast.h: added createRMW prototype
5798         * src/SDCCsymt.h (struct symbol): added infertype
5799         * support/regression/tests/bug608752.c: new, added
5800
5801 2006-06-10 Raphael Neider <rneider AT web.de>
5802
5803         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
5804           multibyte dummy reads (fixes #1503234)
5805
5806 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
5807
5808         * device/include/mcs51/compiler.h: new, added header file to enable
5809           creating common sfr definition header files for different compilers
5810
5811 2006-06-05 Raphael Neider <rneider AT web.de>
5812
5813         * src/pic16/{pcode.h,genarith.c}:
5814           introduced pCodeOp combining any two pCodeOps (previously only
5815           two register operands could be combined), removed pcop2 from
5816           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
5817         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
5818         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
5819           rewritten to use new PO_TWO_OPS
5820         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
5821         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
5822           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
5823           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
5824           (pic16_get_op): embraced return arg to allow #define return(x),
5825             added new case for combined opcodes
5826           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
5827           (pic16_pCode2str,pic16_getRegFrompCodeOp,
5828            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
5829
5830 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
5831
5832         * src/SDCCval.c (checkConstantRange): added
5833         * src/SDCCval.h: added checkConstantRange
5834         * support/Util/SDCCerr.c,
5835         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
5836         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
5837         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
5838         * src/SDCCast.c (decorateType): added checkConstantRange,
5839         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
5840         can be emitted with the correct always true/false warning,
5841         added optimization for double '!';
5842         result of decorateType() must be assigned back to the tree, because
5843         decorateType() can change the tree
5844         * src/SDCCicode.c (geniCodeLogic),
5845         (geniCodeAssign): replaced new checkConstantRange, added warnings,
5846         (checkConstantRange): removed, it was only a fragment which never
5847         emitted a warning
5848         * src/SDCCsymt.c (computeType): fixed promotion for
5849         "-1 < (unsigned bit) b"
5850         * src/pic/ralloc.c (packRegsForAssign),
5851         * src/pic16/ralloc.c (packRegsForAssign),
5852         * src/hc08/ralloc.c (packRegsForAssign),
5853         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
5854         from mcs51
5855         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
5856         * support/regression/tests/constantRange.c: added
5857         * support/valdiag/tests/constantRange.c: added
5858         * support/valdiag/valdiag.py: added -DPORT_HOST=1
5859
5860 2006-06-02 Borut Razem <borut.razem AT siol.net>
5861
5862         * support/regression/ports/pic16/support.c: increase stack size
5863           to 255 bytes
5864         * support/regression/Makefile.in: sort tests by name so that the
5865           resutlts can be compared on different machines / platforms
5866
5867 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5868
5869         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
5870         * src/ds390/gen.c (emitLabel): new, added,
5871           (genDjnz): fixed stack overflow bug,
5872           (throughout): cosmetic changes to sync with mcs51/gen.c,
5873           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
5874         * src/mcs51/gen.c (genEndFunction): small optimization,
5875           (throughout): cosmetic changes to sync with ds390/gen.c
5876
5877 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5878
5879         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
5880           (_print_format): fixed printing pointers
5881         * src/mcs51/gen.c (emitLabel, movb): new, added,
5882           (genAssign): small optimization,
5883           (genDjnz): fixed stack overflow bug,
5884           (throughout): replaced sprintf with SNPRINTF,
5885           replaced mcs51_regWithIdx with REG_WITH_INDEX,
5886           replaced emitcode("mov", "b,...") with MOVB(...),
5887           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
5888           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
5889         * src/mcs51/peeph.def: added rules 140 and 264
5890         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
5891           so they may get optimized into registers
5892
5893 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
5894
5895         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
5896           immediately when encountered,
5897           (printUsage): always use stderr even on windows
5898
5899 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
5900
5901         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
5902         (processParms): fixed bug #1247551
5903         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
5904         parseCmdLine, main): print '--version' to stdout,
5905         print 'help' to stdout if --help is given,
5906         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
5907         arguments are given; fixed --help
5908
5909 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
5910
5911         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
5912         * support/regression/tests/bug-1493710.c: added
5913
5914 2006-05-27 Borut Razem <borut.razem AT siol.net>
5915
5916         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
5917           static instead auto
5918         * support/regression/ports/pic16/support.c: increase stack size
5919           from default 64 bytes to 128 bytes
5920         * support/regression/tests/staticinit.c,
5921           support/regression/tests/float.c: regression tests fully enabled
5922           for pic16 port by putting the initialized data arrays into the code
5923           section
5924         * support/regression/ports/pic16/spec.mk: don't link default libraries.
5925           This was changed by mistake in the previous version.
5926
5927 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
5928
5929         * src/pic16/gen.c (genFunction, genEndFunction): some
5930         beautifications, fixed bug with falsely restoring FSR2 in large
5931         stack model, thanks to Beau E. Cox for reporting the bug
5932
5933 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
5934
5935         * debugger/mcs51/break.c,
5936         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
5937           use %p to print pointers, made address variables unsigned
5938         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
5939         * debugger/mcs51/symtab.c (parseSymbol): must return something
5940         * src/mcs51/gen.c (aopForSym): small optimization,
5941            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
5942           (freeAsmop): added missing break,
5943           (aopPut): removed parameter bvolatile, determine it inside the function,
5944           (saveRegisters, unsaveRegisters): small optimization,
5945           (genIpush): removed pointless check,
5946           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
5947           replaced sprintf with SNPRINTF,
5948           replaced strcpy with strncpyz,
5949           updated aopPut calls,
5950           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
5951         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
5952
5953 2006-05-24 Borut Razem <borut.razem AT siol.net>
5954
5955         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
5956           modification of test for the pic16 port, put the array to the code
5957           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
5958
5959 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5960
5961         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
5962         * support/Util/pstdint.h: added
5963
5964 2006-05-22 Borut Razem <borut.razem AT siol.net>
5965
5966         * src/regression/Makefile: removed bool2.c test, added -q linker option
5967         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
5968           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
5969           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
5970           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
5971           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
5972           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
5973           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
5974           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
5975           define SUPPORT_BIT_TYPES 0, removed unused bit variables
5976
5977 2006-05-22 Raphael Neider <rneider AT web.de>
5978
5979         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
5980           bug #1492360 (problematic due to generic pointers, see code)
5981
5982 2006-05-22 Borut Razem <borut.razem AT siol.net>
5983
5984         * support/regression/ports/pic16/specs.mk: removed stack size linker
5985           directive
5986         * support/regression/tests/array.c,
5987           support/regression/tests/bitopcse.c,
5988           support/regression/tests/bug-908454.c,
5989           support/regression/tests/malloc.c: modified for pic16 regression test
5990         * support/regression/tests/bitfields.c:
5991           pic16 - excluded bitfileds of size > 8
5992         * support/regression/tests/bp.c: pic16 - reduced data size
5993         * support/regression/tests/bug-221100.c: pic16 - reduced data size
5994         * support/regression/tests/bug-460010.c:
5995           pic16 - used the absolute address the fits in memory
5996         * support/regression/tests/bug-716242.c:
5997           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
5998         * support/regression/tests/float.c:
5999           pic16 - excluded - data size too big
6000         * support/regression/tests/onebyte.c:
6001           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
6002         * support/regression/tests/shifts.c:
6003           pic16 - function names probably have to differ in first X characters
6004           (gpasm limitation?)
6005         * support/regression/tests/staticinit.c:
6006           pic16 - excluded some tests due error: no target memory available for
6007           section ".idata"
6008
6009 2006-05-22 Borut Razem <borut.razem AT siol.net>
6010
6011         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
6012           second try. Thanks Stas Sergeev once more.
6013
6014 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
6015
6016         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
6017           (genLeftShift, genRightShift): fixed bug 1491627
6018         * src/hc08/peeph.def (rules 7, 8.x): added
6019         * support/regression/tests/shifts.c (ShiftLeftByParam,
6020           ShiftRightByParam, testShiftByParam): added to test variable shifting
6021
6022 2006-05-20 Raphael Neider <rneider AT web.de>
6023
6024         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
6025         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
6026           (allocReg): add only new registers to dynAllocRegs,
6027           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
6028             #1489055, #1445850, and probably #1483693
6029
6030 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
6031
6032         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
6033         bug in for-loop that didn't emit the last of CONFIG and ID registers
6034
6035 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
6036
6037         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
6038           with offset
6039         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
6040           1489016, 1434401 and 1490124
6041         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
6042           1489016, 1434401 and 1490124
6043
6044 2006-05-17 Borut Razem <borut.razem AT siol.net>
6045
6046         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
6047           thanks Stas Sergeev
6048
6049 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
6050
6051         * device/include/mcs51/P89c51RD2.h,
6052         * device/include/mcs51/P89LPC901.h,
6053         * device/include/mcs51/P89LPC922.h,
6054         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
6055
6056 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6057
6058         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
6059         to fix missing stack pragma in compiled binary object file,
6060
6061 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
6062
6063         * support/packihx/configure.in,
6064         * support/packihx/configure: removed warning, autoconf >= 2.5x can
6065         determine sizeof basic types even while cross compiling
6066
6067 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
6068
6069         * src/avr/gen.c (aopop),
6070         * src/ds390/gen.c (aopOp),
6071         * src/hc08/gen.c (aopOp),
6072         * src/mcs51/gen.c (aopop),
6073         * src/pic16/gen.c (pic16_aopOp),
6074         * src/pic/gen.c (aopOp),
6075         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
6076         if size of operand is smaller than spill location
6077
6078 2006-05-12 Borut Razem <borut.razem AT siol.net>
6079
6080         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
6081           have to have CR/LF line endings even if they are checked out on *nix
6082           or on WIN32 in cygwin binmode
6083
6084 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
6085
6086         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
6087         * device/include/ds80c390.h: added sfr16 definitions
6088         * src/ds390/gen.c,
6089         * src/ds390/gen.h,
6090         * src/ds390/main.c,
6091         * src/ds390/ralloc.c,
6092         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
6093           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
6094           bit returning functions
6095         * support/regression/tests/sfr16.c: enabled test on ds390
6096
6097 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6098
6099         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
6100         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
6101
6102 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
6103
6104         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
6105         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
6106           (cl_address_space constructor): removed expensive initialization,
6107           (cl_address_space::get_cell): extended for late initialization,
6108           (cl_address_space::*): use late initialization,
6109           (cl_address_decoder::activate): removed expensive initialization,
6110           This reduced regression test running time by 25%
6111
6112 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
6113
6114         * packihx/,
6115         * configure.in,
6116         * configure,
6117         * sdcc.dsw,
6118         * Makefile.bcc,
6119         * Makefile.in,
6120         * support/packihx/Makefile.in,
6121         * support/packihx/clean.mk,
6122         * support/packihx/Makefile.bcc,
6123         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
6124
6125 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6126
6127         * src/SDCCval.c (valNot): fix for regression test failure
6128           of not.c on big endian hosts
6129
6130 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
6131
6132         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
6133
6134 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6135
6136         * device/lib/mcs51/Makefile.in: changed string comparison operator
6137           to = for POSIX compliance; == is bash extension
6138
6139 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
6140
6141         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
6142           kosmonaut_pirx
6143
6144 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
6145
6146         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
6147         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
6148         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
6149         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
6150         bug report #1478657,
6151
6152 2006-05-05 Borut Razem <borut.razem AT siol.net>
6153
6154         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
6155           making the html
6156
6157 2006-05-02 Borut Razem <borut.razem AT siol.net>
6158
6159         * doc/Makefile.in: removed *.ind dependency since there is no rule to
6160           create *.ind, which made make to fail if invoked with -j 2
6161
6162 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
6163
6164         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
6165           Hubert Sack for patch 1479782
6166
6167 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
6168
6169         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
6170
6171 2006-05-01 Raphael Neider <rneider AT web.de>
6172
6173         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
6174           (create_pic): store only prefix-free device name,
6175           (init_pic): check for device names with "16" prefix,
6176           (list_valid_pics),
6177         * src/pic/device.h (struct PIC_device),
6178         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
6179             stored device name,
6180         * device/include/pic/pic12f{635,675,629,683}.h,
6181         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
6182         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
6183         * device/include/pic/pic16f505.h,
6184         * device/lib/pic/libdev/pic16f505.c: removed
6185         * device/include/pic/pic14devices.txt: added support for pic12f
6186             devices, removed unsupported non 16-bit devices
6187             [above changes provided by patch from Zik Saleeba]
6188         * src/pic/*, src/pic16/*, device/include/pic16/*,
6189           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
6190
6191 2006-05-01 Borut Razem <borut.razem AT siol.net>
6192
6193         * configure.in, configure, doc/Makefile.in:
6194           sync with nightly build makefile - latex, dvipdf and dvips
6195           not needed any more
6196
6197 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
6198
6199         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
6200         in the library source
6201
6202 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
6203
6204         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
6205
6206 2006-04-28 Raphael Neider <rneider AT web.de>
6207
6208         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
6209         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
6210           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
6211         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
6212
6213 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
6214
6215         * device/lib/pic/libdev/Makefile.in,
6216         * device/lib/hc08/Makefile.in,
6217         * device/lib/gbz80/Makefile.in,
6218         * device/lib/z80/Makefile.in,
6219         * device/lib/ds390/Makefile.in,
6220         * device/lib/ds400/Makefile.in: added srcdir to include search path,
6221         thanks to Borut for the bug report
6222         * configure.in,
6223         * configure: always create doc/Makefile independent from --enable-doc
6224         * Makefile.in: always install from directory doc independent from
6225         --enable-doc
6226         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
6227         removed
6228         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
6229         * doc/Makefile.in: install *.txt if present
6230         * device/include/Makefile.in (install): added installation of pic/*.inc
6231         and pic/*.txt files again, they were erroneously removed
6232
6233 2006-04-28 Raphael Neider <rneider AT web.de>
6234
6235         * src/pic/{gen.c,main.h,pcode.c},
6236         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
6237             concerning signedness with casts
6238
6239 2006-04-28 Raphael Neider <rneider AT web.de>
6240
6241         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
6242             definition of an interrupt handler,
6243         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
6244             interrupt handler stuff from picglue() to separate routine,
6245           (picglue): enabled definition of intr handlers in files w/o main()
6246
6247 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6248
6249         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
6250           compilation with MSVC 2005 Express Edition (VC8)
6251
6252 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
6253
6254         * device/lib/Makefile: fixed build of gbz80 lib
6255
6256 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
6257
6258         * support/regression/tests/bug-460010.c,
6259         * support/regression/tests/bug-524691.c,
6260         * support/regression/tests/bug-716242.c: removed conditional defines
6261           that are already in testfwk.h
6262
6263 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
6264
6265         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
6266           (AccAXRsh1): added, shift right by 1,
6267           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
6268            AccAXLrl1
6269         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
6270
6271 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
6272
6273         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
6274         remove cast to same type
6275         * src/SDCCast.c (decorateType): fix for RFE 1475742,
6276         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
6277         * as/z80/Makefile,
6278         * link/z80/Makefile: removed, they have moved to
6279         Makefile.in files
6280         * configure,
6281         * configure.in: replaced duplicate message about ucsim by missing sdcpp
6282         * install-sh: fix bug #1204398 by setting umask 0022
6283         * device/lib/Makefile: separate build of z80 and gbz80 lib
6284
6285 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
6286
6287         Enabled VPATH feature: changed nearly all Makefiles (149 files).
6288         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
6289
6290         One basic decision: e.g. src/clean.mk includes further files. In order
6291         to make this work there are two solutions:
6292         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
6293           run configure on them. This way they can use
6294           'include $(srcdir)/port-clean.mk'
6295         - always include clean.mk by the Makefile at the same level. To avoid
6296           that `make clean` tries to include and build Makefile.dep the
6297           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
6298           implemented, because now even `make uninstall` doesn't create
6299           Makefile.in. clean.mk could be eliminated by pasting it in
6300           Makefile.in.
6301
6302         * debugger/mcs51/Makefile.in: build own objects from library sources
6303         (SLIB, SDCC) in current directory
6304
6305         * configure, configure.in: renamed --disable-device-lib-build in
6306         --disable-device-lib; added --enable-doc, the required tools are
6307         searched by configure; added result message; the toolchain for the
6308         belonging ports are now only built, if the port is enabled.
6309
6310         * support/regression/*: all output is written in directory gen, because
6311         the fwk and ports directories don't livet in the build tree using vpath
6312
6313         * doc/sdccman.lyx: renamed --disable-device-lib-build to
6314         --disable-device-lib, added --enable-doc, added section VPATH
6315
6316         * sim/ucsim/configure.in,
6317         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
6318         z80 are enabled by default
6319
6320 2006-04-24 Raphael Neider <rneider AT web.de>
6321
6322         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
6323             to config word, "pic14_"-prefixed some extern functions
6324           (pic14_emitConfigWord): emit __config directive(s) if assignment to
6325             config word has been found
6326         * src/pic/device.h: added prototypes
6327         * src/pic/pcode.c: added "pic14_"-prefix where needed
6328         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
6329             fixup
6330         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
6331             words,
6332           (pic14emitRegularMap): ignore config words,
6333           (pic14createInterruptVect): moved generating __config directives away
6334           (picglue): have __config directives emitted
6335
6336 2006-04-24 Borut Razem <borut.razem AT siol.net>
6337
6338         * doc/Makefile: sync with nightly build makefile
6339
6340 2006-04-24 Raphael Neider <rneider AT web.de>
6341
6342         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
6343             registers that have not been assigned proper liveranges,
6344             fixes #1469504 and #1474602,
6345           (pCodeRegOptimizeRegUsage): fixed typo in comment
6346
6347 2006-04-24 Borut Razem <borut.razem AT siol.net>
6348
6349         * device/examples/main8051.c: deleted - it was removed from CVS
6350           24.mar.2000 and after that modified 18.feb.2001, so it reappered
6351           after the transition to Subversion
6352         * src/SDCCalloc.h: deleted - it was removed  from CVS
6353           3.feb.2001 and after that modified 18.feb.2001, so it reappered
6354           after the transition to Subversion
6355         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
6356           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
6357           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
6358           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
6359
6360 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
6361
6362         * as/asx8051.dsp: added mcs51/strcmpi.h
6363         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
6364         * as/hc08/aslink.h: updated lnksect prototype
6365         * as/hc08/asm.h,
6366         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
6367         * as/hc08/asmain.c,
6368         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
6369           (newdot): handle A_ABS
6370         * as/hc08/asout.c,
6371         * as/mcs51/asout.c (outarea): output address
6372         * as/hc08/lkaomf51.c,
6373         * as/mcs51/lkaomf51.c: disabled unused array UsageType
6374         * as/hc08/m08pst.c,
6375         * as/mcs51/i51pst.c,
6376         * as/z80/z80pst.c: "ABS" is not A_OVR
6377         * as/hc08/lkarea.c (newarea): read a_addr,
6378           (lnkarea): added codemap array, sort absolute areas to the front,
6379            combine all GSINITx/GSFINAL,
6380           (find_empty_space, allocate_space): new functions,
6381           (lnksect): return next address, handle absolute sections
6382         * as/mcs51/lkarea.c (newarea): read a_addr,
6383           lnksect2 prototype changed,
6384           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
6385           (find_empty_space, allocate_space): new, factored out of lnksect2,
6386           (lnksect2): return next address, handle absolute sections
6387         * as/hc08/lkhead.c,
6388         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
6389         * as/hc08/lklibr.c (addfile, fndsym),
6390         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
6391           index out of range and detect both '\' and '/'
6392         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
6393         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
6394           regression tests (ds390 cannot return bool yet)
6395         * doc/sdccman.lyx: changed version number, document changed --no-peep,
6396           document critical interrupts on z80, document changed SDCC define
6397         * src/asm.c (_asxxxx_mapping): fixed .org directive,
6398           (_a390_mapping): added .org directive
6399         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
6400           (genMultOneByte): fixed warnings
6401         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
6402           ones
6403         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
6404         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
6405           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
6406         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
6407         * src/pic16/main.c: removed newReg prototype
6408         * src/pic16/pcode.c,
6409         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
6410           warnings
6411         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
6412           ones
6413         * src/pic16/ralloc.c
6414         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
6415           to fix warnings
6416         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
6417           from short to PIC_OPTYPE
6418         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
6419         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
6420           optype from short to PIC_OPTYPE
6421         * src/port.h: made int_size unsigned to fix warnings
6422         * src/SDCC.y: fixed warning on MSVC
6423         * src/SDCCicode.c (getArraySizePtr): return unsigned int
6424         * src/SDCCopt.c (convertToFcall): fixed warnings
6425         * src/SDCCsymt.h: removed double prototype for genSymName
6426         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
6427           offset int to fix warnings
6428
6429 2006-04-22 Borut Razem <borut.razem AT siol.net>
6430
6431         * doc/sdccman.lyx, */Makefile, */Makefile.in:
6432           references to CVS replaced with Subversion
6433
6434 2006-04-21 Borut Razem <borut.razem AT siol.net>
6435
6436         * doc/sdccman.lyx, */Makefile, */Makefile.in:
6437           references to CVS replaced with Subversion
6438
6439 2006-04-19 Borut Razem <borut.razem AT siol.net>
6440
6441         * src/version.awk: adapted for svn
6442         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
6443           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
6444           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
6445           /binutils-avr/etc/*.vi, *.jin: removed all properties
6446           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
6447
6448 2006-04-19 Borut Razem <borut.razem AT siol.net>
6449
6450         * CVS to Subversion migration completed
6451
6452 2006-04-18 Borut Razem <borut.razem AT siol.net>
6453
6454         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}/lib/pic/*.o,
6455           ${DEV_ROOT}/lib/src/pic/libdev/*.S, ${DEV_ROOT}/lib/src/pic/libdev/*.inc
6456
6457 2006-04-17 Borut Razem <borut.razem AT siol.net>
6458
6459         * device/include/Makefile.in: added pic/*.inc to the installation
6460
6461 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
6462
6463         * support/regression/collate-results.py: fixed output in case of
6464         a valdiag error
6465         * support/regression/generate-cases.py: fixed splitting of pathnames
6466         with dots
6467         * as/hc08/lklibr.c (addfile),
6468         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
6469
6470 2006-04-11 Raphael Neider <rneider AT web.de>
6471
6472         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
6473         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
6474         * src/pic16/pcode.c (assignValnums): fixed #1460578
6475
6476 2006-04-11 Raphael Neider <rneider AT web.de>
6477
6478         * device/lib/pic/libdev/*.c,
6479         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
6480           fixes #1468739, enables compilation in --std-c99 mode
6481         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
6482
6483 2006-04-11 Raphael Neider <rneider AT web.de>
6484
6485         * src/pic/device.c (find_device): removed debug output
6486           (list_valid_pics): enabled verbose listing of supported devices
6487         * device/include/stdbool.h: define bool as char for pic14/16 as well
6488
6489 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6490
6491         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
6492
6493 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6494
6495         * .version: bumped version to 2.5.6
6496         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
6497
6498 2006-04-06 Raphael Neider <rneider AT web.de>
6499
6500         * .version: bumped version to 2.5.6 (pic14 ABI changed)
6501         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
6502         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
6503           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
6504             pic14_constructAbsMap
6505           (pic14printPublics): declare absolute global symbols as global
6506           (pic14createInterruptVect),
6507         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
6508           (newReg): assume new registers unused, use correct name in
6509             hashtable (reg->name instead of name), more debugLog output
6510         * src/pic/device.h (PIC_device): added fields for verbose output
6511         * src/pic/device.c: moved device definition to pic14devices.txt,
6512             added routines for runtime parsing of pic14devices.txt,
6513             added support for second config word
6514         * src/pic/main.c (_process_pragma): removed #pragma maxram,
6515           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
6516           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
6517           (_pic14_parseOptions): moved pCodeInitRegisters here
6518           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
6519         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
6520           (pCodeInitRegisters): rewrapped comments, perpared new approach to
6521             handling the pseudo stack
6522         * device/lib/Makefile.in: ignore failures in objects-pic16,
6523         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
6524         * device/lib/pic/NEWS: document new dependency on picXXX.lib
6525         * device/lib/pic/Makefile.subdir,
6526         * device/lib/pic16/Makefile.subdir: improved clean rules
6527         * device/lib/pic/libdev/: NEW, pic14 device libraries
6528         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
6529         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
6530         * device/include/Makefile.in: create subdir and install pic14 headers
6531         * device/include/pic/p16f_common.inc: removed unused declarations
6532         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
6533             PICs from inc2h.pl v1.6,
6534             replaced BIT_AT macros with struct declarations
6535         * device/include/pic/pic14devices.txt: definition of supported devices,
6536             all above improvements contributed by Zik Saleeba, thanks
6537         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
6538         * support/scripts/sdcc.nsi: also install pic14 device libraries and
6539             headers
6540
6541 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6542
6543         * device/include/mcs51/c8051f410.h: added interrupt numbers,
6544         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
6545           thanks to Charles Olds
6546
6547 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6548
6549         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
6550
6551 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6552
6553         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
6554         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
6555         * support/regression/bug1464657.c: added, new test
6556
6557 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6558
6559         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
6560           version number
6561
6562 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6563
6564         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
6565           --no-peep and --peep-file <file> are used don't use default rules but
6566           do use the <file>
6567
6568 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6569
6570         * src/mcs51/gen.c (genCall): fixed bug 1457608
6571
6572 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6573
6574         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
6575         changes seem to cause (trigger?) problems with the build system.
6576
6577 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
6578
6579         * src/SDCCpeeph.c (operandsLiteral): new, added,
6580           (callFuncByName): inserted operandsLiteral
6581         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
6582
6583 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6584
6585         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
6586         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
6587
6588 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
6589
6590         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
6591           implemented patch 1120823 Thanks to Willy De la Court (normal
6592           interrupts need an interrupt number now if they are made critical),
6593           and enabled nesting of critical functions though not for gbz80
6594           (genCritical, genEndCritical): added functions
6595           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
6596         * src/z80/mappings.i: added "ei" to all mappings
6597
6598 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6599
6600         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
6601         submitted by the Debian SDCC maintainer Aurelien Jarno:
6602         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
6603         archive with gcc 4.1 on mips and wrote the patch"
6604
6605 2006-03-16 Raphael Neider <rneider AT web.de>
6606
6607         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
6608           the left operand is shorter than the result (c* = lit-c* + int),
6609           fixes bug #1450796
6610         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
6611           OP_SYMBOL
6612
6613 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6614
6615         * src/.version: increased version number to 2.5.5
6616         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
6617         linking is done manually in pic16 port's _linkEdit,
6618         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
6619         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
6620         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
6621         allocate asmop as AOP_ACC,
6622         (aopForRemat): added parameter 'bool result' in function declaration,
6623         (pic16_aopGet): return AOP_ACC when accessing WREG,
6624         (pic16_popGetTempReg): minor modification,
6625         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
6626         'pic16_allocWithIdx',
6627         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
6628         calling function in absolute addresses,
6629         (genAssign): take into account AOP_ACC asmop,
6630         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
6631         * src/pic16/pcoderegs.c: some debug functions and lines added,
6632         * src/pic16/ralloc.c (decodeRegType): added but commented out,
6633         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
6634         register too,
6635         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
6636         call to allocReg, not by manually allocating a new one,
6637         (pic16_assignRegisters): now before going through the register
6638         allocating functions mark all registers as free. This eliminates some
6639         side effects resulting from peephole parser done earlier in the backbone
6640
6641 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
6642
6643         * src/SDCCicode.c (geniCodeLogic),
6644         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
6645
6646 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
6647
6648         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
6649           (genSend): bugfix, do not allocate and free twice,
6650           (shiftRLong): handle partially overlapping aops
6651         * support/regression/tests/bitopcse.c: fixed warning redefined idata
6652
6653 2006-03-08 Borut Razem <borut.razem AT siol.net>
6654
6655         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
6656           for pic16
6657
6658 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
6659
6660         * support/regression/tests/bug1409955.c: new, added
6661         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
6662         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
6663           (aopForSym, aopOp): increment asmop.allocated if reused,
6664           (freeAsmop): decrement asmop.allocated and check for zero instead of
6665           using asmop.freed,
6666           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
6667           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
6668            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
6669            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
6670            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
6671            genSignedRightShift, genRightShift, genDataPointerGet,
6672            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
6673            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
6674             in reverse order from allocation,
6675           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
6676             added swappedLR to keep track
6677         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
6678           pdata & code for GCC, z80, gbz80 & hc08
6679         * support/regression/tests/zeropad.c: moved defines to testfwk.h
6680
6681 2006-03-08 Raphael Neider <rneider AT web.de>
6682
6683         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
6684
6685 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
6686
6687         * device/include/mcs51/c8051f410.h: new SiLabs mcu
6688         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
6689         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
6690
6691 2006-03-06 Borut Razem <borut.razem AT siol.net>
6692
6693         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
6694           made the linker quiet
6695
6696 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
6697
6698         * src/pic16/gen.c (genPcall): fixed bug #1443644
6699         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
6700         which dumps before the function entry point a data byte which represents
6701         the number of the local variables used by the specified function, added
6702         'xinst' for initial support for Extended Instruction Support,
6703         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
6704         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
6705         port->fun_prefix anymore (may change later),
6706         (genFunction, genEndFunction): do not store/restore local registers for
6707         _main (this should take care the --main-return command line option in
6708         the future),
6709         (genOr): removed some legacy pic-port instructions,
6710         * src/pic16/genarith.c (genAddLit): re-enabled old code because
6711         performing operations with SFR's causes data to be written more than
6712         once to each SFR. Perhaps SFRs should be handled in special cases...
6713         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
6714         pcode.h
6715         * src/pic16/main.c (_process_pragma): stack bound checking did not take
6716         into account for stack starting position,
6717         (struct OPTIONS pic16_optionsTable): added command line argument
6718         --extended or -y for Extended Instruction Support,
6719         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
6720         (deassignLRs): *** perhaps the most important change, old 'for' code
6721         (commented out for reference), didn't account for some registers which
6722         were left marked 'not free' after a pointer operation. The change
6723         reduces register usage a lot in some cases
6724
6725 2006-03-04 Borut Razem <borut.razem AT siol.net>
6726
6727         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
6728           _clean
6729         * support/regression/tests/bug-524697.c: decreased array size for
6730           mcs51 to fit into the internal RAM
6731         * support/regression/Makefile.in: a little bit more verbose
6732
6733 2006-03-03 Borut Razem <borut.razem AT siol.net>
6734
6735         * support/regression/fwk/lib/testfwk.c,
6736           support/regression/fwk/include/testfwk.h: introduced function
6737           _prints(), nonrecursive _printn(), call _initEmu() from main()
6738         * support/regression/ports/gbz80/support.asm,
6739           support/regression/ports/ucz80/support.asm,
6740           support/regression/ports/z80/support.asm,
6741           support/regression/ports/ds390/support.c,
6742           support/regression/ports/hc08/support.c,
6743           support/regression/ports/host/support.c,
6744           support/regression/ports/mcs51/support.c,
6745           support/regression/ports/xa51/support.c: added empty _initEmu()
6746           function
6747         * support/regression/ports/pic16/gpsim.cmd,
6748           support/regression/ports/pic16/spec.mk,
6749           support/regression/ports/pic16/support.c,
6750           support/regression/Makefile.in: added pic16 regression test
6751
6752 2006-03-01 Raphael Neider <rneider AT web.de>
6753
6754         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
6755           genConstPointerGet): use safe way of generating MOVFF to cover
6756             literals as well as registers, fixes bug #1440527
6757         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
6758             dereference
6759           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
6760             more correctly, fixes bug #1232186
6761           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
6762         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
6763             gplink guess the correct processor in more cases, applied patch
6764             from Till Riedel attached to and fixing bug #1436552
6765
6766 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6767
6768         * support/regression/tests/array.c: added, contains check for #1434401
6769         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
6770
6771 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
6772
6773         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
6774         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
6775         * device/include/mcs51/c8051f326.h,
6776         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
6777         * device/include/mcs51/c8051f000.h,
6778         * device/include/mcs51/c8051f018.h,
6779         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
6780           PCON_IDLE,PCON_STOP and added sfr16 definitions
6781
6782 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
6783
6784         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
6785           genGetWord): fixed bug 1409955
6786
6787 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
6788
6789         * device/include/hc08/mc68hc908gp32.h,
6790         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
6791
6792 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
6793
6794         * src/SDCCast.c (constExprValue): return NULL if not a value
6795         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
6796         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
6797         * support/regression/tests/bitfields.c: enabled signed bitfield for all
6798
6799 2006-02-13 Borut Razem <borut.razem AT siol.net>
6800
6801         * src/regression/ptrarg.c: added, fails due to bug #1430967
6802         * src/regression/Makefile: ptrarg.c added, ...
6803
6804 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
6805
6806         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
6807         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
6808
6809 2006-02-11 Borut Razem <borut.razem AT siol.net>
6810
6811         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
6812           print "Processor: xxx" message to stdout only if --verbose
6813
6814 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
6815
6816         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
6817         * support/regression/tests/bug1426356.c: added
6818         * support/regression/tests/bitfields.c: removed 2 tests
6819
6820 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
6821
6822         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
6823         * device/include/mcs51/c8051f330.h,
6824         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
6825           PCON_IDLE,PCON_STOP and added sfr16 definitions
6826         * device/lib/_divsint.c,
6827         * device/lib/_divuint.c,
6828         * device/lib/_divulong.c,
6829         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
6830           register bank bug for small stackauto
6831
6832 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
6833
6834         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
6835
6836 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
6837
6838         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
6839         * all.dsp: corrected several bin paths
6840         * device/include/mcs51/c8051f120.h,
6841         * device/include/mcs51/c8051f300.h,
6842         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
6843           to PCON_IDLE,PCON_STOP
6844         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
6845         * device/lib/printf_large.c (output_float): fixed bug 1388703
6846         * support/regression/tests/bug1057979.c: added test for bug 1388703
6847
6848 2006-02-08 Raphael Neider <rneider AT web.de>
6849
6850         * src/pic/pcode.c (pciTRIS): fixed typo,
6851           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
6852           (LinkFlow): fixed handling of flows that end in a call,
6853           (ReuseReg): perform safety check earlier
6854         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
6855             to work with flows at the beginning of a pBlock,
6856             fixes #1426557 (Symbol not previously defined),
6857           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
6858             usage information
6859           (RemoveUnusedRegisters): update register usage info
6860         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
6861             created, reuse existing ones instead
6862         * src/pic/gen.c (genPcall): fixed #1424719
6863
6864 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
6865
6866         * link/z80/lkmain.c,
6867         * link/z80/lklex.c,
6868         * link/z80/lkdata.c,
6869         * link/z80/aslink.h: fixed build on current cygwin:
6870         replaced getline() by lk_getline()
6871
6872 2006-02-01 Borut Razem <borut.razem AT siol.net>
6873
6874         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
6875           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
6876           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
6877           src/regression/bool1.c, src/regression/bool2.c,
6878           src/regression/bool3.c, src/regression/call1.c,
6879           src/regression/compare.c, src/regression/compare10.c,
6880           src/regression/compare2.c, src/regression/compare3.c,
6881           src/regression/compare4.c, src/regression/compare5.c,
6882           src/regression/compare6.c, src/regression/compare7.c,
6883           src/regression/compare8.c, src/regression/compare9.c,
6884           src/regression/configword.c, src/regression/for.c,
6885           src/regression/inline.c, src/regression/mult1.c,
6886           src/regression/nestfor.c, src/regression/or1.c,
6887           src/regression/pointer1.c, src/regression/ptrfunc.c,
6888           src/regression/rotate1.c, src/regression/rotate2.c,
6889           src/regression/rotate3.c, src/regression/rotate4.c,
6890           src/regression/rotate5.c, src/regression/rotate6.c,
6891           src/regression/rotate7.c, src/regression/string1.c,
6892           src/regression/struct1.c, src/regression/sub.c,
6893           src/regression/sub2.c, src/regression/switch1.c,
6894           src/regression/while.c, src/regression/xor.c,
6895           src/regression/create_stc, src/regression/simulate,
6896           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
6897           regression tests
6898         * src/regression/gpsim_assert.h: added
6899
6900 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
6901
6902         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
6903         ((void (code *) (void)) 0) ();
6904         * as/hc08/aslex.c,
6905         * as/hc08/aslink.h,
6906         * as/hc08/asm.h,
6907         * as/hc08/asmain.c,
6908         * as/hc08/lkdata.c,
6909         * as/hc08/lklex.c,
6910         * as/hc08/lkmain.c,
6911         * as/mcs51/aslex.c,
6912         * as/mcs51/aslink.h,
6913         * as/mcs51/asm.h,
6914         * as/mcs51/asmain.c,
6915         * as/mcs51/lkdata.c,
6916         * as/mcs51/lklex.c,
6917         * as/mcs51/lkmain.c,
6918         * as/z80/aslex.c,
6919         * as/z80/asm.h,
6920         * as/z80/asmain.c: fixed build on current cygwin:
6921         replaced getline() by as_getline()
6922
6923 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6924
6925         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
6926         declarator in the symbol chain
6927         * src/SDCCsymt.h,
6928         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
6929         parameter list for function pointers
6930         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
6931         * support/regression/tests/bug-716242.c: added
6932
6933 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
6934
6935         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
6936         offset if possible
6937         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
6938
6939 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
6940
6941         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
6942         inifinitely recurseable, added static
6943         * support/regression/tests/bug-1408066.c: added
6944
6945 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
6946
6947         * src/SDCCicode.h,
6948         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
6949         renamed, added possibility to create "postLoopLbl"-labels
6950         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
6951         newiTempLoopHeaderLabel
6952         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
6953         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
6954         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
6955         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
6956         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
6957         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
6958         (basicInduction): fixed bug #136564, made static,
6959         (loopInduction): changed parameter of basicInduction, made static,
6960         (addPostLoopBlock): added
6961         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
6962         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
6963         findLoopEndSeq
6964         * support/regression/tests/bug-136564.c: added
6965         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
6966         --std-sdcc99 to LIBSDCCFLAGS
6967
6968 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
6969
6970         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
6971         while loop
6972         * support/regression/tests/bug-1406131.c: added
6973
6974 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
6975
6976         * src/SDCCast.c (decorateType): fix promotion of unary minus
6977         * src/SDCCsymt.c (computeType): beautified
6978         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
6979         (valUnaryPM, valComplement): fix sign and promotion,
6980         (valNot): ANSI: result type is int (SDCC: unsigned char)
6981         * support/regression/tests/uminus.c: speedup by removing superflous
6982         test case 'int'
6983         * support/regression/tests/onebyte.c: added promotion and signedness
6984         tests for unary minus
6985         * support/regressions/tests/bug-477927.c: disable warning about
6986         uninitialized variables
6987         * support/regression/tests/not.c: added
6988
6989 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
6990
6991         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
6992         * src/mcs51/gen.c (gen51Code): show final register usage after
6993         fillGaps in asm with --i-code-in-asm
6994         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
6995         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
6996         incUsed, rliveClear, adjustIChain): made static,
6997         (setFromRange): excluded because it's unused,
6998         (findPrevUseSym, markWholeLoop): added,
6999         (findPrevUse): rewritten; fixes bug 895992; now a complete search
7000         through all branches of predecessors enables sdcc to emit the warning
7001         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
7002         (rlivePoint): made static, added parameter emitWarnings which is only
7003         true during the first run out of two,
7004         (findRecursiveSucc, findRecursivePred): removed,
7005         (computeLiveRanges): made static, added parameter emitWarnings,
7006         (dumpIcRlive): added for debugging only
7007         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
7008         removed prototype of setFromRange()
7009         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
7010         in call of computeLiveRanges()
7011         * support/regression/tests/bug-895992.c: added
7012         * support/regression/tests/bug-971834.c: added
7013         * support/valdiag/tests/bug-895992.c: added
7014         * support/valdiag/tests/bug-971834.c: added
7015
7016 2005-12-18 Raphael Neider <rneider AT web.de>
7017
7018         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
7019           (genUnpackBits): improved code for direct operands,
7020           (genPackBits): improved code for literal assignment to bitfields
7021             and for direct destination operands (no FSR indirection),
7022             prevented redundant AND, fixes #1362800,
7023           (AccLsh): added parameter to disable masking of the result
7024         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
7025           skip instructions with side-effects (like incfsz),
7026           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
7027         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
7028         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
7029           fixes #1375263
7030
7031 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
7032
7033         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
7034         volatile variables as spill location
7035
7036 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
7037
7038         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
7039         replacing literals
7040         * support/regression/tests/bug-1376320.c: added
7041
7042 2005-12-08 Raphael Neider <rneider AT web.de>
7043
7044         * src/pic/device.c: renamed is_shared to pic14_is_shared
7045         * src/pic/gen.c (genIfx): re-enabled handling of sbits
7046         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
7047           (is_valid_identifier): added for above workaround
7048
7049 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
7050
7051         * device/lib/Makefile.in: fixed to enable port-specific-objects
7052         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
7053           char, thanks Hubert Sack
7054         * doc/sdccman.lyx: documented --xstack-loc,
7055           elaborated a bit more on interrupts and pitfalls,
7056           removed "setjmp/longjmp unsupported",
7057           documented some unsupported C99 features
7058         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
7059         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
7060           if, thanks Hubert Sack
7061         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
7062         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
7063           make make_library
7064         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
7065           regression tests can report resource usage (rfe 700441)
7066         * support/regression/collate-results.py: report resource usage
7067         * support/regression/ports/ds390/spec.mk,
7068         * support/regression/ports/hc08/spec.mk,
7069         * support/regression/ports/mcs51/spec.mk,
7070         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
7071         * support/regression/ports/ds390/uCsim.cmd,
7072         * support/regression/ports/hc08/uCsim.cmd,
7073         * support/regression/ports/mcs51/uCsim.cmd,
7074         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
7075         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
7076           library, use the default one
7077         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
7078           building the library
7079
7080 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
7081
7082         * config.dsp: added dependency on .version and configure_vc.awk
7083         * device/include/setjmp.h: updated for --stack-auto and --xstack
7084         * device/include/mcs51/at89c51snd1c.h: corrected line endings
7085         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
7086         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
7087         * device/lib/libsdcc.lib: added _setjmp
7088         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
7089           (decorateType): fixed bug 1372851,
7090           (optimizeGetHbit): fixed warning
7091         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
7092           array initialisation
7093         * support/regression/tests/bug1057979.c: added test for bug 1358192
7094         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
7095
7096 2005-12-03 Borut Razem <borut.razem AT siol.net>
7097
7098         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
7099           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
7100
7101 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
7102
7103         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
7104         createIval): implement symbol independant "flexible array member",
7105         (createIvalCharPtr): implemented flexible array initialisation with a
7106         string
7107         * src/SDCCsymt.c (copyStruct): removed,
7108         (getSize): fixed misleading comment,
7109         (getAllocSize): removed, the additional allocation size is now in
7110         sym->flexArrayLength,
7111         (checkStructFlexArray): new, syntax checks for flexible array members,
7112         (compStructSize): added syntax checks for "flexible array members"
7113         (copyStruct): removed,
7114         (copyLinkChain): removed inefficient fix for bug 770487
7115         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
7116         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
7117         symbol->flexArrayLength
7118         * src/SDCCerr.c,
7119         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
7120         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
7121         * support/regression/tests/structflexarray.c: added
7122         * support/valdiag/tests/structflexiblearray.c: added
7123
7124 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
7125
7126         * src/SDCCast.c (decorateType): fixed bug 1368489
7127         * support/Util/SDCCerr.c,
7128         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
7129
7130 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7131
7132         * device/include/mcs51/at89c51snd1c.h: added file submitted by
7133           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
7134
7135 2005-11-27 Borut Razem <borut.razem AT siol.net>
7136
7137         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
7138           support/cpp2/mkdeps.h: added command line option
7139           -obj-ext=<extension> to SDCPP to define object file externion, used
7140           for generation of make dependencies (-M)
7141         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
7142
7143 2005-11-26 Borut Razem <borut.razem AT siol.net>
7144
7145         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
7146           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
7147           added pic and pic16 libraries
7148
7149 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7150
7151         * device/include/float.h: Corrected typo in prototype of __fsgt
7152
7153 2005-11-25 Borut Razem <borut.razem AT siol.net>
7154
7155         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
7156           added creation of model-mcs51-stack-auto libraries
7157
7158 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
7159
7160         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
7161         and fields-list too
7162         * src/SDCCast.c (createIvalArray): removed obsolete comment
7163
7164 2005-11-24 Borut Razem <borut.razem AT siol.net>
7165
7166         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
7167           added missing device/lib/mcs51/crt*.asm sources
7168
7169 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
7170
7171         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
7172
7173 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
7174
7175         * device/lib/_fs2schar.c,
7176         * device/lib/_fs2sint.c,
7177         * device/lib/_fs2slong.c: optimized inline asm
7178
7179 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7180
7181         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
7182           Better handling of floats between -1.0 and 0.0.
7183
7184 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7185
7186         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
7187           (the missing "if"s prohibited removal of redundant labels)
7188
7189 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7190
7191         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
7192           Properly convert floats between -1.0 and 0.0 to long, int, and char
7193           types (max integer value of negative floats tends to zero).
7194         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
7195           Removed changes made so to work properly with floats between
7196           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
7197           and _fs2char.c
7198
7199 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
7200
7201         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
7202         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
7203         (genCast) cosmetic change
7204         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
7205         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
7206         from mcs51
7207         * support/regression/tests/bitfields (testSignedBitfields): added
7208
7209 2005-11-18 Borut Razem <borut.razem AT siol.net>
7210
7211         * sdcc/device/lib/Makefile.in: remove all unnecessary files
7212         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
7213           introduced SILENT option to make building of pic16 libraries less
7214
7215 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7216
7217         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
7218           Now they work properly with floats between -1.0 and 0.0
7219         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
7220
7221 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
7222
7223         * src/SDCCicode.c (printOperand): added missing else
7224
7225 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
7226
7227         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
7228         reformatted for better readability
7229         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
7230         signed bitfields
7231
7232 2005-11-17 Borut Razem <borut.razem AT siol.net>
7233
7234         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
7235           introduced SILENT option to make building of pic16 libraries less
7236           verbose - used for nightly snapshot build
7237         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
7238           available on Win32 platforms.
7239         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
7240           medium, large, pic and pic16
7241
7242 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7243
7244         * device/lib/printf_large.c: Temporary patch for bug 1358192:
7245           printf("%f"...) sets fraction to zero.
7246
7247 2005-11-16 Raphael Neider <rneider AT web.de>
7248
7249         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
7250           fixes #1357221
7251         * src/pic/gen.c (genIfx): implemented for CARRY bit
7252         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
7253           to generic pointers, fixes #1357332,
7254           (pic16_movLit2f): NEW,
7255           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
7256
7257 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
7258
7259         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
7260
7261 2005-11-11 Raphael Neider <rneider AT web.de>
7262
7263         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
7264         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
7265           compute pointer's type from operand,
7266           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
7267           improved single bit reads, fixes bug #1353379
7268
7269 2005-11-09 Borut Razem <borut.razem AT siol.net>
7270
7271         * support/scripts/sdcc.nsi: added lib/pic to the package
7272
7273 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
7274
7275         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
7276
7277 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
7278
7279         * support/regression/tests/bug1348008.c: added
7280         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
7281         * support/regression/tests/bug1337835.c: updated comment
7282
7283 2005-11-06 Borut Razem <borut.razem AT siol.net>
7284
7285         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
7286           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
7287           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
7288           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
7289           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
7290           dynamic construction of cl_error_class and derivates - 2.nd try
7291
7292 2005-11-05 Borut Razem <borut.razem AT siol.net>
7293
7294         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
7295           bug, which caused Bus Errors on sparc solaris
7296
7297 2005-11-04 Borut Razem <borut.razem AT siol.net>
7298
7299         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
7300           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
7301           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
7302           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
7303           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
7304           and derivates to resolve the initialization problem on OSX
7305
7306 2005-11-02 Borut Razem <borut.razem AT siol.net>
7307
7308         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
7309           corrected typo - #include <winsock2.h>
7310
7311 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
7312
7313         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
7314           (_asxxxx_mapping): added org directive for future enhancements
7315
7316 2005-11-01 Borut Razem <borut.razem AT siol.net>
7317
7318         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
7319           enabled sockets on WIN32
7320         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
7321
7322 2005-10-31 Borut Razem <borut.razem AT siol.net>
7323
7324         * support/regression/generate-cases.py: escape backslashes in {testcase}:
7325           WIN32 backslash path delimiters should be escaped when used in C strings
7326         * support/regression/tests/bitfields.c: exclude failing assertions for
7327           __CYGWIN32__ and __MINGW32__ hosts
7328
7329 2005-10-30 Borut Razem <borut.razem AT siol.net>
7330
7331         * src/SDCCutil.c: corrected double comparison typo
7332
7333 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
7334
7335         * device/lib/medium/Makefile: added for new memory model medium
7336         * device/include/asm/mcs51/features.h: updated for medium/pdata
7337         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
7338           added Multiply & Accumulate sbit's and MAC0_PAGE define
7339         * device/include/mcs51/c8051f300.h: added sfr16 definitions
7340         * device/include/mcs51/c8051f310.h: added sfr16 definitions
7341         * device/lib/_mullong.c: update for medium model
7342         * device/lib/incl.mk: added medium model
7343         * doc/sdccman.lyx: documented medium model
7344         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
7345         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
7346         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
7347         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
7348           (allocParms): set SCLS and OCLS to pdata for medium model
7349         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
7350           for pdata,
7351           (powof2): return <0 if not power of 2
7352         * src/avr/gen.c (genBitWise): use updated powof2
7353         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
7354           (shiftR2Left2Result): small optimization in setup, save acc when storing,
7355           (shiftLLeftOrResult): use B if necessary
7356         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
7357         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
7358         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
7359         * support/regression/Makefile.in: added test-mcs51-medium
7360         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
7361
7362 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
7363
7364         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
7365         specifier unsigned
7366         * device/lib/time.c (mktime): fixed bug 1334315
7367
7368 2005-10-28 Raphael Neider <rneider AT web.de>
7369
7370         * device/include/pic/p16f_common.inc: added common declarations
7371         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
7372
7373 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
7374
7375         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
7376           (aopPutUsesAcc): added to predict accumulator use,
7377           (assignResultValue): save acc if necessary,
7378           (genMinusDec): store result if indirectly addressed,
7379           (genDivOneByte):  save acc if necessary,
7380           (movLeft2Result): bugfix if left already in acc,
7381           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
7382             attention to accumulator use (esp. pdata),
7383           (genReceive): receive pdata correctly
7384         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
7385         * src/SDCCicode.h: added isOperandInPagedSpace prototype
7386
7387 2005-10-27 Raphael Neider <rneider AT web.de>
7388
7389         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
7390
7391 2005-10-27 Raphael Neider <rneider AT web.de>
7392
7393         * .version: changed version to 2.5.4
7394         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
7395         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
7396           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
7397             arithmetics support routines
7398         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
7399         * device/lib/Makefile.in: also create installdir for pic
7400
7401         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
7402           pic14 port as well
7403         * src/pic/device.c (dump_sfr): rewritten to delegate register
7404           placement to the linker (use `extern sym' rather than sym EQU addr),
7405           (validAddress): fixed to check last specified address
7406         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
7407           (popGetLit): truncate literal value to 8 bit,
7408           (popGet): moved assert to more appropriate place
7409           (popGetExternal): create pCode operand from and mark the according
7410             symbol as being `extern'
7411           (popGetAddr): added sanity check on immediate's offset, provide
7412             GPOINTER tag on demand
7413           (aopPut): fixed for immediates,
7414           (mov2w_op): move operand's address or contents to WREG (depending on
7415             operand type), safer variant of mov2w,
7416           (movwf,call_libraryfunc): NEW, handy abbreviations,
7417           (get_argument_pcop,get_return_val_pcop,pass_argument,
7418           get_returnvalue): interface for accessing function parameters and
7419             return values,
7420           (assignResultValuei,genRet): use new parameter/return value interface
7421           (pic14_getDataSize): back to old version handling generic pointers,
7422           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
7423             provided implementation and/or fixed old one,
7424           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
7425             calls, removed legacy 8051 reference code
7426           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
7427           (loadSignToC): NEW, move the operands sign bit to CARRY,
7428           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
7429             genRightShiftSigned, accepts negative shift counts,
7430           (setup_fsr): load FSR and adjust IRP (indirect memory access),
7431           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
7432             generic pointers, __data pointers and __code pointers,
7433           (genUnpackBits,genPackBits): rewritten to work with generic pointers
7434             and signed bitfields, limit bitfields to 8 bit,
7435           (genDataPointerGet): fixed number of bytes read,
7436           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
7437           (genPointerGet,genPointerSet): fixed handling of __code pointers,
7438             pointers to constant data are no longer assumed to point to __code
7439             space, removed invalid pointer types,
7440           (bitpatternFromVal): retrieve the PICs representation of an integer
7441             or float literal,
7442           (genDataPointerSet): fixed assigning to po_immediate operands,
7443           (genGenPointerSet): implemented as library call,
7444           (genIfx): fixed incorrect condition,
7445           (genAddrOf): limit generic pointers' addresses to 2 bytes,
7446             provide GPOINTER tag according to destination's storage class,
7447           (genCast): added code to handle casting to generic pointers, added
7448             sign-/zero extension of the result
7449           (aop_isLitLike,op_isLitLike): fixed handling of immediates
7450         * src/pic/gen.h: added macros to access IRP bit in STATUS register
7451         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
7452           extend the result
7453         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
7454           address/register resides in the shared banks
7455           (emitSymbolToFile): improved to handle global and `pinned' symbols,
7456             put all variables into separate sections (have the linker arrange
7457             them)
7458           (picglue): put init code and interrupt handlers in separate sections
7459         * src/pic/main.c: added port specific options table, modified to PORT
7460           structure to make GPOINTERs 3 byte, added pic14_options
7461           (_pic14_do_link): private linking routine (update paths to libraries,
7462             add libsdcc.lib by default)
7463         * src/pic/main.h: declare pic14_options
7464         * src/pic/pcode.c: fixed instructions i/o relations,
7465           (RegCond): reverted to correct version,
7466           (newpCodeOpLit): truncate literals to 8 bit,
7467           (genericPrint): added debug output,
7468           (getRegFromInstruction): fixed for various operand types, simplified
7469           (BuildFlow): fixed broken handling of isntructions with labels
7470           (LinkFlow): start at last instruction in flow (skip trailing comments),
7471             pass the flow on to the next instruction after CALL
7472           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
7473           (insertPCodeInstruction): fixed inserting after a skip instruction,
7474           (DoBankSelect): fixed for labeled instructions
7475           (OptimizepBlock): honor --nopeep switch
7476           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
7477         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
7478         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
7479           (pCodeOptime2pCodes): allow disabling this optimization via
7480             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
7481             but is still buggy), started implementation of a dataflow based
7482             pCode optimization (CSE + dead code elimination)
7483           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
7484         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
7485           names are independant of the stack location and therefore portable across
7486           devices
7487
7488 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
7489
7490         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
7491           (selectSpil): fixed bug 1337835 by not spilling bit variables
7492         * support/regression/tests/bug1337835.c: added test for this bug
7493         * src/mcs51/peeph.def: restart after rule 3.c,
7494           addded rules 263.x to optimize loading constants
7495
7496 2005-10-26 Raphael Neider <rneider AT web.de>
7497
7498         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
7499         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
7500           (genAssign): emit warning when casting literals to generic pointer
7501             type, also applies when taking the address of a fixed variable,
7502           (genCast): improved casting to generic pointers
7503         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
7504           extern variables, added verbose error message
7505         * device/include/pic16/{string.h,errno.h}: added #pragma library c
7506
7507 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
7508
7509         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
7510         carry must be complemented too
7511         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
7512         could be emitted by genMinus
7513         * src/SDCCval.c (constVal): fixed bug 1305065
7514
7515 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
7516
7517         * src/SDCCast.c (addCast): added promotion for bit variables
7518         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
7519         promotion casts + optimisation
7520         (optimizeGetWord): fix warning 'i' might be used uninitialized
7521         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
7522         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
7523
7524 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
7525
7526         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
7527         all chars are promoted to int; promotion should be handled in SDCCast.c
7528
7529 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7530
7531         * device/lib/_strcmp.c: Fixed bug 1326457
7532
7533 2005-10-11 Raphael Neider <rneider AT web.de>
7534
7535         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
7536         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
7537
7538 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
7539
7540         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
7541         * support/regression/tests/sfr16.c: added test for the sfr32 bug
7542
7543 2005-10-04 Raphael Neider <rneider AT web.de>
7544
7545         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
7546           device/lib/pic16/pics.all: added pic18f1320
7547         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
7548
7549 2005-09-30 Raphael Neider <rneider AT web.de>
7550
7551         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
7552         * src/pic16/devices.inc: NEW, provides device descriptions
7553         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
7554
7555 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
7556
7557         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
7558           GETHBIT
7559
7560 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
7561
7562         * doc/sdccman.lyx: updated Highest Order Bit documentation,
7563           documented Any Order Bit, Higher Order Byte and Higher Order Word
7564         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
7565         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
7566           (optimizeGetAbit): new, to get any bit, not only the high bit,
7567           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
7568           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
7569           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
7570           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
7571             RIGHT_OP: also try GETBYTE, GETWORD optimization,
7572             GETABIT, GETBYTE, GETWORD: decorate them,
7573           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
7574           (ast_print): added GETABIT, GETBYTE, GETWORD
7575         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
7576         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
7577           (geniCodeBinary): new generic binary icode,
7578           (ast2iCode): added GETABIT, GETBYTE, GETWORD
7579         * src/port.h: updated comment for PORT.hasExtBitOp
7580         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
7581           (genGetByte): new, to get a single byte,
7582           (genGetWord): new, to get a word from a long,
7583           (gen51Code): added GETABIT, GETBYTE, GETWORD
7584         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
7585
7586 2005-09-23 Raphael Neider <rneider AT web.de>
7587
7588         * configure.in, configure: have device/lib/pic configured
7589         * device/lib/Makefile.in: added model-pic14
7590         * device/lib/clean.mk: added pic/ to clean rule
7591         * device/lib/pic: added rudimentary pic14 library providing support
7592           functions for multiplication/division/generic pointer access
7593         * src/SDCCopt.c (convilong): mark support functions as extern
7594           for pic14 port as well
7595         * src/pic/gen.c (genMult): added assertions,
7596           (genpic14Code): emit warning on unhandled iCodes
7597         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
7598         * src/pic/pcode.c (pCodeOpCopy),
7599         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
7600           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
7601           SFR_REGISTER}), made safe for future extensions
7602         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
7603           instructions even if preceeded by SKIP instructions (also remove
7604           them); removed unused code
7605         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
7606           prevents leaving parts of the structure uninitialized after copying
7607
7608 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
7609
7610         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
7611           ago by me
7612         * support/regression/tests/addsub.c: added test for the bug
7613
7614 2005-09-21 Raphael Neider <rneider AT web.de>
7615
7616         * device/include/pic16/pic18f1220.h,
7617           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
7618         * device/lib/pic16/Makefile.rules: added missing opening paren
7619         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
7620           are provided in genutils.c,
7621           (genUminusFloat,genUminus,genCmpEq): added asserts on different
7622           operand/result sizes,
7623           (genCmp): assert on NULL pointers first, then check deref'ed values
7624         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
7625           result size
7626
7627 2005-09-18 Raphael Neider <rneider AT web.de>
7628
7629         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
7630           as these are now unused,
7631           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
7632         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
7633           local, avoids uninitialized pointer dereference on r->name
7634         * src/pic16/ralloc.c (newReg): fixed indentation
7635
7636 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
7637
7638         * src/SDCCval.c (constVal): fixed bug 730366
7639         * support/Util/SDCCerr.c,
7640         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
7641
7642 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
7643
7644         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
7645
7646 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
7647
7648         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
7649
7650 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7651
7652         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
7653           (hex2dec): made hex_digit unsigned char, removed ascii dependance
7654         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
7655           (hex2dec): made hex_digit unsigned char, removed ascii dependance
7656         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
7657         * packihx/packihx.c (hexDigit): made c unsigned char
7658         * as/mcs51/lklibr.c (fndsym),
7659         * link/z80/lkgb.c (gb),
7660         * link/z80/lklibr.c (fndsym),
7661         * link/z80/lkrloc.c (relr),
7662         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
7663         * src/SDCC.lex (checkCurrFile, process_pragma),
7664         * src/SDCCglue.c (spacesToUnderscores),
7665         * src/SDCCmain.c (setParseWithComma, processFile),
7666         * src/asm.c (tvsprintf, printCLine),
7667         * src/avr/gen.c (emitcode, aopPut),
7668         * src/ds390/gen.c (emitcode),
7669         * src/hc08/gen.c (emitcode, emitinline),
7670         * src/mcs51/gen.c (emitcode, genInline),
7671         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
7672           tokenizeLineNode),
7673         * src/pic/ralloc.c (debugLog),
7674         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
7675           tokenizeLineNode),
7676         * src/pic16/ralloc.c (debugLog),
7677         * src/z80/main.c (_process_pragma):
7678            made all ctype.h function calls safe
7679         * src/SDCCopt.c: include math.h for fabs
7680         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
7681           and used them throughout the code to make ctype.h function calls safe
7682         * src/ds390/main.c (asmLineNodeFromLineNode),
7683         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
7684         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
7685            unsigned char*
7686         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
7687           (newpCodeAsmDir): made ctype.h function calls safe
7688         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
7689           pic16_emitcode):  made lbp unsigned char*
7690         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
7691           (pic16_newpCodeAsmDir): made ctype.h function calls safe
7692         * src/xa51/gen.c (emitcode),
7693         * src/z80/gen.c (_emit2): made lbp unsigned char*
7694         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
7695            char*
7696
7697 2005-09-05 Raphael Neider <rneider AT web.de>
7698
7699         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
7700           access bank splitpoint
7701
7702 2005-09-05 Raphael Neider <rneider AT web.de>
7703
7704         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
7705
7706 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
7707
7708         * .version: changed to version 2.5.3
7709         * doc/sdccman.lyx: changed version to 2.5.3,
7710           documented --codeseg and --constseg and pragma codeseg and constseg,
7711           documented bit parameters (reentrant) and bit returning
7712         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
7713            currFunc->recvSize, but is this ok for all ports?
7714           (ast2iCode): result of ~ on unsigned char must be cast to int for
7715            bool to work
7716         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
7717           function pointers in bit space
7718         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
7719           (processFuncArgs): call port.reg_parm() with reentrancy info
7720         * src/port.h,
7721         * src/avr/main.c,
7722         * src/ds390/main.c,
7723         * src/hc08/main.c,
7724         * src/pic/main.c,
7725         * src/pic16/main.c,
7726         * src/xa51/main.c,
7727         * src/z80/main.c: port.reg_parm prototype extended with
7728           "bool reentrant" parameter
7729         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
7730           options.stackAuto for allocating bit register parameters
7731         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
7732           (genSend): set BitBankUsed if it is,
7733           (selectRegBank): factored out of genCall for use in genPcall,
7734           (genCall): removed redundant dtype assignmen, use selectRegBank,
7735           (genPcall): handle returning in Carry properly, save in F0 if needed,
7736           (genReceive): handle bit register parameters
7737         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
7738           (mcs51_assignRegisters): enable bit registers for all reentrant
7739            functions and don't set BitBankUsed unconditionally
7740         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
7741         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
7742         * support/regression/tests/funptrs.c: added tests for BOOL and for return
7743
7744 2005-08-27 Borut Razem <borut.razem AT siol.net>
7745
7746         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
7747         ppc-osx (Darwin) does not support -u option. It seems that it is
7748         supported only on Linux - GNU cp
7749
7750 2005-08-25 Borut Razem <borut.razem AT siol.net>
7751
7752         * sim/ucsim/gui.src/serio.src/Makefile.in,
7753           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
7754           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
7755           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
7756           install and strip, since the strip at /usr/ccs/bin should be used
7757           on solaris
7758
7759 2005-08-24 Borut Razem <borut.razem AT siol.net>
7760
7761         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
7762
7763 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
7764
7765         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
7766         ffffffffu
7767
7768 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
7769
7770         * as/mcs51/aslink.h: completed lkrloc.c prototypes
7771         * as/mcs51/lkmain.c (link_main): fixed warning
7772         * device/include/stdbool.h: ds390 has no advanced bit support yet
7773         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
7774         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
7775         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
7776           and updated their macros
7777         * src/SDCCval.c (constVal): updated comment for renamed b_long
7778
7779 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
7780
7781         * as/mcs51/asdata.c: changed ctype['['] to BINOP
7782         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
7783           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
7784           (oprio): set priority for '['
7785         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
7786            and adb_24_bit
7787         * as/mcs51/asm.h: added defines R_BIT and S_BIT
7788         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
7789         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
7790         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
7791           added overlayable BIT_BANK area
7792         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
7793           (summary2): explain 'T' in legenda
7794         * as/mcs51/lkrloc.c: replaced old K&R style,
7795           (relr): added R_BIT processing,
7796           (errmsg): added "Bit-addressable relocation error",
7797           (adb_bit): added for converting from byte- to bit-addressable space,
7798           (adb_24_bit): added for converting from byte- to bit-addressable space
7799         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
7800            used in reentrant functions now even as return value
7801         * device/lib/_gptrput.c (_gptrput): removed obsolete code
7802         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
7803           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
7804         * src/SDCCglobl.h: added indicator BitBankUsed
7805         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
7806            the bit registers b0-b7
7807         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
7808           (geniCodeCast): fixed bug 1263853,
7809           (geniCodeLogicAndOr): put result in bool or char,
7810           (geniCodeReceive): added parameter func for accessing the return type,
7811           (geniCodeFunctionBody): pass func to geniCodeReceive
7812         * src/SDCCmain.c: added indicator BitBankUsed
7813         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
7814         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
7815           (checkSClass): don't put automatic bool/bit on stack,
7816           (checkFunction): removed check on function cannot return bit
7817         * src/SDCCsymt.h: added newBoolLink prototype
7818         * src/mcs51/gen.c (rb1regs): added bit registers,
7819           (movc): created for assigning to carry,
7820           (pushReg, popReg): created for pushing registers,
7821           (sameRegs): check both AOP_REG and AOP_CRY types,
7822           (aopOp): handle bit registers,
7823           (aopPut): optimization no self-assign,
7824           (saveRegisters): push reg->base (bits) only once for bit registers,
7825            and use pushReg,
7826           (unsaveRegisters): pop reg->base only once and use popReg,
7827           (assignResultValue): added parameter func and return in carry for bits,
7828           (genIpush): optimization no reload in A if not changed,
7829           (genSend): bit parameters in reentrant functions are passed in bit
7830            registers by first assigning to bits in B, then save registers and
7831            copy B to bits,
7832           (genCall): handle returning in Carry properly, save it in F0 if needed,
7833           (genPcall): updated assignResultValue call, this is not safe yet for bit
7834            returning function !!!
7835           (genFunction): don't generate equ's for bit registers and use pushReg,
7836           (genEndFunction): take care of bit returning functions and use popReg,
7837           (genRet): return bit in Carry,
7838           (genIfx): optimize bit registers and other directly addressable bits,
7839           (genReceive): updated assignResultValue call
7840         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
7841           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
7842            registers when using stack-auto
7843         * src/mcs51/ralloc.c (_G): added allBitregs,
7844           (regs8051): added the bit registers,
7845           (createStackSpil): use macro IS_BIT,
7846           (getRegBit): added to allocate a bit register, else spill,
7847           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
7848           (updateRegUsage): factored out to ease stepping while debugging,
7849           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
7850            also allocate bit registers,
7851           (fillGaps): handle bit registers,
7852           (findAllBitregs): added to create bit vector with all bit registers,
7853           (mcs51_allBitregs): returns this bit vector,
7854           (mcs51_assignRegisters): when using stack-auto use bit registers for
7855            passing parameters and creating local variables
7856         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
7857
7858 2005-08-22 Borut Razem <borut.razem AT siol.net>
7859
7860         * device/lib/Makefile.in: replaced find option -or with -o
7861           to make it run on solaris
7862
7863 2005-08-22 Raphael Neider <rneider AT web.de>
7864
7865         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
7866           fixes #1265442 (crash on Solaris)
7867
7868 2005-08-20 Borut Razem <borut.razem AT siol.net>
7869
7870         * configure, configure.in: added tests for libsocket and libnsl libraries,
7871           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
7872           from support/regression/Makefile.in
7873         * support/regression/Makefile.in: added
7874         * device/lib/pic16/Makefile.common.in: force make to use bash shell
7875         * sim/ucsim/libtool: regenerated on sparc-solaris
7876         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
7877           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
7878           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
7879           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
7880           sparc-solaris, which doesn't use GNU ld linker
7881         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
7882         * as/Makefile: find on sparc-solaris does not support -maxdepth option
7883
7884 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
7885
7886         * src/mcs51/peeph.def: updated comments
7887
7888 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7889
7890         * device/lib/_gptrget.c,
7891         * device/lib/_gptrput.c: slightly shorter
7892         * doc/sdccman.lyx: incremented version
7893         * src/mcs51/peeph.def: moved peephole comments to the line of first
7894           change to better keep line correlation, reanimated 186.e
7895         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
7896
7897 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
7898
7899         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
7900           David Saxton with quotes around file name.
7901
7902 2005-08-15 Borut Razem <borut.razem AT siol.net>
7903
7904         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
7905           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
7906           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
7907           make tests run on x86_64 platform
7908
7909 2005-08-13 Raphael Neider <rneider AT web.de>
7910
7911         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
7912           as it might be executed DURING a build (parallel make is wonderful)
7913
7914 2005-08-13 Raphael Neider <rneider AT web.de>
7915
7916         * device/lib/Makefile.in (port-specific-objects-pic16):
7917           revert to cp $(PORT)/bin/*.* $(PORTDIR)
7918         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
7919           dependency
7920         * device/lib/pic16/Makefile.rules: build subdirs before creating
7921           the library, removed builddir rule, create $(builddir) early in
7922           recurse rule, use empty recurse rule for leaf directories
7923         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
7924           mkdir errors (race condition), removed duplicate suffix "hex"
7925           from clean rules
7926         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
7927         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
7928           prevents mkdir -p from aborting on Alpha
7929
7930 2005-08-12 Raphael Neider <rneider AT web.de>
7931
7932         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
7933           db-statements in order to allow for arrays of pointers in code
7934           sections to be placed without interspersed 0-padding, fixes
7935           bug #1256215
7936         * (emitStatistics): fixed division by zero for pic18f1220
7937         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
7938           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
7939         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
7940         * (pic16_pCodeConstString): keep track of already emitted string
7941           literals to prevent "duplicate definitions of symbol _str_NR"
7942         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
7943           debug message
7944         * device/lib/Makefile.in: ignore failing PIC16 library builds
7945         * device/lib/pic16/Makefile: do not build if gputils are missing
7946         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
7947
7948 2005-08-10 Raphael Neider <rneider AT web.de>
7949
7950         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
7951           my last commit)
7952
7953 2005-08-10 Raphael Neider <rneider AT web.de>
7954
7955         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
7956           Rokas' patch to add the new fixed point type "__fixed16x16"
7957         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
7958           functions for __fixed16x16 arithmetics
7959         * device/lib/pic16: reimplemented the build system to support
7960           a separate build directory, better handling of libio (create
7961           the library in a separate subdir for each architecture) and
7962           easier configuration (centralized in Makefile.common)
7963
7964 2005-08-07 Raphael Neider <rneider AT web.de>
7965
7966         * src/pic16/gen.c (genrshTwo): fixed sign extension
7967         * src/pic16/device.c: added pic18f2320, 4220 and 4320
7968         * device/include/pic16/pic18f2220.h: changed some bit definitions,
7969           added T0CONbits
7970         * device/include/pic16/pic18f4220.h: NEW, header for
7971           pic18f4220 and pic18f4320
7972         * device/include/pic16/pic18fregs.h: added new devices,
7973           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
7974         * device/include/pic16/signal.h: resolved name clashes
7975           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
7976           to also allow testing for interrupt enable bits, added
7977           comments on how to use the macros
7978         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
7979         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
7980           register definitions for the devices
7981         * device/lib/pic16/pics.all: added new devices
7982         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
7983           allocated memory
7984         * device/lib/pic16/libc/stdlib/memfree: do not count
7985           the block header as free memory
7986         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
7987           simplified and added missing end-of-blocklist-marker
7988           (reported by Peter Onion, fixes #1252814)
7989         * (_mergeHeapBlock): fixed loop condition
7990         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
7991           len==0, restructured code
7992         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
7993           up a bit, reduced bitfield accesses, prevent endless loops
7994           in case of heap corruption
7995         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
7996           "unreferenced arguments/must return a value" warnings
7997         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
7998           replaced BAUDREG with SPBRG
7999         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
8000           device/lib/pic16/debug/gstack/gstack.c: replaced
8001           _naked, _asm, _endasm with __naked, __asm, __endasm
8002
8003 2005-08-05 Raphael Neider <rneider AT web.de>
8004
8005         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
8006           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
8007
8008 2005-08-05 Borut Razem <borut.razem AT siol.net>
8009
8010         * device/lib/Makefile.in: added missing ';'
8011         * configure: removed ^M characters
8012
8013 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8014
8015         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
8016           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
8017           License
8018
8019 2005-08-04 Borut Razem <borut.razem AT siol.net>
8020
8021         * configure.in: pic16 libraries build 2nd try - enable running
8022           configure in device/lib/pic16
8023         * configure: regenerated from configure.in
8024         * device/lib/Makefile.in: create $(PORT)/bin directory
8025
8026 2005-08-03 Raphael Neider <rneider AT web.de>
8027
8028         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
8029           to get/set values via pointers
8030         * (genUnpackBits,genPackBits): changed detection of
8031           ptr->bitfield vs. sym.bitfield, fixed access via generic
8032           pointers, removed dead (wrong) code for multibyte bitfields
8033         * (genNearPointerGet, genGenPointerGet): removed useless code,
8034           fixed bitfield detection, fixes #1250594
8035         * (genNearPointerSet): removed useless code
8036         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
8037           and introduced macro pic16_emitpcode that conditionally emits
8038           the origin of the following pCode (useful for debugging SDCC)
8039         * src/pic16/pcode.c: changed (and disabled) some debug outputs
8040         * (createDefmap): fixed handling of LFSR for --optimize-df
8041
8042 2005-08-02 Borut Razem <borut.razem AT siol.net>
8043
8044         * device/lib/Makefile.in: pic16 libraries build enabled since
8045           gputils-0.13.2 are now localy installed at sourceforge's compile farm
8046
8047 2005-08-02 Raphael Neider <rneider AT web.de>
8048
8049         * src/pic16/gen.c (genPackBits): removed deprecated warning
8050         * (genGenPointerSet): fixed bitfield detection
8051
8052 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8053
8054         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
8055
8056 2005-07-31 Raphael Neider <rneider AT web.de>
8057
8058         * device/lib/pic16/libdev/pic18f458.c,
8059           device/include/pic16/pic18f458.h: added missing T0CONbits
8060
8061 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
8062
8063         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
8064
8065 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
8066
8067         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
8068
8069 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8070
8071         * device/include/mcs51/at89c51ed2.h: added.
8072
8073 2005-07-23 Raphael Neider <rneider AT web.de>
8074
8075         * src/pic/gen.h: added emitpcode macro for debugging
8076         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
8077           and replace by macro adding debug information on demand
8078         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
8079         * (gencjne): tried to fix; replaced with correct (slower) code
8080         * (gen{Unp,P}ackBits): fixed single bit access
8081         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
8082         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
8083           previous instruction
8084         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
8085           register has to be handled with care (forbidding movement
8086           of assignments/uses, removing assignments completely, ...)
8087         * (pCodeOptime2pCodes): make use of regIsSpecial
8088         * added lots of debugging output (commented out)
8089         * src/pic/rallloc.c (deassignLRs): prevent operand registers
8090           from being reused as result UNLESS it is known to work
8091
8092 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
8093
8094         * support/Util/dbuf.h: include <stddef.h> for size_t
8095         * .version: changed to version 2.5.2
8096
8097 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8098
8099         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
8100
8101 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8102
8103         * src/hc08/gen.c (genMinus): fixed bug #1241835,
8104           (genModOneByte): removed needless psha/pula
8105
8106 2005-07-22 Raphael Neider <rneider AT web.de>
8107
8108         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
8109           have PIC14 handled like PIC16, fixes broken pic14 linker calls
8110         * src/pic/gen.c (resolveIfx): do not "invent" labels
8111         * (genSkipc): changed to positive logic
8112         * (genSkipCond): removed as no longer needed
8113         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
8114           backport from PIC16
8115         * (genLeftShift): check operands are in different registers
8116         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
8117           INCF does not update CARRY...
8118         * src/pic/main.c: fixed _linkCmd
8119         * src/pic/pcode.c (unlinkpCode): added inactive code
8120         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
8121           alive (do not assign result and operand overlapping registers)
8122
8123 2005-07-22 Raphael Neider <rneider AT web.de>
8124
8125         * src/pic/device.c (dump_sfr): replaced register declaration with
8126           call to emitSymbolToFile() to avoid duplicate symbols
8127         * (assignRelocatableRegisters): do not declare external symbols
8128         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
8129           right (take size of type, not etype)
8130         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
8131         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
8132         * (packRegsForAccUse): disabled assignment of WREG as
8133           the result reg to prevent occurence of just fixed #1235003,
8134           fixes #1242954
8135         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
8136           symbols (avoids duplicate symbols in .asm file)
8137         * (pic14emitRegularMap): use emitSymbolToFile()
8138         * src/pic/gen.c (aopOp): fixed spillLocation handling
8139         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
8140         * (genDataPointerSet): removed unneccessary variables/output
8141
8142 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
8143
8144         * as/mcs51/lkarea.c: enlarged codemap for banked memory
8145         * device/lib/mcs51/crtbank.asm: added # to 0x0F
8146
8147 2005-07-21 Raphael Neider <rneider AT web.de>
8148
8149         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
8150           architecture cannot handle them efficiently, fixes bug #1235003
8151         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
8152           check for empty sets before using them (fixes bug #1232190)
8153
8154 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
8155
8156         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
8157           (lnksect2): generate warnings for memory overlap
8158         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
8159           constseg to set the name of these segments so you can instruct the linker
8160           to place them in banks
8161         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
8162         * src/SDCCglobl.h: added MODEL_HUGE to enum,
8163           added code_seg and const_seg to options
8164         * src/SDCCglue.c (emitMaps): use options.const_seg,
8165           (createInterruptVect): put interrupt vectors in segment HOME,
8166           (glue): put HOME before static segment and put the main glue in HOME,
8167           (glue): use options.code_seg
8168         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
8169         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
8170           these segments so you can instruct the linker to place them in banks
8171           (linkEdit): use code_loc for HOME segment which should be the first
8172           segment in code memory now
8173         * src/SDCCmem.c: fixed more stuff like bug 1238386
8174         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
8175           (changePointer): don't change function pointers to code pointers for
8176           banked functions,
8177           (compareType): added exceptional check for banked function pointers
8178         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
8179         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
8180           after static in code memory
8181         * src/mcs51/gen.c: added aopLiteralLong prototype,
8182           (aopForSym): use getSize for functions,
8183           (genCall): generate banked calls over one trampoline __sdcc_banked_call
8184           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
8185           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
8186           the segment,
8187           (genPcall): use call for literal function pointers and generate banked
8188           calls over the one trampoline so there's only one place for the user to
8189           modify according to his/hers hardware,
8190           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
8191           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
8192         * src/mcs51/main.c: added keyword banked,
8193           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
8194         * support/Util/SDCCerr.c,
8195         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
8196           needed for passing the bank and address to the trampoline
8197         * device/lib/mcs51/crtbank.asm: added for bankswitching
8198         * device/lib/mcs51/Makefile: added crtbank
8199
8200 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8201
8202         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
8203           for fields at offset 0 of a struct or union as reported
8204           on 2005-07-07 in the developer mailing list.
8205
8206 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
8207
8208         * src/SDCCmem.c: fixed bug 1238386
8209
8210 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8211
8212         * src/mcs51/peeph.def: added labelrefcounting for peepholes
8213           (patch #1144962), added peephole 300, enabled 259.x
8214         * doc/sdccman.lyx: removed screenshot and provided link instead
8215
8216 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8217
8218         * doc/sdccman.lyx: added section about debugging with ddd
8219         * doc/figures/ddd_example.eps: screenshot of debugging session
8220
8221 2005-07-04 Raphael Neider <rneider AT web.de>
8222
8223         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
8224           like CODE pointers, fixes #1115683
8225         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
8226           call, fixes bugs #1232211, #1228110,
8227           fixed wrong casts to pCodeFlow from pCodeInstructions
8228
8229 2005-07-04 Raphael Neider <rneider AT web.de>
8230
8231         * src/pic/gen.c (popGet): changed assert to allow for
8232           bit operands
8233         * (popGetAddr): changed signature to provide
8234           an additional index, patched all call sites
8235         * (genCmpEq): handle literal-like operands correctly
8236         * (genAddrOf): added sanity checks on __code/__data pointers
8237         * (genAssign): added handling of symbols from __code section
8238         * (gencjne): do not generate code for comparisons whose result
8239           is neither stored nor used, fixes bug #1171114
8240         * (AccLsh, AccRsh): operate on operand instead of WREG
8241         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
8242           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
8243           by known count
8244         * rewrote complete shift-by-literal logic, commented unused
8245           functions out
8246         * (genConstPointerGet): get multiple bytes (if result size > 1),
8247           fixed handling of non-immediate addresses
8248         * (genPointerGet): handle CODE pointers like CONST pointers
8249         * (genpic14Code): insert C-SRC lines as Cource-pCodes
8250         * ({aop,op}_isLitLike): NEW, single place to decide whether an
8251           operand is to be treated as a literal or not
8252         * (mov2w,genPcall,genCmpEq),
8253           src/pic/genarith.c: use aop_isLitLike() to decide between
8254           literal/register contents
8255         * (addSign): added missing offset
8256         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
8257           only emit comment in debug-mode,
8258           use {aop,op}_isLitLike throughout the file
8259         * src/pic/glue.c: fix initializers for pointers (work in progress)
8260         * src/pic/pcode.c (get_op): honor index on _const symbols
8261         * ({reset,dump}pCodeStatistics): NEW, estimate code size
8262         * (dumppBlock): added pCode size estimation
8263         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
8264           check for IS_SYMOP before OP_SYMBOL'ing
8265         * fixed indentation, compacted switch-statements
8266         * (allocReg): find free register and allocate it instead of
8267           allocating new registers all the time
8268         * (deassignLRs): prevent POINTER_GET's from being assigned the same
8269           registers as its operands (necessary only for multibyte GETs)
8270
8271 2005-07-01 Raphael Neider <rneider AT web.de>
8272
8273         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
8274           debugging .asm-output macros FENTRY + FEXIT
8275         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
8276           way... I wonder...
8277         * (emitpComment): NEW, printf to pCode
8278         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
8279           offset handling
8280         * (popGetAddr): NEW, variant of popGet to access an immediates
8281           high(er) bytes instead of the n'th byte of memory they reference,
8282           replaced popGet with popGetAddr where neccessary
8283         * (genDataPointerGet): reactivated and fixed implementation
8284         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
8285           accesses
8286         * (genDataPointerSet): fixed multibyte assignments
8287         * (genpic14Code): fixed --i-code-in-asm handling
8288         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
8289         * (genPlus): fixed index-out-of-bounds error
8290         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
8291         * src/pic/ralloc.c: added debugging output macro FENTRY2
8292         * (spillThis): fixed indentation, enbraced for-body for clarity
8293         * (rematStr): commented out as now unused
8294         * (regTypeNum): commented out special spill case (overwrites
8295           arbitrary values)
8296         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
8297
8298 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
8299
8300         * doc/sdccman.lyx: documented sfr16/sfr32,
8301           added example for using storage class with function pointers
8302         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
8303
8304 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
8305
8306         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
8307         * device/lib/_itoa.c,
8308         * device/lib/_ltoa.c: optimized codesize
8309         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
8310           but don't know how to suppress the double warning.
8311         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
8312         * support/Util/SDCCerr.c,
8313         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
8314
8315 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
8316
8317         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
8318           fixed old K&R prototypes
8319         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
8320         * device/lib/_gptrget.c,
8321         * device/lib/_gptrgetc.c,
8322         * device/lib/_gptrput.c: changed versions for new memory indicator values,
8323           also new versions for small generic pointers and banked generic pointers
8324         * src/port.h: added const_name
8325         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
8326         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
8327         * src/SDCCcse.c (findPrevIc): check all associative operators
8328         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
8329         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
8330         * src/SDCCmem.c: updated comments,
8331           set far-space to 0 for pdata, results in optimized code
8332         * src/SDCCmem.h: added macro CONST_NAME
8333         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
8334           moving the info into the highest bits, see also gptrget/gptrput
8335         * src/src.dsp: added sdcc.ico to project files
8336         * src/avr/gen.c (genCast): fixed bug 0x%d
8337         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
8338         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
8339           relation between ptr_type and DCL_TYPE,
8340           (genCast): fixed bug 0x%d
8341         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
8342           (CODE)" for const_name
8343         * src/hc08/gen.c (genCast): fixed bug 0x%d
8344         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
8345           (hc08_port): added "CONST (CODE)" for const_name
8346         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
8347           (aopForRemat, adjustArithmeticResult): disconnected direct relation
8348           between ptr_type and DCL_TYPE,
8349           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
8350           operand* and took AOP() inside function so sfr-ness can be checked,
8351           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
8352           new prototype,
8353           (genFunction, genEndFunction): optimized stack setup,
8354           (genMinus): optimized for literals with ending zeroes (in bytes),
8355           (genCast): fixed bug 0x%d
8356         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
8357           (mcs51_port): added "CONST (CODE)" for const_name
8358         * src/mcs51/peeph.def: made rule 226 more generic
8359         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
8360         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
8361         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
8362         * src/z80/main.c (z80_port): added NULL for const_name,
8363           (gbz80_port): added NULL for const_name
8364         * support/regression/tests/bug663539.c,
8365         * support/regression/tests/sfr16.c: new tests
8366
8367 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8368
8369         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
8370
8371 2005-06-24 Raphael Neider <rneider AT web.de>
8372
8373         * device/lib/pic16/libdev/pic18f[68][567]20.c:
8374           corrected typos...
8375         * device/include/pic16/signal.h: added USBIF
8376           and SIG_USB
8377
8378 2005-06-24 Raphael Neider <rneider AT web.de>
8379
8380         * device/lib/pic16/libdev/pic18f2455.c,
8381           device/include/pic16/pic18f2455.h: NEW
8382         * device/include/pic16/pic18fregs.h,
8383           device/lib/pic16/pics.all,
8384           src/pic16/device.c: added 18f2455
8385         * device/lib/pic16/libdev/pic18f[68][567]20.c,
8386           device/include/pic16/{pic18f[68][567].h,usart.h}:
8387           replaced MULTIPLE_USARTS define with more relaible
8388           compatibility sfrs (for USART access)
8389
8390 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
8391
8392         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
8393           and the output asm file line is printed on two lines.
8394
8395 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8396
8397         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
8398           BGT, BLE, BHI, and BLS instructions
8399         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
8400           genCmpEq): removed
8401         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
8402           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
8403           fixes bug #1216342
8404         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
8405
8406 2005-06-15 Raphael Neider <rneider AT web.de>
8407
8408         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
8409         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
8410         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
8411           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
8412           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
8413
8414 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8415
8416         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
8417           Marcel Telka in bug #1215704
8418
8419 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
8420
8421         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
8422           located in shared memory bank.
8423
8424 2005-05-31 Raphael Neider <rneider AT web.de>
8425
8426         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
8427           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
8428           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
8429
8430 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
8431
8432         * device/lib/_strncpy.c: fixed the fix
8433
8434 2005-05-26 Raphael Neider <rneider AT web.de>
8435
8436         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
8437           initializers with \0, bug #1208187
8438         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
8439           intializers with \0, bug #1208187
8440
8441 2005-05-26 Raphael Neider <rneider AT web.de>
8442
8443         * src/pic16/glue.c (pic16_printIvalChar): fixed string
8444           initializers with \0, bug #1208187
8445         * src/pic16/main.c (_process_pragma): added sanity checks
8446           for stack position and size, emit warnings when appropriate
8447
8448 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
8449
8450         * device/lib/_strncpy.c: fixed not filling with \0
8451
8452 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8453
8454         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
8455           createFunction),
8456         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
8457           compound_statement),
8458         * src/SDCCsymt.h,
8459         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
8460
8461 2005-05-24 Raphael Neider <rneider AT web.de>
8462
8463         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
8464
8465 2005-05-24 Raphael Neider <rneider AT web.de>
8466
8467         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
8468           TRISE definitions, closes bug #1162453
8469
8470 2005-05-22 Raphael Neider <rneider AT web.de>
8471
8472         * src/pic16/main.c (_process_pragma): check for missing
8473           arguments to pragmas code and udata
8474         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
8475           consistency fixes to match other headers (thanks to Jim Paris)
8476         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
8477
8478 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
8479
8480         * src/SDCCicode.c (isOperandEqual): fixed missing ;
8481
8482 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
8483
8484         * support/regression/tests/bug1198642.c: new test
8485         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
8486         * src/SDCCcse.c (findPrevIc): added comment, please have a look
8487         * support/scripts/resource.h,
8488         * support/scripts/resource.rc,
8489         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
8490         * support/scripts/sdcc.ico: added 32x32 icon
8491
8492 2005-05-18 Raphael Neider <rneider AT web.de>
8493
8494         * device/lib/pic16/libdev/pic18f*.c,
8495         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
8496           keywords to "__sfr" and "__at (X)"
8497         * device/include/pic16/pic18fregs.h: added pic18f4520
8498         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
8499           #1203088 (MPLAB compatibility)
8500
8501 2005-05-17 Raphael Neider <rneider AT web.de>
8502
8503         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
8504         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
8505         * device/lib/pic16/pics.all: added new devices
8506         * src/pic16/device.c: added support for pic18f4520
8507
8508 2005-05-16 Raphael Neider <rneider AT web.de>
8509         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
8510         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
8511         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
8512           convenience function for bit access
8513
8514 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
8515
8516         * device/lib/printf_large.c: fixed bug 1193299
8517         * support/regression/tests/bug1057979.c: added test %3.3s
8518
8519 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8520
8521         * device/include/mcs51/8051.h,
8522         * device/include/mcs51/8052.h: made parseable with lint
8523         * device/include/mcs51/lint.h: added include file for (sp)lint
8524         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
8525         * doc/cdbfileformat.lyx,
8526         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
8527
8528 2005-05-14 Raphael Neider <rneider AT web.de>
8529
8530         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
8531         * device/lib/pic16/libc/stdlib/itoa.c (new)
8532         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
8533         * device/lib/pic16/libio/Makefile: exclude subdir according to
8534           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
8535         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
8536         * src/pic16/gen.c (genFunction): prevent annoying warning
8537         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
8538           nameclashes on BeOS
8539         * support/cpp2/cppmain.c (cpp_output_string): new
8540         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
8541           fixes bug 1116802
8542
8543 2005-05-13 Borut Razem <borut.razem AT siol.net>
8544
8545         * src/SDCCmain.c (linkEdit): fixed bug 1195202
8546
8547 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8548
8549         * .version: changed to version 2.5.1; back to bleeding edge development
8550
8551 2005-05-11 Borut Razem <borut.razem AT siol.net>
8552
8553         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
8554           generate PDF version 1.3 documents
8555
8556 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8557
8558         * .version: changed to version 2.5.0
8559
8560 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8561
8562         * doc/sdccman.lyx: updated weblinks, index and smaller updates
8563
8564 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8565
8566         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
8567         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
8568         well as many smaller updates.
8569         * .version: changed to version 2.5.0-pre1
8570
8571 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8572
8573         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
8574
8575 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
8576
8577         * support/regression/tests/bug1185672.c: added
8578         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
8579           bug 1185672
8580         * src/mcs51/gen.c (genCall): added comments, made it look safer
8581         * src/mcs51/gen.c (genEndFunction): simplified
8582
8583 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
8584
8585         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
8586
8587 2005-04-14 Borut Razem <borut.razem AT siol.net>
8588
8589         * fixed bug 1045046 - SIGSEGV with really simple code?:
8590           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
8591           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
8592
8593 2005-04-14 Borut Razem <borut.razem AT siol.net>
8594
8595         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
8596           src/pic16/device.h: temporarily disabled experimental #inline pragma
8597           for 2.5.0 release
8598
8599 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
8600
8601         * device/include/z80/stdio.h,
8602         * device/include/z80/string.h: removed these highly incomplete files so
8603           SDCC can use the default ones in device/include/
8604
8605 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8606
8607         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
8608         gcc warning.
8609         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
8610         fix sdcpp warnings.
8611
8612 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8613
8614         * device/include/malloc.h: removed redundant __reentrant prototypes
8615         * device/lib/_mullong.c: added working xstack variant in asm (C version
8616           doesn't pass regression tests)
8617         * device/lib/bpx.c: used __data and made bpx char for mcs51
8618         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
8619           (createFunction): fixed bug with xstackPtr
8620         * src/SDCCcse.c: corrected comments
8621         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
8622           (killDeadCode, eBBlockFromiCode): removed unused code
8623         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
8624           corrected comments
8625         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
8626           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
8627           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
8628           (genModOneByte): fixed warning in MSVC
8629         * src/mcs51/main.c (): added comments
8630         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
8631
8632 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8633
8634         * src/SDCCmain.c (linkEdit): oops, changed one line too many
8635
8636 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
8637
8638         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
8639
8640 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
8641
8642         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
8643         characters arrays of larger size than the declared one.
8644
8645 2005-04-10 Borut Razem <borut.razem AT siol.net>
8646
8647         * src/pic/gen.c (genInline),
8648           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
8649           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
8650           (findNextInstruction), (findPrevInstruction),
8651           (findInstructionUsingLabel),
8652           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
8653         * src/pic/pcode.c (findLabel): added missing '\n'
8654         * src/src.dsp: added SDCCdwarf2.c to the project
8655
8656 2005-04-09 Borut Razem <borut.razem AT siol.net>
8657
8658         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
8659
8660 2005-04-08 Raphael Neider <rneider AT web.de>
8661
8662         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
8663           into the chain after a given one) and mergeDefmapSymbols (combine
8664           defmap entries for each symbol per pcode)
8665         * (createDefmap): have defmap entries merged in the end
8666         * (defmapReplaceSymRef): split defmap entries covering two accesses to
8667           a symbol before replacing one access type's symbol, merge symbols in
8668           the end (replacement symbol might already have an entry)
8669         * (assignValnums): keep reference to written WREG intact
8670
8671 2005-04-08 Raphael Neider <rneider AT web.de>
8672
8673         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
8674           Alpha)
8675
8676 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
8677
8678         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
8679         bytes
8680
8681 2005-04-07 Raphael Neider <rneider AT web.de>
8682
8683         * device/include/pic16/usart.h: added compatibility defines for
8684           devices with more than one USART
8685         * device/include/pic16/pic18f[68][567]20.h: activated above defines
8686
8687 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8688
8689         * device/lib/Makefile.in: updated for port specific include
8690
8691 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8692
8693         * support/regression/ports/mcs51/spec.mk: added mcs51 include
8694
8695 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8696
8697         * device/include/8051.h,
8698         * device/include/8052.h,
8699         * device/include/at89S8252.h,
8700         * device/include/at89c55.h,
8701         * device/include/at89x051.h,
8702         * device/include/at89x51.h,
8703         * device/include/at89x52.h,
8704         * device/include/mcs51reg.h,
8705         * device/include/reg51.h,
8706         * device/include/reg764.h,
8707         * device/include/regc515c.h,
8708         * device/include/sab80515.h: (re)moved these 12 files
8709         * device/include/mcs51/8051.h,
8710         * device/include/mcs51/8052.h,
8711         * device/include/mcs51/at89S8252.h,
8712         * device/include/mcs51/at89c55.h,
8713         * device/include/mcs51/at89x051.h,
8714         * device/include/mcs51/at89x51.h,
8715         * device/include/mcs51/at89x52.h,
8716         * device/include/mcs51/mcs51reg.h,
8717         * device/include/mcs51/reg51.h,
8718         * device/include/mcs51/reg764.h,
8719         * device/include/mcs51/regc515c.h,
8720         * device/include/mcs51/sab80515.h: and added them here
8721
8722 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
8723
8724         * device/include/stdarg.h: changed SDCC specific keywords to double
8725           underlined form.
8726         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
8727           mcs51 and ds390.
8728         * device/include/hc08/mc68hc908gp32.h,
8729         * device/include/hc08/mc68hc908jb8.h,
8730         * device/include/hc08/mc68hc908jkjl.h,
8731         * device/include/hc08/mc68hc908qy.h: fixed comments
8732         * device/include/mcs51/README: updated
8733         * device/include/mcs51/c8051f120.h: added PINRSF
8734         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
8735         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
8736           amidst code. Also inline is not supported.
8737
8738 2005-04-06 Raphael Neider <rneider AT web.de>
8739
8740         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
8741         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
8742           callers stack/frame pointers
8743
8744 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
8745
8746         * device/include/pic16/usart.h: added, missing in previous commit,
8747         * device/include/pic16/adc.h: fixed typo,
8748         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
8749         commit,
8750         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
8751         <p18fxxx.inc>
8752         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
8753         uninitialized because a bug appears with gplink
8754         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
8755         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
8756         complains for unrecognised option
8757
8758 2005-04-05 Raphael Neider <rneider AT web.de>
8759
8760         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
8761           structs as well (using memcpy)
8762         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
8763           on ISRs (GOTO has no label)
8764         * src/pic16/device.h: added OF_OPTIMIZE_DF
8765         * src/pic16/main.c: added compiler switch --optimize-df to enable the
8766           new data flow analysis/optimization
8767         * src/pic16/pcode.c: added (prototypes for and implementation of)
8768           dataflow analysis functions, fixed pCodeInstructions' inCond and
8769           outCond values, made RCALL a branch instruction
8770         * (pic16_unlinkpCode): keep C line if possible
8771         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
8772           C line moved if possible
8773         * (pic16_getRegFrompCodeOp): NEW, improved version of...
8774         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
8775           to use new pic16_getRegFrompCodeOp (works for more SFRs)
8776         * (pic16_BuildFlow): fixed skip instructions with label (did not start
8777           new flow)
8778         * (pic16_getJumptabpCode): NEW, needed in...
8779         * (LinkFlow): fixed handling of jumptables, calls and conditional
8780           branches
8781         * (pic16_InsertCommentAfter): NEW
8782         * (pic16_pCodeReplace): made verbose and flow preserving
8783         * (AnalyzeFlow): added call to data flow analysis
8784         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
8785         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
8786         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
8787
8788 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8789
8790         * src/SDCCast.c (decorateType): fixed bug #1105626
8791
8792 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
8793
8794         * device/include/asm/pic16/features.h,
8795         * pic18f*.h headers,
8796         * device/include/pic16/adc.h,
8797         * device/include/pic16/delay.h,
8798         * device/include/pic16/i2c.h,
8799         * device/include/pic16/malloc.h,
8800         * device/include/pic16/stdio.h,
8801         * device/include/pic16/stdlib.h,
8802         * device/include/pic16/string.h,
8803         * device/lib/pic16/libc/stdio/printf_tiny.c,
8804         * device/lib/pic16/libc/stdio/printf_small.c,
8805         * device/lib/pic16/libc/stdio/strmgpsim.c,
8806         * device/lib/pic16/libc/stdio/strmmssp.c,
8807         * device/lib/pic16/libc/stdio/strmusart.c,
8808         * device/lib/pic16/libc/stdio/vfprintf.c,
8809         * device/lib/pic16/libc/stdlib/ltoa.c,
8810         * device/lib/pic16/libc/stdlib/putchar.c,
8811         * device/lib/pic16/libc/stdlib/x_ftoa.c,
8812         * device/lib/pic16/libc/stdlib/memchrpgm.c,
8813         * device/lib/pic16/libc/stdlib/memchrram.c,
8814         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
8815         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
8816         * device/lib/pic16/libio/adc/adcbusy.c,
8817         * device/lib/pic16/libio/adc/adcread.c,
8818         * device/lib/pic16/libio/adc/adcsetch.c,
8819         * device/lib/pic16/libio/usart/ubaud.c,
8820         * device/lib/pic16/libio/usart/ubusy.c,
8821         * device/lib/pic16/libio/usart/udrdy.c,
8822         * device/lib/pic16/libio/usart/uopen.c,
8823         * device/lib/pic16/libio/usart/uputc.c,
8824         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
8825         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
8826         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
8827         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
8828         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
8829         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
8830         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
8831         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
8832         specific keywords to double underlined form,
8833         * device/lib/pic16/libc/Makefile.rules,
8834         * device/lib/pic16/libsdcc/Makefile.rules,
8835         * device/lib/pic16/libm/Makefile,
8836         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
8837         to compile with C standard set in Makefile.common
8838         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
8839         rand.c and crc.c in compilation process,
8840         * device/lib/pic16/libsdcc/int/divuint.c,
8841         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
8842         `c' from signed to unsigned,
8843         * device/lib/pic16/startup/crt0.c,
8844         * device/lib/pic16/startup/crt0i.c,
8845         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
8846         keywords to double underlined form, bug fixes in _do_cinit function
8847         which prevented the correct initialization of the .idata segment,
8848         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
8849         core to enter a infinite loop
8850         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
8851
8852 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8853
8854         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
8855
8856 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8857
8858         * device/include/Makefile.in: add support for hc08 subdirectory
8859         * device/include/hc08/: new subdirectory
8860         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
8861         Lucas Loizaga, thanks!
8862         * device/include/hc08/mc68hc908qy.h,
8863         * device/include/hc08/mc68hc908gp32.h,
8864         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
8865         their own directory. Changed internal macro names to use the compiler
8866         reserved namespace. Changed SDCC specific keywords to double
8867         underlined form.
8868         * device/include/math.h,
8869         * device/include/malloc.h,
8870         * device/include/stdarg.h,
8871         * device/include/stdbool.h
8872         * device/include/string.h,
8873         * device/include/tinibios.h,
8874         * device/include/ds400rom.h,
8875         * device/include/8051.h,
8876         * device/include/8052.h,
8877         * device/include/80c51xa.h,
8878         * device/include/at89c55.h,
8879         * device/include/at89S8252.h,
8880         * device/include/at89x51.h,
8881         * device/include/at89x52.h,
8882         * device/include/ds80c390.h,
8883         * device/include/reg764.h,
8884         * device/include/regc515c.h,
8885         * device/include/sab80515.h,
8886         * device/include/mcs51/c8051f000.h,
8887         * device/include/mcs51/c8051f018.h,
8888         * device/include/mcs51/c8051f020.h,
8889         * device/include/mcs51/c8051f040.h,
8890         * device/include/mcs51/c8051f060.h,
8891         * device/include/mcs51/c8051f120.h,
8892         * device/include/mcs51/c8051f300.h,
8893         * device/include/mcs51/c8051f310.h,
8894         * device/include/mcs51/c8051f320.h,
8895         * device/include/mcs51/c8051f330.h,
8896         * device/include/mcs51/c8051f350.h,
8897         * device/include/z180.h: Changed SDCC specific keywords to double
8898         underlined form.
8899
8900 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
8901
8902         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
8903         18F4455,
8904         * (pic16_assignConfigWordValue): disable testing of configuration
8905         register value with config mask,
8906         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
8907         function with port->fun_prefix,
8908         * (genFunction): when generating a naked interrupt function never
8909         create an absolute segment placed in interrupt vector address, place
8910         the actual interrupt function at IVA instead, when an interrupt
8911         function is generated with unspecified interrupt then do not create
8912         the absolute section,
8913         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
8914         code for generating a call to generic pointer get/put function with
8915         a call to function pic16_callGenericPointer(),
8916         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
8917         the call to the generic pointer get/put functions with prefixing the
8918         function name with port->fun_prefix,
8919         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
8920         * src/pic16/main.c (_process_pragma): prefix function with
8921         port->fun_prefix,
8922         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
8923         calling assembler, old 18Fxxxx macro is deprecated,
8924         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
8925         PC_ASMDIR in while condition,
8926         * (findInstruction): add PC_ASMDIR in while condition,
8927         * (buildCallTree): prefix main with port->fun_prefix,
8928         * (pic16_pCode2str): fixed bug that didn't emit the memory access
8929         identifier for variable with banked access in instructions BTFSS,
8930         BTFSC, BCF, BSF, BTG
8931         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
8932         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
8933         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
8934         perform optimization when enviroment variable NO_REG_OPT is set,
8935         * (insideLRBlock): NEW, return 1 if register is inside an
8936         INF_LOCALREGS block,
8937         * (RemoveRegFromLRBlock): remove a register that is completely
8938         eliminated by register optimization, but it is still left in local
8939         register store/restore in/from stack block,
8940         * (Remove2pcodes): after removing register, check to see if it
8941         should be removed from local register store/restore in/from stack
8942         block,
8943         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
8944         DUMMY_READ_VOLATILE,
8945
8946         * device/include/pic16/adc.h: minor prototype modifications and
8947         update,
8948         * device/include/pic16/malloc.h: added GPL notice various
8949         modifications,
8950         * device/include/pic16/stdint.h: NEW, standard header for ints
8951         * device/include/pic16/delay.h: NEW, header for delay functions,
8952         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
8953         delay1mtcy,
8954         * device/include/pic16/signal.h: NEW, header providing helper macros
8955         for implementing signal handlers,
8956         * device/include/pic16/stdio.h: added prototypes for functions,
8957         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
8958         prototypes for stdin and stdout, added macro PUTCHAR to
8959         automatically implement putchar function prototype,
8960         * device/include/pic16/usart.h: modified and updated USART library,
8961         * device/lib/pic16/libio/adc/,
8962         * device/lib/pic16/libio/i2c: some modifications to improve library
8963         performance,
8964         * device/lib/pic16/libc/stdio/: modifications for the new printf*
8965         family of functions,
8966         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
8967         family of functions and other sources,
8968         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
8969         of the PIC18Fxx[28] devices,
8970         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
8971         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
8972         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
8973         _do_cinit function, because the previous failed when local variables
8974         where not placed in the same memory bank,
8975         * device/lib/pic16/libsdcc/char/: various modifications to improve
8976         library performance,
8977         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
8978         information on the new functions of the c library and more...
8979
8980 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8981
8982         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
8983
8984 2005-03-26 Raphael Neider <rneider AT web.de>
8985
8986         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
8987           if condition == CARRY)
8988         * (genCmp): adapted to new genSkipc semantics
8989         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
8990           on rIfx (genCmp was broken)
8991
8992 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8993
8994         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
8995         * src/z80/main.c (_keywords[]),
8996         * src/SDCCglobal.h (struct options),
8997         * src/SDCC.y,
8998         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
8999         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
9000         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
9001         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
9002         always available in leading double underscore form. The C99 support is
9003         mostly missing, but it's a start.
9004         * support/regression/tests/bug-227710.c: fixed nonconforming use of
9005         reserved identifier "__data".
9006
9007 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
9008
9009         * src/mcs51/peeph.def: fixed bug 1170013
9010
9011 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
9012
9013         * device/include/mcs51reg.h: fixed bug 842007
9014
9015 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9016
9017         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
9018         last time.
9019
9020 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9021
9022         * src/port.h (struct PORT),
9023         * src/avr/ralloc.c (avr_assignRegisters),
9024         * src/avr/main.c,
9025         * src/ds390/ralloc.c (ds390_assignRegisters),
9026         * src/ds390/main.c,
9027         * src/hc08/ralloc.c (hc08_assignRegisters),
9028         * src/hc08/main.c,
9029         * src/mcs51/ralloc.c (mcs51_assignRegisters),
9030         * src/mcs51/main.c,
9031         * src/pic/ralloc.c (pic14_assignRegisters),
9032         * src/pic/main.c,
9033         * src/pic16/ralloc.c (pic16_assignRegisters),
9034         * src/pic16/main.c,
9035         * src/xa51/ralloc.c (xa51_assignRegisters),
9036         * src/xa51/main.c,
9037         * src/z80/ralloc.c (z80_assignRegisters),
9038         * src/z80/ralloc.h,
9039         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
9040         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
9041         * src/SDCCcse.h,
9042         * src/SDCCdflow.c (computeDataFlow),
9043         * src/SDCCdflow.h,
9044         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
9045         * src/SDCCloop.h,
9046         * src/SDCCcflow.c (*),
9047         * src/SDCCcflow.h,
9048         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
9049         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
9050         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
9051         immedDom() returning wrong block; probably fixes bug #1160833)
9052
9053 2005-03-20 Borut Razem <borut.razem AT siol.net>
9054
9055         * support/scripts/inc2h.pl: WIN32 port
9056
9057 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
9058
9059         * device/lib/makefile.in: added abs.c and labs.c
9060
9061 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
9062
9063         * device/include/stdint.h: added
9064         * device/lib/abs.c: added
9065         * device/lib/labs.c: added
9066         * device/include/stdlib.h: added abs() and labs() prototypes
9067         * device/lib/libsdcc.lib: added abs and labs
9068         * device/include/float.h,
9069         * device/lib/_fsmul.c,
9070         * device/lib/printf_fast.c,
9071         * device/lib/printf_tiny.c: updated comments
9072
9073 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9074
9075         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
9076         bug #1164313
9077
9078 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9079
9080         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
9081         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
9082
9083 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
9084
9085         * device/lib/printf_large.c: removed inline assembly for portability and
9086           readability. Use printf_fast if speed or size are more important.
9087         * src/pic16/gen.c: removed conditions around use of DEBUGpc
9088         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
9089
9090 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
9091
9092         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
9093         prevent compiler warning
9094
9095 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
9096
9097         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
9098         moved to level 0 and declared as static. Also they are explicit
9099         placed in access bank. This was necessery because some times they
9100         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
9101         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
9102         optimizations. Currently only compare to unsigned char is implemented,
9103         * src/pic16/gen.c: added fReturnIdx array,
9104         * (struct resolvedIfx) is moved to gen.h and made public,
9105         * (struct _G): added sregsAlloc and sregsAllocSet fields,
9106         * (aopForSym): added an optimization to directly store in stack of
9107         the operand of a SEND iCode,
9108         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
9109         but as registers instead (AOP_REG) using the fReturnIdx array,
9110         * (pic16_freeAsmop): remove the freed register from the
9111         _G.sregsAlloc field,
9112         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
9113         a compare of 'WREG',
9114         * (pic16_popGetTempRegCond): changed function prototype, now
9115         function takes also a bitVector argument v which holds the current
9116         set of registers that are allocated for stack access by aopForSym,
9117         registers allocated in aopForSym for accessing stack symbols are not
9118         any more part of the functions usedRegs field,
9119         * (genCall): some times aopOp is called for a stack variable to be
9120         send, aopForSym might perform the push, if this is true make sure
9121         that genCall doesn't push the variable twice by testing _G.resDirect,
9122         * (genFunction): changed testing for unspecified interrupt number
9123         from 256 to INTNO_UNSPEC,
9124         * modified selection scheme of frame pointer generation. Previously
9125         if function did use local registers a frame pointer was generated,
9126         now a frame pointer is generated only if function has arguments
9127         (that need PLUSW2 register access), or has stack arguments, or the
9128         compiler is not instructed to omit the frame pointer,
9129         * (genEndFunction): before restoring local registers that were saved
9130         in the function preamble, also restore the registers that *might*
9131         have been allocated for stack access,
9132         * (genRet): removed some old comments,
9133         * (genCmp, the active (RN's) version): added a call to the
9134         pic16_genCmp_special function to perform the compare with a more
9135         robust and optimized way,
9136         * (genInline): a feature has been added in inline code generation,
9137         which allows a wildcard variable substitution when writing inline
9138         assembly. Code is incomplete and experimental therefore undocumented,
9139         * (genCast): changed order of aopOp for result and right to allow
9140         aopForSym to directly load the result if possible,
9141         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
9142         perform an optimized compare on some selected special occasions,
9143         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
9144         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
9145         generate an IVT any more,
9146         * src/pic16/main.c (pic16_optionsTable): added command line option
9147         --optimize-cmp,
9148         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
9149         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
9150         macros,
9151         * src/pic16/NOTES: Raphael Neider added in list of active developers
9152         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
9153         jumptable_end to prevent bug #,
9154         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
9155         inCond and outCond fields,
9156         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
9157         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
9158         turn off register spilling,
9159         * (packRegsForOneUse): synced with other ports' versions although it
9160         is not used currently,
9161         * (pic16_packRegisters): added an optimization while reading
9162         structure bitfields, some registers may be saved (malloc code is
9163         decreased by 80 bytes)
9164
9165 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
9166
9167         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
9168         left is a bitfield, if yes, then don't optimize assignment. Perhaps
9169         this can be optimized more?
9170
9171 2005-03-10 Raphael Neider <rneider AT web.de>
9172
9173         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
9174           genNearPointerGet): (hopefully) fixed access to bitfields via
9175           pointers (p->bitN = x; and x = p->bitN; failed)
9176
9177 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
9178
9179         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
9180
9181 2005-03-09 Raphael Neider <rneider AT web.de>
9182
9183         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
9184
9185 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
9186
9187         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
9188         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
9189           (regTypeNum): set REG_BIT type if necessary
9190         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
9191         * support/regression/tests/critical.c: check bug 1144613
9192
9193 2005-03-02 Raphael Neider <rneider AT web.de>
9194
9195         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
9196
9197 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9198
9199         * src/avr/ralloc.c (serialRegAssign),
9200         * src/ds390/ralloc.c (serialRegAssign),
9201         * src/hc08/ralloc.c (serialRegAssign),
9202         * src/mcs51/ralloc.c (serialRegAssign),
9203         * src/pic/ralloc.c (serialRegAssign),
9204         * src/pic16/ralloc.c (serialRegAssign),
9205         * src/xa51/ralloc.c (serialRegAssign),
9206         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
9207
9208 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
9209
9210         * src/SDCCast.c (decorateType): fixed bug 1124787
9211
9212 2005-02-20 Hubert Sack <sack AT digiplan.de>
9213         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9214
9215         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
9216         patch #1121755
9217
9218 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9219
9220         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
9221         to keep the correct label reference count when adding/removing references
9222         to labels. A peephole file using this is appended to patch #1144962.
9223
9224 2005-02-14 Raphael Neider <rneider AT web.de>
9225
9226         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
9227         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
9228         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
9229           retrievals of result operand's value on assignment
9230
9231 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
9232
9233         * device/include/pic16/string.h: modified prototype for memccpy()
9234         to memccpy(void *, void *, char, size_t)
9235         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
9236         check whether to omit frame pointer or not,
9237         * (genInline): convert all occurences of "\n" to LF in inline
9238         assembler blocks, this helps formatting the inline text,
9239         * (pic16_loadFSR0): modified prototype,
9240         * (genNearPointerGet, genNearPointerSet): reorganization of code,
9241         removed some 8051 legacy code,
9242         * (genPackBits): enabled handling bitfields exceeding one byte in size,
9243         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
9244         before allocating temporary registers in functions,
9245
9246 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
9247
9248         * support/regression/tests/bitvars.c: corrected the "fix"
9249
9250 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
9251
9252         * support/regression/tests/bitvars.c,
9253         * support/regression/tests/bitwise.c,
9254         * support/regression/tests/rotate.c: "fixed" problems on Alpha
9255
9256 2005-02-10 Raphael Neider <rneider AT web.de>
9257
9258         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
9259           different size for Alpha
9260         * src/pic16/gen.c (genCmpEq) : improved compare with 0
9261
9262 2005-02-09 Raphael Neider <rneider AT web.de>
9263
9264         * src/SDCC.lex(doPragma) : save and restore warning options as well
9265           (also added new stack plus clone- and copyAndFreeSDCCERRG())
9266         * have #pragma less_pedantic set the errorlevel to WARNING
9267           (fixes #1117001)
9268         * (cloneOptimize) : fixed wrong malloc's size
9269         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
9270           facilitate correct handling of #pragma (save|restore)
9271
9272 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
9273
9274         * src/mcs51/gen.c: removed non-standard C nameless struct/union
9275
9276 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
9277
9278         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
9279
9280 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
9281
9282         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
9283
9284 2005-02-02 Raphael Neider <rneider AT web.de>
9285
9286         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
9287         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
9288         * (pic16_storeForReturn): fixed to allow returning function pointers
9289         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
9290         * device/include/pic16/{stddef.h,stdbool.h}: added
9291
9292 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
9293
9294         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
9295
9296 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
9297
9298         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
9299         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
9300          appeared to be required
9301
9302 2005-01-31 Borut Razem <borut.razem AT siol.net>
9303
9304         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
9305           include/mcs51 and include/z80 directories to the package
9306
9307 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9308
9309         * src/hc08/gen.c (genFunction): fixed bug #1112752
9310
9311 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9312
9313         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
9314
9315 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9316
9317         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
9318
9319 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
9320
9321         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
9322
9323 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
9324
9325         * device/include/c8051fxxx.h: removed these 6 files
9326         * device/include/mcs51/c8051fxxx.h: added these 11 new files
9327
9328 2005-01-26 Raphael Neider <rneider AT web.de>
9329
9330         * src/pic16/gen.c (genAssign): fixed assignment from longs
9331           in codespace (were cut to three bytes)
9332         * (genDummyRead): implemented (except for CODESPACE...),
9333           fixed bug #1108575
9334         * src/pic16/glue.c (emitStatistics): beautified
9335         * device/lib/pic16/libm/Makefile: added include path
9336
9337 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9338
9339         * src/z80/gen.c (aopPut): fixed bug #1103902
9340
9341 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9342
9343         * device/lib/expf.c: fixed bug #1095792
9344
9345 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
9346
9347         * device/lib/pic16/libm: added Math library sources
9348
9349 2005-01-24 Raphael Neider <rneider AT web.de>
9350
9351         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
9352           to enable upcast to pCodeOpReg2 (there is no type tag to
9353           differenciate the two and pic16_popGet2p cast into PCOR2)
9354         * src/pic16/main.c (_process_pragma): fixed another malloc bug
9355           (sizeof(sectNames) changed to sizeof(sectName))
9356           Both patches fix segfaults under MinGW.
9357
9358 2005-01-23 Raphael Neider <rneider AT web.de>
9359
9360         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
9361           Safe_[mc]?alloc()'ed variables
9362         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
9363           of (byte sized) temporaries (assign them to WREG for now)
9364         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
9365           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
9366           this might fix SIGSEGVs on MinGW...
9367         * src/SDCCopt.c (killDeadCode): restored original behaviour
9368           (volatile operands might get thrown away though)
9369
9370 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
9371
9372         * src/pic16/gen.c: fixed bug #1106975,
9373         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
9374         pointer update, INTCON is saved, global interrupts are disabled and
9375         restored after updateing TOS.
9376         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
9377         * added function attribute 'shadowregs' to take advantage of shadow
9378         registers,
9379         * added function attribute 'wparam' as an alternative to the wparam
9380         pragma,
9381         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
9382         user declares a non-ISR function as 'shadowregs',
9383         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
9384
9385 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
9386
9387         * .version: bumped version number to 2.4.8
9388         * device/lib/pic16/pics.all: list of PIC18F devices supported by
9389         pic16 port,
9390         * device/lib/pic16/libio/i2c/: I2C module support library,
9391         * device/include/pic16/i2c.h: I2C support library header,
9392         * device/lib/pic16/libc/stdio/: standard IO support sources,
9393         * (printf_small.c): printf_small() source, supports float print,
9394         * (printf_tiny.c): printf_tiny() source, does not support floats,
9395         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
9396         enable global optimizations for entire library source, other
9397         Makefiles in the source tree are also modified to reflect this,
9398         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
9399         function,
9400         * doc/sdccman.lyx: updated to reflect new changes,
9401         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
9402         sym->onStack if-case,
9403         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
9404         sbit, idata, _idata, xdata, _xdata,
9405         * added pragma library, to link an external library, (see doc),
9406         * removed command line options, --pomit-config-words, --pomit-ivt,
9407         --pleave-reset-vector,
9408         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
9409         when calling assembler to reflect memory model used, also define
9410         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
9411         reflect stack model used,
9412         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
9413         on stack return NULL,
9414
9415 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
9416
9417         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
9418           of the operands is volatile. Fixes #1020220
9419
9420 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
9421
9422         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
9423         * (OptimizeRegUsage): make sure that there is really no other flow where
9424           the first pCode is used
9425
9426 2005-01-22 Raphael Neider <rneider AT web.de>
9427
9428         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
9429           to fix #1106967 (pCode->seq are not set up correctly)
9430
9431 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9432
9433         * src/SDCCglue.c (glue): make sure code area is declared before the
9434         static initialization area.
9435
9436 2005-01-21 Raphael Neider <rneider AT web.de>
9437
9438         * device/lib/Makefile.in: fixed test for pic16 install dir
9439         * device/lib/pic16/*/Makefile*: modified compile flags to enable
9440           optimizations
9441         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
9442           added --optimize-goto compiler switch and pragma wparam documentation
9443         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
9444         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
9445           and PRODH closing bug #1071770 (peephole optimizer)
9446
9447 2005-01-19 Raphael Neider <rneider AT web.de>
9448
9449         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
9450           cmdLine buffers (used when calling sdcpp...) are large enough
9451           (MAX_PATH=256 truncates arguments leading to system halts when
9452           used in MinGW...)
9453         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
9454         * (genUminus): rewritten to for efficiency
9455         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
9456           used uninitialized in some cases)
9457         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
9458           copy the third byte from the int -- now assumes 0x80 (data memory)
9459         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
9460           operands (genAddLit expects the iCode's operands to swapped as
9461           well), fixed leftover bytes (crashed for short left operands)
9462         * (pic16_genMinusDec): performance improvements, removed false
9463           PIC14 emitSKPNCs
9464         * (pic16_genMinus): fixed to cope with differently sized operands
9465         * src/pic16/glue.c (pic16_glue): added new banksel optimization
9466           for --obanksel > 1
9467         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
9468         * src/pic16/graph.[ch]: implementation of directed graphs, used by
9469           new banksel optimization
9470         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
9471           analysis for temporary registers (segfaults...)
9472         * src/pic16/peeph.def: added rule
9473
9474 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
9475
9476         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
9477         which converts a float number to its ASCII representation
9478         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
9479         functions to convert the fractional and integer part of a float to ASCII,
9480         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
9481         realloc.c): added _MALLOC_SPEC to explicit place variables in data
9482         ram
9483         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
9484         _STATMEM macros,
9485         * device/include/pic16/adc.h: added GPL info,
9486         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
9487         a pCodeOp as tested operand,
9488         * (genNearPointerGet): optimized bit testing, does not use
9489         intermediate register for bit value, test directly instead with
9490         BTFSS, BTFSC, works only for single bits,
9491         * (genpic16Code): dump the name of the iCode in the asm,
9492         * src/pic16/ralloc.c (decodeOp): removed static declaration and
9493         renamed to pic16_decodeOp,
9494         * (serialRegAssign): do not allocate a temporary register for iCode
9495         sequences that test a single bit for 1/0
9496
9497 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
9498
9499         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
9500         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
9501         access stack and frame pointers. They are initially assigned to
9502         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
9503         accessing SFRs. Updated all occurences of modification of stack or
9504         frame pointer in gen.c and pcode.c,
9505         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
9506         assigning of a literal value to pointers,
9507         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
9508         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
9509         selected
9510
9511 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
9512
9513         * doc/sdccman.lyx: update documentation about stack pragma, added
9514         some info for stack memory models
9515
9516 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9517
9518         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
9519
9520 2005-01-08 Raphael Neider <rneider AT web.de>
9521
9522         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
9523           udata sections to fix bug #1097823
9524
9525 2005-01-05 Raphael Neider <rneider AT web.de>
9526
9527         * src/pic16/gen.c (genGenericShift): added handling of differently
9528           sized left operand and result
9529
9530 2005-01-04 Raphael Neider <rneider AT web.de>
9531
9532         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
9533         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
9534           to hold the condition bit)
9535         * added new version of genCmp (old code available via #define)
9536         * added new version of genShiftLeft/genShiftRight in a generic
9537           way, now supports shifting by negative values
9538         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
9539           shiftCount (expected by genGenericShift)
9540         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
9541         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
9542           dump
9543         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
9544           is an invalid literal too...)
9545
9546 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
9547
9548         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
9549         from Raphael Neider,
9550         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
9551         for 8-bit literals. This fixes some literal operands which are sign
9552         extended to 16-bits ints when instruction needs only 8-bits.
9553
9554 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
9555
9556         * device/lib/logf.c: added mcs51 assembly version
9557         * device/lib/expf.c: added mcs51 assembly version
9558         * device/lib/_logexpf.c: new shared asm code for expf and logf
9559         * device/include/math.h: add defines for assembly math library
9560         * device/lib/Makefile.in: build new _logexpf.c
9561         * device/lib/libfloat.lib: use new _logexpf.c
9562
9563 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9564
9565         * src/pic/device.c
9566         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
9567           device types which have less than 0x7f registers.
9568
9569 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9570
9571         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
9572
9573 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9574
9575         * device/lib/printf_fast.c: only build on supported arch.
9576         * device/lib/printf_tiny.c: only build on supported arch.
9577         * device/lib/printf_fast_f.c: only build if asm float lib
9578         * device/lib/_fsget1arg.c: only build if asm float lib
9579         * device/lib/_fsget2args.c: only build if asm float lib
9580         * device/lib/_fsnormalize.c: only build if asm float lib
9581         * device/lib/_fsreturnval.c: only build if asm float lib
9582         * device/lib/_fsrshift.c: only build if asm float lib
9583         * device/lib/_fsswapargs.c: only build if asm float lib
9584         * device/include/stdio.h: don't provide print_fast,
9585           print_fast_f, print_tiny prototypes if --xstack used
9586
9587 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
9588
9589         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
9590         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
9591           to the SOURCES
9592
9593 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9594
9595         * device/lib/printf_fast_f.c: same as printf_fast, but
9596           with floating point enabled
9597         * device/lib/printf_fast.c: minor tweaks
9598         * device/include/stdio.h: add printf_fast_f
9599
9600 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9601
9602         * src/SDCCmain.c: make --float-reent default for mcs51
9603         * device/lib/_fsadd.c: added mcs51 assembly version
9604         * device/lib/_fssub.c: added mcs51 assembly version
9605         * device/lib/_fsmul.c: added mcs51 assembly version
9606         * device/lib/_fsdiv.c: added mcs51 assembly version
9607         * device/lib/_fseq.c: added mcs51 assembly version
9608         * device/lib/_fsneq.c: added mcs51 assembly version
9609         * device/lib/_fsgt.c: added mcs51 assembly version
9610         * device/lib/_fslt.c: added mcs51 assembly version
9611         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
9612         * device/lib/Makefile.in: add _fscmp to build
9613         * device/lib/libfloat.lib: add _fscmp to build
9614
9615 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9616
9617         * device/lib/_fs2slong.c: added mcs51 assembly version
9618         * device/lib/_fs2sint.c: added mcs51 assembly version
9619         * device/lib/_fs2schar.c: added mcs51 assembly version
9620         * device/lib/_fs2ulong.c: added mcs51 assembly version
9621         * device/lib/_fs2uint.c: added mcs51 assembly version
9622         * device/lib/_fs2uchar.c: added mcs51 assembly version
9623         * device/lib/_slong2fs.c: added mcs51 assembly version
9624         * device/lib/_sint2fs.c: added mcs51 assembly version
9625         * device/lib/_schar2fs.c: added mcs51 assembly version
9626         * device/lib/_ulong2fs.c: added mcs51 assembly version
9627         * device/lib/_uint2fs.c: added mcs51 assembly version
9628         * device/lib/_uchar2fs.c: added mcs51 assembly version
9629         * device/include/float.h: added #define to select asm vs c
9630
9631 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
9632
9633         * device/lib/printf_fast.c: improvements to float output
9634         * device/include/float.h: add defines for assembly float library
9635         * device/lib/_fsget1arg.c: receive 1 float arg
9636         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
9637         * device/lib/_fsnormalize.c: normalize a float
9638         * device/lib/_fsreturnval.c: return float, various helper routines
9639         * device/lib/_fsrshift.c: right shift a float's mantissa
9640         * device/lib/_fsswapargs.c: swap 2 floats
9641         * device/lib/Makefile.in: build these 6 new files for mcs51
9642         * device/lib/libfloat.lib: add these 6 files to the library
9643
9644 2004-12-26 Borut Razem <borut.razem AT siol.net>
9645
9646         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
9647           built by gcc 3.4.2
9648
9649 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
9650
9651         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
9652           and fully reentrant and register bank neutral.
9653         * device/lib/printf_fast.c: added float (not enabled by default),
9654           added compact/slower integer (also not enabled by default),
9655           improved size/speed of fast integer code, other minor changes
9656         * device/include/stdio.h, device/lib/Makefile.in,
9657           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
9658
9659 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
9660
9661         * src/pic16/pcode.c: declaring variables other than at the start of a
9662           block is not supported in C by VC6.
9663
9664 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
9665
9666         * applied a previous patch from Raphael Neider that wasn't included
9667         in the previous commits, which fixes infinite loops within jumptable
9668         improvements,
9669         * made some fixes that previous patches introduced
9670
9671 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
9672
9673         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
9674         that fixes an issue with AOP_PCODE asmop's offset,
9675         * (pic16_popCopyReg): update instance field too,
9676         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
9677         function of pic port,
9678         * (genCmp, genAnd, genAssign),
9679         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
9680
9681 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
9682
9683         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
9684         variables initial values to idata section,
9685         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
9686         variables in some functions. This utilizes parmBytes field of iCode
9687         structure to hold the offset of the variable in stack. (might be
9688         able to use the stack field too?)
9689         * applied patch from Raphael Neider # ### , # ###
9690         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
9691         variable initial values in idata section,
9692         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
9693         for static variables with initial value
9694         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
9695         applied fix in while loop from Raphael Neider.
9696
9697 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
9698
9699         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
9700         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
9701         * src/ds390/ralloc.c (serialRegAssign): spill bits
9702         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
9703         * support/Util/SDCCerr.c,
9704         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
9705         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
9706         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
9707
9708 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
9709
9710         * device/include/sdcc-lib.h: inserted LGPL, added includes
9711           asm/ds390/features.h and asm/mcs51/features.h
9712         * device/include/asm/default/features.h,
9713         * device/include/asm/gbz80/features.h,
9714         * device/include/asm/z80/features.h: added empty _AUTOMEM
9715           and _STATMEM
9716         * device/include/asm/ds390/features.h,
9717         * device/include/asm/mcs51/features.h: added files with defines for
9718           _AUTOMEM and _STATMEM indicating automatic and static storage class
9719         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
9720         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
9721         * src/SDCCicode.c (geniCodeCast),
9722         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
9723         * src/SDCCloop.c (loopInduction): removed unused variable lr
9724         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
9725           to convertToFcall to include char modulo (RFE 1065037), added check
9726           if left operand is unsigned and use abs of literal value
9727         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
9728           as it doesn't work after conversion from peephole.def to peephole.rul
9729         * src/mcs51/gen.c (toBoolean): added check for size,
9730           (genModOneByte): optimized code for signed char modulo a literal
9731           power of 2 (thanks to Hubert Sack),
9732           (genRRC): removed unnecessary "clr c",
9733           (genRLC): replaced "add a,acc" with cheaper "rlc a"
9734         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
9735           jump optimization,
9736           swapped rules 256.c and 256.d,
9737           extended 256.d by using new multiple checks (thanks Erik),
9738           added rules 256.e and 256.f,
9739           updated rule 261.a and 261.b to new generated code
9740         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
9741
9742 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9743
9744         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
9745           induction related bugs, including first part of bug #1074377
9746
9747 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
9748
9749         * applied patch from bug-report #1076292,
9750         * applied patches for genAnd and Goto-optimizations for Raphael
9751         Neider,
9752         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
9753         dump a less iCode information,
9754         * src/pic16/device.h (pic16_options_t): added field debgen,
9755         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
9756         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
9757         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
9758         puclic,
9759         * (various functions): added macros FENTRY and FENTRY2 to functions,
9760         to emit function prologue,
9761         * (various functions): fixed indentation,
9762         * (genNearPointerGet): fixed loading of FSR0,
9763         * (genPackBits): applied patch from Raphael Neider to fix updating
9764         of FSR0 and touching only the modified bits,
9765         * src/pic16/genarith.c (various functions): added macros FENTRY to
9766         emit function prologue in comments,
9767         * src/pic16/pcode.h: added functions debugf2, debugf3,
9768         * src/pic16/ralloc.c: partial fix for packForPush caused
9769         segmentation fault,
9770
9771 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9772
9773         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
9774           <stsp AT users.sourceforge.net> with reversed byte order
9775         * support/regression/tests/rotate.c: added (ds390 skips some tests)
9776
9777 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9778
9779         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
9780           bug #1074377
9781         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
9782         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
9783
9784 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
9785
9786         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
9787
9788 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9789
9790         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
9791           conditions,
9792           (setFromConditionArgs): friendly operand parser for peephole rules,
9793           (operandBaseName, operandsNotRelated): new peephole condition
9794           "operandsNotRelated" -- similar to "operandsNotSame", but takes
9795           architecture specific register naming into account, handles n-way
9796           comparisons, and supports quoted literals
9797         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
9798
9799 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9800
9801         * src/mcs51/peeph.def: fixed bug #1076940
9802
9803 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
9804
9805         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
9806
9807 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9808
9809         Adding support for replacing ljmps with sjmps in jumptables
9810         generated for switch statements. For now you need to set the
9811         environment variable SDCC_SJMP_JUMPTABLE to enable this.
9812         Now 4 algorithms for mcs51 jumptable generation are used:
9813         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
9814         addresses loaded pc-relative for up to 112 cases and stack-pushing
9815         target addresses loaded with offset from dptr for up to 256 cases.
9816
9817         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
9818         * src/mcs51/main.c: adapted constants for switch table generation
9819         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
9820
9821 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
9822
9823         * device/lib/printf_large.c (_print_format): fixed bug 1073386
9824         * support/regression/tests/bug1057979.c: added test for bug 1073386
9825
9826 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
9827
9828         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
9829         compilers
9830
9831 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
9832
9833         * src/pic16/device.h,
9834         * src/pic16/genarith.c,
9835         * src/pic16/glue.c,
9836         * src/pic16/main.c,
9837         * src/pic16/pcode.c: applied patches #1068154 and #1070213
9838
9839 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
9840
9841         Large cummulative patch for pic16 port.
9842         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
9843         to call when a stack overflow occurs,
9844         * (malloc.h): added CVS Id tag,
9845         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
9846         variable,
9847         * added libc directory. The current version of LibC contains string
9848         functions, ctype functions and macros and some functions of the
9849         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
9850         be extensively tested in the future. Standard disclaimer here.
9851         Library is not automatically build yet. But one can build it by
9852         invoking 'make' inside the libc directory.
9853         * added ADC library under libio. Preliminary version yet.
9854
9855         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
9856         * src/pic16/gen.c (aopForRemat): asmop size is filled by
9857         aopForRemat() now and not by pic16_aopOp(),
9858         * (pic16_popGetTempReg): removed warning messgae when allocating
9859         temporary registers, its a buggy feature and will be removed,
9860         * (pic16_popGet): set register instance field in AOP_CRY,
9861         * (pic16_outBitC): fixed for results in size greater than 1,
9862         * (genUminusFloat): fixed for pic16, ported code from mcs51,
9863         * (pic16_storeForReturn): optimized return of 0,
9864         * (genCmp): experimental code for new genCmp which uses PIC18's
9865         special compare&skip instructions. Initial tests fail some times
9866         with variables grater than 1 byte in size, so new code is disabled,
9867         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
9868         a single bit,
9869         * (genCast): began a fix to optimize the casting of a bit to another
9870         bit, now assigning a bitfield to another bitfield will fail, sorry,
9871         * src/pic16/main.c: disabled the use of lr-support feature,
9872         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
9873         * added some function prototypes, added function _debugf prototype,
9874         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
9875         bits with offset (case PO_GPR_BIT),
9876         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
9877         command line,
9878         * (isBankInstruction): modified to return 0 for no banking instruction,
9879         and 1 for banking instruction,
9880         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
9881         caused stop processing pCodes after a inline assembly block,
9882         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
9883         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
9884         registers when it shouldn't,
9885         * src/pic16/ralloc.c (allocReg): add preliminary support for
9886         supporting a limited set of temporary registers,
9887
9888 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9889
9890         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
9891           genDataPointerSet): ensure assignments always copy in MSB to LSB
9892           order,
9893           (loadRegFromAop): recognize CLRH optimization,
9894           (genFunction): optimize RECEIVE iCodes in reentrant functions
9895
9896 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9897
9898         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
9899           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
9900           selected.
9901         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
9902         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
9903           contiguous with data
9904
9905 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9906
9907         * device/lib/_gptrget.c (_gptrget),
9908         * device/lib/_gptrgetc.c (_gptrgetc),
9909         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
9910           instead of sjmp to ret
9911         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
9912           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
9913
9914 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
9915
9916         * .version: bumped version to 2.4.7
9917         * device/lib/_gptrget.c (_gptrget): is now _naked
9918         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
9919         * device/lib/_gptrput.c (_gptrput): is now _naked
9920         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
9921           (createFunction): fixed xstack
9922         * src/SDCCglue.c (emitMaps): set allocation required for bit area
9923         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
9924           or bit either,
9925           (geniCodeCritical): store original interrupt state in an iTemp bit
9926           var unless stack-auto
9927         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
9928         * src/SDCCmain.c (setIncludePath): added include/target to search path
9929         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
9930         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
9931           prototype,
9932           (processFuncArgs): put bit vars in bit area
9933         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
9934           unsaveRBank): fixed xstack,
9935           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
9936           (genFunction, genEndFunction): fixed xstack,
9937           (genAssign): optimization don't walk backwards through mem
9938         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
9939         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
9940         * support/regression/Makefile: also make library (for stack-auto) when
9941           making "all" and added "test-mcs51-xstack-auto"
9942         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
9943         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
9944         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
9945         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
9946         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
9947           make-library by MAKE_LIBRARY
9948         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
9949           regression tests for xstack
9950         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
9951         * support/regression/tests/critical.c: test for critical on mcs51
9952
9953 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9954
9955         * support/regression/ports/ucz80/spec.mk: use include and lib files from
9956           built version of sdcc instead of installed version
9957
9958 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
9959
9960         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
9961         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
9962           vprintf.c now
9963         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
9964         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
9965           WARNING: remove device/lib/build/z80/printf.o by hand when
9966           updating from previous build!
9967         * device/lib/z80/printf.c: updated comment
9968         * support/regression/tests/bug1057979.c: test all ports now
9969         * support/regression/tests/bug1065458.c: file added
9970
9971 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9972
9973         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
9974           *_start and *_end symbols for static functions
9975
9976 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
9977
9978         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
9979           and search crt0.o in all library paths,
9980           (setIncludePath): proper handling of --nostdinc,
9981           (setLibPath): proper handling of --nostdlib
9982         * support/regression/Makefile,
9983         * support/regression/ports/ds390/spec.mk,
9984         * support/regression/ports/gbz80/spec.mk,
9985         * support/regression/ports/hc08/spec.mk,
9986         * support/regression/ports/mcs51/spec.mk,
9987         * support/regression/ports/mcs51-large/spec.mk,
9988         * support/regression/ports/mcs51-stack-auto/spec.mk,
9989         * support/regression/ports/z80/spec.mk: use include and lib files from
9990           built version of sdcc instead of installed version
9991         * doc/sdccman.lyx: fixed typo in --nostdinc
9992
9993 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
9994
9995         * src/pic/pcode.c,
9996         * src/pic/device.c,
9997         * src/pic/ralloc.c,
9998         * src/pic/gen.c : added support to generate code for struct bit fields.
9999
10000 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
10001
10002         * as/xa51/xa_version.h,
10003         * device/include/errno.h,
10004         * device/include/regc515c.h,
10005         * device/lib/_itoa.c,
10006         * device/lib/_ltoa.c,
10007         * device/lib/ser_ir_cts_rts.c,
10008         * sim/ucsim/xa.src/glob.cc,
10009         * sim/ucsim/xa.src/inst_gen.cc,
10010         * sim/ucsim/xa.src/xa_bit.cc,
10011         * sim/ucsim/xa.src/xa_sfr.cc,
10012         * sim/ucsim/z80.src/inst_dd.cc,
10013         * sim/ucsim/z80.src/inst_fdcb.cc,
10014         * support/scripts/keil2sdcc.pl,
10015         * src/pic16/pic16.dsp,
10016         * src/pic16/pic16a.dsp: corrected cvs line endings
10017         * device/lib/printf_large.c: fixed bug 1057979
10018         * src/pic16/gen.c: fixed non-C standard code
10019         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
10020         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
10021         * support/regression/ports/mcs51/support.c: reload T1 asap
10022         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
10023           pdata use and clear idata startup behaviour
10024         * support/regression/tests/bug1057979.c: added
10025
10026 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
10027
10028         * device/examples/ds390/ow390/ad26.h,
10029         * device/examples/ds390/ow390/cnt1d.h,
10030         * device/examples/ds390/ow390/crcutil.c,
10031         * device/examples/ds390/ow390/ownet.h,
10032         * device/examples/ds390/ow390/owsesu.c,
10033         * device/examples/ds390/ow390/swt12.h,
10034         * device/examples/ds390/ow390/swtoper.c,
10035         * device/examples/ds390/ow390/temp10.h,
10036         * device/examples/ds390/ow390/thermodl.c,
10037         * device/examples/ds390/tinitalk/tinitalk.dsp,
10038         * device/examples/ds390/tinitalk/tinitalk.dsw,
10039         * device/examples/mcs51/clock/hw.h,
10040         * device/examples/mcs51/simple2/go.bat,
10041         * device/examples/serialcomm/windows/serial.h,
10042         * device/examples/xa51/dummy.c,
10043         * device/examples/xa51/hello.c,
10044         * device/include/80c51xa.h,
10045         * device/include/at89x051.h: corrected cvs line endings
10046
10047 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
10048
10049         * src/pic16/main.c (options): added command line --gstack, to trace
10050         stack over/under flows,
10051         * added pragma 'wparam' to allow passing first byte of function
10052         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
10053         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
10054         call to __gstack_test function and sets up the symbol as extern,
10055         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
10056         * popaop): added call to pic16_testStackOverflow,
10057         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
10058         wparamList list,
10059         * (genCall, genPcall): now all parameters are passed via stack
10060         except in functions that are pass to wparam pragma in which WREG is
10061         used too,
10062         * (genPcall): REENTRANT flag is checked to see if variable prototype
10063         contains reentrant keyword, don't call a non-reentrant function, via
10064         a reentrant function pointer or vice versa, functions are never
10065         passed via WREG,
10066         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
10067         D.Winkler,
10068         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
10069         SIGSEGV when accessing a NULL register stucture,
10070         * (pic16_printGPointerType): modified to handle UPPER modifier for
10071         function initializers, changed prototype of function to simpler one,
10072         * (pic16_printIvalFuncPtr): check to see if function is already
10073         added in externs list,
10074         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
10075         optimized a move from W to SFR with a move to the same register
10076         later after a CALL,
10077         * device/lib/pic16/debug: NEW directory, contains debug features
10078         which are enabled when linking with libdebug.lib, currently command
10079         line option --gstack enables stack pointer tracing for over/under
10080         flow, corresponding sources are in debug/gstack
10081
10082 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
10083
10084         * doc/sdccman.lyx: updated SDCC version,
10085         * (PIC16 port): update list of command line options,
10086         * src/pic16/device.h (structure pic16_options_t): added field gstack
10087         to enable stack overflow tracing on push/pops,
10088         * src/pic16/device.c (statistics structure): added statistics
10089         structure,
10090         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
10091         pic16_dump_int_registers): increase statistics counters for each
10092         * variable which is encountered
10093         * (pic16_dump_usection): emit each .udata variable to its own udata
10094         section,
10095         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
10096         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
10097         parameters via stack, otherwise use old scheme,
10098         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
10099         assembler output file,
10100         * src/pic16/main.c: added command line options --gstack to enable
10101         push/pop tracing for stack overflow,
10102         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
10103         instructions): added size of each instruction,
10104         * (pic16_countInstruction): estimate size of instructions in
10105         the_pFile list, inline assembly blocks are not counted,
10106         * (pic16_FixRegisterBanking): trace previous register usage, when
10107         banksel optimizations is greater than 0, don't emit a redudant
10108         banksel directive,
10109
10110 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
10111
10112         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
10113         * src/pic16/ralloc.c : applied same fix for pic16.
10114         * src/pic/gen.c : tidied it up a little.
10115
10116 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10117
10118         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
10119         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
10120
10121 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10122
10123         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
10124
10125 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10126
10127         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
10128         non-reentrant function __modsint in the interrupt function (thus
10129         corrupting math operations during serial I/O)
10130         * device/lib/ser_ir.c: as above, changed buffersize
10131         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
10132         256.c,d for zeroing
10133         * doc/Makefile: added option -t for rsync
10134
10135 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10136
10137         * src/SDCCast.h (struct ast),
10138         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
10139
10140 2004-10-20 Borut Razem <borut.razem AT siol.net>
10141
10142         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
10143         package
10144
10145 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
10146
10147         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
10148         makefile targets,
10149         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
10150         support functions to replace long sequences of MOVFF's from access
10151         bank registers to stack and vice versa,
10152         * src/pic16/device.h: added new field opt_flags, where optimization
10153         flags can be set to enable certain features,
10154         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
10155         * pBlock, (genFunction, genEndFunction): surroung loop for
10156         saving/loading used registers in stack with PC_INFO pCodes,
10157         INF_LREGS. Code in between can then be optimized by pCode optimizer
10158         to support function calls,
10159         * (genDataPointerSet): fixed bug which loaded float fields in
10160         structures with corrupt data,
10161         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
10162         in a standard way debug info on stderr. Feature used for developing
10163         and debugging only,
10164         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
10165         obsolete chunks of code,
10166         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
10167         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
10168         * pic16/src/pcode.c (pic16_newpCodeInfo,
10169         * (pic16_newpCodeOpLocalRegs),
10170         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
10171         feature,
10172         * (pic16_pCodeConstString): printing of the initial value of a
10173         symbol as a comment is inhibited since parsing was already done by
10174         copyStr and output is corrupt,
10175         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
10176
10177 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10178
10179         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
10180
10181 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
10182
10183         * as/mcs51/lkarea.c: removed old K&R style,
10184           (lnksect): changed check on boundary error,
10185           (lnksect2): changed check on boundary error,
10186           (lnksect2): extend XSTK to end of page if size = 1
10187         * as/mcs51/lkmain.c: removed old K&R style,
10188           (Areas51): create l_IRAM symbol
10189         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
10190         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
10191           model-mcs51-stack-auto, added model-mcs51-xstack-auto
10192         * device/lib/_mullong.c: added version to be compiled with xstack
10193         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
10194         * device/lib/mcs51/crtxclear.asm: clear pdata as well
10195         * device/lib/mcs51/crtxstack.asm: fixed comment
10196         * src/SDCCglue.c: maxInterrupts defaults to 0,
10197           (emitMaps): added pdata,
10198           (createInterruptVect): (re)moved default,
10199           (glue): added pdata,
10200           (glue): moved __start__xstack to XSTK with default size 1
10201         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
10202           and options.float_rent when options.stackAuto is set,
10203           (linkEdit): only write XDATA_NAME if provided on command line
10204         * src/SDCCmem.h,
10205         * src/SDCCmem.c: added pdata
10206         * src/port.h: added pdata_name to PORT
10207         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
10208           (saveRegisters, unsaveRegisters): removed usage of B,
10209           (genMinus): fixed accumulator clash,
10210           (genJumpTab): added comment, this needs another look
10211         * src/mcs51/gen.c: added check for "B in use" paranoia,
10212           added pushB() and popB()
10213         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
10214           chance
10215         * src/avr/main.c,
10216         * src/ds390/main.c,
10217         * src/hc08/main.c,
10218         * src/mcs51/main.c,
10219         * src/pic/main.c,
10220         * src/pic16/main.c,
10221         * src/xa51/main.c,
10222         * src/z80/main.c: (reset_regparms) made void parameter explicit and
10223           added PSEG (PAG,XDATA) or NULL to port specifier
10224         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
10225         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
10226           (_mcs51_genInitStartup): removed __start__xstack equ,
10227           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
10228         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
10229         * src/z80/gen.c (_rleAppend): fixed warnings
10230         * support/regression/tests/zeropad.c: added pdata test
10231         * .version: bumped to 2.4.6
10232
10233 2004-10-17 Borut Razem <borut.razem AT siol.net>
10234
10235         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
10236         as a part of nightly build
10237
10238 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
10239
10240         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
10241         WREG holds the first byte function parameters,
10242         * (aopForSym): take special case for symbols which are in FARSPACE
10243         but in CODESPACE too,
10244         * (assignResultValue): modified to take into account _G.useWreg,
10245         * (genCall): don't use wreg for parameter passing when function is
10246         declared as reentrant, too, added optimization INCF to stack
10247         pointer when stack parameter count is 1,
10248         * (genFunction, genEndFunction): refurnished and fixed to not using
10249         wreg for passing parameters when function has varargs or is
10250         reentrant, fixed bug with symbol name compare for generating
10251         functions in absolute address,
10252         * (pic16_storeForReturn): refurnished,
10253         * (genCmp): began writing a new version of the function, not ready
10254         yet, therefore it is disabled,
10255         * (genAssign): do not read code memory when assigning a function to
10256         a pointer function,
10257         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
10258         array of characters, not pointer,
10259         * (pic16initialComments): in debug mode emit an .ident directive for
10260         the assembler,
10261         * (_process_pragma): emit a new warning type (internal to pic16)
10262         when setting stack to default length, emit a similar warning when
10263         placing a function at absolute address and address is not word aligned
10264         * (_pic16_parseOptions): added 'return TRUE' statement,
10265         * (_pic16_linkEdit): if compiling a source, then add the source's
10266         file object, first in the list of objects to link,
10267
10268 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
10269
10270         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
10271         * src/pic/main.c : removed VC warning.
10272         * src/pic/gen.c : changed comment.
10273
10274 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
10275
10276         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
10277         reference to a deprecated symbol _GPTRREG was causing failure to
10278         link. Thanks G. M. Gallant for the info.
10279
10280 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
10281
10282         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
10283         comments for Bugs item #954788.
10284
10285 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
10286
10287         * src/pic16/device.c (pic16_dump_gsection,
10288         * pic16_groupRegistersInSection): handle symbols declared to be in
10289         access bank differently,
10290         * src/pic16/gen.c (struct _G): added field resDirect,
10291         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
10292         send values read from stack directly to result and don't allocate
10293         temporary values,
10294         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
10295         same registers,
10296         * (pic16_sameRegsOfs): NEW,
10297         * (freeAsmop): if _G.resDirect is set then do not mark registers as
10298         free because they were not allocated from temporary pool,
10299         * pic16_popRegFromString): workaround to fix a problem with
10300         allocating variables twice or never,
10301         * (genGenPointerGet): using PRODL instead of FSR0H,
10302         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
10303         instead of FSR0H,
10304         * (genAssign): take advantage of the _G.resDirect flag,
10305         * (genCast): around line 11844, use mov2f instead of directly
10306         MOVFF'ing between operands to account for literal values,
10307         * src/pic16/genutils.c: some new debug functions for gpsim have been
10308         added,
10309         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
10310         float with integer part only,
10311         * src/pic16/main.c (_process_pragma): handle pragma udata access to
10312         place variables in access bank
10313         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
10314         updated sources to reflect recent changes in gen.c
10315
10316 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
10317
10318         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
10319         sources that searched for headers in installation path, now the
10320         device/include/pic16 is used,
10321         * src/pic16/glue.c (pic16glue),
10322         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
10323         .line directives if not in debug mode, this suppresses assembler's
10324         warnings for ignored directives
10325
10326 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
10327
10328         * src/port.h: made reset_regparms prototype void parameter explicit.
10329         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
10330         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
10331         * doc/sdccman.lyx: documented warning disabling and how to use
10332           printf_large to make it print floats.
10333         * device/include/stdbool.h: NEW
10334         * device/lib/_atof.c,
10335         * device/lib/_divuint.c,
10336         * device/lib/_divulong.c,
10337         * device/lib/expf.c,
10338         * device/lib/printf_large.c,
10339         * device/lib/sincosf.c,
10340         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
10341         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
10342           a completely reentrant lib.
10343
10344 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
10345
10346         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
10347         * device/include/pic16/stdio.h: fixed bug with colon
10348
10349 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
10350
10351         * device/include/pic16/stdio.h,
10352         * device/include/pic16/stdlib.h,
10353         * device/include/pic16/math.h: NEW
10354         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
10355         declared as _naked to reduce overhead
10356         * device/lib/Makefile.in (target port-specific-objects-pic16):
10357         changed * to *.* so to ignore the CVS directory,
10358         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
10359         stacked variables back in stack,
10360         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
10361         corruption
10362
10363 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
10364
10365         * .version: bumped version number to 2.4.5
10366         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
10367         * support/Util/SDCCerr.c (messages structure): added entry for
10368         W_POSSBUG2
10369
10370         Large cumulative patch for pic16 port and libraries.
10371         * device/include/pic16/sdcc-lib.h,
10372         * device/include/pic16/stdarg.h,
10373         * device/include/asm/pic16/features.h,
10374         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
10375         * device/include/pic16/float.h: changes reentrant keyword with
10376         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
10377         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
10378         updated target build-libraries to include objects from gptr,
10379         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
10380         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
10381         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
10382         all function headings,
10383         * src/SDCCmain.c: added global parameter userIncDirsSet,
10384         * (parseCmdLine): when option -I is encountered add directory to
10385         userIncDirsSet too,
10386         * src/version.awk: added space between control and long,
10387         * src/pic16/NOTES: added some notes for the port,
10388         * src/pic16/gen.c: added prototype for mov2fp function,
10389         * (fReturnpic16[]): properly named return value registers,
10390         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
10391         * (aopForSym): added code to handle symbols with onStack flag set,
10392         symbols onStack are allocated PTRSIZE bytes,
10393         * (aopFreeAsmop): handles special case where asmops are stack objects,
10394         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
10395         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
10396         added argument lock to trace flaws in allocating temporary registers
10397         when developing port,
10398         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
10399         * (pic16_popRegFromString): reenabled allocating a direct register
10400         from string,
10401         * (assignResultValue): various beautifications,
10402         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
10403         referenced function argument,
10404         * (genIpush): reenabled to allow stacked arguments, handles only
10405         ic->parmPush iCodes,
10406         * (genCall, genPcall): major changes to allow for variable argument
10407         functions, fixed a bug with falsely restoring stack pointer after
10408         returning from call,
10409         * (genFunction): pending code for critical function,
10410         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
10411         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
10412         * (genNearPointerGet): fixed bug with indirect reading, was always
10413         reading from INDF0
10414         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
10415         pointers,
10416         * (genAddrOf): rewrote code to take address of a stacked function parameter
10417         * (genCast): fixed casting to generic pointer type,
10418         * src/pic16/gen.h: added AOP_STA,
10419         * (struct asmop): added field stk,
10420         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
10421         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
10422         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
10423         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
10424         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
10425         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
10426         generic pointers,
10427         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
10428         and library paths,
10429         * (pic16_port structure): generic pointer size is set to 3,
10430         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
10431         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
10432         compiler warning,
10433         * src/pic16/ralloc.c (allocReg): prevent allocating register when
10434         operand is an iTemp,
10435
10436 2004-09-24 Martin Helmling <mh AT octo-soft.de>
10437
10438         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
10439         * debugger/mcs51/simi.c: addapt new syntax of s51
10440
10441 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
10442
10443         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
10444         * src/pic16/pcode.c: commented out some calls to free() in order to
10445         fix bug #989576,
10446
10447 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10448
10449         * src/SDCCicode.h,
10450         * src/SDCCicode.c (isiCodeInFunctionCall),
10451         * src/avr/ralloc.c (selectSpil),
10452         * src/pic/ralloc.c (selectSpil),
10453         * src/pic16/ralloc.c (selectSpil),
10454         * src/ds390/ralloc.c (selectSpil),
10455         * src/hc08/ralloc.c (selectSpil),
10456         * src/xa51/ralloc.c (selectSpil),
10457         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
10458         stack in the middle of a function call sequence (fixes bug #1020268)
10459         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
10460         costs associated with the minimum switch case.
10461
10462 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10463
10464         * src/SDCC.lex: fixed bug #1030549
10465
10466 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10467
10468         * src/SDCCcse.h (struct cseDef),
10469         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
10470         over a function call if the CSE is derived from a symbol whose
10471         address has been taken (fixes bug #1029883)
10472         * support/regression/tests/bug-1029883: a new regression test for
10473         this bug
10474
10475 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10476
10477         * src/hc08/gen.c (emitinline): fixed bug #1029778
10478         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
10479         to a cast object is no longer a syntax error ("fixes" bug #1030006,
10480         and starts toward RFE #905167)
10481
10482 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
10483
10484         * src/pic16/gen.c (mov2f): New function to move an operand to
10485         another without considering if it is a literal or a register,
10486         * (pic16_sameRegs): don't check if they are both AOP_REG,
10487         * (AccRsh): removed andmask=0 lines,
10488         * (genLeftShift): duplicated to be improved in future versions,
10489         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
10490         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
10491         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
10492         * (pic16initMnemonics): added initialization for POC_INFSNZW,
10493         * (insertBankSwitch): fixed inserting banksel directives algorithm
10494         for instructions that follow a skip instruction, this fixes a report
10495         for broken subtraction code generation,
10496         * src/pic16/ralloc.c (deassignLRs): do not free register if current
10497         iCode is a left op, just in case result and right share the same
10498         registers
10499
10500 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10501
10502         * src/hc08/main.c,
10503         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
10504         preservation of HX
10505         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
10506         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
10507         on 2004-09-12; it was buggy
10508
10509 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
10510
10511         * src/SDCCsymt.h: removed RESULT_CHECK
10512         * src/SDCCast.c,
10513         * src/SDCCglue.c,
10514         * src/SDCCval.c,
10515         * src/pic/glue.c,
10516         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
10517
10518 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
10519
10520         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
10521         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
10522         configuration values no more rejected by compiler, they are assigned
10523         to configuration registers with a warning message instead,
10524         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
10525         the for-loop so last conf register is emitted too,
10526         * (_pic16_initPaths): link library libsdcc.lib by default,
10527         * (_hasNativeMulFor): modified test for multiplication according to
10528         Raphael Neider's remarks. Integer multiplication is also done with
10529         support functions,
10530         * device/include/pic16/pic18fregs.h: corrected type error in while
10531         testing and including 18f6720 header file
10532
10533 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
10534
10535         * src/pic16/device.h (pic16_options): removed field use_crt,
10536         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
10537         until an optimization to handle single bits is added,
10538         * (pic16_loadFSR0): moved before genUnpackBits,
10539         * (genAnd): some white lines removed,
10540         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
10541         leave_reset flags in pic16_options when using crt modules,
10542
10543 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
10544
10545         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
10546           for bugs 898889 & 979599. Also used some safer print instructions.
10547
10548 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
10549
10550         * src/pic16/device.h (pic16_options_t): added field use_crt,
10551         crt_name, no_crt,
10552         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
10553         catch a probable future bug,
10554         * src/pic16/gen.c: aopIdx function commented out,
10555         * (genAssign): commented out old code which used aopIdx,
10556         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
10557         code, added if conditionals to take into account the --use-crt
10558         command line options,
10559         * src/pic16/main.c (pic16_optionsTable): added new command line
10560         options, --use-crt= and --no-crt,
10561         * (_pic16_linkEdit): now the proper crt object is added in the
10562         linker command line except than when --no-crt is specified,
10563         * src/pic16/pcode.c,
10564         * src/pic16/pcode.h: added some structures and functions for a new
10565         optimization scheme to compansate for instruction overhead between
10566         same iCodes, this scheme is currently under development and is not
10567         working in any way,
10568         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
10569         to && operator,
10570         * device/lib/pic16/startup/crt0i.c,
10571         * device/lib/pic16/startup/crt0iz.c: added global char variable
10572         __uflags to force the generation of an idata section
10573
10574 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
10575
10576         * doc/Makefile,
10577         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
10578         * doc/sdccman.lyx: updated sdcc version to 2.4.4
10579
10580 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10581
10582         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
10583         Frieder) and clarified the default code optimization mode
10584
10585 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10586
10587         * src/SDCC.lex (doPragma, process_pragma),
10588         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
10589         "opt_code_size", and "opt_code_balanced"
10590         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
10591         regrouped options by category, added support for category headers
10592         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
10593         and "--opt-code-size"
10594         * doc/sdccman.lyx: documented these new options and pragmas
10595         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
10596         preference into account
10597
10598 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10599
10600         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
10601           geniCodePreDec): Fixed bug 904237 by generating a warning
10602         * src/SDCCerr.h,
10603         * src/SDCCerr.c: added warning W_SIZEOF_VOID
10604
10605 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
10606
10607         * src/pic/device.c : When no max ram set validate full memory range.
10608         * src/pic/pcode.c,
10609         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
10610
10611 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10612
10613         * device/lib/_gptrget.c,
10614         * device/lib/_gptrput.c: updated comment
10615         * device/lib/calloc.c,
10616         * device/lib/free.c,
10617         * device/lib/malloc.c,
10618         * device/lib/realloc.c: added LGPL, made them reentrant-safe
10619         * src/SDCCcse.c (cseBBlock),
10620         * src/SDCCicode.c (printOperand, geniCodeArray),
10621         * src/SDCCicode.h (struct operand): fixed bug 868103
10622         * support/regression/tests/bug-868103.c: added
10623         * src/SDCCast.c (searchLitOp),
10624         * src/SDCCcse.h (struct cseDef),
10625         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
10626         * src/SDCCicode.h (struct operand),
10627         * src/SDCCsymt.h (struct sym_link),
10628         * src/avr/gen.c (hasInc),
10629         * src/ds390/gen.c (hasInc),
10630         * src/hc08/gen.c (genPlusIncr, hasInc),
10631         * src/mcs51/gen.c (hasInc),
10632         * src/pic16/glue.c (pic16_printIvalChar),
10633         * src/pic16/ralloc.c (regWithIdx),
10634         * src/xa51/gen.c (hasInc) : removed warnings
10635         * src/SDCCast.c (createBlock): added comment ???
10636         * src/hc08/ralloc.c: updated comments
10637
10638 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10639
10640         * doc/sdccman.lyx: updated section on switch statements, added
10641         section about semaphore locking
10642         * doc/Makefile: added option -info for latex2html
10643         * device/lib/_gptrget.c,
10644         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
10645
10646 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10647
10648         * src/pic/device.h,
10649         * src/pic/device.c,
10650         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
10651          maxram is less than 0x100.
10652
10653 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10654
10655         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
10656
10657 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10658
10659         * src/port.h,
10660         * src/mcs51/main.c,
10661         * src/ds390/main.c,
10662         * src/z80/main.c,
10663         * src/hc08/main.c,
10664         * src/pic/main.c,
10665         * src/pic16/main.c,
10666         * src/avr/main.c,
10667         * src/xa51/main.c
10668         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
10669         a jump table is the best form for a switch statement, including
10670         automatic insertion of missing cases to make the case range
10671         continuous. Developed in collaboration with Frieder Ferlemann.
10672
10673 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10674
10675         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
10676         accumulator result if it needs sign extension
10677
10678 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10679
10680         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
10681
10682 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10683
10684         * device/lib/gbz80/printf.c,
10685         * device/lib/z80/printf.c: removed define for NULL
10686
10687 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10688
10689         * as/xa51/xa_link.c,
10690         * device/examples/ds390/ow390/ad26.c,
10691         * device/examples/ds390/ow390/cnt1d.c,
10692         * device/examples/ds390/ow390/counter.c,
10693         * device/examples/ds390/ow390/ds2480.h,
10694         * device/examples/ds390/ow390/ds2480ut.c,
10695         * device/examples/ds390/ow390/findtype.c,
10696         * device/examples/ds390/ow390/gethumd.c,
10697         * device/examples/ds390/ow390/owllu.c,
10698         * device/examples/ds390/ow390/ownetu.c,
10699         * device/examples/ds390/ow390/swt12.c,
10700         * device/examples/ds390/ow390/swtloop.c,
10701         * device/examples/ds390/ow390/temp.c,
10702         * device/examples/ds390/ow390/temp10.c,
10703         * device/examples/ds390/ow390/thermo21.c,
10704         * device/examples/ds390/ow390/tinilnk.c,
10705         * device/examples/ds390/ow390/tstfind.c,
10706         * device/examples/serialcomm/windows/serial.cpp,
10707         * device/examples/serialcomm/windows/test_serialcomm.cpp,
10708         * device/include/reg51.h: fixed line endings for cvs
10709
10710 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10711
10712         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
10713         packRegsForAccUse, packRegisters): new accumulator register
10714         packing algorithm
10715         * support/regression/ports/hc08/support.c (_putchar): suppress
10716         warning of unused variable
10717         * src/SDCCicode.c: added SWAP entry to codeTable
10718
10719 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
10720
10721         * device/lib/sprintf.c: forgot to add this file before previous commit
10722
10723 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
10724
10725         * src/pic16/gen.c (genPackBits): added operand right in function
10726         parameters, load result directly if p_type is POINTER (that is
10727         called by genNearPointerSet)
10728         * (genUnPackBits): added operand left in function parameters,
10729         * (genNearPointerGet, genNearPointerSet): prevent the loading of
10730         FSR0 if accessing bitfields,
10731
10732 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
10733
10734         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
10735           _print_format; updated printf, sprintf, vsprintf
10736         * device/include/asm/default/features.h: corrected comment/define
10737         * device/lib/Makefile.in: added sprintf.c
10738         * device/lib/libsdcc.lib: added sprintf module
10739         * device/lib/printf_large.c,
10740         * device/lib/vprintf.c,
10741         * device/lib/sprintf.c: totally refactored printf_large and vprintf
10742           into these 3 files
10743         * support/regression/Makefile: changed ALL_PORTS into a usefull default
10744         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
10745         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
10746           hc08 test
10747         * support/regression/tests/zeropad.c: define idata as data for hc08
10748
10749 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10750
10751         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
10752         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
10753         labels are referenced at least once (even if a reference is not found)
10754         * src/hc08/gen.c (emitcode): set isComment flag for comments
10755         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
10756         loads), rules 6a..6b (optimize jumps to return)
10757
10758 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10759
10760         * device/lib/acosf.c (acosf),
10761         * device/lib/asinf.c (asinf),
10762         * device/lib/atanf.c (atanf),
10763         * device/lib/ceilf.c (ceilf),
10764         * device/lib/cosf.c (cosf),
10765         * device/lib/coshf.c (coshf),
10766         * device/lib/cotf.c (cotf),
10767         * device/lib/fabsf.c (fabsf),
10768         * device/lib/floorf.c (floorf),
10769         * device/lib/log10f.c (log10f),
10770         * device/lib/logf.c (logf),
10771         * device/lib/sinf.c (sinf),
10772         * device/lib/sinhf.c (sinhf),
10773         * device/lib/sqrtf.c (sqrtf),
10774         * device/lib/tanf.c (tanf),
10775         * device/lib/tanhf.c (tanhf),
10776         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
10777         replaced all instances of "reentrant" in the library functions
10778         defined in math.h with this macro.
10779         * support/regression/tests/float_trans.c: reenabled test for hc08
10780
10781 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
10782
10783         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
10784         erroneously deleted
10785
10786 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10787
10788         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
10789         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
10790         multi-byte volatile operands are used
10791         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
10792         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
10793         initialization to area GSINIT0 so that it would always precede
10794         any static initializers in GSINIT
10795         * support/regression/tests/zeropad.c: fixed idata define for hc08
10796         * support/regression/tests/bug-927659.c,
10797         * support/regression/tests/float_trans.c: disabled tests for hc08
10798         pending missing library routines
10799         * .version: increased version number to 2.4.4 - hc08 port now passes
10800         regression tests
10801
10802
10803 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
10804
10805         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
10806         * Makefile.common.in,
10807         * as/Makefile,
10808         * as/hc08/Makefile.in,
10809         * as/mcs51/Makefile.in,
10810         * as/z80/Makefile.in,
10811         * debugger/mcs51/Makefile.in,
10812         * device/include/Makefile.in,
10813         * device/lib/Makefile.in,
10814         * doc/Makefile,
10815         * link/Makefile,
10816         * link/z80/Makefile.in,
10817         * packihx/Makefile.in,
10818         * sim/ucsim/main_in.mk,
10819         * sim/ucsim/avr.src/Makefile.in,
10820         * sim/ucsim/doc/Makefile.in,
10821         * sim/ucsim/gui.src/serio.src/Makefile.in,
10822         * sim/ucsim/hc08.src/Makefile.in,
10823         * sim/ucsim/s51.src/Makefile.in,
10824         * sim/ucsim/xa.src/Makefile.in,
10825         * sim/ucsim/z80.src/Makefile.in,
10826         * src/Makefile.in,
10827         * support/cpp2/Makefile.in,
10828         * support/librarian/Makefile,
10829         * support/makebin/Makefile: added DESTDIR to the install path proposed
10830         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
10831         * doc/sdccman.lyx: added DESTDIR documentation
10832
10833 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
10834
10835         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
10836         instruction for interrupt handlers, use fast returns when returning
10837         from high priority interrupts
10838
10839 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10840
10841         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
10842         code generation
10843         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
10844         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
10845         bugs, ported much of Bernhard's code from mcs51
10846         * src/mcs51/gen.c (genSend),
10847         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
10848         than one when calling a reentrant function
10849         * device/lib/_mullong.c: defined an alternate struct layout for big
10850         endian ports (hc08)
10851
10852 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10853
10854         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
10855         test
10856
10857 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10858
10859         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
10860         are sane and complete before asking the port its prefered parameter
10861         passing method (fixes bug #1017633)
10862         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
10863         and _ret3
10864
10865 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10866
10867         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
10868         problem in bitfields >= 8 bits.
10869
10870 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10871
10872         * src/SDCCsymt.c: undid changes that were not meant to be committed
10873
10874 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10875
10876         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
10877
10878 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10879
10880         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
10881           copied and wrong bit got inverted
10882
10883 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10884
10885         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
10886         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
10887         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
10888         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
10889         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
10890         assignments to bitfields at known addresses
10891         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
10892         reads from bitfields at known addresses
10893         * src/hc08/ralloc.c (packRegisters),
10894         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
10895         genhc08Code): optimize pointer get values used as conditionals
10896         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
10897         and branch
10898
10899 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10900
10901         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
10902         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
10903         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
10904         as conditionals
10905
10906 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10907
10908         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
10909
10910 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10911
10912         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
10913         related problems
10914
10915 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
10916
10917         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
10918
10919 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10920
10921         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
10922         mcs51 port
10923
10924 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
10925
10926         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
10927
10928 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10929
10930         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
10931         cases use more compact code.
10932
10933 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
10934
10935         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
10936
10937 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10938
10939         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
10940
10941 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10942
10943         * src/SDCCsymt.h,
10944         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
10945         parameter of changePointer() from symbol* to sym_link*
10946         * src/SDCCast.c (decorateType): call changePointer() for CAST op
10947         * src/SDCCsymt.c (compareType): void* type is castable to other
10948         pointers, but not necesarily an exact match.
10949         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
10950         is no longer blindly treated as an exact match.
10951         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
10952
10953 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
10954
10955         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
10956
10957 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
10958
10959         * src/pic/gen.c,
10960         * src/pic/pcode.c,
10961         * src/pic/ralloc.h,
10962         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
10963
10964 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
10965
10966         * src/pic/device.c,
10967         * src/pic/device.h,
10968         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
10969
10970 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10971
10972         * src/mcs51/gen.c (emitcode): fixed bug #992819
10973
10974 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
10975
10976         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
10977           there's no need to make it worse
10978
10979 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10980
10981         * src/mcs51/ralloc.c (deassignLR),
10982         * src/ds390/ralloc.c (deassignLR),
10983         * src/hc08/ralloc.c (deassignLR),
10984         * src/z80/ralloc.c (deassignLR),
10985         * src/pic/ralloc.c (deassignLR),
10986         * src/pic16/ralloc.c (deassignLR),
10987         * src/avr/ralloc.c (deassignLR),
10988         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
10989         rlivePoint): fixed another part of bug #971834
10990
10991 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10992
10993         * src/z80/main.c: enabled "critical" keyword
10994         * src/z80/mappings.i,
10995         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
10996         functions (fixes bug #979646)
10997         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
10998
10999 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11000
11001         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
11002           such as c:\mydir.
11003
11004 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
11005
11006         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
11007           doesn't disable too much optimizations
11008
11009 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
11010
11011         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
11012
11013 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
11014
11015         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
11016
11017 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
11018
11019         * src/pic/gen.c tidied up tabs
11020         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
11021         * src/pic/main.c tidied up tabs
11022         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
11023         * src/pic/pcoderegs.c tidied up tabs
11024         * src/pic/ralloc.c tidied up tabs
11025
11026 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
11027
11028         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
11029         to S_FIXED for pic16 port and when symbol is not in level 0,
11030         allocate for S_REGISTER storage class and pic16 port, too,
11031         * src/pic16/device.h: prototype for checkSym,
11032         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
11033         * (pic16_assignConfigWordValue): test the value and the mask to
11034         validate that the value is suitable for the configuration word,
11035         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
11036         collect extern declared symbols, don't emit symbol twice, check
11037         first if symbol is in publics set first,
11038         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
11039         * added command line '--fstack' which enables an experimental
11040         feature for stack access, too buggy to be used yet...
11041         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
11042         * (pic16_allocDirReg): when register has storage class S_REGISTER
11043         allocate in pic16_dynAccessRegs,
11044         * device/include/pic16/pic18f????.h: modified configuration word
11045         naming convention, words started as CONFIG0H but should be CONFIG1H
11046
11047 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
11048
11049         * device/include/mcs51reg.h: fixed bug 970993
11050
11051 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
11052
11053         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
11054         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
11055         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
11056         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
11057         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
11058         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
11059           error/warning numbers,
11060           added function setWarningDisabled()
11061         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
11062         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
11063           _memcmp.c _memmove.c calloc.c realloc.c free.c
11064         * support/regression/tests/malloc.c: added tests for new functionality
11065         * support/regression/tests/zeropad.c: added tests for truncated initializers
11066           and initialized char arrays starting with '\x0'
11067         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
11068
11069 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
11070
11071         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
11072
11073 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11074
11075         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
11076         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
11077         peephole 177.e. Thanks to anonymous
11078
11079 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
11080
11081         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
11082         function isn't used in the source but referenced as a
11083         variable initializer then declare it as extern in .asm file
11084
11085 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
11086
11087         * .version: increased version number to 2.4.3
11088
11089         Adding version extension according to ChangeLog CVS revision
11090         * src/Makefile.in (target all): added dependency 'version.h'
11091         * (rule version.h): added rule to create version.h from ChangeLog,
11092         * (rule dep): added dependency version.h,
11093         * src/version.awk: AWK script to create version.h
11094         * src/SDCCdwarf2.c (dwWriteModule),
11095         * src/SDCCglue.c (initialComments),
11096         * src/SDCCmain.c (printVersionInfo): modified to write after
11097         version string the version extension number,
11098         * src/SDCCutil.c: included "version.h"
11099         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
11100         number,
11101         * src/SDCCutil.h: added prototype for getBuildNumber
11102
11103         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
11104         includeDirsSet, too,
11105         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
11106         const char [] is found in function prototype...
11107
11108         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
11109         moving to WREG with source is already in WREG,
11110         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
11111         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
11112         * (aopForSym): stack'ed symbols are partially supported, added
11113         if-clause to support symbols in FARSPACE,
11114         * (sameRegs): added test for AOP_ACC to see if registers are same,
11115         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
11116         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
11117         * (pic16_popRegFromString): will not allocate a new register if it
11118         doesn't find one by name, bug may have introduced...
11119         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
11120         * (genIpush): revived to use pic16 port's stack,
11121         * (genAddrOf): added incomplete case for stack'ed operand,
11122         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
11123         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
11124         can handle multibyte operands,
11125         * src/pic16/glue.c (pic16_printIval*): some debug info added,
11126         * (pic16initialComments): added message for MPLAB compatibility
11127         mode enabled,
11128         * src/pic16/main.h: prototype for pic16_mplab_comp,
11129         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
11130         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
11131         * (_pic16_linkEdit): NEW, handles link stage, transferred here
11132         because of increased complexity of procedure,
11133         * (_process_pragma): stack pragma changed to format 'stack pos len',
11134         emit symbol '_stack_end' to conform with gplink,
11135         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
11136         to search for register,
11137         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
11138         PO_GPR_REGISTER,
11139         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
11140         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
11141         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
11142         case for PO_GPR_REGISTER,
11143         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
11144         dies, the new era is ahead !...
11145         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
11146         pic16_dynInternalRegs,
11147         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
11148         * (pic16_allocDirReg): minor optimizations and bug fixes,
11149         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
11150
11151         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
11152         load stack and frame pointer with address of 'stack_end' symbol
11153
11154 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
11155
11156         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
11157         without source code but only variable initializers
11158
11159 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
11160
11161         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
11162         external are not declared as extern to reduce overhead while linking
11163
11164 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
11165
11166         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
11167
11168 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
11169
11170         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
11171           Yee Keat for the patch
11172         * src/SDCCast.c (decorateType): fixed bug #979599
11173         * src/ds390/gen.h: removed local fReturnSizeDS390
11174         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
11175         * src/ds390/gen.c (genAnd, genOr, genXor),
11176         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
11177
11178 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
11179
11180         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
11181         add relFilesSet to $3, manipulate $2 to handle linking of object
11182         files without source files in command line,
11183         * device/include/pic16 (all headers): added ID location macros,
11184         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
11185         entries for ID location bytes,
11186         * (pic16_assignIdByteValue): NEW,
11187         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
11188         added field dumpcalltree to pic16_options_t,
11189         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
11190         is used instead of pic16_Gstack_base_addr, check if (ifx) before
11191         emitting rFalseIfx label after check_carry label,
11192         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
11193         pic16_emitDIRegs), NEW
11194         * (pic16glue): dump .calltree file when option --calltree found,
11195         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
11196         * (_pic16_genAssemblerPreamble): emit ID locations after
11197         configuration registers,
11198         * (pic16_linkCmd): modifications of the link command,
11199         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
11200         * (pic16_pCodeInitRegisters): don't init stack registers,
11201         * (pic16_findPrevInstruction): fixed bug,
11202         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
11203         bug with immediate registers,
11204         * (buildCallTree): traces stack push and pop,
11205         * (pct2): dump also stack usage for each function,
11206         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
11207         * (pic16_allocDirReg): various modifications,
11208         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
11209         fixed to 1,
11210
11211 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
11212
11213         * src/pic16/pcode.c: removed buggy double colon
11214
11215 2004-07-01 Borut Razem <borut.razem AT siol.net>
11216
11217         * support/scripts/sdcc.nsi: added include/pic16 to setup
11218
11219 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
11220
11221         * device/lib/Makefile.in: fixed bug in target objects-pic16,
11222         * device/lib/pic16/Makefile: prefixed with dash (-) command under
11223         target 'clean',
11224         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
11225         specific command line arguments. Also added sample lkr script
11226         for placing a variable at a specific memory bank.
11227         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
11228         at a specific memory bank,
11229         * (pic16_dump_isection): fixed bug which caused string literals to
11230         be omitted when dumping idata section,
11231         * (pic16_groupRegistersInSection): added code to handle registers
11232         in specific memory banks,
11233         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
11234         public, all references are renamed too,
11235         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
11236         AOP_DPTR2,
11237         * (pic16_storeForReturn): added case to handle when dest is WREG,
11238         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
11239         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
11240         pic16_rel_udata, check to see if that register is marked as being
11241         a member of a specific memory bank,
11242         * (pic16_printIvalCharPtr): added code to add string literals either
11243         to code or the idata sections,
11244         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
11245         also accept the 'udata' pragma,
11246         * src/pic16/main.h: new structure types sectName and sectSym
11247         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
11248         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
11249         * (pic16_findPrevInstruction): fixed, it returned nothing,
11250         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
11251         instruction combinations,
11252         * (pic16_FixRegisterBanking): heavily reorganised,
11253         * (pic16_AnalyzeBanking): if generating banksel directives is
11254         disabled, then don't call FixRegisterBanking at all,
11255         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
11256         completely removed,
11257         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
11258
11259 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
11260
11261         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
11262         Phuah Yee Keat <yk.phuah AT nestac.com>
11263
11264 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
11265
11266         * src/pic16/glue.c (pic16createInterruptVect): function now emits
11267         correctly the IVT even if it is relocated to some other location
11268
11269 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
11270
11271         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
11272         * device/include/pic16/pic18f2220.h: NEW,
11273         * device/lib/pic16/libdev/pic18f2220.c: NEW,
11274         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
11275         * src/pic16/device.c (struct Pics16): added info for 18f2220,
11276         * src/pic16/device.h (struct pic16_options): added ivt_loc and
11277         nodefaultlibs, ivt_loc is the location of the interrupt vector
11278         table, and nodefaultlibs signs that default libraries should not be
11279         linked in link stage,
11280         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
11281         according to --ivt-loc argument,
11282         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
11283         when pragma stack is found,
11284
11285 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11286
11287         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
11288         256 (range check), 257 (do while), 258.a-f (bit banging
11289         f.e. on 3-wire SPI bus)
11290
11291 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11292
11293         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
11294         variables used exclusively within a loop
11295
11296 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
11297
11298         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
11299
11300 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11301
11302         * src/SDCClrange.c (computeClash): fixed bug #971834
11303
11304 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11305
11306         * src/mcs51/gen.c (genCmp): fixed bug #975903
11307         * src/hc08/gen.c (operandsEqu),
11308         * src/ds390/gen.c (operandsEqu),
11309         * src/z80/gen.c (operandsEqu),
11310         * src/pic/gen.c (operandsEqu),
11311         * src/pic16/gen.c (operandsEqu),
11312         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
11313         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
11314
11315 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11316
11317         * src/SDCCcse.c (cseBBlock): fixed bug #966963
11318
11319 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
11320
11321         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
11322         default case in switch statement,
11323         * glue.c (pic16_initPointer): expr is initialised via decoarteType
11324         to eliminate problem with initialisation of pointers, but problem
11325         still exists,
11326         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
11327         * (emitStaticSegment): removed various lines emitting debug info,
11328         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
11329         added processor registers for utilizing EEPROM,
11330         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
11331         configurable and set 8
11332
11333 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
11334
11335         * .version: increased version number to 2.4.2,
11336
11337         Cumulative patch for pic16 port
11338         * src/pic16/device.c: changed scheme to dump initial values for
11339         variables in idata segment, all print_idata* functions were removed,
11340         now the pic16_printIval* will be called,
11341         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
11342         * _pic16_printPointerType, pic16_printPointerType,
11343         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
11344         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
11345         NEW, similar to the respective functions in SDCCglue.c,
11346         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
11347         way, emitting hex bytes,
11348         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
11349
11350 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11351
11352         * src/avr/ralloc.c (serialRegAssign),
11353         * src/xa51/ralloc.c (serialRegAssign),
11354         * src/pic/ralloc.c (serialRegAssign),
11355         * src/pic16/ralloc.c (serialRegAssign),
11356         * src/hc08/ralloc.c (serialRegAssign),
11357         * src/z80/ralloc.c (serialRegAssign),
11358         * src/ds390/ralloc.c (serialRegAssign),
11359         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
11360
11361 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11362
11363         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
11364         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
11365
11366 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
11367
11368         Cumulative patch for pic16 port:
11369         * src/pic16/device.h (typedef PIC16_device) modified fields for
11370         defining microcontrollers,
11371         * src/pic16/device.c: added new info for all devices in Pics16 array,
11372         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
11373         to be optimised out by the pCode optimiser,
11374         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
11375         specially, bug reported by G.M. Gallant,
11376         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
11377         as force'd so that cannot be optimised out by pCode optimiser,
11378         * src/pic16/pcode.c,
11379         * src/pic16/pcodepeeph.c,
11380         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
11381         they are disabled by default, but can be enabled explicit with
11382         command argument --denable-peeps, for testing,
11383         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
11384         --pomit-ivt in COMPILE_FLAGS
11385
11386 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
11387
11388         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
11389           compilation on MSVC
11390
11391 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
11392
11393         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
11394
11395 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11396
11397         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
11398         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
11399
11400 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
11401
11402         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
11403         would only assign 0x300001 register.
11404
11405 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
11406
11407         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
11408         in COMPILE_FLAGS. Thanks to G. Gallant for report.
11409
11410 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11411
11412         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
11413         for ds80c400
11414         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
11415         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
11416         added peephole 254 (left shift), 255 (jump table)
11417
11418 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
11419
11420         * device/lib/Makefile.in: removed comment line with model-pic16,
11421         * (target port-specific-objects-pic16): the libraries and objects
11422         are copied to the build directory form the device/lib/pic16/bin
11423         directory
11424
11425         Cumulative patch concerning pic16 port:
11426         * library directory has been re-organized,
11427         * added support for PIC18F1220,
11428         * added headers and library sources for chips 18f1220,18f6520,
11429         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
11430
11431         * configuration registers setting has changed, now each supported
11432         device has a complete description of the registers it uses,
11433         * all initialisations are moved to idata sections, these section
11434         can be absolute or relocatable,
11435         * fixed initialisation of codespace variables,
11436         * fixed warning about PCLATU and gpsim,
11437         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
11438         * (genAssign): use table reads when assigning from variables in codespace,
11439         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
11440         char/int variables placed in codespace,
11441         * (pic16_emitConfigRegs): NEW, emits a list with configuration
11442         registers set in .asm file, no need for --pomit-config-words anymore,
11443         * (pic16glue): some 8051 legacy segments are commented out
11444         (to be removed completely),
11445         * added support for alternative assembler and linker with --asm=
11446         and --link= command line arguments,
11447         * peepholes are disabled automatically in the port, no need to
11448         specify on command line,
11449         * port supports natively char/int/long multiplication, but converts
11450         all divisions to support functions,
11451         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
11452         to the file set in variable $2,
11453         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
11454         strings in ASCII format and not in hex,
11455         * ralloc.c (serialRegAssign): added a triplet of conditional calls
11456         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
11457         allocate proper register if iCodes aren't temporary,
11458
11459 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
11460
11461         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
11462
11463 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
11464
11465         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
11466         is commented out
11467
11468 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11469
11470         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
11471         computed address is reused
11472         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
11473         multi-byte bitfields
11474
11475 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11476
11477         * src/z80/gen.c: (genArrayInit): must check for pointers too
11478
11479 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11480
11481         * support/regression/tests/zeropad.c: never meant to commit the
11482           nestedstruct test: removed, added check for GCC version
11483
11484 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
11485
11486         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
11487         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
11488         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
11489           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
11490           bugs 928906 and 954082 half-empty initializers
11491         * src/SDCCsymt.h,
11492         * src/SDCCsymt.c (getAllocSize): added for above fix
11493         * src/z80/gen.c (genArrayInit): fixed bug 741044
11494         * support/regression/tests/zeropad.c: added tests
11495
11496 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
11497
11498         * src/pic16/device.c (pic16_dump_section): corrected bug which
11499         caused some symbols of the libraries to be misplaced
11500
11501 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11502
11503         * src/pic16/glue.c,
11504         * src/pic16/ralloc.h,
11505         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
11506         to fix conflict with pic port
11507
11508 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11509
11510         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
11511         externs configuration variables,
11512         * src/pic16/ralloc.h,
11513         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
11514         prototype in header, commented out some debug messages
11515
11516 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
11517
11518         * src/pic16/glue.c,
11519         * src/pic16/main.c,
11520         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
11521         for gpasm COFF object generation. Thanks to D. Hawkins for
11522         his patch info
11523
11524 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11525
11526         * src/ds390/main.c,
11527         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
11528         Brock for spotting this)
11529         * src/ds390/gen.c (genEndFunction),
11530         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
11531         interrupt handler and critical. Disable push/pop optimizations when
11532         peephole optimizations disabled.
11533
11534 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11535
11536         Updated pic16 library sources and headers.
11537         * device/lib/pic16/pic18f*/ ,
11538         * device/include/pic16/*.h: modified to handle structured SFR
11539         definitions
11540
11541 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11542
11543         * src/port.h (PORT structure): added hook initPaths, now each
11544         port can declare its own default search paths,
11545         which can been seen with the --print-search-dirs option,
11546         see pic16 port for example,
11547         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
11548         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
11549         * (doPrintSearchDirs): NEW, replaces in a central manner the
11550         printing of search dirs which was split in set*Paths functions,
11551         * (main): added call to port->initPaths and doPrintSearchDirs,
11552         * src/avr/main.c,
11553         * src/ds390/main.c,
11554         * src/hc08/main.c,
11555         * src/izt/i186.c,
11556         * src/izt/tlcs900h.c,
11557         * src/mcs51/main.c,
11558         * src/pic/main.c,
11559         * src/pic16/main.c: modified port structures to reflect addition of
11560         initPaths hook,
11561
11562         * src/pic16/device.c (regCompare): registers are finally sorted by name,
11563         * (pic16_dump_section): for registers in same address reserve memory once,
11564         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
11565         to no_banksel,
11566         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
11567         result is greater in size than right or left,
11568         * (pic16_genUMult8X8_8): there are some cases where the result can
11569         be 16 bits size, so handle these,
11570         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
11571         * (pic16_outBitC): modified to emit pcodes,
11572         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
11573         or not,
11574         * (genDivOneByte): implemented algorithm to divide 8-bits,
11575         * (genCmp): uncommented goto, but issues still exist,
11576         * (genAnd): fixed a bug with variables >8bits,
11577         * (genPackBits): optimization added that uses BCF/BSF to change a
11578         single bit,
11579         * (genAssign): fixed bug when assigning floating point literals,
11580         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
11581         __sdcc_gsinit_startup label,
11582         * src/pic16/main.c (_pic16_init): removed search directory
11583         initialisations,
11584         * (_pic16_initPaths): NEW, used to initialise search directories,
11585         * (_hasNativeMulFor): support functions for all except char/int
11586         multiplication, and char division,
11587         * (PIC16_port struct): modified entry for native mul support,
11588         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
11589         no_banksel option,
11590         * (buildCallTree): call to register_usage is ifdef'ed out,
11591
11592 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11593
11594         * device/include/string.h: applied Stas Sergeev's patch to make this
11595         header file compatible with the preprocessor -Wundef option
11596         * src/SDCCmain.c (main): abort compilation if preprocessor reports
11597         failure (fixes bug #941458)
11598
11599 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11600
11601         * src/SDCCopt.c (killDeadCode): fixed bug #907733
11602         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
11603         that the variable, not the function, should be static
11604         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
11605         to be consistent with non-literal case
11606
11607 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11608
11609         * src/SDCCast.c (isConformingBody): fixed bug #949967
11610         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
11611         convilong): fixed bug #952086
11612
11613 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11614
11615         * src/SDCCmem.c (allocVariables): fixed bug #955321
11616
11617 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11618
11619         * src/hc08/main.c (_hc08_genAssemblerEnd),
11620         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
11621         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
11622         completely eliminated the use of a temporary file
11623         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
11624         when more than one file linked
11625         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
11626
11627 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11628
11629         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
11630         which fixes bug #543481
11631         * support/regression/tests/bug-751703.c: fixed comments left from a
11632         cut and paste error
11633         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
11634         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
11635         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
11636         scopes
11637         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
11638         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
11639         are now changed to underscores in moduleName
11640
11641 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11642
11643         * as/mcs51/lkmem.c: better fix for bug #954173
11644
11645 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
11646         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11647
11648         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
11649         * device/include/c8051f000.h,
11650         * device/include/c8051f120.h,
11651         * device/include/c8051f300.h,
11652         * device/include/c8051f310.h,
11653         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
11654         PWM16) and detab'ed
11655
11656 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11657
11658         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
11659         and mailing lists, doc'ed --no-peep-comments, removed reference
11660         to knoppix (newest version has no LyX/LaTeX), other minor changes
11661         * src/SDCCglue.c (glue): save 2 bytes stack space with
11662         option --main-return. The ljmp could probably be avoided too
11663
11664 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11665
11666         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
11667
11668 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11669
11670         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
11671         * src/SDCCopt.c (isLocalWithoutDef),
11672         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
11673         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
11674         (credit to Maarten Brock for patch #949363, on which this is based)
11675         * support/regression/tests/bug-751703.c: some test cases of extern used
11676         within inner scopes.
11677
11678 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11679
11680         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
11681         SPEC_STRUCT
11682         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
11683         struct definitions
11684         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
11685         dwWriteLabel): fix to create valid debugger symbols even when
11686         the module name has non-alphanumeric symbols in it
11687         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
11688         when a variable's allocation has been optimized away
11689
11690
11691 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11692
11693         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
11694         * src/hc08/main.c,
11695         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
11696         * src/mcs51/main.c,
11697         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
11698         * src/ds390/main.c,
11699         * src/z80/gen.c (z80_emitDebuggerSymbol),
11700         * src/z80/main.c,
11701         * src/pic/gen.c (pic14_emitDebuggerSymbol),
11702         * src/pic/main.c,
11703         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
11704         * src/pic16/main.c,
11705         * src/avr/gen.c (avr_emitDebuggerSymbol),
11706         * src/avr/main.c,
11707         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
11708         * src/xa51/main.c,
11709         * src/SDCCdebug.c (emitDebuggerSymbol),
11710         * src/SDCCdebug.h,
11711         * src/port.h: added a debugger struct to the port struct. Added a
11712         callback for defining debugger symbols
11713
11714         * src/SDCCast.c (createLabel),
11715         * src/SDCC.y (labeled_statement): mark all compiler generated labels
11716         with isitmp = 1
11717         * src/SDCCicode.h,
11718         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
11719         iCode back to the ast for the function
11720
11721         * src/hc08/ralloc.c (hc08_assignRegisters),
11722         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
11723         unneeded fields from the regs struct.
11724         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
11725         pushReg() & pullReg() functions instead of emitcode()
11726
11727         * src/hc08/gen.c (genLabel, genhc08Code),
11728         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
11729
11730         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
11731         debugger hooks
11732
11733         * src/hc08/gen.c (genEndFunction, genhc08Code),
11734         * src/hc08/gen.h,
11735         * src/mcs51/gen.c (genEndFunction, gen51Code),
11736         * src/mcs51/gen.h,
11737         * src/ds390/gen.c (genEndFunction, gen390Code),
11738         * src/ds390/gen.h,
11739         * src/z80/gen.c (genEndFunction, genZ80Code),
11740         * src/z80/gen.h,
11741         * src/z80/z80.h,
11742         * src/pic/gen.c (genEndFunction, genpic14Code),
11743         * src/pic/gen.h,
11744         * src/pic16/gen.c (genEndFunction, genpic16Code),
11745         * src/pic16/gen.h,
11746         * src/avr/gen.c (genEndFunction, genAVRCode),
11747         * src/avr/gen.h,
11748         * src/xa51/gen.c (genEndFunction, genXA51Code),
11749         * src/xa51/gen.h,
11750         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
11751         specific code to cdbFile.c and out of the backend code generators
11752
11753         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
11754         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
11755         starting address is now 0
11756
11757         * as/hc08/asm.h,
11758         * as/hc08/m08pst.c,
11759         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
11760         assembler directive for DWARF support
11761         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
11762
11763         * src/src.dsp,
11764         * src/Makefile.in,
11765         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
11766
11767 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11768
11769         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
11770         and inappropriate peephole optimization in jump tables
11771
11772 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11773
11774         * as/hc08/m08pst.c,
11775         * src/SDCCglue.c: sdccopt works for the hc08 port now
11776
11777 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
11778
11779         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
11780
11781 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11782
11783         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
11784
11785 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11786
11787         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
11788         rules
11789         * src/SDCCmain.c,
11790         * src/SDCCglobl.h,
11791         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
11792         comments from the peephole optimizer replacement rules
11793         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
11794         symbols
11795         * src/SDCCcse.c (updateSpillLocation),
11796         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
11797         equivalents
11798         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
11799         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
11800         objects far pointers
11801
11802 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11803
11804         * src/SDCCsymt.h: a missing part of my last change
11805         * src/pic/ralloc.c (regTypeNum),
11806         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
11807
11808 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11809
11810         * src/SDCCicode.h,
11811         * src/SDCCicode.c (aggrToPtrDclType),
11812         * src/SDCCptropt.h,
11813         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
11814         ptrPseudoSymConvert),
11815         * src/pic/ralloc.c (regTypeNum),
11816         * src/pic16/ralloc.c (regTypeNum),
11817         * src/hc08/ralloc.c (regTypeNum),
11818         * src/ds390/ralloc.c (regTypeNum),
11819         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
11820         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
11821
11822 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11823
11824         * link/z80/lkmain.c (afile),
11825         * as/hc08/lkmain.c (afile),
11826         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
11827         prevent a pointer problem when a filename has no directory and
11828         no extension specified.
11829
11830 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11831
11832         * link/z80/lkmain.c (afile): allow periods in directory names
11833         * link/z80/lkmain.c (afile),
11834         * as/mcs51/lkmain.c (afile),
11835         * as/hc08/lkmain.c (afile): allow linker script file to have an
11836         extension other than ".lnk"
11837         * link/z80/lklex.c (getfid),
11838         * link/z80/lkmain.c (parse),
11839         * as/mcs51/lklex.c (getfid),
11840         * as/mcs51/lkmain.c (parse),
11841         * as/hc08/lklex.c (getfid),
11842         * as/hc08/lkmain.c (parse): Support comments in the linker script
11843         file on lines by themselves and after filenames
11844
11845 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11846
11847         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
11848
11849 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11850
11851         * src/z80/peeph-z80.def: removed some peephole rules that don't
11852         work with multibyte arithmetic (fixed bug #937126)
11853         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
11854         to registers and not global variables
11855         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
11856         geniCodePreInc, geniCodePostDec, geniCodePreDec,
11857         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
11858         checking for assignments not internally generated (fixed bug #931895)
11859         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
11860         structure member (fixed bug #930072)
11861
11862 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11863
11864         * src/SDCCmain.c (linkEdit),
11865         * src/hc08/main.c (_hc08_parseOptions),
11866         * as/hc08/Makefile.in,
11867         * as/hc08/aslink.h,
11868         * as/hc08/asm.h,
11869         * as/hc08/m08pst.c,
11870         * as/hc08/lkrloc.c (relr, rele),
11871         * as/hc08/lkarea.c (lnkarea)
11872         * as/hc08/lkmain.c (afile, parse),
11873         * as/hc08/lkelf.c: support for ELF output
11874         * as/hc08/lks19.c (s19),
11875         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
11876
11877 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11878
11879         * as/mcs51/lkihx.c: Fixed bug #899105.
11880
11881 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11882
11883         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
11884         .dsp files from Unix to DOS.
11885
11886 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11887
11888         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
11889         function pointers; we have been compliant for several months now.
11890         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
11891         change that was accidently commented out
11892         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
11893         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
11894         bug #922319
11895
11896 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11897
11898         * src/hc08/gen.c: output of all of the internal debugging information
11899         is now controlled by the D() macro; it is disabled by default
11900
11901 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11902
11903         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
11904         harder to keep the same registers during a CAST iCode
11905         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
11906         long via int can be done in a single cast, if the signedness is
11907         correct.
11908         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
11909         putchar() in tinibios.c in ds390's library
11910
11911 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
11912
11913         * src/SDCCast.c (decorateType): fixed bug #898889,
11914         cast result of a literal complement too
11915         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
11916         fixed check for bitfields
11917
11918 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
11919
11920         * src/SDCCicode.c (geniCodeLogic): made it static,
11921         (geniCodeLogicAndOr): added in order to fix bug #905492,
11922         (ast2iCode): fixed bug #905492
11923         * support/regression/tests/bug-905492.c: added
11924         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
11925         (processParms): fixed bug #927659: don't copy parms, this will clear
11926         decorated flag
11927         * support/regression/tests/bug-927659.c: added
11928
11929 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
11930
11931         * src/SDCCast.c (addCast): don't cast float to char
11932         * device/lib/libsdcc.lib: added _memmove
11933
11934 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
11935
11936         * device/lib/large/Makefile: fixed parallel execution by
11937         replacing `make` by `$(MAKE)`
11938
11939 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11940
11941         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
11942         offsets (fixes bug #923936)
11943
11944 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
11945
11946         * device/lib/small/Makefile: fixed parallel execution by
11947         replacing `make` by `$(MAKE)`
11948
11949 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
11950
11951         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
11952
11953 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
11954
11955         * src/pic/gen.c (genCpl): multi-byte complements were not working.
11956         * src/regression/Makefile: Regression test was not running.
11957
11958 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
11959
11960         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
11961         complement if possible
11962         * src/SDCCval.c (valComplement),
11963         * src/SDCCicode.c (operandOperation): fixed complement of literal
11964         * support/regression/tests/onebyte.c (testComplement): added
11965
11966 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
11967
11968         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
11969         return an optimized tree; actually replace actParm with the new tree
11970         * src/SDCCast.h: added some parantheses to remove side effects
11971         * support/regression/tests/bug-920866.c
11972
11973 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
11974         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
11975         Bit operands were not being handled properly in the pic14 port.
11976         (now src/regression/add.c passes again).
11977
11978 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11979
11980         * src/SDCC.y (labeled_statement): case and default no longer require
11981         a following statement (RFE #893037)
11982
11983 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11984
11985         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
11986         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
11987         disabled (fixes bug #916294)
11988         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
11989         "mov a,acc"; patch provided by Lenny Story
11990         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
11991
11992 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11993
11994         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
11995         functions
11996         * src/ds390/gen.c (genFunction, genEndFunction),
11997         * src/ds390/ralloc.c (ds390_assignRegisters),
11998         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
11999         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
12000         pushed if there are parameters passed on the stack. Also, a cleaner
12001         way to decide if r0/r1 should be pushed/popped. (Together they fix
12002         bug #918693)
12003
12004 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12005
12006         * doc/sdccman.lyx,
12007         * device/lib/mcs51/crtpagesfr.asm,
12008         * device/lib/mcs51/crtxinit.asm,
12009         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
12010         to avoid confusion with Si Lab's SFRPAGE register.
12011
12012 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12013
12014         * src/SDCCglue.c (emitMaps): allow public sfr variables
12015         * src/SDCCglue.c (initialComments): include compiler build date
12016         with compiler version and put the timestamp of the generated
12017         assembly file on a serperate line to be less confusing.
12018         * src/port.h: added genInitStartup hook
12019         * src/avr/main.c,
12020         * src/ds390/main.c,
12021         * src/hc08/main.c,
12022         * src/pic/main.c,
12023         * src/pic16/main.c,
12024         * src/xa51/main.c,
12025         * src/z80/main.c: genInitStartup initialize as NULL (default to
12026         historical behaviour)
12027         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
12028         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
12029         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
12030         library instead of hard coding it into the compiler.
12031         * support/regression/ports/mcs51-stack-auto/spec.mk,
12032         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
12033         * device/lib/mcs51/Makefile,
12034         * device/lib/small/Makefile,
12035         * device/lib/large/Makefile,
12036         * device/lib/mcs51/crtpagesfr.asm,
12037         * device/lib/mcs51/crtstart.asm,
12038         * device/lib/mcs51/crtxclear.asm,
12039         * device/lib/mcs51/crtxinit.asm,
12040         * device/lib/mcs51/crtclear.asm,
12041         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
12042         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
12043         and into user configurable files.
12044         * device/lib/clean.mk: clean mcs51 directory too
12045         * support/regression/tests/longlit.c: added static to T1 declaration
12046         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
12047         accesses in the initialization code
12048
12049 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12050
12051         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
12052         OSCTRIMVAL as noted in bug #916008
12053
12054 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12055
12056         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
12057         in loops with multiple exits (reported as incorrect registers
12058         used by Martin Helmling in Sdcc-user list)
12059
12060 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12061
12062         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
12063         made ds390 register extensions look less like error messages
12064
12065 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12066
12067         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
12068         reported by Adam Wozniak in Sdcc-user list
12069
12070 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
12071
12072         * src/SDCCast.c (decorateType): fixed with bug and promotion in
12073         arithmetic optimizations, added debug output
12074
12075 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
12076
12077         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
12078         * sdcc.spec: updated and split sdcc into 3 rpms
12079         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
12080         needed for literals of LEFT_OP and '+'
12081         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
12082         introduced RESULT_TYPE_NOPROM
12083         (geniCodeMultiply): fixed logic for decision if mul is optimized to
12084         left shift
12085         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
12086         limited promotion to int only for '*'
12087         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
12088
12089 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
12090
12091         * src/pic16/gen.c (genSkip),
12092         (genc16bit2lit), (gencjneshort): commented out
12093         (is_LitOp): new helper function, checks operand type
12094         (genCmpEq): rewritten
12095
12096 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
12097
12098         * support/regression/tests/bug-908454.c: added
12099
12100 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
12101
12102         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
12103         * src/SDCCicode.c (usualBinaryConversions): op needs int type
12104         (geniCodeCast): cosmetic, don't preserve bit storage class
12105         (geniCodeLeftShift): added promotion
12106         (geniCodeLogic): fixed regression
12107         * src/SDCCsymt.c (computeTypeOr): accept bits too
12108         (compareType): 2nd part of fix for bug #908454, needed for bitfields
12109
12110 2004-03-07  Borut Razem <borut.razem AT siol.net>
12111
12112         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
12113
12114 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
12115
12116         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
12117         version of pic16_genPackRegisters which does not check if ic is a
12118         CAST operator,
12119         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
12120         function cause string1.c regression test fails
12121
12122 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
12123
12124         * sim/ucsim/configure.in,
12125         * sim/ucsim/configure,
12126         * sim/ucsim/doc/Makefile.in: use docdir
12127         * src/SDCC.y: fixed sbit atrributes
12128         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
12129         * src/SDCCast.c (decorateType): |^& need special promotion handling
12130         * src/SDCCast.h,
12131         * src/SDCCsymt.h: moved definition of RESULT_TYPE
12132         * src/SDCCsymt.h (computeType),
12133         * src/SDCCicode.c: computeType() needs op
12134         * src/SDCCsymt.c (checkTypeSanity),
12135         * doc/sddman.lyx: "plain" bitfields are unsigned
12136         * src/SDCCsymt.c (computeTypeOr): added
12137         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
12138         |^& ops
12139         * src/SDCCval.c (val*): computeType() needs op
12140         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
12141         * support/regression/tests/onebyte.c: added tests for |^&
12142
12143 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
12144
12145         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
12146         for writing icode into asm output.
12147
12148 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
12149
12150         * src/pic16/device.c: added some debug lines enabled
12151         with macro DEBUG_CHECK,
12152         * src/pic16/genarith.c: more debug in genPlus,
12153         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
12154         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
12155         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
12156         * (aopForSym): onStack symbols are re-placed in data memspace,
12157         and onStack flag is cleared,
12158         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
12159         copy temporary pcodeop,
12160         * (genPcall): added warning for not updating PCLATU,
12161         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
12162         always true for pic16 port,
12163         * (genMultOneWord): NEW, supports integer multiplication,
12164         * (genMult): modified to call genMultOneWord,
12165         * (ifxForOp): added warning when return NULL,
12166         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
12167         flag is set before call to operandFromSymbol for implicit
12168         added structures,
12169         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
12170         options.intlong_rent are set by default,
12171         * (_hasNativeMulFor): modified to allow port generation of integer
12172         multiplication,
12173         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
12174         set regtype to REG_SFR for all registers, restricting seting the
12175         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
12176
12177 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12178
12179         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
12180         more than 500 times in the regression tests
12181
12182 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12183
12184         * support/Util/SDCCerr.h,
12185         * support/Util/SDCCerr.c,
12186         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
12187         enumerator_list),
12188         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
12189         for symbol conflicts.
12190         * support/valdiags/tests/enum.c,
12191         * support/valdiags/tests/tentdecl.c,
12192         * support/valdiags/tests/struct.c: expect possible error messages
12193         referring to original symbol definitions.
12194         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
12195         * src/SDCCsymt.h,
12196         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
12197
12198 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
12199
12200         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
12201
12202 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
12203
12204         * src/pic16/ralloc.c (newReg): fixed bug #908929
12205
12206 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12207
12208         * src/ds390/gen.c: added missing #include "main.h"
12209
12210 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
12211
12212         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
12213         checking if symbol is already in set,
12214         * src/pic16/device.h: prototype for checkAddSym,
12215         * src/pic16/gen.c: (_G): added entry interruptvector,
12216         * (assignResultValue): removed some commented out lines,
12217         * (genFunction): check for ISR via sym->type, absolute section for
12218         interrupt code is created via a new pBlock, the goto instruction is
12219         placed now correctly at the interrupt vector position, changed all
12220         references from ivec to _G.interruptvector,
12221         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
12222         is the interrupt is a high priority one, same for return from ISR,
12223         * src/pic16/glue.c: changed all calls of addSetHead for publics and
12224         externs to calls of checkAddSym,
12225         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
12226         pic16_pcode_verbose flag is set,
12227         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
12228         * src/pic16/pcoderegs.c: message about how many registers are saved
12229         will only be emitted if pic16_pcode_verbose flag is set,
12230
12231 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12232
12233         * src/ds390/ralloc.h,
12234         * src/ds390/ralloc.c (ds390_regWithIdx),
12235         * src/ds390/gen.c (emitcode),
12236         * src/ds390/main.h,
12237         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
12238         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
12239         ds390operandCompare, getRegsRead, getRegsWritten,
12240         initializeAsmLineNode): customized instruction size calculation for
12241         ds390, started basis for some register optimizations
12242         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
12243         corresponding assembly output
12244         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
12245         missing push/pop of r0/r1. Optimized push/pops
12246
12247 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12248
12249         * src/mcs51/main.c (instructionSize): fixed ACALL size
12250         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
12251
12252 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
12253
12254         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
12255         the sorting of rlist with NULL elements
12256         * (print_idataType, print_idata): NEW to create idata sections
12257         * src/pic16/device.h: idataSymSet new variable
12258         * src/pic16/gen.c (genFunction): fixed some bugs in string
12259         comparing, improved the absolute section creation for ISRs,
12260         added FSR0L/FSR0H in registers that are saved in an ISR,
12261         * (genInline): fixed the processing of inline snippets,
12262         now they undergo no process by the peephole optimizer
12263         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
12264         are placed in idataSymSet,
12265         * (pic16emitStaticSeg): extern symbols are added in externs,
12266         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
12267         switching when aboslute variables are placed in access bank memory
12268         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
12269         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
12270         commented out with #if,
12271         * (pic16_packRegisters): reintroduce the check for CAST because some
12272         symbols are not correctly handled,
12273         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
12274         pCodeInstruction instead of pCode,
12275         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
12276         pCodeAsmDir definition,
12277         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
12278         directive, then the argument directive is emitted without the leading
12279         tab, hack for inline labels which must be in the first column,
12280         * (compareLabel,pic16_findNextInstruction),
12281         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
12282         * (insertBankSwitch): modified for the new pCodeAsmDir,
12283
12284 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12285         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
12286
12287         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
12288         instance,
12289         * (pushSide): commented out with #if,
12290         * (assignResultValue): fixed some typos in saving
12291         registers,
12292         * (genPcall): FIXED and sync'ed with genCall,
12293         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
12294         * (genNearPointerGet): fixed to handle some more cases,
12295         implementation scheme via table reads,
12296         * (genConstPointerGet): modified to access code memory correct,
12297         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
12298         and improved to handle some cases
12299         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
12300         instead of "RETLW" for init data
12301         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
12302         not IN_DIRSPACE, work around to reduce bank switching when aboslute
12303         variables are placed in access bank memory (<0x80 and >=0xf80),
12304         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
12305         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
12306         TBLWT_POSTDEC,TBLWT_PREINC
12307         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
12308         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
12309         directives
12310         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
12311         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
12312         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
12313         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
12314
12315 2004-02-29  Borut Razem <borut.razem AT siol.net>
12316
12317         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
12318         support/Util/findme.h, support/Util/system.h: enhance binary relative
12319         search for lib and include by using findProgramPath()
12320
12321 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12322
12323         * src/SDCCpeeph.h,
12324         * src/SDCCpeeph.c (pcDistance),
12325         * src/port.h,
12326         * src/mcs51/ralloc.h,
12327         * src/mcs51/ralloc.c (mcs51_regWithIdx),
12328         * src/mcs51/main.h,
12329         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
12330         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
12331         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
12332         size calculation port specific, started basis for some register
12333         optimizations
12334         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
12335         missing push/pop of r0/r1. Optimized push/pops
12336         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
12337         * device/lib/_modsint.c (_modsint),
12338         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
12339         and stack version so regression tests pass
12340
12341 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
12342
12343         * src/Makefile.in (dep): include SLIBOBJS in dependency check
12344         * src/SDCCast.c (decorateType): catch another small optimization
12345         with '?' operator
12346         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
12347         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
12348         modified to finally use computeType() all over SDCC,
12349         see Feature Request #877103
12350         * src/SDCCval.h: cosmetic
12351         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
12352         valCompare(); regression tested in muldiv.c
12353         * support/regression/tests/muldiv.c (testMod): mod sign follows
12354         dividend only
12355
12356 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
12357
12358         * src/SDCCast.c (decorateType): fixed bug #902362
12359         * doc/INSTALL.txt: fixed install instructions for win32
12360
12361 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
12362
12363         * device/include/Makefile.in (install): fixed by replacing spaces
12364         by tabs
12365         * doc/README.txt,
12366         * doc/INSTALL.txt: updated for release
12367         * doc/sdccman.lyx: added warning for --xstack being buggy
12368
12369 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
12370
12371         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
12372         to eliminate build warnings.
12373         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
12374
12375 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
12376            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12377
12378         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
12379         removed -penable-stack, added comment for stack pragma, added
12380         warning for not initializing the stack/frame registers, removed
12381         comment at interrupts section
12382
12383         Stack is made permanent, there is no ability to disable stack usage.
12384         * src/pic16/device.h,
12385         * src/pic16/device.c: removed all references to USE_STACK macro,
12386         * src/pic16/device.c (pic16_dump_section): when no elements in
12387         rlist, free rlist before return,
12388         * (pic16_dump_int_registers): NEW, internal registers are a new set
12389         of general purpose registers reused by each function,
12390         * (checkAddReg): returns 1 if registers is added to set,
12391         * (pic16_groupRegistersInSection): when a registers is of type
12392         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
12393         * src/pic16/device.h: memRange and Assigned Memory are deleted,
12394         SRCASECMP macro is moved here from device.c
12395         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
12396         PO_PCLATU, PO_PRODL, PO_PRODH,
12397         * (pic16_pCodeOpType, genMinus,
12398         changed compares to "a" register, with AOP_ACC,
12399         * (pic16_genPlus): fixed some bugs and indented properly,
12400         * (pic16_addSign): changed size to size+offset in the MOVWF
12401         instruction,
12402         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
12403         multiply 8-bit operand by literal, result is 8-bit,
12404         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
12405         multiply 2 8-bit operand, result is 8-bit,
12406         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
12407         genUMult8X*_16,
12408         * src/pic16/gen.c: changed accUse to contain WREG only,
12409         * (pic16_emitcomment): renamed to pic16_emitpcomment,
12410         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
12411         true, do not use immediate addressing any more unless sym is a
12412         pointer in codespace,
12413         * (aopForRemat): do not use immediate addressing when symbol not in
12414         codespace and when symbol's address is requested,
12415         * (aopOp): for-loop in if(sym->accUse) is modified for the new
12416         accUse size (= 1),
12417         * (aopGet): added case for AOP_ACC and don't return "accumulator
12418         bug" but WREG instead,
12419         * (popGetTempReg): pushes contents of temporary register in stack,
12420         * (popReleaseTempReg): pops contents of temporary register from
12421         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
12422         * (pic16_popGet): separated case AOP_ACC to return register WREG
12423         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
12424         or PO_IMMEDIATE and initializes their instance/offset appropriately,
12425         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
12426         the use of immediate pointers to certain cases only.
12427
12428         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
12429         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
12430         * (assignResultValue, genCall, genRet): modified to use the new
12431         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
12432         genPcall is still broken,
12433         * (genFunction): added code to create 'A' type pBlocks when
12434         interrupt functions are generated, code not extensively tested yet,
12435         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
12436         * (genEndFunction): modified so ISRs pop stored registers from stack,
12437         * (genMultOneByte): cleanup,
12438         * (AccRsh): added flag andmask, to and result with appropriate mask,
12439         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
12440         * (genDataPointerGet): fixed and reenabled its use,
12441         * (genNearDataPointerGet): bugs fixed,
12442         * (genDataPointerSet): bugs fixed,
12443         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
12444         pic16_DumpSymbol, pic16_DumpOp,
12445         * src/pic16/genutils.h: function prototypes for the above functions,
12446         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
12447         pointers,
12448         * (pic16emitRegularMap): many many many improvements, but needs a
12449         major cleanup,
12450         * src/pic16/main.c: enable_stack in pic16_options is removed,
12451         * (_pic16_parseOptions): removed command line options -penable-stack,
12452         * (_process_pragma): emit stack symbol only when stack pragma is
12453         processed,
12454         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
12455         redirected to FSR0L/FSR0H pair,
12456         * (pic16_get_op, pic16_get_op2): modifications and improvements,
12457         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
12458         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
12459         for immediates,
12460         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
12461         * (dumpPicOptype): NEW,
12462         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
12463         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
12464         with movff instruction,
12465         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
12466         added pic16_int_regs, some packRegsFor* functions are commented out,
12467         because produce errors,
12468         * src/pic16/NOTES: minor modifications
12469
12470 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12471
12472         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
12473         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
12474         --pack-iram.
12475         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
12476         * as/mcs51/lkaomf51.c: fixed bug #895763
12477
12478 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
12479
12480         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
12481
12482 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12483
12484         * doc/sdccman.lyx: added details about the HC08 storage classes and
12485         interrupts, fixed the register usage info for z80 & gbz80
12486
12487 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
12488
12489         * doc/sdccman.lyx: added more pic16 port documentation
12490         * device/include/pic16/: added header pic18fregs.h
12491
12492 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
12493
12494         * doc/sdccman.lyx: added Vangelis' contribution
12495
12496 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12497
12498         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
12499         extend to the next CALL or PCALL, not just to the next CALL.
12500
12501 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
12502
12503         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
12504
12505 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12506
12507         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
12508         bug #895752 and a better fix for bug #716790
12509
12510 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12511
12512         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
12513
12514 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12515
12516         * doc/sdccman.lyx: minor changes, minor changed
12517
12518 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
12519
12520         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
12521         which can't handle SDCC_NEWONEBYTEOPS,
12522         (geniCodeMultiply): removed conversion from mult to shift for pic14
12523         and pic16
12524
12525 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12526
12527         * src/hc08/gen.h,
12528         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
12529         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
12530         thus fixing bug #895406
12531
12532 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
12533
12534         * device/lib/_modsint.c,
12535         * device/lib/_modslong.c: sign follows divisor only
12536         * src/hc08/gen.c (genMultOneByte): if result size is 1,
12537         signs or signedness can be ignored
12538         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
12539         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
12540         added optimization for IFX,
12541         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
12542         arguments;
12543         reenabled optimization for IFX, which was removed on 2004-01-11
12544         * src/SDCCast.h: added return type IFX
12545         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
12546         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
12547         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
12548         SDCC_OLDONEBYTEOPS selects the old behaviour
12549         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
12550         changed again and commented promotion rule
12551         * src/SDCCval.c (valDiv): promotion no longer necessary
12552         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
12553         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
12554         rewritten
12555         * support/regression/tests/onebyte.c: added
12556
12557 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
12558
12559         * gen.c (genInline): reverted to old code for assemnling inline
12560         code because of bug reported James Chadd
12561
12562 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
12563
12564         * ralloc.h: missing declarations from previous patch,
12565         seems that patch for ralloc.h was never applied, fixed
12566
12567 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12568            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
12569
12570         * pcode.c,
12571         * pcode.h,
12572         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
12573         indirect addressing. Marked FSR0 as deprecated
12574         * gen.c (pointerCode): commented out, not needed now
12575         (pic16_popGet2p): new MOVFF helper function
12576         (genGenPointerGet),
12577         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
12578         (shiftRLong): removed duplicate debugging info
12579
12580 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12581
12582         * src/ds390/gen.c (genNearPointerGet),
12583         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
12584         optimization with bits, but not bitfields.
12585         * src/ds390/ralloc.c (packRegisters),
12586         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
12587
12588 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
12589
12590         * src/SDCCcse.c (algebraicOpts): copy operands before modification
12591
12592 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12593
12594         * src/SDCCsymt.h,
12595         * src/SDCCicode.c (operandFromSymbol),
12596         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
12597         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
12598         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
12599         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
12600         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
12601         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
12602         bug #892038
12603         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
12604         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
12605         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
12606         * src/SDCCsymt.c (newSymbol),
12607         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
12608         enumerator_list),
12609         * src/SDCCval.h,
12610         * src/SDCCval.c (newiList): fixed bug #885705
12611
12612 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12613
12614         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
12615         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
12616
12617 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12618
12619         * device/include/c8051f120.h,
12620         * device/include/c8051f300.h,
12621         * device/include/c8051f310.h: added/updated header files for Silicon
12622         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
12623         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
12624         in new section Submitting patches
12625
12626 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12627
12628         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
12629         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12630         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12631         genGenPointerSet),
12632         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
12633         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12634         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12635         genGenPointerSet),
12636         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
12637         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12638         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12639         genGenPointerSet),
12640         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
12641         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12642         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12643         genGenPointerSet): fixed bug #892400
12644         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
12645         to eliminate build warnings.
12646         * src/SDCCast.c (processParms),
12647         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
12648         fixed bug 751859
12649         * support/valdiag/valdiag.py: added GCC to the list of defines active
12650         when compiling with gcc
12651
12652 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12653
12654         * support/Util/SDCCerr.h,
12655         * support/Util/SDCCerr.c,
12656         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
12657         with an incomplete type (fixed bug #883734)
12658         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
12659
12660 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12661
12662         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
12663
12664 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12665
12666         * src/SDCCast.c (decorateType),
12667         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
12668         function pointer implementation
12669         * support/regression/tests/funptrs.c: added tests to verify both forms
12670         of function pointers work correctly. Added tests to verify parameters
12671         are passed in the correct order.
12672
12673 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
12674
12675         * device.c (regCompare): registers are sorted by ascending
12676         address and increasing size,
12677         * main.c (_pic16_finaliseOptions): removed the declaration
12678         of compiler macro MCU. Now a macro of the format pic18fxxxx
12679         will be defined from the command line
12680
12681 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12682             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
12683
12684         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
12685         PCOP_RLCF was overwritten!
12686         * gen.c (genSkip): commented out calls to pic16_emitcode,
12687         * (genCmpEQ): fixed "long" compares, only high word did get compared,
12688         * (genlshTwo),
12689         * (genRRC): added debugging info,
12690         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
12691         overwritten while shifting,
12692         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
12693         overwritten while shifting,
12694         * (AccLsh),
12695         * (AccRsh),
12696         * (shiftLLeftOrResult),
12697         * (shiftRLeftOrResult),
12698         * (shiftRLong),
12699         * (shiftLLong): Implemented with pic16_emitpcode
12700         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
12701         * (genLeftShift): Fixed bug, operand for shift by variable always
12702         was "and"ed with 0x0f,
12703         * (genLeftShiftLiteral),
12704         * (genrshTwo),
12705         * (genRightShiftLiteral): added debugging info,
12706         * (genrshFour): added comment,
12707         * (genRightShift): determined signedness from operand "left"
12708         instead of "result"
12709
12710 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12711
12712         * src/SDCCicode.c (geniCodeParms),
12713         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
12714         function pointers, fixed function pointer bugs #861242 and #861896
12715
12716 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12717
12718         * device/include/c8051f000.h,
12719         * device/include/c8051f120.h,
12720         * device/include/c8051f300.h: added header files for Silicon
12721         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
12722
12723 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
12724
12725         * src/SDCCast.c (processParams): added new type flow and restructured
12726         (gatherAutoInit): added new type flow
12727         (addCast): cosmetic changes
12728         (getLeftResultType): added new type flow for array indices, patch
12729         provided by Stas, see FR #877103
12730         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
12731         array index patch by Stas
12732         * src/SDCCast.h: added prototype getResultTypeFromType()
12733         * src/SDCCval.h,
12734         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
12735         * src/pic/glue.c (pic14emitStaticSeg),
12736         * src/pic16/glue.c (pic16emitStaticSeg),
12737         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
12738         for initialization of symbols
12739         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
12740         * support/Util/SDCCerr.h:
12741         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
12742         * .version: bumped version number to 2.3.8
12743         * device/include/Makefile.in (install),
12744         * doc/Makefile (install): changed to 'rm `find ...`' construct to
12745         avoid warnings
12746
12747 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
12748
12749         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
12750         Slade Rich fixed an optimization bug
12751         * src/pic/pcodepeep.c,
12752         * src/pic/pcoderegs.c
12753         * doc/Makefile (install): added test for directory
12754
12755 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12756
12757         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
12758         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
12759         * src/pic/ralloc.c (getRegPtr, getRegGpr),
12760         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
12761         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
12762         * as/mcs51/asexpr.c (term),
12763         * as/hc08/asexpr.c (term): fixed bug #887146
12764
12765 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12766
12767         * src/z80/gen.c (genMult): handle single byte result product
12768         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
12769         DUMMY_READ_VOLATILE (fixed bug #886367)
12770
12771 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
12772
12773         * support/regression/tests/libmullong.c: fixed logic, on little endian
12774         hosts we ended without a mullong_wrapper()
12775
12776 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12777
12778         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
12779         virus/worm forged address usage.
12780
12781 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
12782
12783         Fixed promotion, it should be done on AST level:
12784         * src/SDCCast.c (addCast): added promotion to int
12785         (decorateType): updated call to upCast()
12786         * src/SDCCicode.c (geniCodeLeftShift): removed call to
12787         usualUnaryConversions()
12788
12789 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
12790
12791         * support/regression/tests/literalop.c (mulWrapper): Added a
12792         wrapper to remove integer overflow warnings.
12793
12794         * support/regression/tests/float_trans.c: Made work on host.
12795
12796         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
12797         location of sz80.
12798
12799         * support/regression/generate-cases.py (main): Changed from inline
12800         to a main method.
12801
12802         * doc/Makefile (install): Changed to depth first to get rid of
12803         missing directory install warning.
12804
12805         * as/Makefile (install-doc): Made work on Mac.
12806
12807 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
12808
12809         * src/SDCCast.c: added an additional type flow in decorateType() of
12810         opposite direction, see feature request #860006; it's enabled at runtime
12811         by setting the environment variable SDCC_NEWTYPEFLOW
12812         * src/SDCCast.h: changed prototype of decorateType()
12813         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
12814         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
12815         'char' to 'int' can be omitted, if both operands are 'unsigned char';
12816         see feature request #877103
12817         * src/SDCCval.c: updated call of decorateType()
12818         (valBitwise): fixed bug #882876
12819         (valMinus): added promotion
12820         (valLogicAndOr): result is unsigned
12821         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
12822         * src/SDCCsymt.c (computeType),
12823         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
12824         must not cause an unsigned operation
12825         * src/pic/glue (pic14emitRegularMap),
12826         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
12827
12828 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
12829
12830         * src/pic/pcode.c (PCodeID): commented out left over debug code
12831
12832 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
12833
12834         * support/valdiag/tests/overflow.c: added shift tests
12835         * src/pic/device.c,
12836         * src/pic/gen.c,
12837         * src/pic/gen.h,
12838         * src/pic/glue.c,
12839         * src/pic/main.c,
12840         * src/pic/pcode.c,
12841         * src/pic/pcode.h,
12842         * src/pic/pcodepeep.c,
12843         * src/pic/pcoderegs.c,
12844         * src/pic/ralloc.c,
12845         * src/pic/ralloc.h: applied patch from Slade Rich;
12846         added support for multiple code pages and multiple RAM banks on the
12847         PIC 14 port. The ASM files now no longer simply assume all the
12848         code / RAM are in the same page / bank. This means the linker can
12849         safely allocate code/RAM of separate ASM files to different pages/banks.
12850         * doc/sdccman.lyx: added Slade's tips
12851         * src/mcs51/peeph.def: fixed bug #880768
12852
12853 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12854
12855         * src/hc08/ralloc.c (rematStr): fixed bug #879282
12856         * src/SDCCast.c (decorateType): fixed bug #880197
12857
12858 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
12859
12860         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
12861         getopt.h.
12862
12863         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
12864         strtof is not part of C89 and isn't included with Mac OS X.
12865
12866 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12867
12868         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
12869         shiftL2Left2Result): fixed bug #879326
12870         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
12871         (genMultOneByte): fixed bug in signed vs unsigned multiplication
12872         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
12873         address fetch for clr instruction
12874         * device/lib/hc08/_mulint.c: created optimized assembly version
12875         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
12876
12877 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
12878
12879         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
12880         proposed in FR #877103
12881
12882 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
12883
12884         * src/SDCCval.c (cheapestVal): added missing checks
12885         * src/SDCCicode.c (usualBinaryConversions): fixed condition
12886         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
12887
12888 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
12889
12890         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
12891         equal operands
12892
12893 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
12894
12895         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
12896         loaded with the linker search paths (-L arguments) and the libraries
12897         to be linked with the current source (-l arguments). Changes
12898         currently will affect only the pic16 port.
12899         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
12900         include path the port specific paths and port specific libraries,
12901         * gplink command now contains the $3 argument,
12902         * src/pic16/device.h,
12903         * src/pic16/device.c,: structure PIC_device is made public and
12904         renamed to PIC16_device, the same for variable Pics which is renamed
12905         to Pics16. Updated all references to them.
12906         * src/pic16/glue.c (pic16glue): corrected bug with code
12907         initialization which bypassed the variable initializations block.
12908
12909         * device/lib/pic16/Makefile.rules: removed --penable-stack from
12910         COMPILE_FLAGS and added the --nostdinc option
12911
12912 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12913
12914         * device/include/mc68hc908jb8.h: Register defs for another member
12915         of the hc08 family. Contributed by Bjorn Bringert - thanks!
12916
12917 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
12918
12919         Documenting changes from previous commits.
12920         * configure.in (version 1.56),
12921         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
12922         when generating output files to configure the pic16 library,
12923         but now I've commented it out, since gputils aren't installed in the
12924         SF compile farm, so library won't compile
12925
12926         * device/lib/Makefile.in (version 1.56): initially I've added in
12927         target 'all' the prerequestive 'model-pic16' so it compiled the
12928         pic16 library, but now I've commented it out for the same reasons
12929         above,
12930         * added targets 'model-pic16' and 'objects-pic16' to compile the
12931         library
12932         * added target 'port-specific-objects-pic16' to handle the
12933         generated libraries and copy them into the build/ directory
12934         * added target 'clean-intermediate-pic16' to clean intermediate
12935         files into pic16 directory
12936         * in target 'installdirs' added line to create directory pic16 in
12937         the installation path
12938
12939         * device/include/Makefile.in (version 1.11): in target 'install'
12940         added lines to copy all header files to installation path,
12941         * in target 'installdirs' added line create directory for pic16
12942         headers in the installation path
12943
12944 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
12945
12946         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
12947          a function call
12948
12949 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
12950
12951         * configure,
12952         * device/lib/configure.in,
12953         * device/lib/configure: fixed for autoconf 2.57
12954
12955 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12956
12957         * src/z80/main.c (_parseOptions): fixed the portmode= command line
12958         option so that it actually works. Made it specific to the z80, since
12959         the gbz80 doesn't have these kinds of I/O ports.
12960
12961 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12962
12963         * device/include/z180.h,
12964         * device/lib/_memcpy.c,
12965         * device/lib/_memmove.c,
12966         * device/lib/_mulint.c,
12967         * device/lib/ser_ir.c,
12968         * device/lib/ser_ir_cts_rts.c,
12969         * device/lib/_strcmp.c,
12970         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
12971         * src/z80/main.c (_process_pragma): add support for pragmas bank and
12972         portmode; added deprecation warning for bank= and protmode= forms.
12973         Also, guard against buffer overflow.
12974         * src/z80/gen.c (aopGet): generate better code for sfr banked read
12975
12976 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12977
12978         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
12979         changed interrupt vector table generation to only emit declared vectors.
12980         * device/include/Makefile.in: added missing backslash
12981         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
12982
12983 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
12984
12985         Mainly changes to support compilation of the device libraries
12986         * src/pic16/device.c: stack is allocated via symbol and not
12987         via literal number. The symbol is placed in the corresponding
12988         position of the data ram
12989         * (pic16_dump_section): relocatable and absolute uninitialized
12990         data are now emitted in sorted order to reduce section naming,
12991         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
12992         weren't marked as being in the access bank,
12993
12994 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
12995
12996         Added portion of GNU PIC Library under the directory
12997         device/include/pic16 and device/lib/pic16. These files
12998         contain the declarations of SFRs for the PIC18Fxx2 devices.
12999         The directory is initialized via configure from toplevel.
13000
13001 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
13002
13003         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
13004         the spilllocations to be compared correctly
13005
13006 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
13007
13008         * src/SDCCast.c (decorateType): fixed bug introduced today
13009
13010 2004-01-12  Borut Razem <borut.razem AT siol.net>
13011
13012         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
13013         doc/sdccman.lyx: upper case pragmas are deprecated
13014
13015 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
13016
13017         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
13018         in simpler and even better code
13019
13020 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
13021
13022         * src/SDCCicode.c (operandOperation): fixed bug #874819
13023         * src/SDCCast.c (decorateType): fixed
13024         char foo (unsigned long ul) { return ul > 0; }
13025
13026 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13027
13028         * doc/sdccman.lyx: Moved and added some sections, small changes
13029         all over. Telling LaTeX to be less strict with word spacing
13030         to better keep the right margin. Changed some notes about
13031         maintainance of the ports in section 3.2.1 - is it OK like this?
13032
13033 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
13034
13035         SDCC source changes:
13036         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
13037         convilong): modified to inform the pic16 port that builtin functions
13038         are external
13039
13040         PIC16 PORT specific changes:
13041         * src/pic16/device.c pic16_dump_equates() added,
13042         processor registers declared internally by the port are emitted in
13043         the translation as equates,
13044         * src/pic16/gen.c: inline code is passed unprocessed to the
13045         translation,
13046         * (pic16_popGetLit2): fnuction modified to take second operand as
13047         pCodeOp pointer and not as literal,
13048         * (popRegFromIdx): prefixed with pic16_,
13049         * (pic16_popCombine2): modified to receive already allocated pCode
13050         operands,
13051         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
13052         * (genFunction): initializes local stack frame and pushes on stack
13053         all the registers used by this function,
13054         * (genEndFunction): restores all registers from stack and restores
13055         stack frame,
13056         * src/pic16/glue.c (pic16emitRegularMap): various changes and
13057         improvements,
13058         * (pic16glue): changed the program startup sequence,
13059         * added new dbName code 'A' for functions placed in absolute section
13060         * src/pic16/main.c: added function attribute _naked,
13061         * added pragma 'code' to place a fnuction at an absolute address,
13062         * added command line arguments --debug-ralloc and --pcode-verbose,
13063         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
13064         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
13065         * (pic16_newpCodeOpLit2): modified to take the second operand as
13066         pCodeOp pointer,
13067         * (pic16_printpBlock): modified to emit each function in a separate
13068         section,
13069         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
13070         UPPER for immediate operands,
13071         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
13072         instruction,
13073         * src/pic16/peeph.def: all peepholes with movff are commented out,
13074         because there is a problem in the pcode peep optimizer,
13075         * src/pic16/ralloc.c: the register allocator can now reuse local
13076         function symbols for another function. This saves register usage.
13077         * src/pic16/ralloc.h: added flag isLocal in structure regs,
13078
13079         Added file src/pic16/NOTES with information about program writing on
13080         the current port version.
13081
13082 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13083
13084         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
13085         and peephole 252 (array access)
13086
13087 2004-01-09  Borut Razem <borut.razem AT siol.net>
13088
13089         * src/SDCCmain.c : fixed #872250: -l command line defined library
13090           files are scanned before standard library files
13091
13092 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13093
13094         * src/SDCCast.c (decorateType): fixed bug #874046
13095
13096 2004-01-09  Borut Razem <borut.razem AT siol.net>
13097
13098         * support/scripts/sdcc.nsi: remove previous installation
13099
13100 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13101
13102         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
13103         bytes for last interrupt vector (mcs51)
13104         * sdcc.spec: fixed typo
13105
13106 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13107
13108         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
13109         gen51Code): more efficient parameter receive for --model-large
13110         ("bug" #845294)
13111
13112 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13113
13114         * src/ds390/main.c,
13115         * src/z80/main.c: added missed needLinkerScript flags (more than
13116         one port structure defined in these file)
13117         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
13118         bug #795325
13119
13120 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
13121
13122         * src/SDCCmain.c: removed various references to DEFAULT_PORT
13123         * src/port.h: added flag needLinkerScript in port->linker
13124         structure to inform whether to create a .lnk file or not,
13125         * src/avr/main.c,
13126         * src/ds390/main.c,
13127         * src/hc08/main.c,
13128         * src/mcs51/main.c,
13129         * src/pic/main.c,
13130         * src/pic16/main.c,
13131         * src/xa51/main.c,
13132         * src/z80/main.c: changed appropriately to configure
13133         needLinkerScript flag
13134         * src/pic/gen.c,
13135         * src/pic16/gen.c (genAddrOf): fixed bug #863624
13136         * src/pic/glue.c: added variable udata_section_name to
13137         override default uninitialized data segment definition for
13138         devices only with SHAREBANK memory (reported from Erik Epetrich)
13139         * (pic14emitOverlay): modified to emit a commented overlay segment
13140         directive when no overlay data exist
13141         * (picglue): modified to emit uninitialized data segment
13142         according to udata_section_name
13143         * src/pic/main.c (_pic14_parseOptions): added command line
13144         options --udata-section-name=[name] to override default
13145         udata definition name
13146         * modified _linkCmd and _asmCmd to include compiler passed
13147         arguments via -W option
13148         * src/pic16/main.c: added $l in _asmCmd, changed extension for
13149         object file from '.rel' to '.o' in port->linker structure,
13150         changed size of fptr from 2 to 3 in port structure
13151
13152 2004-01-07  Borut Razem <borut.razem AT siol.net>
13153
13154         * support/scripts/sdcc.nsi: update PATH
13155         * support/scripts/sdcc.ico: craeted
13156
13157 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
13158
13159         * device/include/Makefile.in: fix install
13160         * doc/Makefile: fix install
13161
13162 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13163
13164         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
13165         in bug #860505
13166         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
13167         how the function variable allocation summary is displayed; also
13168         include information about variables allocated to the overlay
13169         segment
13170
13171 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13172
13173         * as/mcs51/lkmain.c: Help about -Y option
13174         * as/mcs51/lkarea.c: Fixed gcc warnings
13175
13176 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
13177
13178         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
13179         fixed warning
13180         * support/valdiag/tests/overflow.c: added
13181         * src/SDCCast.c (decorateType),
13182         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
13183         LEFT_OP (left shift)
13184
13185 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13186
13187         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
13188         (default behaviour).
13189
13190 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13191
13192         A python script to validate compiler diagnostic messages. It can be
13193         used to verify that sdcc complains about bad c source code and
13194         gives a good location of the error.
13195         * support/valdiag/Makefile,
13196         * support/valdiag/valdiag.py,
13197         * support/valdiag/tests/*
13198
13199 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13200
13201         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
13202         * src/SDCCsymt.c (newEnumType),
13203         * src/SDCCsymt.h
13204         * support/Util/SDCCerr.c,
13205         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
13206         enum related bugs.
13207         * support/regression/tests/enum.c: added test for enum values that
13208         require at least 2 bytes of storage.
13209
13210 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
13211
13212         * src/common.h: added ifndef/define/endif macros
13213         around the header file.
13214         Bug reported from Jesus Calvino-Fraga
13215
13216 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
13217
13218         * sdcc.spec: updated
13219         * device/include/Makefile.in: don't install CVS directories
13220         * device/lib/Makefile.in: added removal of CVS directories after install
13221         * doc/Makefile: fixed install, added local_icons
13222         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
13223         * src/mcs51/gen.c (genRightShift): fixed bug #870788
13224         * src/ds390/gen.c (genRightShift): fixed bug #870788
13225         * src/SDCCast.c (decorateType): fixed bug #870781
13226
13227 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
13228
13229         PIC16 port related changes:
13230         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
13231         added variable stackPos,
13232
13233         * gen.c: genCall, assignResultValue: added support for
13234         pushing/retrieving function parameters to/from stack,
13235         genFunction,genEndFunction: setup stack frame for the
13236         generated function,
13237         genAddrOf: will be changed according to bug 863624
13238
13239         * added files genutils.c and genutils.h which contain gen*
13240         debugged and optimised functions extracted from gen.c
13241
13242         * glue.c: added variable 'externs' which holds extern symbols,
13243         pic16emitRegularMap: is modified to properly handle relocatable
13244          symbols under the new scheme,
13245         pic16createInterruptVect: is modified
13246         pic16printPublics: is modified to emit 'global' assembler directives,
13247         added pic16_printExterns to print extern symbols,
13248         pic16glue: initializes stack/frame pointer in the beginning of
13249         the assembly output. Temporary hack, will be corrected later,
13250         because gplink yet does not support stack and SDCC does not
13251         yet support a type of crt0.o object to create the final binary.
13252
13253         * Removed many lines that contain 8051 legacy code.
13254         * The code is finally placed under a 'code' directive.
13255         * Added port specific options.
13256
13257         * _process_pragma: simplified since now we do not need *special*
13258         include file to define SFR registers. But a separate header
13259         will be needed. This will be developed later.
13260         * _pic16_parseOptions: added, parses port specific options:
13261         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
13262         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
13263         --preplace-udata-with=
13264
13265         * _pic16_setDefaultOptions: modified to initialize section names,
13266         but hack is temporarly out of order since it needs improvement.
13267         * _pic16_genAssemblerPreamble: configuration words are emitted by
13268         their address instead of their name. This part is incomplete and
13269         supports only the 18Fxx2 devices. Other devices will emit an error
13270         during assembly since they do not contain the same set of config
13271         registers
13272         * _pic16_genIVT: is modified,
13273
13274         * pcode.c: added definitions for some hardware registers that are needed
13275         for stack support
13276         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
13277         All PCI entries are updated. Now LFSR is supported.
13278         * Removed pic16_pciTRIS is mentioned by mdubuc in source
13279         * added pic16_newpCodeOpLit2 to support instructions with
13280         two literal arguments
13281         * pic16_pCode2str: corrected code that emits assembler instructions
13282         with two literal operands and those that have an access bit modifier
13283         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
13284         this fixes a bug which caused some labels to be lost, when an
13285         assembler directive was added, i.e. banksel,
13286         * pic16_FixRegisterBanking: improved logic that causes the insertion
13287         of bank switching,
13288         * InlineFunction: functions that are called once, are not any more
13289         inlined. This can be a port option in the future,
13290
13291         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
13292
13293         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
13294         hold the corresponding uninitialized symbols,
13295         * pic16_allocProcessorRegister: registers have explicit marked the
13296         accessBank field,
13297         * pic16_allocInternalRegister: registers are explicit marked as
13298         not used,
13299         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
13300         processing list, so bit registers were lost,
13301         *
13302
13303         * ralloc.h: added field 'accessBank' and original symbol operand
13304         in register definition,
13305         * removed the field isMapped from register definition,
13306
13307         ** Several functions have been removed from various sources:
13308         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
13309         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
13310         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
13311         pic16_assignRelocatableRegisters
13312
13313         ** others have been introduced:
13314         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
13315         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
13316
13317 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
13318
13319         * support/scripts/inc2h.pl: changed definition of BIT_AT
13320         to emit 'sbit at' instead of 'bit at'. This was a request.
13321
13322         PIC16 port related preliminary changes:
13323         * gen.c: prefixed function popRegFromString with
13324         pic16_ and all references to it corrected
13325         * pcode.c: all pic16_pc_* hardware registers prefixed
13326         with underscore (_),
13327         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
13328         * ralloc.c: newReg(): when register is REG_SFR then
13329         set address to rIdx,
13330         pic16_allocProcessorRegister(): marks register wasUsed=0
13331         pic16_writeUsedRegs(): added a call to assign processor
13332         registers via pic16_assignFixedRegisters
13333
13334 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13335
13336         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
13337         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
13338         variables in unused register banks.  Also the SSEG is placed
13339         wherever there is enough space for it, and IDATA can be anywhere
13340         in internal RAM.  For now compile using -Wl-Y[stack_size].
13341         The mem file is different for this option as well, since it
13342         makes no sense of talking about DSEG lenght.
13343
13344 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
13345
13346         * src/SDCClrange.c: fixed bug 869095 that caused segfault
13347         in certain cases, e.g. when ROM assignment, patch provided
13348         from Albert den Haan.
13349
13350 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
13351
13352         Many signedness and type propagation fixes:
13353         * src/SDCCicode.c: made geniCodeCast() static
13354         replaced SPEC_ by IS_ (cosmetic)
13355         (operandOperation): fixed div and mod operation
13356         (usualBinaryConversions): added support for promotion of char
13357         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
13358         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
13359         (geniCodeAdd): an array index will stay unsigned, even if promoted
13360         from char to int
13361         (geniCodeArray): ditto
13362         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
13363         * src/SDCCsymt.c (computeType): added more support for char;
13364         promotion of char is selectable by promoteCharToInt, fixed signedness
13365         for all cases
13366         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
13367         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
13368         * src/SDCCval (val*): replaced signedness calculation by
13369         computeType()
13370         rearranged if-branches (cosmetic)
13371         (valShift): added warning W_SHIFT_CHANGED
13372         (valCompare): fixed problem with different types
13373         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
13374         * support/regression/tests/literalop.c: added many cases
13375         * support/regression/tests/ast_constant_folding.c: changed finally to
13376         'unsigned int'
13377         * .version: new year, new version: 2.3.7
13378         * src/SDCCmain.c (main): applied patch #866468
13379         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
13380         provided by Scott Bronson
13381         * doc/sdccman.lyx: updated documentation for sdcdb
13382         updated and added chapter tips
13383
13384 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13385
13386         * src/SDCCsymt.h: missing from yesterday's commits
13387
13388 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13389
13390         * src/SDCC.y (struct_or_union_specifier),
13391         * support/Util/SDCCerr.c,
13392         * support/Util/SDCCerr.h: verify that struct & union tags are used
13393         as declared.
13394
13395 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13396
13397         * src/SDCCglobl.h: missing from yesterday's commits
13398
13399 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13400
13401         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
13402         sft_attributes, struct_declaration, parameter_declaration,
13403         type_name, start_block, declaration_list),
13404         * src/SDCC.lex (check_type): support redefinition of typedef names
13405
13406 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13407
13408         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
13409         aligned xdata arrays. Erik helped me with the if clause.
13410
13411 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13412
13413         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
13414         warning
13415
13416 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13417
13418         * src/SDCCast.h,
13419         * src/SDCCast.c (newAst_),
13420         * src/SDCCicode.h,
13421         * src/SDCCicode.c (ast2iCode, newiCode),
13422         * src/SDCCglobl.h,
13423         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
13424         expr, statement, expression_statement, selection_statement,
13425         iteration_statement, expr_opt, jump_statement): foundation for tracking
13426         sequence points
13427         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
13428         point code too)
13429
13430 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13431
13432         * support/Util/SDCCerr.c,
13433         * src/SDCCast.h,
13434         * src/SDCCast.c (createCase, createDefault, decorateType),
13435         * src/SDCClabel.c (labelUnreach),
13436         * src/SDCC.y (labeled_statement, jump_statement): More improvements
13437         to error messages.
13438         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
13439         (with thanks to Stas Sergeev)
13440         * device/include/time.h,
13441         * device/lib/time.c (CheckTime): suppress unreachable code warning
13442
13443 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13444
13445         * src/SDCCast.c (createIvalCharPtr),
13446         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
13447         bug #753752)
13448         * support/regression/tests/nullstring.c: tests for these two bugs
13449
13450 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13451
13452         * support/Util/SDCCerr.h,
13453         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
13454         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
13455         about storage class and 'at' used inside struct or union
13456         * src/SDCCBBlock.c (iCodeFromeBBlock),
13457         * src/SDCCcse.c (ifxOptimize),
13458         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
13459         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
13460         printIval, emitStaticSeg, emitOverlay),
13461         * src/SDCClabel.c (deleteIfx),
13462         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
13463         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
13464         gatherAutoInit, processParms),
13465         * support/Util/SDCCerr.h,
13466         * support/Util/SDCCerr.c (werrorfl): Support for better error location
13467         reporting for post-parse errors.
13468
13469 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13470
13471         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
13472         implicit casts via union; they don't work on big endian systems
13473         (possible fix for bug #861138)
13474
13475 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13476
13477         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
13478         * src/mcs51/main.c: fixed the fix for bug #737001
13479
13480 2003-12-15  Borut Razem <borut.razem AT siol.net>
13481
13482         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
13483
13484 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13485
13486         * support/makebin/makebin.c: put output in binary mode
13487
13488 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13489
13490         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
13491         xdata and data memory on startup. Set the environment variable
13492         SDCC_NOGENRAMCLEAR to disable this.
13493         * src/mcs51/peephole.def,
13494         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
13495         (allows non-interrupt and interrupt code to safely compete for a resource
13496         without the non-interrupt code having to disable interrupts)
13497
13498 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13499
13500         * src/SDCCicode.c (geniCodeAdd),
13501         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
13502         with valFromType if type might be a pointer and host is big endian).
13503         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
13504         types, not just integer types.
13505         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
13506         multiply defined with mismatching "at" address.
13507
13508 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13509
13510         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
13511         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
13512         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
13513         with embedded nulls (fixed bug #753752)
13514
13515 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13516
13517         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
13518         Apparently this did not see much testing (endless loop)
13519
13520 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13521
13522         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
13523
13524 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13525
13526         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
13527         gracefully handle NULL memmap pointers
13528
13529 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13530
13531         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
13532         instead of deleting the iCode when an operand is volatile
13533         * src/z80/gen.c (genDummyRead),
13534         * src/mcs51/gen.c (genDummyRead),
13535         * src/ds390/gen.c (genDummyRead),
13536         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
13537         not just IC_RIGHT
13538         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
13539         * src/SDCC.y: fixed bug #850420
13540
13541 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13542
13543         Applied z80 i/o port patch from Peter Townson and fixed some operators
13544         to better handle operands in A register.
13545         * device/include/z180.h
13546         * src/SDCC.y
13547         * src/SDCCglue.c
13548         * src/z80/gen.c
13549         * src/z80/gen.h
13550         * src/z80/main.c
13551         * src/z80/peeph-z80.def
13552         * src/z80/peeph.def
13553         * src/z80/z80.h
13554
13555 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13556
13557         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
13558
13559 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13560
13561         * device/lib/hc08/_mullong.c: Removed extra #endif
13562
13563 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13564
13565         * sim/ucsim/hc08.src/inst.cc,
13566         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
13567         carries from x to h
13568         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
13569         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
13570         * device/include/stdarg.h: fixed varargs for hc08
13571         * device/lib/Makefile.in,
13572         * device/lib/hc08/Makefile,
13573         * device/lib/hc08/_mulint.c,
13574         * device/lib/hc08/_mullong.c: fixed some endian problems
13575
13576 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13577
13578         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
13579         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
13580         * device/lib/_gptrget.c,
13581         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
13582
13583 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13584
13585         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
13586         * src/SDCCast.c (astErrors): fixed bug #846007
13587         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
13588
13589 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13590
13591         * src/SDCCast.c (decorateType): disabled a transformation I added in
13592         revision 1.188 (access to fields of a structure at an absolute address);
13593         it breaks with bitfields, extern declarations, and gcse analysis.
13594         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
13595         could be assigned through a pointer, so don't complain.
13596         * src/SDCCast.c (astErrors),
13597         * src/SDCCast.h,
13598         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
13599
13600 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
13601
13602         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
13603         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
13604         output of __config directives, since gpasm now supports them
13605         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
13606         pre-processor macro, i.e. -DMCU=p18f452
13607         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
13608         and modified to handle 'cast' icode similarly to '=' icode
13609         * src/pic16/device.h (typedef struct PIC_device): added field
13610         'extMIface' to indicate that chip has external memory interface
13611         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
13612         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
13613         18F8720
13614
13615 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13616
13617         * src/SDCC.y (pointer): fixed bug #846006
13618         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
13619         * src/SDCCast.c (decorateType): fixed bug #846009
13620         * src/ds390/peeph.def,
13621         * src/ds390/gen.c (genAnd, genOr),
13622         * src/mcs51/peeph.def,
13623         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
13624
13625 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13626
13627         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
13628         * src/SDCCdflow.c
13629         * src/SDCCcse.c
13630         * src/SDCCcse.h
13631         * src/SDCCBBlock.h
13632         * src/SDCCBBlock.c
13633
13634 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
13635
13636         fixed bug #845089
13637         * src/SDCCbitv.h,
13638         * src/SDCCbitv.c: added function to free a bitvector
13639         * src/SDCClrange.h,
13640         * src/SDCClrange.c: added function to recompute the liveranges
13641         * src/avr/ralloc.c,
13642         * src/ds390/ralloc.c,
13643         * src/hc08/ralloc.c,
13644         * src/mcs51/ralloc.c,
13645         * src/pic/ralloc.c,
13646         * src/pic16/ralloc.c,
13647         * src/xa51/ralloc.c,
13648         * src/z80/ralloc.c: recompute the liveranges after register packing
13649
13650 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
13651
13652         * src/SDCCloop.c (newInduction): fixed bug #845630
13653
13654 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13655
13656         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
13657         inadvertantly left behind from my 2003-11-12 change
13658
13659 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13660
13661         Updated headers I neglected to commit yesterday.
13662         * src/SDCClrange.h,
13663         * src/SDCCicode.h
13664
13665 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13666
13667         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
13668         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
13669         * src/SDCCopt.c (eBBlockFromiCode),
13670         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
13671         the creation of the key hash table from the sequencing so it can be used
13672         earlier (for some GCSE bug fixes still pending)
13673
13674 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13675
13676         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
13677         * support/regression/tests/addsub.c: testing genPlus shortcut
13678
13679 2003-11-15  Borut Razem <borut.razem AT siol.net>
13680
13681         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
13682
13683 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13684
13685         * src/SDCCcse.c (cseBBlock): fixed bug #527779
13686         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
13687         ordering is immaterial.
13688         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
13689
13690 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13691
13692         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
13693         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
13694         (SIGSEV) of bug #840381
13695         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
13696         unlink new file before rename if new and old filenames are the same)
13697
13698 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13699
13700         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
13701         uninitialized variables) for the mcs51. Set environment variable
13702         SDCC_GENRAMCLEAR to test.
13703         xdata initialization slightly shorter
13704
13705 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13706
13707         * src/SDCCsymt.h,
13708         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
13709         #838241 & 780691 (basicly the same bug)
13710         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
13711         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
13712
13713 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
13714
13715         * src/SDCCmain.c (linkEdit): "fix" #834252
13716
13717 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13718
13719         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
13720         * src/SDCCast.h,
13721         * src/SDCC.y: fixed bug #819403
13722
13723 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13724
13725         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
13726         the reentrant attribute.
13727         * src/hc08/gen.c (genPackBits): added missing stack readjustment
13728         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
13729         simulation
13730         * src/SDCCast.c (decorateType): fixed bug with storage class not being
13731         updated during pointer dereference; f.e. ~(((char *)1)*) was being
13732         erroneously reduced to a literal.
13733         * src/hc08/ralloc.c (packRegisters, rematStr),
13734         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
13735         some cases
13736
13737 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13738
13739         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
13740         * doc/sdccman.lyx: changed from 'article' to 'book'
13741         * doc/Makefile: readded test_suite_spec and cdbfileformat
13742
13743 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
13744
13745         * device/include/stdlib.h: include malloc.h to comply with ANSI
13746         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
13747
13748 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13749
13750         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
13751         * doc/clean.mk: also remove *.out files
13752         * doc/sdccman.lyx: some additions, larger top/bottom margins
13753
13754 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13755
13756         * src/SDCC.y: fixed bug #837365
13757         * support/regression/tests/bitopcse.c
13758         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
13759         a symbol (might be valop instead)
13760         * device/lib/Makefile.in: added errno.c to HC08SOURCES
13761         * device/lib/clean.mk: added hc08 to the cleaning list
13762
13763 2003-11-04  Borut Razem <borut.razem AT siol.net>
13764
13765         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
13766           made 2003-11-04
13767         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
13768           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
13769           malloc is declared in standard stdlib.h
13770
13771 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13772
13773         * device/lib/hc08/Makefile: need to clean .rel not .o files
13774         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
13775
13776 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13777
13778         * src/port.h,
13779         * src/hc08/main.c,
13780         * src/mcs51/main.c,
13781         * src/ds390/main.c,
13782         * src/z80/main.c,
13783         * src/avr/main.c,
13784         * src/pic/main.c,
13785         * src/pic16/main.c,
13786         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
13787         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
13788         tests (which uses the port's oclsExpense function)
13789         * src/SDCC.y,
13790         * src/SDCCast.c,
13791         * src/SDCCicode.c,
13792         * src/hc08/gen.c,
13793         * src/ds390/gen.c,
13794         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
13795
13796 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13797
13798         * src/SDCCcse.c (ifxOptimize),
13799         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
13800         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
13801         deleting the IFX iCode.
13802         * src/hc08/ralloc.c: reduced unneeded slocs
13803         * src/hc08/gen.c: fixed bug in asmopToBoolean
13804
13805 2003-11-04  Borut Razem <borut.razem AT siol.net>
13806
13807         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
13808           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
13809           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
13810           transferred to configure
13811
13812 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
13813
13814         Use headers defined in the C[++] standards:
13815         * sim/ucsim/gui.src/serio.src/fileio.cc
13816         * sim/ucsim/gui.src/serio.src/frontend.cc
13817         * sim/ucsim/gui.src/serio.src/main.cc
13818         * sim/ucsim/gui.src/serio.src/posix_signal.cc
13819         * support/Util/NewAlloc.c
13820         * as/hc08/lklibr.c
13821         * as/mcs51/lklibr.c
13822         * as/z80/aslist.c
13823         * as/z80/assym.c
13824
13825 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13826
13827         * Added MSVC projects for hc08 assembler and linker:
13828         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
13829         /as/hc08/link_hc08.dsp
13830
13831 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
13832
13833         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
13834
13835 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
13836
13837         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
13838
13839 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13840
13841         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
13842
13843 2003-10-31  Borut Razem <borut.razem AT siol.net>
13844
13845         * support/cpp2/cpplib.h,
13846           support/cpp2/cpplib.c,
13847           support/cpp2/cpplex.c,
13848           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
13849           to switch _asm block preprocessing on / off. Default is
13850           #pragma preproc_asm +
13851
13852 2003-10-31  Borut Razem <borut.razem AT siol.net>
13853
13854         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
13855           when outputting comment blocks (when executed with -C option) and
13856           _asm (SDCPP specific) blocks
13857
13858 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13859
13860         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
13861
13862 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
13863
13864         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
13865
13866 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
13867
13868         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
13869         * src/SDCCast.c (decorateType): fixed bug #832664
13870
13871 2003-10-31  Borut Razem <borut.razem AT siol.net>
13872
13873         * support/cpp2/cpplex.c: fixed for SDCPP:
13874           comments(when executed with -C option) and _asm blocks
13875           were included even if they where in skipped #if block.
13876           Applied solution from GCC cpp 3.3.2
13877
13878 2003-10-31  Borut Razem <borut.razem AT siol.net>
13879
13880         * src/SDCC.lex: sdcc now understands both formats:
13881           '# <line_number> <file_name>' and
13882           '#line <line_number> <file_name>'
13883         * support/cpp2/cppmain.c: sdcpp now generates the standard
13884           '# <line_number> <file_name>' instead of former
13885           '#line <line_number> <file_name>'
13886
13887 2003-10-30  Borut Razem <borut.razem AT siol.net>
13888
13889         * support/cpp2/cpphash.h,
13890         * support/cpp2/cpplib.h
13891         * support/cpp2/cpplex.c,
13892         * support/cpp2/cppmain.c,
13893         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
13894
13895 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13896
13897         Fixed a number of problems revealed by bug #827883.
13898         * src/SDCCloop.c (loopInvariants): Spill location of the
13899         result operand should be recomputed if extracted from
13900         a loop. Also, don't extract assignments of an iTemp
13901         from a literal.
13902         * src/SDCCast.c (isConformingBody): loop reversal should
13903         not occur if the control variable is involved with a
13904         relational operator.
13905
13906 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
13907
13908         * .version: bumped to 2.3.6 to reflect the big improvements
13909         made by Erik and Klaus. Thanks!
13910
13911 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
13912
13913         Replaced the livrange code.
13914         * src/SDCClrange.c: added new LR code
13915         * src/SDCCloop.c,
13916         * src/SDCCBBlock.h: removed remainig parts from old LR code
13917         * src/ds390/ralloc.c,
13918         * src/ds390/gen.c: minor fixes to make it work with new code
13919
13920 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13921
13922         * as/hc08/asm.h,
13923         * as/hc08/lkrloc.c,
13924         * src/hc08/gen.c,
13925         * src/hc08/ralloc.c: Fix various warnings related to the hc08
13926         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
13927         (tweaked fix for bug #818696)
13928
13929 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13930
13931         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
13932
13933 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13934
13935         * src/SDCCmain.c,
13936         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
13937         * src/mcs51/gen.c (gencjneshort),
13938         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
13939         more efficient (per Scott Bronson's suggestion)
13940
13941 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13942
13943         Extended the semantics of the critical keyword to include
13944         individual statements. See RFE #827755 and #799831
13945         * src/SDCC.y
13946         * src/SDCCicode.c
13947         * src/SDCCopt.c
13948         * src/SDCCast.c
13949         * support/Util/SDCCerr.c
13950         * support/Util/SDCCerr.h
13951         * src/mcs51/gen.c
13952         * src/ds390/gen.c
13953         * src/hc08/gen.c
13954
13955 2003-10-19  Borut Razem <borut.razem AT siol.net>
13956
13957         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
13958
13959 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13960
13961         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
13962         Fixed bug #818696
13963         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
13964         and predecrement operand is displayed
13965
13966 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
13967
13968         * src/SDCCval.c (valMinus): fixed bug #826041
13969
13970 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13971
13972         Some hc08 related updates that I missed earlier
13973         * sim/ucsim/stypes.h
13974         * support/regression/ports/hc08/spec.mk
13975
13976 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13977
13978         New target "hc08" for the Motorola 68hc08 family of micros
13979
13980         * configure
13981         * configure.in
13982         * Makefile
13983         * src/hc08/*
13984         * src/SDCCmain.c
13985         * src/port.h
13986         * sim/ucsim/hc08.src/*
13987         * sim/ucsim/configure.in
13988         * src/ucsim/configure
13989         * sim/ucsim/packages_in.mk
13990         * as/hc08/*
13991         * as/Makefile
13992         * device/include/mc68hc908qy.h
13993         * device/lib/hc08/*
13994         * device/lib/Makefile.in
13995         * support/regression/ports/hc08/*
13996         * support/regression/Makefile
13997
13998 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13999
14000         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
14001         regression test
14002         * src/ds390/gen.c (genCast): fixed bug #821957
14003
14004 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
14005
14006         * device/lib/logf.c: "fixed" overlay bug
14007         * support/regression/ports/host/spec.mk: added m library
14008         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
14009         * support/regression/tests/float_trans: added (for Eric)
14010
14011 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
14012
14013         * src/mcs51/gen.c (genCpl): fixed bug
14014         http://sf.net/mailarchive/message.php?msg_id=6263915
14015
14016 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
14017
14018         * src/SDCCast.c (decorateType): added extended constant folding
14019         * src/SDCCsymt.c (computeType): cleanup
14020         * src/SDCCval.c (valShift): minor optimization
14021         * support/regression/tests/ast_constant_folding.c: added
14022
14023 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14024
14025         * src/SDCCmain.c: removed some unintended changes
14026
14027 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14028
14029         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
14030         * src/z80/gen.c: fixed part of bug #817589
14031         * src/SDCCsymt.c (checkFunction): fixed bug #817895
14032
14033 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
14034
14035         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
14036         * src/SDCCcflow.c
14037         * src/SDCCcse.c
14038         * src/SDCCdflow.c
14039         * src/SDCClabel.c
14040         * src/SDCClrange.c
14041         * src/SDCCmem.c
14042         * src/SDCCopt.c
14043         * src/SDCCpeeph.c
14044         * src/SDCCset.c
14045         * src/avr/ralloc.c
14046         * src/ds390/ralloc.c
14047         * src/izt/ralloc.c
14048         * src/mcs51/ralloc.c
14049         * src/pic/ralloc.c
14050         * src/pic16/ralloc.c
14051         * src/xa51/ralloc.c
14052         * src/z80/ralloc.c
14053         * src/z80/gen.c: removed unused label "release:"
14054
14055 2003-10-06  Borut Razem <borut.razem AT siol.net>
14056
14057         * src/SDCC.lex: removed definition of unused variables
14058           save_optimize and save_options
14059
14060 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
14061
14062         * clean.mk: removed '=' in "-maxdepth=1"
14063         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
14064         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
14065
14066 2003-10-06  Borut Razem <borut.razem AT siol.net>
14067
14068         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
14069           my_unput() replaced by unput()
14070
14071 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
14072
14073         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
14074         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
14075         type-punned pointer will break strict-aliasing rules"
14076         Old LR behaviour is again default; Klaus' LR can be choosen by
14077         defining the environment variable LRKLAUS
14078         * src/SDCCBBlock.h
14079         * src/SDCCloop.c
14080         * src/SDCClrange.c
14081         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
14082         * clean.mk: fixed removal of files in bin/CVS/
14083         * device/lib/clean.mk: fixed removal of directories small and large
14084         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
14085         * src/SDCCicode.c,
14086         * src/SDCCval.c: removed superflous test for pedantic
14087
14088 2003-10-05  Borut Razem <borut.razem AT siol.net>
14089
14090         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
14091           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
14092           message "unmatched #pragma SAVE and #pragma RESTORE"
14093
14094 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14095
14096         * doc/sdccman.lyx: various additions and updates (interrupts, inline
14097           assembly, critical functions, atomic, nojtbound)
14098
14099 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
14100
14101         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
14102         * src/SDCCBBlock.h
14103         * src/SDCCloop.c
14104         * src/SDCCloop.h
14105         * src/SDCClrange.c
14106
14107 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14108
14109         * src/z80/gen.h,
14110         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14111         * src/mcs51/gen.h
14112         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14113         * src/ds390/gen.h
14114         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
14115         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
14116         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
14117
14118 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14119
14120         * src/z80/gen.c (genRet): fixed bug #524753
14121         * src/z80/gen.c (genCast): fixed internal error on cast from
14122         pointer to long
14123         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
14124         fix for bug #477835 to the z80
14125         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
14126         for tracking iCodes in the peephole optimizer for z80
14127
14128 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14129
14130         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
14131         the other part of bug #814548
14132         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
14133
14134 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
14135
14136         * src/SDCCcse.c: fixed part of bug #814548
14137
14138 2003-09-28  Borut Razem <borut.razem AT siol.net>
14139
14140         * src/asm.c: rewrite of printILine() to use temporary file instead
14141           a pipe
14142         * src/xa51/main.c: commented out declaration of int rewinds
14143
14144 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14145
14146         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
14147
14148 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14149
14150         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
14151         * src/asm.c (printILine): Fixed bug #811015
14152
14153 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14154
14155         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
14156         freeing.
14157
14158 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14159
14160         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
14161         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
14162         to correctly handle general case of AOP_PAIRPTR
14163         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
14164
14165 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14166
14167         * src/mcs51/ralloc.c (fillGaps),
14168         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
14169         register positioning bug)
14170
14171 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
14172
14173         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
14174
14175 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14176
14177         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
14178         genCodePointerGet, genGenPointerGet, genFarPointerSet,
14179         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
14180         (ralloc doesn't intentionally do this now, but perhaps later)
14181         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
14182         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
14183         register positioning bugs (Fixed bug #762602 and #795325)
14184         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
14185         (Fixed bug #808779)
14186         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
14187         lines that --i-code-in-asm generates
14188
14189 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14190
14191         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
14192         trying to fclose a FILE* that was already closed.
14193
14194 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14195
14196         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
14197         of const struct should be treated as if const themselves)
14198
14199 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
14200
14201         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
14202
14203 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14204
14205         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
14206         Unix (/n) and DOS (/r/n) line terminations.
14207
14208 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14209
14210         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
14211         bug #613775
14212
14213 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14214
14215         * src/mcs51/gen.c (genFunction, genEndFunction),
14216         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
14217         and restore of EA so that stack offsets to parameters are
14218         correct when using both critical and reentrant/stack-auto.
14219         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
14220         size (can be triggered in error if sloc is shared between
14221         different sized objects)
14222         * device/include/float.h: fixed macros to explicitly use
14223         unsigned long where needed
14224
14225 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
14226
14227         Feature req. 799831: added code to allow nesting of critical functions
14228         * src/mcs51/gen.c (genFunction, genEndFunction)
14229         * src/ds390/gen.c (genFunction, genEndFunction)
14230
14231 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14232
14233         * src/SDCCsymt.c (sclsFromPtr),
14234         * src/SDCCsymt.h,
14235         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
14236         support for standard C idiom of memory mapped variables; for
14237         example, *((xdata int*)0x1234) = 1 is now internally equivalent
14238         to xdata int at 0x1234 tempvar = 1.
14239         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
14240         provided by Akiya ISHIDA
14241
14242 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
14243
14244         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
14245         * src/SDCCval.c (constVal): added reduction from int to char
14246         * src/SDCCval.c (valMult, valDiv): fixed sign handling
14247         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
14248         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
14249         to ignore the sign
14250         * support/regression/tests/shifts.c: fixed
14251
14252 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14253
14254         * src/z80/gen.c (genXor): Fixed bug #805445
14255
14256 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14257
14258         Fixed bug #621531 (const & volatile confusion in the type chain).
14259         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
14260         refer to the const or volatile state of the pointer itself.
14261
14262         * src/SDCCast.c
14263         * src/SDCCglue.c
14264         * src/SDCCicode.c
14265         * src/SDCCsymt.c
14266         * src/SDCCval.c
14267         * src/SDCC.y
14268         * src/SDCCsymt.h
14269         * src/pic/gen.c
14270         * src/pic/ralloc.c
14271         * src/pic16/gen.c
14272         * src/pic16/ralloc.c
14273         * support/regression/tests/const.c
14274
14275 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14276
14277         When checking for duplicated modules, use absolute paths
14278         instead of relative paths.  Files changed:
14279
14280         * as/mcs51/lklib.c
14281         * link/z80/lklib.c
14282
14283 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14284
14285         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
14286
14287 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14288
14289         * device/include/string.h: added size_t typedef, changed
14290         prototypes to use size_t, eliminated separate reentrant and
14291         non-reentrant declarations, added _memmove declaration
14292         * device/lib/_memcpy.c: changed to use size_t instead of int,
14293         changed /4 to >>2 to avoid division library call
14294         * device/lib/_memcmp.c,
14295         * device/lib/_memset.c,
14296         * device/lib/_strncat.c,
14297         * device/lib/_strncpy.c,
14298         * device/lib/_strncmp.c: changed to use size_t instead of int
14299         * device/lib/_memmove.c: new file (fixed bug #772294)
14300         * device/lib/Makefile.in: added _memmove.c
14301         * device/lib/z80/asm_strings.s: fixed bug #772290
14302         * support/regression/tests/bitfields.c: attempt to fix host assertion
14303         failure on amd64-unknown-linux2.2
14304
14305 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14306
14307         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
14308         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
14309         * as/z80/asmain.c (main): fixed bug #801766
14310
14311 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
14312
14313         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
14314         compilers
14315
14316 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14317
14318         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
14319         reported in bug #800609
14320
14321 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
14322
14323         * Top header beautifications in src/pic16 directory:
14324           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
14325           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
14326           pcoderegs.h, ralloc.c, ralloc.h
14327         * main.c: added top header and GPL license notice
14328         * pcode.c: fixed the if-conditional warning
14329
14330 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
14331
14332         * device/lib/_mullong.c: replaced int by short for gcc
14333
14334 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14335
14336         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
14337         and JUMPTABLE iCodes properly now (worked by accident before)
14338         * src/mcs51/gen.c (leftRightUseAcc),
14339         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
14340         iCode properly now. Use getSize instead of nRegs since a & b
14341         aren't part of the nRegs tally.
14342
14343 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
14344
14345         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
14346         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
14347           before instructions that use the _STATUS register
14348
14349 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
14350
14351         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
14352         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
14353         fetching of the pointer
14354         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
14355         copied from genNearPointerSet()
14356         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
14357         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
14358         If they pop r0/r1 they must be called in the opposite order than aopOp().
14359         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
14360         (resp. --stack-auto), prepared for --xstack
14361
14362 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14363
14364         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
14365
14366 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
14367
14368         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
14369         these ports have their own __sdcc_external_start()
14370
14371 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
14372
14373         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
14374         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
14375         type for bits was changed. It resulted in bit variables becoming
14376         global, which is not permitted in PIC 14 assembly output.
14377
14378 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14379
14380         * doc/sdccman.lyx: various additions and updates. Rearranged sections
14381
14382 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14383
14384         Z80 and MCS51 linkers complaint if a public symbol is defined
14385         in more than one library module:
14386
14387         * as/mcs51/lklib.c
14388         * link/z80/lklib.c
14389         * as/mcs51/Makefile.in
14390
14391 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14392
14393         A few small changes that speed up the peephole optimizer.
14394
14395         * src/SDCCpeeph.c
14396
14397 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14398
14399         Try to make the peephole optimizer smarter by maintaining
14400         an association between the assembly source code and the
14401         iCodes that originated them. Put this information to use
14402         with a new peephole rule condition "notVolatile" so that
14403         the rules can be aggressive yet still safe.
14404
14405         * src/SDCCpeeph.c
14406         * src/SDCCpeeph.h
14407         * src/mcs51/gen.c
14408         * src/mcs51/peeph.def
14409
14410 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14411
14412         Fixed bug #741761
14413
14414         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
14415         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
14416         if the left or right operand symbols have the accuse flag set.
14417
14418 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14419
14420         Changed the type of the result of the ! (NOT) operator to char;
14421         previously it returned the same type as the source. This allows
14422         us to eliminate all the genFloatNot functions (all of its target
14423         implementations were very buggy) since !float can use the same
14424         code as !long now.
14425
14426         * src/SDCCicode.c (ast2iCode): ! returns char
14427         * src/mcs51/gen.c (genNot, genNotFloat),
14428         * src/ds390/gen.c (genNot, genNotFloat),
14429         * src/z80/gen.c (genNot, genNotFloat),
14430         * src/pic/gen.c (genNot, genNotFloat),
14431         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
14432
14433 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
14434
14435         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
14436         1. Interrupt would not compile properly. Ensure PCLATH register is saved
14437            during interrupts. Ensure WSAVE is located at a shared bank address.
14438         2. Fixed page selection in some places
14439         3. Fixed BTFSS/C to where necessary use registers directly and not simply
14440            the registers name strings.
14441         4. Fixed "signed / unsigned compare" compiler warnings.
14442         5. The PIC port manages its own allocation of the general purpose
14443            registers, but makes no attempt to reuse them. As a result when
14444            compiling it soon runs out of general purpose registers. Some
14445            additional code was added to the files pcode.c and device.c to walk
14446            through the function call tree and rename the registers so that they
14447            get reused.
14448
14449         * src/pic/device.c
14450         * src/pic/gen.c
14451         * src/pic/glue.c
14452         * src/pic/pcode.c
14453         * src/pic/pcode.h
14454         * src/pic/ralloc.c
14455         * src/pic/ralloc.h
14456         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
14457         genPlus() & genMinus() when the result is the same as left or right
14458
14459 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14460
14461         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
14462
14463 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14464
14465         Made bitfield a distinct type from bit so that bitfields
14466         convert as per ANSI C and bits retain their traditional
14467         boolean style behaviour. Implemented bitfield support in
14468         the z80 port.
14469
14470         * src/SDCCsymt.h,
14471         * src/SDCCsymt.c,
14472         * src/SDCCast.c,
14473         * src/cdbFile.c,
14474         * src/mcs51/gen.c,
14475         * src/ds390/gen.c: bit v bitfield split
14476         * src/z80/gen.c: New support for bitfields
14477         * support/regression/tests/bitfields.c: reenabled z80,
14478         added more tests
14479
14480 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14481
14482         Rules 246.x, 247.x relate to bitfields, the others speed up
14483         access to xdata mapped I/O devices.
14484
14485         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
14486
14487 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14488
14489         Cleaned up genPackBits and genUnpackBits and added two helper
14490         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
14491         for literal assignments in genPackBits (thanks to Frieder for
14492         reminding me).
14493
14494         * src/mcs51/gen.c
14495         * src/ds390/gen.c
14496
14497 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14498
14499         Fixed bug #748310 (pointer to function type mishandled when the
14500         function name is omitted). Also fixed a SIGSEGV when a function
14501         attribute (reentrant, etc) is used on a non-function or on a
14502         function but misplaced before the parameter list.
14503
14504         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
14505         bug #748310
14506         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
14507         * support/Util/SDCCerr.h,
14508         * support/Util/SDCCerr.c: Added func attr misuse error msg
14509
14510 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
14511
14512         Fixed bug #787649 by anonymous
14513         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
14514         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
14515
14516 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14517
14518         Fixed numerous bitfield problems.
14519
14520         * src/SDCC.y: More bitfield related error checking
14521         * src/SDCCsymt.h,
14522         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
14523         * support/Util/SDCCerr.h,
14524         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
14525         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14526         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14527         * support/regression/tests/bitfields.c: tests added
14528
14529 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14530
14531         Made the constant following the "interrupt" keyword optional. If
14532         omitted, the function will not automatically be given an entry
14533         in the interrupt vector table (similar to #pragma NOIV, but
14534         less syntacticly kludgy). The interrupt number is also now
14535         range checked. Also fixed a bug in the high order bit example
14536         in the manual.
14537
14538         * src/SDCC.y
14539         * src/SDCCmem.c
14540         * src/SDCCglue.c
14541         * src/SDCCsymt.h
14542         * support/Util/SDCCerr.c
14543         * support/Util/SDCCerr.h
14544         * doc/sdccman.lyx
14545
14546 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
14547
14548         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
14549         * src/SDCCicode.c (operandOperation): rewritten some ops
14550         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
14551         * src/SDCCsymt.c (computeType): literals are handled the same way as any
14552         other type
14553         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
14554         be re-activated by defining REDUCE_LITERALS)
14555         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
14556         unsigned, but are signed by default
14557         * src/SDCCval.c (constVal): rearranged
14558         * src/SDCCval.c (valMod): preliminary fix
14559         * src/SDCCval.c (valCastLiteral): use TYPE_* types
14560         * support/regression/literalop.c: added, work in progress
14561
14562 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14563
14564         Generate warnings for useless declarations like "char data;"
14565         that don't do what new users expect.
14566
14567         * src/SDCC.y
14568         * support/Util/SDCCerr.h
14569         * support/Util/SDCCerr.c
14570
14571 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
14572
14573         * src/SDCCval.c (valMult): fix overflow detection of negative int
14574
14575 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14576
14577         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
14578
14579         Changes to support big endian targets:
14580
14581         * src/ports.h
14582         * src/SDCCglue.c
14583         * src/avr/main.c
14584         * src/ds390/main.c
14585         * src/izt/i186.c
14586         * src/mcs51/main.c
14587         * src/pic/main.c
14588         * src/pic16/main.c
14589         * src/xa51/main.c
14590         * src/z80/main.c
14591
14592 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
14593
14594         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
14595         * device/lib/time.c: fixed warning "integer overflow in expression"
14596
14597 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
14598
14599         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
14600         * src/SDCCval.c (constVal): changed default to signed; hex and octal
14601         constants are unsigned; added recognition of "u" flag for unsigned
14602         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
14603         * src/SDCCval.c (valDiv, valMod): fixed signdness
14604         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
14605         signedness of modulo, left and right shift
14606         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
14607         * support/Util/SDCCerr.h: added warning W_INT_OVL
14608         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
14609         * src/SDCCast.c (ast_print): improved output of constants
14610
14611 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14612
14613         Fixed some warnings when building with MSVC:
14614
14615         * as/mcs51/asdata.c
14616         * as/z80/asdata.c
14617         * as/mcs51/asm.h
14618         * as/z80/asm.h
14619         * link/z80/aslink.h
14620         * link/z80/lkdata.c
14621         * link/z80/lkeval.c
14622         * link/z80/lkgb.c
14623         * link/z80/lkihx.c
14624         * link/z80/lks19.c
14625         * link/z80/lksym.c
14626         * support/cpp2/cpplib.c
14627         * src/ds390/gen.c
14628         * src/mcs51/gen.c
14629
14630 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
14631
14632         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
14633
14634 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14635
14636         * support/librarian/clean.mk: Do not remove Makefile.
14637         * support/librarian/Makefile: added.
14638
14639 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14640
14641         Added librarian to MSVC build:
14642         * all.dsp
14643         * sdcc.dsw
14644         * support/librarian/librarian.dsp
14645
14646         'configure' not needed for librarian, removed:
14647         * support/librarian/configure
14648         * support/librarian/configure.in
14649         * support/librarian/config_in.h
14650         * support/librarian/Makefile.in
14651
14652         Hopefully these ones built the librarian and the rest of sdcc properly:
14653         * Makefile
14654         * Makefile.common.in
14655
14656         Messed up 'configure', so revert to previous version:
14657         * configure
14658         * configure.in
14659
14660 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
14661
14662         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
14663         there, while the mantissa of a double is "only" 53 bits wide.
14664
14665 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14666
14667         Adding sdcclib to the build.  MSVC project coming soon.
14668         Files added/changed:
14669
14670         * support/librarian/clean.mk
14671         * support/librarian/configure
14672         * support/librarian/configure.in
14673         * support/librarian/config_in.h
14674         * support/librarian/Makefile.bcc
14675         * support/librarian/Makefile.in
14676         * support/librarian/sdcclib.c
14677         * Makefile.bcc
14678         * Makefile
14679         * Makefile.common.in
14680         * configure
14681         * configure.in
14682
14683 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14684
14685         Linker now complaints if linked modules have conflicting options, for
14686         example, one compiled using --model-large and another one compiled with
14687         --model-small.  The following files were modified:
14688
14689         * as/mcs51/asdata.c
14690         * as/mcs51/aslink.h
14691         * as/mcs51/asm.h
14692         * as/mcs51/asmain.c
14693         * as/mcs51/asout.c
14694         * as/mcs51/i51pst.c
14695         * as/mcs51/lkdata.c
14696         * as/mcs51/lklibr.c
14697         * as/mcs51/lkmain.c
14698         * as/z80/asdata.c
14699         * as/z80/asm.h
14700         * as/z80/asmain.c
14701         * as/z80/asout.c
14702         * as/z80/z80pst.c
14703         * link/z80/aslink.h
14704         * link/z80/lkdata.c
14705         * link/z80/lklibr.c
14706         * link/z80/lkmain.c
14707         * src/SDCCglue.c
14708
14709 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14710
14711         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
14712         as/mcs51/lklibr.c: Generate a warning when a library is not found.
14713
14714 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
14715
14716         * src/z80/mappings.i: fix _mul[us][int,long] entries
14717
14718 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14719
14720         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
14721
14722 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
14723
14724         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
14725         * support/regression/tests/bitopcse.c: added
14726         fixed warning:
14727         * src/avr/gen.c:
14728         * src/pic/gen.c:
14729         * src/pic16/gen.c:
14730         * src/z80/gen.c:
14731         * src/xa51/gen.c:
14732
14733 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14734
14735         added support for new library format to z80, gbz80 linkers:
14736         *link/z80/aslink.h
14737         *link/z80/lklex.c
14738         *link/z80/lklib.c
14739         *link/z80/lklist.c
14740
14741 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
14742
14743         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
14744         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
14745
14746 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
14747
14748         added DUMMY_READ_VOLATILE:
14749         * src/SDCC.y:
14750         * src/avr/gen.c:
14751         * src/xa51/gen.c:
14752         * src/z80/gen.c:
14753         * src/pic/gen.c:
14754         * src/pic16/gen.c:
14755         * src/mcs51/gen.c:
14756         * src/ds390/gen.c:
14757         * src/SDCCcse.c (algebraicOpts): many improvements
14758         * src/SDCCcse.h: removed algebraicOpts()
14759         * src/SDCCicode.c (picDummyRead): added
14760
14761 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14762
14763         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
14764         "Insufficient space in data memory".
14765
14766 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14767
14768         * src/mcs51/gen.c: fixed bug #771358
14769         * src/z80/gen.c: fixed bug #759087
14770
14771 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
14772
14773         * src/pic16/glue.c: minor cleanup by Vangelis
14774
14775 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14776
14777         * device/include/regc515c.h: fixed #758477
14778         * device/lib/_gptrget.c: saving some cycles in generic pointer get
14779         * device/lib/_gptrput.c: saved a few bytes
14780         * my tab spacing is 8, yours too?)
14781         * device/lib/_ser.c: process RX bytes earlier than TX bytes
14782         * device/lib/serial.c: process RX bytes earlier than TX bytes
14783         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
14784
14785 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14786
14787         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
14788
14789 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14790
14791         * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
14792
14793 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
14794
14795         * device/lib/Makefile.in: bad fix, reverted to 1.43
14796
14797 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
14798
14799         * device/lib/Makefile.in: added missing z80 object files
14800
14801 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
14802
14803         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
14804         pic16 progress by Vangelis:
14805         * src/SDCCglobl.h:
14806         * src/SDCCmain.c:
14807         * src/pic/Makefile:
14808         * src/pic:
14809         * pic/Makefile:
14810         * pic16/device.c:
14811         * pic16/device.h:
14812         * pic16/gen.c:
14813         * pic16/gen.h:
14814         * pic16/genarith.c:
14815         * pic16/glue.c:
14816         * pic16/main.c:
14817         * pic16/pcode.c:
14818         * pic16/pcode.h:
14819         * pic16/pcodepeep.c:
14820         * pic16/peeph.def:
14821
14822 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14823
14824         * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
14825
14826 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14827
14828         * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
14829         added gbz80 build to MSVC project.
14830         * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
14831         link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
14832         from 8051 stuff and setup so it links using a .lnk file.
14833
14834 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14835
14836         * support/librarian/sdcclib.c: sdcc librarian.
14837         * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
14838         with sdcclib.
14839
14840 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14841
14842         * as/mcs51/lkmain.c: properly handle extensions in function afile.
14843
14844 2003-07-02  Borut Razem <borut.razem AT siol.net>
14845
14846         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
14847         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
14848         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
14849         src/xa51/main.c, src/z80/main.c:
14850         virtualization of glue() function: each port has it's own glue function,
14851         which is accessed by do_glue function pointer in PORT.general structure
14852
14853 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
14854
14855         * DS800C400 fun, improved ROM interface and tinibios.
14856
14857 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
14858
14859         * More support for DS80C400. Now includes beginning of interface to ROM.
14860
14861 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
14862
14863         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
14864
14865 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14866
14867         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
14868
14869 2003-06-19  Borut Razem <borut.razem AT siol.net>
14870
14871         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
14872
14873 2003-06-19  Borut Razem <borut.razem AT siol.net>
14874
14875         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
14876         fixed Z80 port - crt0.o: cannot open.
14877
14878 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
14879
14880         * support/Util/MySystem.c (merge_command): revert bad fix
14881
14882 2003-06-18  Borut Razem <borut.razem AT siol.net>
14883
14884         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
14885
14886 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14887
14888         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
14889         option --use-stdout sends errors to stdout instead of stderr.
14890
14891 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
14892
14893         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
14894
14895 2003-06-15  Borut Razem <borut.razem AT siol.net>
14896
14897         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
14898         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
14899         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
14900         fixed width array of pointers replaced with sets;
14901         multiple include and lib paths ared transferred to preprocessor and linker
14902         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
14903         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
14904         fixed width array of pointers
14905         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
14906         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
14907         fixupPath(), getPathDifference()
14908         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
14909         fixed width array of pointers
14910
14911 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
14912
14913         * src/pic16/ralloc.c: fix warnings
14914         * src/pic16/pcode.c: fix warning
14915
14916 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
14917
14918          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
14919         know all the details, but essentially this set of changes enable
14920         the pic16 port to generate movff instructions and generate assembler
14921         directives,
14922         * src/SDCCmain.c:
14923         * src/pic16/gen.c:
14924         * src/pic16/glue.c:
14925         * src/pic16/pcode.c:
14926         * src/pic16/device.c:
14927         * src/pic16/main.c:
14928         * src/pic16/pcode.h:
14929         * src/pic16/pcoderegs.c:
14930         * src/pic16/ralloc.c:
14931         * src/pic16/ralloc.h:
14932
14933 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14934
14935         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
14936         added option --vc, so sdcc errors and warnings are compatible with
14937         Microsoft Visual Studio.
14938
14939 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14940
14941         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
14942           device/lib/libfloat.lib: added atof function.
14943
14944 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
14945
14946         * doc/sdccman.lyx: updated to Lyx 1.3
14947         * doc/cdbfileformat.lyx: updated to Lyx 1.3
14948         * doc/test_suite_spec.lyx: updated to Lyx 1.3
14949         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
14950
14951 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
14952
14953         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
14954
14955 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14956
14957         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
14958           additions to the "related tools/documentation" section
14959
14960 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
14961
14962         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
14963
14964 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
14965
14966         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
14967         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
14968
14969 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
14970
14971         * doc/sdccman.lyx: fix double dash and other minor things
14972         * doc/Makefile: fix double dash
14973
14974 2003-05-28  Karl Bongers(patches from Martin Helmling)
14975         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
14976           condition and ignore commands.
14977
14978 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14979
14980         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
14981           is in parts still quite out of date, I did changes as far as I felt makes sense
14982           for a non-native english speaker.
14983           Please feel free to add to the manual or to correct my changes.
14984         * doc/Makefile: undid touching the date of intermediate tex files.
14985
14986 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14987
14988         * doc/sdccman.lyx: Manual has an index now
14989
14990 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
14991
14992         Finalize muluint/mulsint and mululong/mulslong merging:
14993         * device/lib/_mulint.c
14994         * device/lib/_mullong.c
14995         * device/lib/gbz80/mul.s
14996         * device/lib/gbz80/stubs.s
14997         * device/lib/z80/mul.s
14998         * device/lib/z80/stubs.s
14999         * src/SDCCsymt.c (initCSupport)
15000
15001 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15002
15003         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
15004         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
15005           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
15006           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
15007           instead of /Zm500.
15008
15009 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15010
15011         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
15012           the regression tests I'm not brave enough to enable 245.b, 245.c
15013         * doc/sdccman.lyx: added latex preamble for hyperref package.
15014           Using pdflatex this will give you a hyperlinked pdf file with
15015           bookmarks. (prepend '%' before /usepackage if this breaks something)
15016
15017 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15018
15019          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
15020
15021 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
15022
15023         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
15024
15025 2003-05-21    <johan AT balder>
15026
15027         * src/SDCCglue.c (printIval): fixed bug #739934
15028
15029 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
15030
15031         Applied patch from bug 737905 (renamed yylineo to mylineno):
15032         * src/altlex.c
15033         * src/SDCCast.c
15034         * src/SDCglobl.h
15035         * src/SDCC.lex
15036         * src/SDCCsymt.c
15037         * src/SDCCval.c
15038         * src/pic16/pcode.c: Cleaned warnings
15039         * src/pic16/pcodeflow.c: Cleaned warnings
15040         * src/pic16/pcoderegs.c: Cleaned warnings
15041
15042 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
15043
15044         * src/pic16/pcode.c: Cleaned warnings
15045         * src/pic16/pcodepeep.c: Cleaned warnings
15046         * src/pic16/ralloc.c: Cleaned warnings
15047
15048 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
15049
15050         * doc/sdccman.lyx: fixed bug 739745
15051         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
15052
15053 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
15054
15055         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
15056         it can be defined with CFLAGS when running configure
15057         * src/SDCCmain.c: fixed compiling + linking with object files
15058
15059 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
15060
15061         * configure.in: configure for pic16 port,
15062             added --disable-pic16-port
15063         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
15064         * src/SDCCmain.c: linkOptions is changed to set *,
15065             added if/endif conditional macros to remove options help
15066             messages from optionsTable when a port is not configured, added
15067             support for the PIc16 port in the ports table, when executing
15068             the compiler with no port specified on command line, a default
15069             port is selected with the new macro DEFAULT_PORT which is
15070             defined in port.h, in setDefaultOptions() linkOptions is removed
15071             from initialization assignment, since now it is a set,
15072             parseCmdLine uses setParseWithComma for linkOptions, in
15073             linkEdit() linkOptions are accessed with new function indexSet()
15074             which returns the i'th item of a set variable. See SDCCset.c, in
15075             linkEdit() when calling buildCmdLine(), added linkOptions as
15076             last argument. Now users can pass arguments to gplink via the
15077             -Wl option, main() uses pic16glue() to glue up pic16 programs
15078         * src/SDCCpeeph.c: various changes to support pic16
15079         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
15080             return the i'th item of the set
15081         * src/SDCCset.h: added function prototype for indexSet()
15082         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
15083         * src/clean.mk: added pic16 in CLEANALLPORTS variable
15084         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
15085             added macro DEFAULT_PORT
15086         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
15087         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
15088             generated
15089         * src/pic16/glue.c: commented out some error producing lines
15090         * src/pic16/main.c: __config directives are commented out to stop
15091             gpasm complaining and test the linkage with gplink, _linkCmd and
15092             _asmCmd changed to be more gplink and gpasm friendly
15093         * src/pic16/peeph.def: peep rule 3 is commented out, since it
15094             produced an error when parsed, peep rule 12 is added to utilize
15095             movff, but it is commented out since the pCode does not support
15096             yet a command with 2 address arguments
15097
15098 2003-05-18    <johan AT balder>
15099
15100         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
15101         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
15102 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
15103
15104         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
15105         Added feature to script commands from file.
15106
15107 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
15108
15109         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
15110         * src/SDCCutil.c: include ctype.h for win32
15111
15112 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
15113
15114         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
15115
15116 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
15117
15118         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
15119         Fixed so you can set breakpoints prior to run, run does not stop
15120         on entry now.  Add tbreak.  Other enhancements and fixes for use
15121         with ddd.
15122
15123 2003-05-12  Borut Razem <borut.razem AT siol.net>
15124
15125         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
15126
15127 2003-05-11  Borut Razem <borut.razem AT siol.net>
15128
15129         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
15130         the path of bin directory, so that PATH is the only env. variable, which has to be set
15131         in case of standard installation.
15132         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
15133         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
15134         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
15135
15136 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
15137
15138         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
15139         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
15140         temp files are in the port dir; clean the gen/test directory when
15141         generating new test.c
15142         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
15143         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
15144         * support/regression/tests/zeropad.c: added
15145
15146 2003-05-09    <johan AT balder>
15147
15148         * src/SDCCglue.c: fixed bug #597940
15149
15150 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
15151
15152         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
15153         cache sfr, optimize next,step, fix off by one sourceline,
15154         support ddd list function.
15155         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
15156
15157 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
15158
15159         * support/regression/HTMLgen.py: added compare_s2f()
15160         * support/regression/Makefile: redo 1.27
15161         * support/regression/generate-cases.py: redo 1.5
15162
15163 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
15164
15165         * support/regression/tests/float.c: workaround 33 bit hex constant
15166         * support/regression/tests/simplefloat.c: fix division for host
15167
15168 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
15169
15170         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
15171         that tame's the PIC's over-aggressive optimizer.
15172
15173 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15174
15175          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
15176          support for MSVC.
15177
15178 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
15179
15180         Initial support for DS80C400. "Hello world" runs on TINIm400
15181         (with polled I/O).
15182
15183 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
15184
15185          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
15186          * Some notes on ddd usage added in debugger/README
15187          Martin Helmling adding more features and fixes for ddd GUI debugger.
15188          Code added for nexti, stepi, up, down, and other adjustments.
15189
15190 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
15191
15192         * src/pic/pCodepeep.c non-wildcard asmops are now handled
15193         * src/pic/peeph.def Added two rules to optimize carry manipulation
15194         * src/pic/* removed debug printfs
15195
15196 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
15197
15198         * debugger/mcs51/cmd.c: added header newalloc.h
15199
15200 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
15201
15202         * as/Makefile: new EXEEXT
15203         * as/z80/Makefile: remove trailing slash of BUILDIR
15204         * as/z80/clean.mk: new EXEEXT
15205         * Makefile.common.in: add to CFLAGS (and others), don't replace it
15206         * support/cpp2/Makefile.in: new EXEEXT
15207         * src/pic/glue.c (pic14emitRegularMap): fixed warning
15208
15209 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
15210
15211         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
15212         EXEEXT was introduced to fix all related problems with targets
15213         "clean", "install" and "uninstall"; a couple of further flaws
15214         especially with "clean" have been fixed too
15215         * as/mcs51/Makefile.in
15216         * as/mcs51/clean.mk
15217         * as/z80/Makefile
15218         * Makefile
15219         * clean.mk
15220         * debugger/mcs51/Makefile.in
15221         * debugger/mcs51/clean.mk
15222         * link/z80/Makefile
15223         * link/z80/Makefile.in
15224         * link/z80/clean.mk
15225         * link/Makefile
15226         * packihx/Makefile.in
15227         * packihx/clean.mk
15228         * sim/ucsim/Makefile
15229         * sim/ucsim/clean.mk
15230         * sim/ucsim/avr.src/Makefile.in
15231         * sim/ucsim/avr.src/clean.mk
15232         * sim/ucsim/s51.src/Makefile.in
15233         * sim/ucsim/s51.src/clean.mk
15234         * sim/ucsim/xa.src/Makefile.in
15235         * sim/ucsim/xa.src/clean.mk
15236         * sim/ucsim/z80.src/Makefile.in
15237         * sim/ucsim/z80.src/clean.mk
15238         * sim/ucsim/main_in.mk
15239         * sim/ucsim/packages_in.mk
15240         * sim/ucsim/gui.src/Makefile.in
15241         * sim/ucsim/gui.src/serio.src/Makefile.in
15242         * sim/ucsim/gui.src/serio.src/clean.mk
15243         * src/Makefile.in
15244         * src/clean.mk
15245         * support/cpp2/Makefile.in
15246         * support/cpp2/clean.mk
15247         * support/makebin/Makefile
15248         * support/makebin/clean.mk
15249         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
15250         * doc/sdccman.lyx: --program-suffix no longer needed
15251
15252 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
15253
15254          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
15255          Martin Helmling added support for ddd GUI debugger.
15256          Code added to display assembly, set variables, and other commands
15257          to interface to ddd.
15258
15259 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
15260
15261         * as/Makefile: fix target clean
15262         * as/clean.mk: fix target clean
15263         * as/z80/clean.mk: fix target clean
15264
15265 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
15266
15267         * Makefile.common.in: added  AT EXEEXT AT
15268         * configure.in: removed all mingw32 stuff
15269         * configure: rebuilt from configure.in
15270         * doc/sdccman.lyx: updated section "installation"
15271         * support/scripts/sdcc_mingw32: adapted to configure
15272         * support/scripts/sdcc_cygwin_mingw32: added
15273
15274 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
15275
15276         * src/pic Added object file support for the PIC port
15277         * src/pic Applied patch from Craig Franklin (this started the object file support)
15278         * src/regression Updated the PIC regression tests for object files
15279
15280 2003-04-20  Borut Razem <borut.razem AT siol.net>
15281
15282         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
15283           lklex.c: In function `getfid':
15284           lklex.c:203: warning: array subscript has type `char'
15285         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
15286           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
15287         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
15288           stack handling macros
15289
15290 2003-04-19  Borut Razem <borut.razem AT siol.net>
15291
15292         * "handling space characters in file path" task:
15293         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
15294         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
15295         * support/Util/MySystem.h: make it self-sufficient
15296         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
15297           src/z80/main.c, sdcc/as/mcs51/lklex.c:
15298           handling space characters in file path
15299         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
15300           (it will be used by assemblers, which have their own includes, e.g. gpasm)
15301         * support/Util/MySystem.c: handling space characters in executable's path
15302
15303 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
15304
15305         * as/z80/Makefile: fix permanent rebuild of z80
15306         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
15307         * support/regression/tests/bitfields.c: added Johan's bitfields.c
15308
15309 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
15310
15311         * src/SDCCopt.c: add special case optimization to replace modulo by
15312           a power of two with a bitwise AND.
15313
15314 2003-04-18    <johan AT balder>
15315
15316         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
15317
15318 2003-04-17    <johan AT balder>
15319
15320         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
15321         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
15322
15323 2003-04-13  Borut Razem <borut.razem AT siol.net>
15324
15325         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
15326         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
15327           fixed mingw problem in adl_NORMALIZE_PATH
15328
15329 2003-04-12  Borut Razem <borut.razem AT siol.net>
15330
15331         * fixed "#pragma SAVE/RESTORE can not be nested":
15332         * src/SDCC.lex: reworked pragma handling functions
15333         * sdcc/src/SDCCglobl.h: reworked stack handling macros
15334         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
15335
15336 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
15337
15338         * src/SDCCutil.c (pathEquivalent): defined but not used
15339         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
15340         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
15341         * configure: rebuilt from configure.in
15342         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
15343         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
15344         * device/include/Makefile.in: replace sdcc_datadir
15345         * device/lib/Makefile.in: replace sdcc_datadir
15346         * Makefile.common.in: add LDFLAGS from configure
15347         * packihx/Makefile.in: use LDFLAGS
15348         * src/Makefile.in: use LDFLAGS
15349         * support/cpp2/Makefile.in: add LDFLAGS from configure
15350         * support/makebin/Makefile: use LDFLAGS
15351         * .version: bumped version number to 2.3.5
15352
15353 2003-04-12  Borut Razem <borut.razem AT siol.net>
15354
15355         * completed "different paths" task:
15356         * src/SDCCmacro.c: fixed bug in handling quotes
15357         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
15358         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
15359
15360 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
15361
15362         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
15363
15364 2003-04-11 kevin Vigor <kevin AT vigor.nu>
15365
15366         * ds390/gen.c ds390/peeph.def: fix bug 706781
15367
15368 2003-04-11  Borut Razem <borut.razem AT siol.net>
15369
15370         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
15371
15372 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
15373
15374         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
15375         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
15376          set - this bit used to not be set...).
15377         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
15378           bad code in PIC Port
15379         * src/regression/and2.c added to test bug 609268
15380         * src/regression/Makefile added and2.c to regression test
15381
15382
15383 2003-04-08    <johan AT CP255758-A>
15384
15385         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
15386         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
15387         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
15388
15389 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
15390
15391         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
15392         fix bug #487815
15393         * support/cpp2/Makefile.in: fix bug #487815
15394         * configure: rebuilt from configure.in
15395         * Makefile.common.in: docdir changed, new path suffixes
15396         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15397         * sdcc_vc_in.h: reflect changes from sdccconf.h
15398         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
15399         * src/SDCCutil.h: remove BINDIR hack
15400         * doc/sdccman.lyx: update new path hierarchy
15401
15402 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15403
15404         * src/SDCCpeeph.c: added okToRemoveSLOC test
15405
15406 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15407
15408         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
15409
15410 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
15411
15412         * src/SDCCpeeph.c: added labelIsReturnOnly test
15413         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
15414
15415 2003-04-05    <johan AT balder>
15416
15417         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
15418         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
15419         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
15420         * src/SDCCast.c: fixed a warning
15421         * src/SDCCast.h: fixed a warning
15422         * src/SDCCicode.c (operandFromAst): fixed a warning
15423
15424 2003-04-04    <johan AT balder>
15425
15426         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
15427         * src/SDCCast.c (decorateType): fixed bug #715076
15428         * src/SDCC.y: fixed bug #702907
15429
15430 2003-04-03    <johan AT balder>
15431
15432         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
15433         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
15434         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
15435         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
15436         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
15437
15438 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
15439
15440         * _decdptr.c: fix return values
15441         * _gptrget.c: fix return values
15442         * _gptrgetc.c: fix return values
15443         * _gptrput.c: fix return values
15444         * _mulint.c: fix return values
15445         * as/z80/Makefile: fix 'make -j' problem
15446
15447 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
15448
15449         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
15450         * configure.in: big cleanup, updated to autoconf 2.5x
15451         * configure: rebuilt from configure.in
15452         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15453         * sdcc_vc_in.h: reflect changes from sdccconf.h
15454         * doc/Makefile: fixed a flaw in "make install"
15455
15456 2003-04-02    <johan AT balder>
15457
15458         * src/ds390/gen.c (genCmp): no comments
15459         * src/mcs51/gen.c (genCmp): no comments
15460         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
15461         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
15462
15463 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
15464
15465         * support/regression/generate-cases.py: place generated file in given sub directory
15466         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
15467         * support/regression/Makefile: improvements for 'make -j';
15468         side effect: it's simpler and faster now
15469
15470 2003-03-31  Borut Razem <borut.razem AT siol.net>
15471
15472         * src/z80/main.c: link-{port} and as-{port} defined without path
15473         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
15474
15475 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
15476
15477         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
15478
15479 2003-03-30  Borut Razem <borut.razem AT siol.net>
15480
15481         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
15482           changed type of list parameter to set
15483         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
15484         * src/port.h: changed type of do_assemble() parameter to set
15485         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
15486           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
15487           definition of "cppoutfilename" macro with NULL value in preProcess()
15488         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
15489         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
15490         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
15491           replaced with set *binPathSet
15492         * shash_add() deallocates the item, if allready exsists, before adding the new one
15493         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
15494
15495 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
15496
15497         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
15498           a nested for loop bug in the PIC port
15499         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
15500           for loops
15501
15502 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
15503
15504         * support/Util/dbuf.h: remove C++ stuff to make it portable
15505
15506 2003-03-28  Borut Razem <borut.razem AT siol.net>
15507
15508         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
15509           literal strings in stringLiteral()
15510         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
15511         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
15512           to the project
15513
15514 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
15515
15516         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
15517
15518 2003-03-26    <johan AT balder>
15519
15520         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
15521         * src/ds390/gen.c (saveRegisters): catched symbol abuse
15522         * src/SDCCast.c (decorateType): fixed " -v < 3"
15523
15524 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
15525
15526         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
15527         Added Lenny Story's debug infrastructure changes:
15528         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
15529         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
15530         * src/cdbFile.c: added
15531         * src/SDCCdebug.c: added
15532         * src/SDCCdebug.h: added
15533         * src/SDCCast.c (createFunction)
15534         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
15535         * src/SDCCmain.c (parseCmdLine, main)
15536         * src/SDCCmem.c (redoStackOffsets)
15537         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
15538         * src/SDCCsymt.h
15539         * src/common.h
15540         * src/avr/gen.c (genAVRCode)
15541         * src/ds390/gen.c (gen390Code)
15542         * src/mcs51/gen.c (gen51Code)
15543         * src/pic/gen.c (genpic14Code)
15544         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
15545         * src/xa51/gen.c (genXA51Code)
15546         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
15547
15548 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15549
15550         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
15551         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
15552
15553 2003-03-22    <johan AT balder>
15554
15555         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
15556
15557 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
15558
15559         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
15560         * doc/cdbfileformat.lyx: added, written by Lenny Story
15561         * doc/Makefile: added cdbfileformat.lyx
15562         * doc/clean.mk: added cdbfileformat.lyx
15563
15564 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
15565
15566         * src/mcs51/peeph.def: fix bug #705773
15567
15568 2003-03-20    <johan AT balder>
15569
15570         An sfr/sbit can have an "at #" AND an initializer
15571         * src/SDCCsymt.c (checkSClass):
15572         * src/SDCCmem.c (allocGlobal):
15573         * src/SDCCmem.c (allocLocal):
15574         * src/SDCCast.c (createBlock):
15575
15576 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
15577
15578         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
15579
15580 2003-03-16    <johan AT balder>
15581
15582         Undid the hackup of const and volatile, the problem is much bigger
15583         * src/SDCC.y:1.65
15584         * src/SDCCast.c:1.171
15585         * src/SDCCglue.c:1.138
15586         * src/SDCCicode.c:1.146
15587         * src/SDCCsymt.c:1.150
15588         * src/SDCCval.c:1.65
15589
15590 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
15591
15592         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
15593         * src/ds390/gen.c (genAddrOf): fixed bug #704087
15594
15595 2003-03-13    <johan AT balder>
15596
15597         Hackup const and volatile modifiers in type chains a bit:
15598         * src/SDCC.y:1.63
15599         * src/SDCCast.c:1.169
15600         * src/SDCCglue.c:1.136
15601         * src/SDCCicode.c:1.143
15602         * src/SDCCsymt.c1.146
15603         * src/SDCCsymt.h1.59
15604         * src/SDCCval.c:1.63
15605
15606 2003-03-12    <johan AT balder>
15607
15608         * src/SDCCBBlock.h: more LRH debugging junk
15609         * src/SDCCcflow.h: more LRH debugging junk
15610         * src/SDCCloop.c: more LRH debugging junk
15611         * src/SDCC.y (struct_declaration): fixed bug #697590
15612         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
15613         * src/ds390/gen.c (aopForRemat): fixed bug #700031
15614         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
15615
15616 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15617         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
15618         test function names must now match exactly).
15619         * src/SDCCcse.c: added special case in findCheaperOp to allow
15620         extending a short integer. Makes less awful code for bug 700121 test case.
15621
15622 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15623
15624         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
15625         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
15626
15627 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15628
15629         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
15630         actually called (operandsNotEqual() was called for all
15631         operandsNotEqualX tests).
15632
15633 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15634
15635         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
15636         with shorter literals. Fixes bug 700121.
15637
15638 2003-03-11    <johan AT balder>
15639
15640         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
15641
15642 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
15643
15644         * src/SDCCloop.c (mergeRegions): an evil beast is dead
15645         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
15646
15647 2003-03-10  Borut Razem <borut.razem AT siol.net>
15648
15649         * src/SDCCmain.c: pipe preprocessor's output
15650         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
15651         * sdcc_vc_in.h: define pclose as _pclose for WIN32
15652         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
15653         which closes all pipes in pipeSet set
15654         * src/SDCCset.c: free deleted item in function deleteSetItem()
15655         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
15656         moved from z80 to src subproject
15657         * .version: increased version number to 2.3.4
15658
15659 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
15660
15661         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
15662         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
15663         * support/regression/ports/xa51/spec.mk: fix typo
15664
15665 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
15666
15667         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
15668
15669 2003-03-09  Borut Razem <borut.razem AT siol.net>
15670
15671         * src/SDCCmain.c: pipe preprocessor's output
15672         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
15673         * sdcc_vc_in.h: define pclose as _pclose for WIN32
15674         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
15675         which closes all pipes in pipeSet set
15676         * src/SDCCset.c: free deleted item in function deleteSetItem()
15677         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
15678         moved from z80 to src subproject
15679
15680 2003-03-09  Borut Razem <borut.razem AT siol.net>
15681
15682         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
15683         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
15684         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
15685         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
15686         * src/SDCCglobl.h: unification of WIN32 native definitions
15687
15688 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15689
15690         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
15691
15692 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
15693
15694         * src/configure.in:   check for endianess (even while cross-compiling)
15695         * src/configure:      check for endianess (even while cross-compiling)
15696         * src/configure_in.h: check for endianess (even while cross-compiling)
15697         * src/avr/gen.c:        remove old endianess stuff
15698         * src/mcs51/gen.c:      remove old endianess stuff
15699         * src/ds390/gen.c:      remove old endianess stuff
15700         * src/pic/gen.c:        remove old endianess stuff
15701         * src/pic/genarith.c:   remove old endianess stuff
15702         * src/pic/glue.c:       fix endianess check
15703         * src/pic16/gen.c:      remove old endianess stuff
15704         * src/pic16/genarith.c: remove old endianess stuff
15705         * src/pic16/glue.c:     fix endianess check
15706         * src/xa51/gen.c:       remove old endianess stuff
15707         * src/z80/gen.c:        fix endianess check
15708         * src/SDCCglue.c:       fix endianess check
15709         * src/ds390/peeph.def: fix bug 700036
15710
15711 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
15712
15713         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
15714         * src/configure: find appropriate data-types on host for SDCC's int and long
15715         * src/configure.in: find appropriate data-types on host for SDCC's int and long
15716         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
15717         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
15718
15719 2003-03-07    <johan AT balder>
15720
15721         Just a big NOOP:
15722                 some minor cleanups before the big shot
15723                 OP_DEFS and OP_USES now use Kevin's protection
15724                 new option --nolabelopt
15725
15726         * src/SDCCBBlock.c:
15727         * src/SDCCast.c,:
15728         * src/SDCCcflow.c:
15729         * src/SDCCcse.c:
15730         * src/SDCCicode.c:
15731         * src/SDCCicode.h:
15732         * src/SDCClabel.c:
15733         * src/SDCCloop.c:
15734         * src/SDCCmain.c:
15735         * src/ds390/ralloc.c:
15736         * src/mcs51/ralloc.c:
15737         * src/pic/ralloc.c:
15738         * src/xa51/ralloc.c:
15739         * src/z80/ralloc.c:
15740
15741 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
15742
15743         * src/pic/pcode.c (get_op): fix 64 bit warnings
15744         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
15745         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
15746         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
15747         * support/regression/tests/malloc.c: fix 64 bit warnings
15748
15749 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
15750
15751         * src/mcs51/gen.c (genMinus): fixed bug 696436
15752
15753 2003-03-02  Borut Razem <borut.razem AT siol.net>
15754
15755         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
15756
15757 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
15758
15759         * configure.in: test for mkstemp
15760         * sdccconf_in.h: add HAVE_MKSTEMP
15761
15762 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
15763
15764         * device/include/ctype.h: removed warning while using --stack-auto
15765         * device/include/malloc.h: removed warning while using --stack-auto
15766         * device/include/string.h: removed warning while using --stack-auto
15767
15768 2003-02-23  Borut Razem <borut.razem AT siol.net>
15769
15770         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
15771         because NDEBUG is defined (see man assert)
15772         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
15773
15774 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15775
15776         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
15777         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
15778
15779 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15780
15781         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
15782         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
15783
15784 2003-02-18    <johan AT balder>
15785
15786         * as/mcs51/asmain.c (asmbl): module can start with a digit
15787         * as/z80/asmain.c (asmbl): module can start with a digit
15788
15789 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
15790
15791         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
15792         * src/asm.c: fix pipe() for Mingw32
15793
15794 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
15795
15796         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
15797         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
15798         make -V work again; --c1mode reads now from stdin
15799         * doc/sdccman.lyx: added --c1mode
15800         * support/Util/SDCCerr.c: new messages for c1 mode
15801         * support/Util/SDCCerr.h: new messages for c1 mode
15802         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
15803
15804 2003-02-15    <johan AT balder>
15805
15806         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
15807
15808 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
15809
15810         * doc/sdccman.lyx: Environment variables, -o and other minor things
15811
15812 2003-02-14    <johan AT balder>
15813
15814         * src/xa51/main.c: before anyone really tries to use it :)
15815
15816         * Install doc's in share/sdcc/doc
15817         * removed some obsolete files
15818         * Do a proper make distclean and uninstall
15819         M Makefile.common.in
15820         R sdccbuild.sh
15821         M as/Makefile
15822         M device/include/Makefile.in
15823         M device/lib/Makefile.in
15824         M doc/sdccman.lyx
15825         M link/Makefile
15826         M sim/ucsim/doc/Makefile.in
15827         M src/clean.mk
15828         R src/avr/peeph.rul
15829         R src/xa51/peeph.rul
15830         M support/cpp2/Makefile.in
15831         M support/makebin/Makefile
15832
15833
15834 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
15835
15836         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
15837
15838 2003-02-10  Borut Razem <borut.razem AT siol.net>
15839
15840         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
15841         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
15842         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
15843         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
15844         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
15845         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
15846         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
15847         src/z80/Makefile.bcc: Borland Makefile cleanup
15848         * as/z80/Makefile.bcc: Added Borland Makefile
15849         * support/cpp2/borland.h: Removed
15850
15851 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
15852
15853         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
15854         * src/SDCC.lex: new pragma NOIV
15855         * src/SDCCglobl.h: new pragma NOIV
15856         * src/SDCCmem.c: new pragma NOIV
15857
15858 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
15859
15860         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
15861
15862 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
15863
15864         * src/SDCCmain.c: signal handling is switched off by --debug
15865         * doc/Makefile: small fix for install; use clean.mk again
15866         * doc/clean.mk: clean *.pdf and *.html too
15867
15868 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
15869
15870         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
15871         * device/lib/printfl.c: fix a ds390 bug by making it portable
15872         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
15873         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
15874         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
15875         * debugger/mcs51/cmd.c: converted multi-line string literals
15876         * sim/ucsim/globals.cc: converted multi-line string literals
15877         * src/SDCCmain.c: introduced signal handler to remove temp files
15878         * doc/Makefile: small tweaks, implement clean
15879         * doc: removed generated files
15880
15881 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15882
15883         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
15884         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
15885         Address Record is not correctly generated for DS390."
15886
15887 2003-02-02  Borut Razem <borut.razem AT siol.net>
15888
15889         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
15890         * as/mcs51/asm.h: fixed compilation with Borland C
15891         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
15892         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
15893         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
15894         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
15895         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
15896         src/z80/Makefile.bcc: delete $(LIB) only if exist
15897         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
15898
15899 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
15900
15901         * device/include/malloc.h: introduced NULL
15902         * device/include/string.h: introduced NULL
15903         * device/include/stdlib.h: introduced NULL
15904         * device/lib/_memcpy.c: removed NULL
15905         * device/lib/_strcat.c: removed NULL
15906         * device/lib/_strchr.c: removed NULL
15907         * device/lib/_strcmp.c: removed NULL
15908         * device/lib/_strcpy.c: removed NULL
15909         * device/lib/_strcspn.c: removed NULL
15910         * device/lib/_strlen.c: removed NULL
15911         * device/lib/_strncat.c: removed NULL
15912         * device/lib/_strncmp.c: removed NULL
15913         * device/lib/_strncpy.c: removed NULL
15914         * device/lib/_strpbrk.c: removed NULL
15915         * device/lib/_strrchr.c: removed NULL
15916         * device/lib/_strspn.c: removed NULL
15917         * device/lib/_strstr.c: removed NULL
15918         * device/lib/_strtok.c: removed NULL
15919         * device/lib/malloc.c: removed NULL, include own header
15920
15921 2003-02-02    <johan AT balder>
15922
15923         * 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
15924         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
15925         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
15926         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
15927         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
15928         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
15929
15930 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15931
15932         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
15933         area 'DATA'"
15934
15935 2003-02-01    <johan AT balder>
15936
15937         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
15938
15939 2003-01-31    <johan AT CP255758-A>
15940
15941         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
15942
15943 2003-01-30    <johan AT balder>
15944
15945         * src/SDCCBBlock.c: automatic bug detection
15946         * src/SDCCicode.c: automatic bug detection
15947
15948 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15949
15950         * src/SDCCglobl.h:   now --xram-size 0 works
15951         * src/SDCCmain.c:    now --xram-size 0 works
15952
15953 2003-01-29    <johan AT balder>
15954
15955         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
15956
15957 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15958
15959         * as/mcs51/aslink.h: Added options --xram-size and --code-size
15960         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
15961         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
15962         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
15963         * src/SDCCglobl.h:   Added options --xram-size and --code-size
15964         * src/SDCCmain.c:    Added options --xram-size and --code-size
15965
15966 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
15967
15968         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
15969         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
15970
15971 2003-01-27    <johan AT balder>
15972
15973         * src/SDCC.y: fixed bug #613764
15974
15975 2003-01-26    <johan AT balder>
15976
15977         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
15978         * src/SDCCsymt.h: fixed bug #673374
15979         * src/SDCCglue.c: fixed bug #661910
15980         * src/SDCCast.c: fixed bug #458099 and 673374
15981
15982 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
15983
15984         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
15985         * as/mcs51/strcmpi.h: added
15986         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
15987         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
15988         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
15989         * as/mcs51/assym.c: strcmpi -> as_strcmpi
15990         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
15991         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
15992         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
15993         * as/mcs51/Makefile.aslink: new module strcmpi
15994         * as/mcs51/Makefile.asx8051: new module strcmpi
15995         * as/mcs51/Makefil.bcc: new module strcmpi
15996         * as/mcs51/Makefile.in: new module strcmpi
15997         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
15998
15999 2003-01-26    <johan AT balder>
16000
16001         * src/SDCCglue.c: reverted back to 1.124
16002         * src/SDCCast.c: reverted back to 1.156
16003         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
16004
16005 2003-01-25    <johan AT balder>
16006
16007         * src/SDCCglue.c: A better fix for bug #661910
16008         * src/SDCCast.c: A better fix for bug #661910
16009         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
16010
16011 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
16012
16013         * src/Makefile.in: remove spawn.o
16014         * src/SDCCmain.c: remove spawn.h
16015         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
16016         * src/spawn.c: removed
16017         * src/spawn.h: removed
16018         * support/regression/ports/ds390/spec.mk: link with -r
16019
16020 2003-01-24    <johan AT CP255758-A>
16021
16022         * src/ds390/gen.c (aopOp): fixed bug #667458
16023         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
16024         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
16025         (createIvalCharPtr): an ival doesn't always have a storage class anymore
16026
16027 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
16028
16029         * src/mcs51/peeph.def: better assembler identation by Frieder
16030         * src/mcs51/gen.c: better assembler identation by Frieder
16031
16032 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
16033
16034         * as/z80/string.h: removed for gcc 3.2
16035         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
16036         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
16037
16038 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
16039
16040         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
16041         * src/SDCCpeeph.c (replaceRule): fix bug #663503
16042         * support/regression/Makefile: separate temp files for ports
16043         * support/regression/generate-cases.py: separate temp files for ports
16044         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
16045         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
16046
16047 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
16048
16049         * moved tinitalk to device/examples/ds390
16050
16051 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
16052
16053         * as/mcs51/lkmem.c: rflag is for DS390
16054         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
16055         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
16056                          (linkEdit): move mem- and map-files the same way as ihx-files
16057         * src/z80/main.c (_setDefaultOptions): removed --generic
16058         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
16059         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
16060         * src/pic/glue.c (picglue): --c1mode works again
16061         * src/pic16/glue.c (pic16glue): --c1mode works again
16062         * src/asm.c (printCLine): fix #660034
16063
16064 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
16065
16066         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
16067         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
16068         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
16069         * as/mcs51/lkmem (summary): better fix for sp problem
16070         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
16071         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
16072         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
16073                                               remove --stack-after-data
16074
16075 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
16076
16077         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
16078         * src/SDCCutil.c (join): ugly bug: missing '\0'
16079         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
16080
16081 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
16082
16083         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
16084         * src/port.h: typo
16085         * src/pic/main.c (_asmCmd): gpasm supports -o
16086         * src/z80/main.c: more general macros
16087         * device/lib/Makefile.in: remove intermediate files
16088
16089 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
16090
16091         * .version: Bumped version number to 2.3.3
16092         * src/SDCCBBlock.c: new option -o
16093         * src/SDCCglobl.h: new option -o
16094         * src/SDCCglue.c: new option -o
16095         * src/SDCCmain.c: new option -o
16096         * src/asm.c: new option -o
16097         * src/ds390/main.c: new option -o
16098         * src/pic/glue.c: new option -o
16099         * src/pic/pcode.c: new option -o
16100         * src/pic/ralloc.c: new option -o
16101         * src/pic16/glue.c: new option -o
16102         * src/pic16/pcode.c: new option -o
16103         * src/pic16/ralloc.c: new option -o
16104         * src/z80/main.c: new option -o
16105         * device/lib/Makefile.in: use -o
16106         * support/regression/ports/ds390/spec.mk: use -o
16107         * support/regression/ports/gbz80/spec.mk: use -o
16108         * support/regression/ports/mcs51/spec.mk: use -o
16109         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
16110         * support/regression/ports/z80/spec.mk: use -o
16111         * support/regression/ports/ucz80/spec.mk: use -o
16112         * support/regression/ports/xa51/spec.mk: use -o
16113         * support/regression/fwk/lib/timeout.c: fix usage string
16114
16115 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
16116         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
16117
16118 2003-01-07    <johan AT balder>
16119
16120         * src/SDCCast.c (decorateType): fixed bug #600035
16121
16122 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
16123         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
16124         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
16125         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
16126         * src/pic/pcode.c: outcommented unused variable to remove warnings
16127         * src/pic/ralloc.c: outcommented unused variable to remove warnings
16128
16129 2003-01-06    <karl AT turbobit.com>
16130         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
16131         regression tests.
16132
16133 2003-01-06    <johan AT balder>
16134
16135         * src/SDCCicode.c: fixed array add
16136
16137 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
16138         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
16139         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
16140
16141 2003-01-04    <johan AT balder>
16142
16143         * src/SDCCval.c (getNelements): fixed the initialized array of structures
16144
16145 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16146         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
16147
16148 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
16149         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
16150         * support/regression/tests/bug-524697.c: fit mem usage into 8032
16151
16152 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
16153         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
16154
16155 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
16156         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
16157
16158 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
16159         * src/mcs51/main.c: removed {bindir}{sep} from aslink
16160
16161 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16162
16163         * in /sdcc/as/mcs51/ changed these files in order to create an
16164         aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
16165         lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
16166         following files to include the previous two files: aslink.dsp,
16167         Makefile.aslink, Makefile.bcc, and Makefile.in.
16168
16169         * Changed /sdcc/src/SDCCmain.c so it creates files with extension
16170         .adb instead of .cdb
16171
16172 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16173
16174         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
16175         value from option --iram-size.
16176
16177 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16178
16179         * /sdcc/as/mcs51/lklist.c: added boundary check before using
16180         dram[] array.
16181
16182 2002-09-18    <wiml AT hhhh.org>
16183
16184         * SDCClrange.h: exposed setFromRange() and setToRange()
16185         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
16186           packRegsForAccUse() (bug 542397)
16187         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
16188           multiple times and emitting the fetch operations more than once
16189           added aopGetUsesAcc() function to allow binary operators to
16190           fetch their operands in the correct order; made genMinus() emit
16191           compact code for X = LITERAL - Y
16192
16193 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16194         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
16195         sprintf() in line 1267.
16196
16197 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16198         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
16199         like ports.
16200
16201 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
16202         Changes to aslink (All the changes are marked with 'JCF'):
16203
16204         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
16205         summary().
16206
16207         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
16208         area BSEG.  Also moves, if possible, the DATA area down into the internal
16209         ram so more space is available.
16210
16211         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
16212         sflag.
16213
16214         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
16215         not bytes.  Function summary() which creates a memory usage summary
16216         file with extension .mem.  Reports of overlaping stack and small stack
16217         size.  If the space for the stack is less than 16 bytes aslink trows a
16218         warning.
16219
16220         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
16221         the 8051.  Option 'y' for memory summary output file.
16222
16223         Changes to sdcc (All the changes are marked with 'JCF'):
16224
16225         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
16226
16227         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
16228         overlaying area for it (uses RegBankUsed[4]).
16229
16230         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
16231         bank zero as used by default.  By default aslink locates the stack
16232         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
16233         the creation of the .mem file.  Delegates the allocation of data area
16234         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
16235         the begining of the stack area to aslink.
16236
16237         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
16238         glue() in SDCCglue.c creates an area for it.
16239
16240 2002-09-03  Borut Razem <borut.razem AT siol.net>
16241         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
16242         sdcc/src/pic/glue.c:
16243         introduced atexit() handler for teporay files removal in case of
16244         errors, assertions, ...
16245
16246 2002-08-29  Borut Razem <borut.razem AT siol.net>
16247         * sdcc/support/cpp2/auto-host_vc_in.h:
16248         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
16249         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
16250         Maybe there is a similar problem with BORLANDC? It should be checked!
16251
16252         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
16253         corrected improper use of assert: the assignment to clr variable was done inside the assert.
16254         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
16255         was not executed, and the compiler (cl) launched a warning:
16256         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
16257
16258 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
16259         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
16260
16261 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
16262         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
16263
16264         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
16265           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
16266           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
16267           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
16268           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
16269           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
16270           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
16271         - added Release configuration in VS projects
16272         - review of compiler an linker options
16273         - VC .exe files are generated in bin_vc directory, not to interfere
16274           with binaries generated from other projects (cygwin, mingw, bcc ...)
16275
16276         * sdcc/src/yacc.dsp: added
16277
16278         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
16279         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
16280         and insert the version number definitions from .version
16281
16282         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
16283
16284         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
16285         added - genarate auto-host.h using auto-host_vc_in.h as template
16286
16287         * sdcc/sdcc_vc.h,
16288         removed from CVS, generated automatically
16289
16290 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
16291         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
16292
16293 2002-08-11  Borut Razem <borut.razem AT siol.net>
16294         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
16295
16296 2002-08-10  Borut Razem <borut.razem AT siol.net>
16297         * src/SDCCmain.c (main):
16298         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
16299         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
16300         The consequence was that some temporary files were not removed.
16301
16302         * src/SDCCglue.c:
16303         unification of code in functions tempfilename() and tempfile():
16304         function tempnam() is defined in Visual Studio 6.0 and .NET
16305
16306         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
16307
16308         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
16309           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
16310         - removed compiler command line option /WX: Treats all warnings as errors
16311         - update a list of source files, included into the project
16312
16313         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
16314           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
16315         changed project type to Generic Project so that can be correcly converted to VS.NET project
16316
16317         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
16318
16319         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
16320
16321         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
16322
16323         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
16324         added return 0 statements after assert() to make compiler happy
16325
16326         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
16327         added newline in the def file to keep MSC compiler satisfied
16328
16329         * sdcc/src/z80/gen.c:
16330         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
16331           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
16332         - solved MSC error in function aopDump()
16333
16334         * sdcc_vc.h: define PREFIX as "\\sdcc"
16335
16336 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
16337         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
16338
16339 2002-06-22  Scott Dattalo <scott AT dattalo.com>
16340         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
16341         - Rewrote the register banking algorithm.
16342         - Added pCode live-range analysis to registers (for now, only non-used and
16343         singly-used registers optimized away)
16344
16345         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
16346
16347         * 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.
16348
16349 2002-05-10  Scott Dattalo <scott AT dattalo.com>
16350         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
16351
16352 2002-04-22  Michael Hope  <michaelh AT vroom>
16353
16354         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
16355
16356         * configure.in (DD_COPT): Added include support required for gbdk.
16357
16358         * .version: Bumped version number just to increase it.
16359
16360         * src/SDCCmain.c: Added -nostdinc to the default options.
16361
16362 2002-04-15  Michael Hope  <michaelh AT vroom>
16363
16364         * device/lib/z80/printf.c (sprintf): Added.
16365
16366         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
16367
16368         * src/z80/peeph.def: Added transpose redundent load rule.
16369
16370         * src/z80/main.c: Added force callee saves for jaune.
16371
16372         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
16373
16374         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
16375
16376 2002-03-28  Johan Knol  <johan AT balder>
16377
16378         * src/SDCCval.c: fixed bug #532436
16379
16380 2002-03-14  Scott Dattalo <scott AT dattalo.com>
16381         * /src/port.h:
16382         Added "char *Processor" field to the port structure.
16383
16384         * /src/SDCCmain.c:
16385         Added -p option. Allows port dependent processor to be specified.
16386
16387         * all ports:
16388         Initialized the new field char *Processor field to NULL in all ports
16389
16390         * /src/pic/*:
16391         Compiler generated registers for interrupt context saving
16392         were not getting allocated.
16393
16394 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
16395
16396         * /src/SDCCast.c:
16397         Fixed left shift. Will promote the left side of a left shift
16398         if a) left shifting more than size of operand or b) when assigned
16399         to something size > size of left side
16400
16401 2002-03-14  Scott Dattalo <scott AT dattalo.com>
16402         * src/pic/*
16403         tons of changes. Register allocation has been
16404         rewritten. Added customization for the various PICs. Flow
16405         analysis is restructured. ...
16406
16407         * src/pic/device.h:
16408         Added
16409
16410         * src/pic/device.c:
16411         Added. device.c is a PIC port hack to accomodate variations
16412         in PIC devices.
16413
16414 2002-03-13  Michael Hope  <michaelh AT vroom>
16415
16416         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
16417
16418 2002-03-04  johanknol  <johanknol AT manik>
16419
16420         * /src/SDCCval.c: fixed
16421
16422         const unsigned char arr[][2] = { { 0, 1 } };
16423         t18.c:1: error: Initializer element is not constant
16424
16425 2002-03-04  bela  <bela AT manik>
16426
16427         * /device/include/mcs51reg.h:
16428         ds89c420 register definition update
16429
16430 2002-03-03    <johan AT FRIJA>
16431
16432         * support/Util/SDCCerr.c: did something, but don't no why anymore
16433
16434         * support/regression/tests/bug-524691.c: made it a little less shy
16435
16436         * src/SDCCast.c (decorateType): fixed bug #524697
16437
16438         * src/SDCCast.c: made some lineno improvements
16439
16440         * src/SDCCval.c (getNelements): changed warning to error
16441
16442         * src/SDCCglue.c (printIvalArray): changed warning to error
16443
16444         * src/SDCCicode.c: fixed a warning for mingw
16445
16446         * src/SDCCast.c (decorateType): fixed the << promotion for ops
16447
16448         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
16449
16450 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
16451
16452         * src/ds390/peeph.def:
16453         Added some more peephole rules
16454
16455         * src/ds390/gen.c: Various fixes & enhancements
16456
16457         * src/SDCClrange.c, src/SDCClrange.h:
16458         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
16459
16460         * src/ds390/ralloc.c:
16461         various fixes & enhancements (ds390) specific
16462
16463         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
16464         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
16465         from rallocs.
16466
16467         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
16468
16469 2002-03-02    <johan AT FRIJA>
16470
16471         * src/SDCCast.c (decorateType): fixed bug #524708
16472
16473         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
16474
16475         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
16476
16477 2002-03-01  Michael Hope  <michaelh AT vroom>
16478
16479         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
16480
16481         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
16482
16483 2002-03-01    <johan AT FRIJA>
16484
16485         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
16486
16487         * src/SDCCast.c (decorateType): fixed bug #524209
16488
16489         * src/SDCCval.c (valNot): fixed bug #524195
16490
16491 2002-02-26    <johan AT balder>
16492
16493         * src/xa51/gen.c: fixed a warning
16494
16495         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
16496
16497         * src/SDCCast.c (decorateType): fixed bug #522534
16498
16499 2002-02-23    <johan AT balder>
16500
16501         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
16502
16503 2002-02-22    <johan AT balder>
16504
16505         * src/SDCCast.c: fixed bug #514865
16506
16507         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
16508
16509 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
16510
16511         * sdcc/src/SDCCloop.c:
16512         Previous fix was not good. basic blocks that have "break" or "return" are
16513         not really partof a loop , but live ranges used in these blocks should
16514         be live thru the entire loop, so set partOfLoop but don't add them to
16515         loop region
16516
16517 2002-02-21    <johan AT FRIJA>
16518
16519         * src/SDCCcse.c: fixed bug #514308
16520
16521 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
16522
16523         * src/SDCCloop.c:
16524         Fixed BUG #519583. If a conditional block ended in a return/break
16525         statement inside a loop, it was not being considered part of the loop.
16526
16527         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
16528
16529 2002-02-10  Karl Bongers <karl AT turbobit.com>
16530
16531         * debugger/*:
16532         Fixed up SDCDB debugger somewhat.  Updated debugger/README
16533         with lots of comments and notes.
16534
16535         * device/examples/test2.c:
16536         Fix bug, "red" variable not being initialized(compiler complained).
16537
16538         * device/examples/Makefile, examples/test3.c:
16539         Add Makefile in device/examples folder, compiles test3.c
16540         for use as a multiple module SDCDB test case.
16541
16542         * sim/ucsim/cmd.src/cmdset.cc:
16543         Took out debug printfs in ucsim "next" command.
16544
16545         * sim/ucsim/xa.src:
16546         Karl and Johan start ucsim XA support.  Most dissassembly working,
16547         about 75% emulation done(plenty of work remaining).
16548
16549         * sim/ucsim/z80.src:
16550         Add Z80 support to ucsim, add test-ucz80 regression test,
16551         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
16552         Notice z80 compiler fails on examples/test3.c/crc code.
16553
16554 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
16555
16556         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
16557         Added support for --parms-in-bank1
16558
16559         * src/ds390/peeph.def:
16560         added a few more peephole optimzations
16561
16562         * src/ds390/main.c:
16563         1) added __builtin_inp & __builtin_outp used to read in data of given length
16564            from a memory mapped port
16565         2) added __builtin_memcmp
16566         3) added __builtin_swapw swap bytes of a short
16567
16568         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
16569         1) handle multiple send & receives from register bank1
16570         2) ralloc can now allocate DPTR1 to some liveRanges
16571
16572         * src/SDCCsymt.c, src/SDCCsymt.h:
16573         changes to handle multiple sends & receives
16574
16575         * src/SDCCptropt.h:
16576         added some pointer arithmetic optimization
16577
16578         * src/SDCCptropt.c:
16579         added some pointer arithmetic optimizations but not stable yet so not
16580         called from anywhere (will get this working shortly)
16581
16582         * src/SDCCopt.c: fixed for multiple sends & receives
16583
16584         * src/SDCCmain.c:
16585         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
16586         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
16587            set preprocessor defines (depending on options)
16588
16589         * src/SDCCicode.c, src/SDCCicode.h:
16590         changes made to handle multiple sends & receives
16591
16592         * src/SDCCglobl.h:
16593         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
16594
16595         * src/SDCCcse.c, src/SDCCcse.h:
16596         added function findbackward def (to be used in upcoming optimization)
16597
16598         * src/SDCCcflow.c, src/SDCCcflow.h:
16599         added function returnAtEnd - to determine if a basic block terminates with
16600         a RETURN iCode
16601
16602         * src/SDCCast.c, src/SDCCast.h:
16603         added option parms-in-bank1
16604
16605         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
16606         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
16607         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
16608         adjusted for --parms-in-bank1 option
16609
16610         * device/include/string.h:
16611         donot redefine "reentrant" keyword
16612
16613         * device/include/ds80c390.h: Added some more SFRs
16614
16615 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
16616
16617         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
16618
16619 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
16620
16621         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
16622
16623 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
16624
16625         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
16626
16627 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
16628
16629         * Added --xram-movc option
16630
16631 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
16632
16633         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
16634
16635 2002-01-11  Johan Knol
16636
16637         * Added math lib of Jesus Calvino-Fraga
16638
16639 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
16640
16641         * src/SDCCmain.c (processFile): fix processing of ../../src.c
16642         * support/regression/Makefile: new target test-mcs51-stack-auto
16643         * support/regression/ports/mcs51-stack-auto/spec.mk: added
16644
16645 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
16646
16647         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
16648
16649 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
16650
16651         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
16652
16653 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
16654
16655         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
16656
16657         * src/SDCCglue.h: add definition for printIvalChar()
16658
16659 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
16660
16661         * src/SDCCast.c: fix #498138 by Johan
16662
16663         * src/SDCCglue.c: fix #498138 by Johan
16664
16665 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
16666
16667         * support/regression/Makefile: fix clean
16668
16669         * support/regression/ports/ds390/support.c: fix transmission of last character
16670
16671 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
16672
16673         * /sdcc/src/ds390/gen.c:
16674         a) improved computing address of stack variable
16675         b) took out some #if 0 code
16676         c) improved parmBytes adjustment
16677         d) improved genPlusIncr & genMinusIncr
16678         e) genCmp could generate bad code (when left assigned to DPTR)
16679         f) Fixed bug in hasInc
16680
16681         * /sdcc/src/ds390/ralloc.c:
16682         a) packRegsForSupport could mess up live information (Fixed)
16683         b) packRegsDPTRuse could be incorrect for left & right shift
16684
16685         * /sdcc/src/mcs51/ralloc.c:
16686         packRegsForSupport could mess up the live information (Fixed)
16687
16688         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
16689
16690         * /sdcc/src/SDCCast.c:
16691         can reverse a loop even if function call is present as long
16692         as the loop control variable is local & is not passed as parameter
16693
16694 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16695
16696         * /sdcc/ChangeLog: *** empty log message ***
16697
16698         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
16699         More builtin function additions for TININative
16700
16701         * /sdcc/src/ds390/ralloc.c:
16702         Had broken the regression testsuite
16703
16704         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
16705
16706         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
16707         Added funcattr hasStackParms will be set for reentrant functions when there
16708         are paramteres on the stack, this helps in minimizing frame pointer generation
16709         typeFromStr can handle function pointers now
16710
16711         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
16712         *** empty log message ***
16713
16714 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16715
16716         * /src/ds390/gen.c, /src/ds390/main.c:
16717         More builtin function additions for TININative
16718
16719         * /src/ds390/ralloc.c:
16720         Had broken the regression testsuite
16721
16722         * /src/SDCCast.c: Fixed a bug in dumptree
16723
16724         * /src/SDCCsymt.c, /src/SDCCsymt.h:
16725         Added funcattr hasStackParms will be set for reentrant functions when there
16726         are paramteres on the stack, this helps in minimizing frame pointer generation
16727         typeFromStr can handle function pointers now
16728
16729         * /doc/builtins.txt, /doc/TININative.txt:
16730         *** empty log message ***
16731
16732
16733 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16734
16735         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
16736         ALPHA version for -mTININative
16737
16738         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
16739         updated to reflect changes in the port structure
16740
16741         * /src/port.h:
16742         added function do_assemble (similar to do_link) if non-null this function
16743         will be called to do assembly (-mTININative) requires a multi command
16744         assembly
16745         added function genAssemblerEnd will be called to generate assembler Epilogue
16746
16747         * /src/SDCCsymt.c:
16748         added _JavaNative to debug info printing
16749
16750         * /src/SDCCmain.c: added option --tini-libid
16751         added port->do_assemble function (-mTININative) has a multi command assemble
16752
16753         * /src/SDCCglue.c: Disabled "constExpr" check
16754         added port->genAssemblerEnd function
16755
16756         * /src/SDCCglobl.h: Added option --tini-libid value
16757
16758         * /src/SDCCast.h:
16759         tookout optimizeCompare from the header (has no external references)
16760
16761         * /src/SDCCast.c: made one more function "static"
16762
16763 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
16764
16765         * src/z80/mappings.i: Added z80asm support.
16766
16767         * src/z80/main.c: Added z80asm support on --asm=z80asm
16768
16769         * src/z80/gen.c: Fixed asm portability issues.
16770
16771         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
16772
16773         * src/SDCCglue.c (printExterns): Added global/extern split.
16774
16775 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
16776
16777         * support/regression/Makefile: added test for mcs51 model large
16778
16779         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
16780
16781         * support/regression/ports/gbz80/spec.mk: added -mgbz80
16782
16783 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
16784
16785         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
16786
16787 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
16788
16789         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
16790
16791         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
16792
16793 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
16794
16795         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
16796
16797         * support/regression/tests/simplefloat.c: Port to mcs51.
16798
16799 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
16800         * support/regression/tests/bug-485362.c: Added.
16801
16802         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
16803
16804         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
16805
16806         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
16807
16808         * src/z80/gen.c (aopDump): Added a dump function.
16809
16810 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
16811         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
16812
16813         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
16814
16815         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
16816
16817         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
16818
16819         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
16820
16821         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
16822
16823         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
16824
16825         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
16826
16827         * support/regression/ports/ds390/support.c: Use tinibios.
16828
16829         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
16830
16831 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
16832
16833         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
16834         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
16835
16836         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
16837
16838         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
16839
16840 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
16841
16842         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
16843
16844         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
16845         (packRegsForIYUse): Created and optimised.
16846
16847 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
16848
16849         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
16850 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
16851
16852         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
16853
16854         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
16855
16856         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
16857
16858 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
16859
16860         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
16861
16862         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
16863
16864 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
16865
16866         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
16867
16868         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
16869
16870         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
16871
16872 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
16873
16874         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
16875         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
16876         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
16877
16878         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
16879
16880         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
16881         (genNotFloat): Added.
16882         (genUminusFloat): Added.
16883
16884         * device/lib/z80/Makefile: Added floating pt stubs.
16885
16886         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
16887
16888         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
16889
16890         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
16891
16892 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
16893
16894         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
16895
16896         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
16897
16898         * sdcc/support/regression/Makefile: Add port ds390.
16899
16900         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
16901
16902         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
16903
16904         * sdcc/support/regression/ports/ds390/spec.mk: Added.
16905
16906         * sdcc/support/regression/ports/ds390/support.c: Added.
16907
16908         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
16909
16910         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
16911
16912         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
16913
16914 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
16915
16916         * device/include/malloc.h: Added z80 and gbz80 support.
16917
16918         * device/lib/gbz80/heap.s: Added.
16919
16920         * device/lib/z80/heap.s: Added.
16921
16922         * device/lib/malloc.c: Added z80 and gbz80 support.
16923
16924         * support/regression/tests/malloc.c (testMalloc): Added.
16925
16926         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
16927
16928         * support/regression/tests/bug-478094.c: Added.
16929
16930         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
16931
16932 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
16933
16934         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
16935
16936         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
16937
16938         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
16939
16940         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
16941
16942         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
16943
16944 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
16945
16946         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
16947
16948 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
16949
16950         * support/regression/tests/bug-477927.c: Added.
16951
16952         * src/z80/peeph.def: Added minor rules.
16953
16954         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
16955
16956         * src/z80/peeph.def: Added jump optimisation modification.
16957
16958 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
16959
16960         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
16961
16962 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
16963
16964         * support/regression/tests/funptrs.c: Added.
16965
16966 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
16967
16968         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
16969
16970 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
16971
16972         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
16973
16974         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
16975
16976         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
16977         (movLeft2ResultLong): Created.
16978
16979         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
16980         (joinPushes): Added.  Joins two char pushes into a word push.
16981
16982 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
16983
16984         * support/cpp2/Makefile.in (install): Added creation of dest dir.
16985
16986         * support/makebin/Makefile (install): Added creation of dest dir.
16987
16988 2001-10-24 Karl Bongers <karl AT turbobit.com>
16989
16990         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
16991
16992 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
16993
16994         * src/z80/ralloc.c: Turned off faulty pack for one use.
16995
16996         * src/z80/peeph-gbz80.def: Removed redundent restart options.
16997
16998         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
16999
17000 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
17001
17002         * support/regression/Makefile: Improved clean
17003
17004         * support/regression/ports/gbz80/spec.mk: Added clean
17005
17006         * support/regression/ports/host/spec.mk: Added clean
17007
17008         * support/regression/ports/z80/spec.mk: Added clean
17009
17010         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
17011
17012         * support/regression/ports/mcs51/timeout.c: little improvements
17013
17014 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
17015
17016         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
17017
17018         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
17019
17020         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
17021
17022 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
17023
17024         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
17025
17026         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
17027
17028 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
17029         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
17030
17031         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
17032
17033         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
17034
17035         * src/mcs51/main.c (_linkCmd): Added bin path to command.
17036
17037         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
17038
17039         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
17040
17041         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
17042
17043         * support/regression/tests/longor.c: Added.
17044
17045 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
17046
17047         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
17048
17049         * as/mcs51/aslink.h: define PATH_MAX
17050
17051         * as/mcs51/asm.h: define PATH_MAX
17052
17053         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
17054
17055         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
17056
17057         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
17058
17059         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
17060
17061         * src/SDCCglobl.h: define PATH_MAX
17062
17063         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
17064
17065         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
17066
17067 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
17068
17069         * src/z80/gen.c (gencjneshort): Fixed
17070
17071         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
17072
17073 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
17074
17075         * support/regression/tests/bug-469671.c: Added.
17076
17077         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
17078
17079 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
17080
17081         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
17082
17083         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
17084
17085 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
17086
17087         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
17088
17089         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
17090
17091         * src/device/lib/_mullong.c : removed hint: nooverlay bug
17092
17093         * src/device/lib/_divuint.c : removed hint: nooverlay bug
17094
17095         * src/device/lib/_divulong.c: removed hint: nooverlay bug
17096
17097         * src/device/lib/_moduint.c : removed hint: nooverlay bug
17098
17099         * src/device/lib/_modulong.c: removed hint: nooverlay bug
17100
17101 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
17102
17103         * 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.
17104
17105         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
17106
17107         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
17108
17109 2001-10-07    <johan AT FRIJA>
17110
17111         * device/lib/gets.c (gets): fixed the return value.
17112
17113 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
17114         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
17115
17116         * 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.
17117
17118         * 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.
17119
17120         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
17121
17122         * src/pic/gen.c: Removed Safe_strdup.
17123
17124         * configure.in: Added option to enable libgc support.
17125
17126         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
17127         (bitVectUnion): Optimised.
17128         (bitVectIntersect): Optimised.
17129         (bitVectBitsInCommon): Optimised.
17130         (bitVectCplAnd): Optimised.
17131
17132         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
17133
17134 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17135
17136         * src/SDCCmain.c: distinguish between assembler debug and plain options
17137
17138         * src/avr/main.c:   remove standard assembler options
17139
17140         * src/ds390/main.c: remove standard assembler options
17141
17142         * src/mcs51/main.c: remove standard assembler options
17143
17144         * src/port.h: removed "PENDING" comment
17145
17146 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17147
17148         * src/device/lib/_mulint.c  : new, with assember functions
17149
17150         * src/device/lib/_mullong.c : new, with assember functions
17151
17152         * src/device/lib/_divuint.c : with assember functions
17153
17154         * src/device/lib/_divsint.c : with assember functions
17155
17156         * src/device/lib/_divulong.c: with assember functions
17157
17158         * src/device/lib/_divslong.c: with assember functions
17159
17160         * src/device/lib/_moduint.c : with assember functions
17161
17162         * src/device/lib/_modsint.c : with assember functions
17163
17164         * src/device/lib/_modulong.c: with assember functions
17165
17166         * src/device/lib/_modslong.c: with assember functions
17167
17168         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
17169
17170         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
17171
17172         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
17173                                       replaced _mululong.c and _mulslong.c by _mullong.c
17174
17175 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
17176
17177         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
17178
17179 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
17180
17181         * src/SDCCglue.c: test, if win32api is available for MINGW
17182
17183 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
17184
17185         * src/SDCCsymt.c: no more _modifier in printTypeChain()
17186         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
17187         * support/regression/ports/gbz80/spec.mk: removed GENERIC
17188         * support/regression/ports/host/spec.mk: removed GENERIC
17189         * support/regression/ports/mcs51/spec.mk: removed GENERIC
17190         * support/regression/ports/z80/spec.mk: removed GENERIC
17191
17192 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
17193
17194         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
17195
17196         * support/regression/tests/bug-467035.c: Created.
17197
17198 2001-10-01    <johan AT FRIJA>
17199
17200         * src/SDCC.y: fixed bug #466586 part 1
17201
17202 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
17203
17204         * SDCCicode.c: z80 has no generic pointers
17205         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
17206
17207 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
17208
17209         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
17210
17211 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
17212
17213         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
17214
17215         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
17216
17217 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
17218
17219         * configure.in: Fixed up so that ucsim is only configured once.
17220
17221         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
17222
17223         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
17224         (getPathDifference): As above.
17225
17226         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
17227
17228         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
17229
17230 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
17231         * .version: Updated to 2.3.1
17232
17233         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
17234         Added copyright header.
17235
17236         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
17237         (assemble): Added support for macro based assembler commands.
17238         (linkEdit): Added support for macro based linker commands.
17239         (preProcess): Changed the pre-processor to use macros.
17240         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
17241         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
17242
17243         * device/lib/z80/crt0.s: Added module name for debugging.
17244
17245 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
17246
17247         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
17248
17249         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
17250
17251         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
17252
17253         * src/Makefile.in: Added SDCCmacro and SDCCutil
17254
17255 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
17256
17257         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
17258
17259 2001-09-16    <johan AT FRIJA>
17260
17261         * 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.
17262
17263 2001-09-15    <johan AT FRIJA>
17264
17265         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
17266         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
17267
17268 2001-09-11    <johan AT FRIJA>
17269
17270         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
17271
17272 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
17273
17274         * support/regression/tests/bug-460444.c: Added test case.
17275
17276         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
17277         (genCast): Added justification for all of the asserts.
17278
17279 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
17280
17281         * support/regression/support.c: _xdata replaced by xdata
17282
17283         * support/regression/spec.mk: removed _generic
17284
17285 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
17286
17287         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
17288
17289         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
17290         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
17291
17292         * src/z80/peeph.def: Added a rule to optimise shift then compare.
17293
17294         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
17295
17296         * support/regression/tests/bug-460010.c: Added test case.
17297
17298         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
17299
17300 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
17301
17302         * support/regression/Makefile: inter-port-clean adjusted for mcs51
17303
17304         * support/regression/testfwk.c: removed workaround for bug #436344
17305
17306         * support/regression/tests/bp.c: use less memory with mcs51
17307
17308         * support/regression/tests/bug-441448.c: use less memory
17309
17310         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
17311
17312         * support/regression/collate-results.py: typo
17313
17314 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
17315
17316         * support/regression/tests/fetchoverlap.c: Added new test case.
17317
17318         * support/regression/tests/bp.c: Added new test case.
17319
17320         * support/regression/tests/bug-448984.c: Added new test case.
17321
17322         * support/regression/tests/pow2shifts.c: Added new test case.
17323
17324         * src/z80/gen.c: Turned off the noise it normally generates for the release.
17325         (genlshTwo): Fixed right shift for count > 8.
17326
17327         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
17328
17329 2001-09-08    <johan AT FRIJA>
17330
17331         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
17332
17333 2001-09-07    <johan AT FRIJA>
17334
17335         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
17336
17337         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
17338
17339 2001-09-06    <johan AT FRIJA>
17340
17341         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
17342         * bernhard noted me at this: "() equals to (void)" (1.38)
17343
17344 2001-09-05    <johan AT FRIJA>
17345
17346         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
17347
17348 2001-09-04    <johan AT FRIJA>
17349
17350         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
17351
17352
17353 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
17354
17355         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
17356
17357 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
17358
17359         * link/z80/aslink.h: Fixed path for PATH_MAX
17360
17361 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
17362
17363         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
17364
17365         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
17366
17367         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
17368
17369         * 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.
17370
17371 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
17372
17373         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
17374         (genCmp): Fixed up genCmp for the GB with longs.
17375
17376         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
17377
17378         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
17379
17380         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
17381
17382         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
17383
17384 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
17385
17386         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
17387
17388 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
17389
17390         * 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.
17391
17392         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
17393
17394 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
17395
17396         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
17397
17398         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
17399
17400 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
17401
17402         * sim/ucsim/configure:    little improvement of Cygwin-detection
17403         * sim/ucsim/configure.in: little improvement of Cygwin-detection
17404         * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
17405         * support/regression/tests/bug-221100.c: small changes for mcs51
17406         * support/regression/tests/bug-221168.c: small changes for mcs51
17407         * support/regression/tests/bug-227710.c: small changes for mcs51
17408         * support/regression/tests/staticinit.c: small changes for mcs51
17409         * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
17410         * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
17411         * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
17412
17413 $Revision$